@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
|
@@ -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"}
|
|
@@ -105,9 +105,7 @@ const buildNotifications = notifications => {
|
|
|
105
105
|
const buildHeader = header => {
|
|
106
106
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
107
107
|
className: _style.default.header
|
|
108
|
-
}, header.type === 'header-with-actions' ? /*#__PURE__*/_react.default.createElement(_headerWithActions.default, header) : /*#__PURE__*/_react.default.createElement(
|
|
109
|
-
className: _style.default.headerStickyDefault
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement(_setupHeader.default, header)));
|
|
108
|
+
}, header.type === 'header-with-actions' ? /*#__PURE__*/_react.default.createElement(_headerWithActions.default, header) : /*#__PURE__*/_react.default.createElement(_setupHeader.default, header));
|
|
111
109
|
};
|
|
112
110
|
const buildDefaultPopin = popin => {
|
|
113
111
|
const {
|
|
@@ -351,7 +349,7 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
351
349
|
}),
|
|
352
350
|
popin: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
353
351
|
..._cmPopin.default.propTypes,
|
|
354
|
-
theme: _propTypes.default.oneOf(['published', 'archived', 'deleted'
|
|
352
|
+
theme: _propTypes.default.oneOf(['published', 'archived', 'deleted'])
|
|
355
353
|
}), _propTypes.default.shape({
|
|
356
354
|
..._iconPickerModal.default.propTypes,
|
|
357
355
|
type: _propTypes.default.oneOf(['icon-picker'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_map","_pipe","_get","_isEmpty","_find","_classnames","_brandTabs","_sidebar","_brandForm","_brandTable","_brandUpload","_brandAnalytics","_brandDashboard","_wizardContents","_listItems","_brandLearningPriorities","_banner","_setupHeader","_headerWithActions","_loader","_coorpManager","_cmPopin","_buttonLinkIcon","_expandibleActionableTable","_bulkInfos","_title","_skillEdition","_iconPickerModal","_style","_utils","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","createElement","key","title","type","IconLinkItem","styles","selected","uppercase","target","LinkItem","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","headerStickyDefault","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","POPIN_THEMES","buildPopin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","pipe","get","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","PropTypes","arrayOf","shape","Banner","oneOfType","Header","HeaderWithActions","oneOf","isRequired","string","bool","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BulkInfos","ExpandibleActionableTable","BrandLearningPriorities","SkillEdition","func","CmPopin","IconPickerModal","Title","_default","exports"],"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,IAAAA,MAAA,GAAAC,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AS,CAACE,KAAK,CAAC;IACvB,GAAGU,mBAAU,CAAChB,SAAS;IACvB/F,GAAG,EAAEmG,kBAAS,CAACS,MAAM;IACrB1G,IAAI,EAAEiG,kBAAS,CAACO,KAAK,CAAC,CAAC,MAAM,CAAC;EAChC,CAAC,CAAC;EACF7F,WAAW,EAAEsF,kBAAS,CAACsB,IAAI;EAC3B3C,gBAAgB,EAAEqB,kBAAS,CAACU,IAAI;EAChC5G,KAAK,EAAEkG,kBAAS,CAACE,KAAK,CAACuB,cAAK,CAAC7B,SAAS;AACxC,CAAC;AAAC,IAAA8B,QAAA,GAAAC,OAAA,CAAAxJ,OAAA,GAEasG,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_map","_pipe","_get","_isEmpty","_find","_classnames","_brandTabs","_sidebar","_brandForm","_brandTable","_brandUpload","_brandAnalytics","_brandDashboard","_wizardContents","_listItems","_brandLearningPriorities","_banner","_setupHeader","_headerWithActions","_loader","_coorpManager","_cmPopin","_buttonLinkIcon","_expandibleActionableTable","_bulkInfos","_title","_skillEdition","_iconPickerModal","_style","_utils","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","createElement","key","title","type","IconLinkItem","styles","selected","uppercase","target","LinkItem","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","POPIN_THEMES","buildPopin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","pipe","get","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","PropTypes","arrayOf","shape","Banner","oneOfType","Header","HeaderWithActions","oneOf","isRequired","string","bool","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BulkInfos","ExpandibleActionableTable","BrandLearningPriorities","SkillEdition","func","CmPopin","IconPickerModal","Title","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,IAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,UAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,WAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,YAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,eAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,eAAA,GAAAf,sBAAA,CAAAC,OAAA;AACA,IAAAe,eAAA,GAAAhB,sBAAA,CAAAC,OAAA;AACA,IAAAgB,UAAA,GAAAjB,sBAAA,CAAAC,OAAA;AACA,IAAAiB,wBAAA,GAAAlB,sBAAA,CA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E,KAAK,CAAC;IACd,GAAGqB,gBAAO,CAAC3B,SAAS;IACpBpE,KAAK,EAAEwE,kBAAS,CAACO,KAAK,CAAC,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,CAAC;EAC7D,CAAC,CAAC,EACFP,kBAAS,CAACE,KAAK,CAAC;IACd,GAAGsB,wBAAe,CAAC5B,SAAS;IAC5B5F,IAAI,EAAEgG,kBAAS,CAACO,KAAK,CAAC,CAAC,aAAa,CAAC;EACvC,CAAC,CAAC,CACH,CAAC;EACFhC,OAAO,EAAEyB,kBAAS,CAACE,KAAK,CAAC;IACvB,GAAGU,mBAAU,CAAChB,SAAS;IACvB9F,GAAG,EAAEkG,kBAAS,CAACS,MAAM;IACrBzG,IAAI,EAAEgG,kBAAS,CAACO,KAAK,CAAC,CAAC,MAAM,CAAC;EAChC,CAAC,CAAC;EACF5F,WAAW,EAAEqF,kBAAS,CAACsB,IAAI;EAC3B3C,gBAAgB,EAAEqB,kBAAS,CAACU,IAAI;EAChC3G,KAAK,EAAEiG,kBAAS,CAACE,KAAK,CAACuB,cAAK,CAAC7B,SAAS;AACxC,CAAC;AAAC,IAAA8B,QAAA,GAAAC,OAAA,CAAAvJ,OAAA,GAEaqG,WAAW","ignoreList":[]}
|
|
@@ -17,7 +17,7 @@ export namespace POPIN_THEMES {
|
|
|
17
17
|
const 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
|
|
@@ -36,12 +36,6 @@ const ICON_PROPS = {
|
|
|
36
36
|
iconColor: _colors.COLORS.red_700,
|
|
37
37
|
backgroundColor: _colors.COLORS.red_100,
|
|
38
38
|
preset: 'xl'
|
|
39
|
-
},
|
|
40
|
-
draft: {
|
|
41
|
-
iconName: 'circle-exclamation',
|
|
42
|
-
iconColor: _colors.COLORS.yellow_700,
|
|
43
|
-
backgroundColor: _colors.COLORS.yellow_100,
|
|
44
|
-
preset: 'xl'
|
|
45
39
|
}
|
|
46
40
|
};
|
|
47
41
|
const POPIN_THEMES = exports.POPIN_THEMES = {
|
|
@@ -65,19 +59,6 @@ const POPIN_THEMES = exports.POPIN_THEMES = {
|
|
|
65
59
|
},
|
|
66
60
|
type: 'dangerous'
|
|
67
61
|
}
|
|
68
|
-
},
|
|
69
|
-
draft: {
|
|
70
|
-
icon: ICON_PROPS.draft,
|
|
71
|
-
actionButton: {
|
|
72
|
-
...COMMUN_ACTION_BUTTON_PROPS,
|
|
73
|
-
icon: {
|
|
74
|
-
position: 'left',
|
|
75
|
-
faIcon: {
|
|
76
|
-
...COMMUN_ACTION_BUTTON_PROPS.icon.faIcon,
|
|
77
|
-
name: 'floppy-disk'
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
62
|
}
|
|
82
63
|
};
|
|
83
64
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_colors","require","COMMUN_ACTION_BUTTON_PROPS","icon","position","faIcon","name","color","COLORS","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","require","COMMUN_ACTION_BUTTON_PROPS","icon","position","faIcon","name","color","COLORS","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","exports","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,\n name: 'trash'\n }\n },\n type: 'dangerous'\n }\n }\n};\n"],"mappings":";;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,MAAMC,0BAA0B,GAAG;EACjCC,IAAI,EAAE;IACJC,QAAQ,EAAE,MAAM;IAChBC,MAAM,EAAE;MACNC,IAAI,EAAE,cAAc;MACpBC,KAAK,EAAEC,cAAM,CAACC,KAAK;MACnBC,IAAI,EAAE,EAAE;MACRC,WAAW,EAAE;QACXC,OAAO,EAAE,CAAC;QACVC,UAAU,EAAE;MACd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