@coorpacademy/components 11.35.2-alpha.4 → 11.35.2-forcedeploy2.15
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 +89 -71
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +99 -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 +89 -71
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +99 -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":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -183,7 +183,10 @@ declare namespace BrandUpdate {
|
|
|
183
183
|
}> | PropTypes.InferProps<{
|
|
184
184
|
type: PropTypes.Validator<string>;
|
|
185
185
|
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
186
|
-
|
|
186
|
+
size: PropTypes.Validator<string>;
|
|
187
|
+
icon: PropTypes.Validator<string>;
|
|
188
|
+
'data-name': PropTypes.Validator<string>;
|
|
189
|
+
'aria-label': PropTypes.Validator<string>;
|
|
187
190
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
188
191
|
}>>;
|
|
189
192
|
title: PropTypes.Validator<string>;
|
|
@@ -196,7 +199,7 @@ declare namespace BrandUpdate {
|
|
|
196
199
|
display: PropTypes.Validator<boolean>;
|
|
197
200
|
label: PropTypes.Requireable<string>;
|
|
198
201
|
}>>>;
|
|
199
|
-
|
|
202
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
200
203
|
'data-name': PropTypes.Requireable<string>;
|
|
201
204
|
disabled: PropTypes.Requireable<boolean>;
|
|
202
205
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -229,18 +232,8 @@ declare namespace BrandUpdate {
|
|
|
229
232
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
230
233
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
231
234
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
dataName: PropTypes.Requireable<string>;
|
|
235
|
-
label: PropTypes.Validator<string>;
|
|
236
|
-
iconName: PropTypes.Validator<string>;
|
|
237
|
-
iconColor: PropTypes.Validator<string>;
|
|
238
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
239
|
-
}> | null | undefined)[]>;
|
|
240
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
241
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
242
|
-
}> | null | undefined>>;
|
|
243
|
-
actionButtons: PropTypes.Validator<NonNullable<NonNullable<(PropTypes.InferProps<{
|
|
235
|
+
}>>;
|
|
236
|
+
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
244
237
|
type: PropTypes.Requireable<string>;
|
|
245
238
|
usage: PropTypes.Requireable<string>;
|
|
246
239
|
label: PropTypes.Requireable<string>;
|
|
@@ -276,14 +269,7 @@ declare namespace BrandUpdate {
|
|
|
276
269
|
customStyle: PropTypes.Requireable<{
|
|
277
270
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
278
271
|
}>;
|
|
279
|
-
}> | null | undefined)[]
|
|
280
|
-
type: PropTypes.Validator<string>;
|
|
281
|
-
label: PropTypes.Validator<string>;
|
|
282
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
283
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
284
|
-
iconName: PropTypes.Validator<string>;
|
|
285
|
-
iconColor: PropTypes.Validator<string>;
|
|
286
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
272
|
+
}> | null | undefined)[]>;
|
|
287
273
|
}> | null | undefined>>;
|
|
288
274
|
export const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
289
275
|
key: PropTypes.Requireable<string>;
|
|
@@ -881,7 +867,7 @@ declare namespace BrandUpdate {
|
|
|
881
867
|
'data-name': PropTypes.Requireable<string>;
|
|
882
868
|
titleSize: PropTypes.Requireable<string>;
|
|
883
869
|
subtitleSize: PropTypes.Requireable<string>;
|
|
884
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
870
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
885
871
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
886
872
|
label: PropTypes.Requireable<string>;
|
|
887
873
|
type: PropTypes.Requireable<string>;
|
|
@@ -889,7 +875,17 @@ declare namespace BrandUpdate {
|
|
|
889
875
|
customStyle: PropTypes.Requireable<{
|
|
890
876
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
891
877
|
}>;
|
|
892
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
878
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
879
|
+
position: PropTypes.Requireable<string>;
|
|
880
|
+
iconName?: React.Validator<string> | undefined;
|
|
881
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
882
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
883
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
884
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
885
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
886
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
887
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
888
|
+
}>>;
|
|
893
889
|
}>>;
|
|
894
890
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
895
891
|
type: PropTypes.Requireable<string>;
|
|
@@ -2053,7 +2049,7 @@ declare namespace BrandUpdate {
|
|
|
2053
2049
|
'data-name': PropTypes.Requireable<string>;
|
|
2054
2050
|
titleSize: PropTypes.Requireable<string>;
|
|
2055
2051
|
subtitleSize: PropTypes.Requireable<string>;
|
|
2056
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
2052
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
2057
2053
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2058
2054
|
label: PropTypes.Requireable<string>;
|
|
2059
2055
|
type: PropTypes.Requireable<string>;
|
|
@@ -2061,7 +2057,17 @@ declare namespace BrandUpdate {
|
|
|
2061
2057
|
customStyle: PropTypes.Requireable<{
|
|
2062
2058
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
2063
2059
|
}>;
|
|
2064
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
2060
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2061
|
+
position: PropTypes.Requireable<string>;
|
|
2062
|
+
iconName?: React.Validator<string> | undefined;
|
|
2063
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
2064
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
2065
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
2066
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
2067
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
2068
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
2069
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
2070
|
+
}>>;
|
|
2065
2071
|
}>>;
|
|
2066
2072
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2067
2073
|
type: PropTypes.Requireable<string>;
|
|
@@ -2249,7 +2255,7 @@ declare namespace BrandUpdate {
|
|
|
2249
2255
|
'data-name': PropTypes.Requireable<string>;
|
|
2250
2256
|
titleSize: PropTypes.Requireable<string>;
|
|
2251
2257
|
subtitleSize: PropTypes.Requireable<string>;
|
|
2252
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
2258
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
2253
2259
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2254
2260
|
label: PropTypes.Requireable<string>;
|
|
2255
2261
|
type: PropTypes.Requireable<string>;
|
|
@@ -2257,7 +2263,17 @@ declare namespace BrandUpdate {
|
|
|
2257
2263
|
customStyle: PropTypes.Requireable<{
|
|
2258
2264
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
2259
2265
|
}>;
|
|
2260
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
2266
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2267
|
+
position: PropTypes.Requireable<string>;
|
|
2268
|
+
iconName?: React.Validator<string> | undefined;
|
|
2269
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
2270
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
2271
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
2272
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
2273
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
2274
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
2275
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
2276
|
+
}>>;
|
|
2261
2277
|
}>>;
|
|
2262
2278
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2263
2279
|
type: PropTypes.Requireable<string>;
|
|
@@ -2700,7 +2716,7 @@ declare namespace BrandUpdate {
|
|
|
2700
2716
|
'data-name': PropTypes.Requireable<string>;
|
|
2701
2717
|
titleSize: PropTypes.Requireable<string>;
|
|
2702
2718
|
subtitleSize: PropTypes.Requireable<string>;
|
|
2703
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
2719
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
2704
2720
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2705
2721
|
label: PropTypes.Requireable<string>;
|
|
2706
2722
|
type: PropTypes.Requireable<string>;
|
|
@@ -2708,7 +2724,17 @@ declare namespace BrandUpdate {
|
|
|
2708
2724
|
customStyle: PropTypes.Requireable<{
|
|
2709
2725
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
2710
2726
|
}>;
|
|
2711
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
2727
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2728
|
+
position: PropTypes.Requireable<string>;
|
|
2729
|
+
iconName?: React.Validator<string> | undefined;
|
|
2730
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
2731
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
2732
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
2733
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
2734
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
2735
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
2736
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
2737
|
+
}>>;
|
|
2712
2738
|
}>>;
|
|
2713
2739
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2714
2740
|
type: PropTypes.Requireable<string>;
|
|
@@ -2907,7 +2933,7 @@ declare namespace BrandUpdate {
|
|
|
2907
2933
|
'data-name': PropTypes.Requireable<string>;
|
|
2908
2934
|
titleSize: PropTypes.Requireable<string>;
|
|
2909
2935
|
subtitleSize: PropTypes.Requireable<string>;
|
|
2910
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
2936
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
2911
2937
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2912
2938
|
label: PropTypes.Requireable<string>;
|
|
2913
2939
|
type: PropTypes.Requireable<string>;
|
|
@@ -2915,7 +2941,17 @@ declare namespace BrandUpdate {
|
|
|
2915
2941
|
customStyle: PropTypes.Requireable<{
|
|
2916
2942
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
2917
2943
|
}>;
|
|
2918
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
2944
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2945
|
+
position: PropTypes.Requireable<string>;
|
|
2946
|
+
iconName?: React.Validator<string> | undefined;
|
|
2947
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
2948
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
2949
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
2950
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
2951
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
2952
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
2953
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
2954
|
+
}>>;
|
|
2919
2955
|
}>>;
|
|
2920
2956
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2921
2957
|
type: PropTypes.Requireable<string>;
|
|
@@ -3002,8 +3038,8 @@ declare namespace BrandUpdate {
|
|
|
3002
3038
|
borderRadius: PropTypes.Requireable<string>;
|
|
3003
3039
|
preset: PropTypes.Requireable<string>;
|
|
3004
3040
|
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3005
|
-
faSize: PropTypes.
|
|
3006
|
-
wrapperSize: PropTypes.
|
|
3041
|
+
faSize: PropTypes.Validator<number>;
|
|
3042
|
+
wrapperSize: PropTypes.Validator<number>;
|
|
3007
3043
|
}>>;
|
|
3008
3044
|
customStyle: PropTypes.Requireable<{
|
|
3009
3045
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
@@ -3441,7 +3477,7 @@ declare namespace BrandUpdate {
|
|
|
3441
3477
|
'data-name': PropTypes.Requireable<string>;
|
|
3442
3478
|
titleSize: PropTypes.Requireable<string>;
|
|
3443
3479
|
subtitleSize: PropTypes.Requireable<string>;
|
|
3444
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
3480
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
3445
3481
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3446
3482
|
label: PropTypes.Requireable<string>;
|
|
3447
3483
|
type: PropTypes.Requireable<string>;
|
|
@@ -3449,7 +3485,17 @@ declare namespace BrandUpdate {
|
|
|
3449
3485
|
customStyle: PropTypes.Requireable<{
|
|
3450
3486
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
3451
3487
|
}>;
|
|
3452
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
3488
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3489
|
+
position: PropTypes.Requireable<string>;
|
|
3490
|
+
iconName?: React.Validator<string> | undefined;
|
|
3491
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
3492
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
3493
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
3494
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
3495
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
3496
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
3497
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
3498
|
+
}>>;
|
|
3453
3499
|
}>>;
|
|
3454
3500
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3455
3501
|
type: PropTypes.Requireable<string>;
|
|
@@ -3706,7 +3752,7 @@ declare namespace BrandUpdate {
|
|
|
3706
3752
|
'data-name': PropTypes.Requireable<string>;
|
|
3707
3753
|
titleSize: PropTypes.Requireable<string>;
|
|
3708
3754
|
subtitleSize: PropTypes.Requireable<string>;
|
|
3709
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
3755
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
3710
3756
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3711
3757
|
label: PropTypes.Requireable<string>;
|
|
3712
3758
|
type: PropTypes.Requireable<string>;
|
|
@@ -3714,7 +3760,17 @@ declare namespace BrandUpdate {
|
|
|
3714
3760
|
customStyle: PropTypes.Requireable<{
|
|
3715
3761
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
3716
3762
|
}>;
|
|
3717
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
3763
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3764
|
+
position: PropTypes.Requireable<string>;
|
|
3765
|
+
iconName?: React.Validator<string> | undefined;
|
|
3766
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
3767
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
3768
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
3769
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
3770
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
3771
|
+
size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
|
|
3772
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
3773
|
+
}>>;
|
|
3718
3774
|
}>>;
|
|
3719
3775
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3720
3776
|
type: PropTypes.Requireable<string>;
|
|
@@ -3758,4 +3814,5 @@ declare namespace BrandUpdate {
|
|
|
3758
3814
|
}
|
|
3759
3815
|
}
|
|
3760
3816
|
import PropTypes from "prop-types";
|
|
3817
|
+
import React from "react";
|
|
3761
3818
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AA6OA,sDAgDC"}
|
|
@@ -100,9 +100,7 @@ const buildNotifications = notifications => {
|
|
|
100
100
|
const buildHeader = header => {
|
|
101
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
102
102
|
className: style.header
|
|
103
|
-
}, header.type === 'header-with-actions' ? /*#__PURE__*/React.createElement(HeaderWithActions, header) : /*#__PURE__*/React.createElement(
|
|
104
|
-
className: style.headerStickyDefault
|
|
105
|
-
}, /*#__PURE__*/React.createElement(Header, header)));
|
|
103
|
+
}, header.type === 'header-with-actions' ? /*#__PURE__*/React.createElement(HeaderWithActions, header) : /*#__PURE__*/React.createElement(Header, header));
|
|
106
104
|
};
|
|
107
105
|
const buildDefaultPopin = popin => {
|
|
108
106
|
const {
|
|
@@ -346,7 +344,7 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
346
344
|
}),
|
|
347
345
|
popin: PropTypes.oneOfType([PropTypes.shape({
|
|
348
346
|
...CmPopin.propTypes,
|
|
349
|
-
theme: PropTypes.oneOf(['published', 'archived', 'deleted'
|
|
347
|
+
theme: PropTypes.oneOf(['published', 'archived', 'deleted'])
|
|
350
348
|
}), PropTypes.shape({
|
|
351
349
|
...IconPickerModal.propTypes,
|
|
352
350
|
type: PropTypes.oneOf(['icon-picker'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","style","POPIN_THEMES","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","createElement","key","title","type","_extends","styles","selected","uppercase","target","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","notificationsList","notification","temporary","permanentNotification","permanentNotifications","buildHeader","header","headerStickyDefault","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","buildPopin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","buildTitle","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","titleView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","process","env","NODE_ENV","arrayOf","shape","oneOfType","oneOf","isRequired","string","bool","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport BrandLearningPriorities from '../../../organism/brand-learning-priorities';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport HeaderWithActions from '../../../organism/header-with-actions';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIcon from '../../../atom/button-link-icon';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport Title from '../../../atom/title';\nimport SkillEdition from '../../../organism/skill-edition';\nimport IconPickerModal from '../../../molecule/icon-picker-modal';\nimport style from './style.css';\nimport {POPIN_THEMES} from './utils';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n {header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <div className={style.headerStickyDefault}>\n <Header {...header} />\n </div>\n )}\n </div>\n );\n};\n\nconst buildDefaultPopin = popin => {\n const {theme, icon: popinIcon, secondButton: popinSecondButton} = popin;\n const {icon: themeIcon, actionButton: themeActionButton} = POPIN_THEMES[theme] ?? {};\n\n return (\n <div className={style.popin}>\n <CmPopin\n {...popin}\n icon={popinIcon || themeIcon}\n secondButton={{...popinSecondButton, ...themeActionButton}}\n />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n if (isEmpty(popin)) return;\n\n switch (popin.type) {\n case 'icon-picker':\n return <IconPickerModal {...popin} />;\n default:\n return buildDefaultPopin(popin);\n }\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIcon\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n case 'learning-priorities':\n return <BrandLearningPriorities {...content} />;\n case 'skill-edition':\n return <SkillEdition {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst buildTitle = title => {\n if (isEmpty(title)) return;\n return (\n <div className={style.title}>\n <Title {...title} />\n </div>\n );\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight,\n title\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n const titleView = buildTitle(title);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {titleView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.oneOfType([\n PropTypes.shape({...Header.propTypes}),\n PropTypes.shape({\n ...HeaderWithActions.propTypes,\n type: PropTypes.oneOf(['header-with-actions']).isRequired\n })\n ]),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BrandLearningPriorities.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['learning-priorities'])\n }),\n PropTypes.shape({\n ...SkillEdition.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['skill-edition'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.oneOfType([\n PropTypes.shape({\n ...CmPopin.propTypes,\n theme: PropTypes.oneOf(['published', 'archived', 'deleted', 'draft'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool,\n title: PropTypes.shape(Title.propTypes)\n};\n\nexport default BrandUpdate;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAAQC,YAAY,EAAEC,QAAQ,QAAO,2BAA2B;AAChE,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,UAAU,MAAM,+BAA+B;A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EACF3I,SAAS,CAACyI,KAAK,CAAC;IACd,GAAG5G,eAAe,CAACuG,SAAS;IAC5BvF,IAAI,EAAE7C,SAAS,CAAC2I,KAAK,CAAC,CAAC,aAAa,CAAC;EACvC,CAAC,CAAC,CACH,CAAC;EACF5B,OAAO,EAAE/G,SAAS,CAACyI,KAAK,CAAC;IACvB,GAAG9H,UAAU,CAACyH,SAAS;IACvBzF,GAAG,EAAE3C,SAAS,CAAC6I,MAAM;IACrBhG,IAAI,EAAE7C,SAAS,CAAC2I,KAAK,CAAC,CAAC,MAAM,CAAC;EAChC,CAAC,CAAC;EACFpF,WAAW,EAAEvD,SAAS,CAAC+I,IAAI;EAC3B5B,gBAAgB,EAAEnH,SAAS,CAAC8I,IAAI;EAChClG,KAAK,EAAE5C,SAAS,CAACyI,KAAK,CAAC9G,KAAK,CAACyG,SAAS;AACxC,CAAC;AAED,eAAenB,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","style","POPIN_THEMES","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","createElement","key","title","type","_extends","styles","selected","uppercase","target","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","notificationsList","notification","temporary","permanentNotification","permanentNotifications","buildHeader","header","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","buildPopin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","buildTitle","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","titleView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","process","env","NODE_ENV","arrayOf","shape","oneOfType","oneOf","isRequired","string","bool","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport BrandLearningPriorities from '../../../organism/brand-learning-priorities';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport HeaderWithActions from '../../../organism/header-with-actions';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIcon from '../../../atom/button-link-icon';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport Title from '../../../atom/title';\nimport SkillEdition from '../../../organism/skill-edition';\nimport IconPickerModal from '../../../molecule/icon-picker-modal';\nimport style from './style.css';\nimport {POPIN_THEMES} from './utils';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n {header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <Header {...header} />\n )}\n </div>\n );\n};\n\nconst buildDefaultPopin = popin => {\n const {theme, icon: popinIcon, secondButton: popinSecondButton} = popin;\n const {icon: themeIcon, actionButton: themeActionButton} = POPIN_THEMES[theme] ?? {};\n\n return (\n <div className={style.popin}>\n <CmPopin\n {...popin}\n icon={popinIcon || themeIcon}\n secondButton={{...popinSecondButton, ...themeActionButton}}\n />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n if (isEmpty(popin)) return;\n\n switch (popin.type) {\n case 'icon-picker':\n return <IconPickerModal {...popin} />;\n default:\n return buildDefaultPopin(popin);\n }\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIcon\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n case 'learning-priorities':\n return <BrandLearningPriorities {...content} />;\n case 'skill-edition':\n return <SkillEdition {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst buildTitle = title => {\n if (isEmpty(title)) return;\n return (\n <div className={style.title}>\n <Title {...title} />\n </div>\n );\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight,\n title\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n const titleView = buildTitle(title);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {titleView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.oneOfType([\n PropTypes.shape({...Header.propTypes}),\n PropTypes.shape({\n ...HeaderWithActions.propTypes,\n type: PropTypes.oneOf(['header-with-actions']).isRequired\n })\n ]),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BrandLearningPriorities.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['learning-priorities'])\n }),\n PropTypes.shape({\n ...SkillEdition.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['skill-edition'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.oneOfType([\n PropTypes.shape({\n ...CmPopin.propTypes,\n theme: PropTypes.oneOf(['published', 'archived', 'deleted'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool,\n title: PropTypes.shape(Title.propTypes)\n};\n\nexport default BrandUpdate;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAAQC,YAAY,EAAEC,QAAQ,QAAO,2BAA2B;AAChE,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,UAAU,MAAM,+BAA+B;AACtD,OAAOC,WAAW,MAAM,gCAAgC;AACxD,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,uBAAuB,MAAM,6CAA6C;AACjF,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,OAAOC,MAAM,MAAM,gCAAgC;AACnD,OAAOC,iBAAiB,MAAM,uCAAuC;AACrE,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,SAAS,MAAM,2CAA2C;AACjE,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,yBAAyB,MAAM,+CAA+C;AACrF,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,KAAK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position: string;
|
|
18
18
|
namespace faIcon {
|
|
19
19
|
const name: string;
|
|
20
|
-
const color: "#
|
|
20
|
+
const color: "#FFFFFF";
|
|
21
21
|
const size: number;
|
|
22
22
|
namespace customStyle {
|
|
23
23
|
const padding: number;
|
|
@@ -29,25 +29,6 @@ export namespace POPIN_THEMES {
|
|
|
29
29
|
export const type: string;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
namespace draft {
|
|
33
|
-
import icon_4 = ICON_PROPS.draft;
|
|
34
|
-
export { icon_4 as icon };
|
|
35
|
-
export namespace actionButton_1 {
|
|
36
|
-
export namespace icon_5 {
|
|
37
|
-
const position_1: string;
|
|
38
|
-
export { position_1 as position };
|
|
39
|
-
export namespace faIcon_1 {
|
|
40
|
-
const name_1: string;
|
|
41
|
-
export { name_1 as name };
|
|
42
|
-
}
|
|
43
|
-
export { faIcon_1 as faIcon };
|
|
44
|
-
}
|
|
45
|
-
export { icon_5 as icon };
|
|
46
|
-
const type_1: string;
|
|
47
|
-
export { type_1 as type };
|
|
48
|
-
}
|
|
49
|
-
export { actionButton_1 as actionButton };
|
|
50
|
-
}
|
|
51
32
|
}
|
|
52
33
|
declare namespace ICON_PROPS {
|
|
53
34
|
export namespace published_1 {
|
|
@@ -79,29 +60,20 @@ declare namespace ICON_PROPS {
|
|
|
79
60
|
export { preset_2 as preset };
|
|
80
61
|
}
|
|
81
62
|
export { deleted_1 as deleted };
|
|
82
|
-
export namespace draft_1 {
|
|
83
|
-
const iconName_3: string;
|
|
84
|
-
export { iconName_3 as iconName };
|
|
85
|
-
const iconColor_3: "#A38300";
|
|
86
|
-
export { iconColor_3 as iconColor };
|
|
87
|
-
const backgroundColor_3: "#FFF9D1";
|
|
88
|
-
export { backgroundColor_3 as backgroundColor };
|
|
89
|
-
const preset_3: string;
|
|
90
|
-
export { preset_3 as preset };
|
|
91
|
-
}
|
|
92
|
-
export { draft_1 as draft };
|
|
93
63
|
}
|
|
94
64
|
declare namespace COMMUN_ACTION_BUTTON_PROPS {
|
|
95
|
-
export namespace
|
|
96
|
-
const
|
|
97
|
-
export {
|
|
98
|
-
export namespace
|
|
99
|
-
const
|
|
100
|
-
export {
|
|
65
|
+
export namespace icon_4 {
|
|
66
|
+
const position_1: string;
|
|
67
|
+
export { position_1 as position };
|
|
68
|
+
export namespace faIcon_1 {
|
|
69
|
+
const name_1: string;
|
|
70
|
+
export { name_1 as name };
|
|
101
71
|
}
|
|
102
|
-
export {
|
|
72
|
+
export { faIcon_1 as faIcon };
|
|
103
73
|
}
|
|
104
|
-
export {
|
|
74
|
+
export { icon_4 as icon };
|
|
75
|
+
const type_1: string;
|
|
76
|
+
export { type_1 as type };
|
|
105
77
|
}
|
|
106
78
|
export {};
|
|
107
79
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -32,12 +32,6 @@ const ICON_PROPS = {
|
|
|
32
32
|
iconColor: COLORS.red_700,
|
|
33
33
|
backgroundColor: COLORS.red_100,
|
|
34
34
|
preset: 'xl'
|
|
35
|
-
},
|
|
36
|
-
draft: {
|
|
37
|
-
iconName: 'circle-exclamation',
|
|
38
|
-
iconColor: COLORS.yellow_700,
|
|
39
|
-
backgroundColor: COLORS.yellow_100,
|
|
40
|
-
preset: 'xl'
|
|
41
35
|
}
|
|
42
36
|
};
|
|
43
37
|
export const POPIN_THEMES = {
|
|
@@ -61,19 +55,6 @@ export const POPIN_THEMES = {
|
|
|
61
55
|
},
|
|
62
56
|
type: 'dangerous'
|
|
63
57
|
}
|
|
64
|
-
},
|
|
65
|
-
draft: {
|
|
66
|
-
icon: ICON_PROPS.draft,
|
|
67
|
-
actionButton: {
|
|
68
|
-
...COMMUN_ACTION_BUTTON_PROPS,
|
|
69
|
-
icon: {
|
|
70
|
-
position: 'left',
|
|
71
|
-
faIcon: {
|
|
72
|
-
...COMMUN_ACTION_BUTTON_PROPS.icon.faIcon,
|
|
73
|
-
name: 'floppy-disk'
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
58
|
}
|
|
78
59
|
};
|
|
79
60
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["COLORS","COMMUN_ACTION_BUTTON_PROPS","icon","position","faIcon","name","color","white","size","customStyle","padding","alignItems","type","ICON_PROPS","published","iconName","iconColor","cm_grey_500","backgroundColor","gray","preset","archived","yellow_700","yellow_100","deleted","red_700","red_100","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["COLORS","COMMUN_ACTION_BUTTON_PROPS","icon","position","faIcon","name","color","white","size","customStyle","padding","alignItems","type","ICON_PROPS","published","iconName","iconColor","cm_grey_500","backgroundColor","gray","preset","archived","yellow_700","yellow_100","deleted","red_700","red_100","POPIN_THEMES","actionButton"],"sources":["../../../../src/template/back-office/brand-update/utils.js"],"sourcesContent":["import {COLORS} from '../../../variables/colors';\n\nconst COMMUN_ACTION_BUTTON_PROPS = {\n icon: {\n position: 'left',\n faIcon: {\n name: 'circle-check',\n color: COLORS.white,\n size: 14,\n customStyle: {\n padding: 0,\n alignItems: 'baseline'\n }\n }\n },\n type: 'primary'\n};\n\nconst ICON_PROPS = {\n published: {\n iconName: 'cloud-arrow-up',\n iconColor: COLORS.cm_grey_500,\n backgroundColor: COLORS.gray,\n preset: 'xl'\n },\n archived: {\n iconName: 'circle-exclamation',\n iconColor: COLORS.yellow_700,\n backgroundColor: COLORS.yellow_100,\n preset: 'xl'\n },\n deleted: {\n iconName: 'triangle-exclamation',\n iconColor: COLORS.red_700,\n backgroundColor: COLORS.red_100,\n preset: 'xl'\n }\n};\n\nexport const POPIN_THEMES = {\n published: {\n icon: ICON_PROPS.published,\n actionButton: COMMUN_ACTION_BUTTON_PROPS\n },\n archived: {\n icon: ICON_PROPS.archived,\n actionButton: COMMUN_ACTION_BUTTON_PROPS\n },\n deleted: {\n icon: ICON_PROPS.deleted,\n actionButton: {\n icon: {\n position: 'left',\n faIcon: {\n ...COMMUN_ACTION_BUTTON_PROPS.icon.faIcon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