@coorpacademy/components 11.42.4 → 11.42.6
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/checkbox-with-title/index.d.ts +1 -0
- package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/es/atom/checkbox-with-title/index.js +6 -1
- package/es/atom/checkbox-with-title/index.js.map +1 -1
- package/es/atom/input-search/index.d.ts +1 -0
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +7 -2
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-text/index.d.ts +1 -0
- package/es/atom/input-text/index.d.ts.map +1 -1
- package/es/atom/input-text/index.js +3 -0
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text-with-title/index.d.ts +1 -0
- package/es/molecule/brand-form-group/index.d.ts +1 -0
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +10 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +3 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/course-sections/index.d.ts +1 -0
- package/es/molecule/drag-and-drop/index.d.ts +1 -0
- package/es/molecule/drag-and-drop/upload-report.d.ts +1 -0
- package/es/molecule/draggable-list/index.d.ts +1 -0
- package/es/molecule/multi-filter-panel/index.d.ts +1 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +1 -0
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +1 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
- package/es/molecule/translation-modal/index.d.ts +2 -0
- package/es/organism/assignment-edition/index.d.ts +259 -0
- package/es/organism/assignment-edition/index.d.ts.map +1 -0
- package/es/organism/assignment-edition/index.js +116 -0
- package/es/organism/assignment-edition/index.js.map +1 -0
- package/es/organism/assignment-edition/style.css +27 -0
- package/es/organism/assignment-edition/types.d.ts +310 -0
- package/es/organism/assignment-edition/types.d.ts.map +1 -0
- package/es/organism/assignment-edition/types.js +53 -0
- package/es/organism/assignment-edition/types.js.map +1 -0
- package/es/organism/brand-form/index.d.ts +1 -0
- package/es/organism/brand-learning-priorities/index.d.ts +1 -0
- package/es/organism/brand-table/index.d.ts +1 -0
- package/es/organism/content-selection-list/index.d.ts +8 -1
- package/es/organism/content-selection-list/index.d.ts.map +1 -1
- package/es/organism/content-selection-list/index.js +15 -6
- package/es/organism/content-selection-list/index.js.map +1 -1
- package/es/organism/content-selection-list/types.d.ts +13 -0
- package/es/organism/content-selection-list/types.d.ts.map +1 -1
- package/es/organism/content-selection-list/types.js +7 -0
- package/es/organism/content-selection-list/types.js.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +15 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.js +27 -8
- package/es/organism/content-skill-modal/index.js.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +28 -1
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.js +14 -1
- package/es/organism/content-skill-modal/types.js.map +1 -1
- package/es/organism/content-translation/index.d.ts +1 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts +1 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +1 -0
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/icon-editor/index.d.ts +1 -0
- package/es/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/types.d.ts +1 -0
- package/es/organism/icon-editor/types.d.ts.map +1 -1
- package/es/organism/list-item/index.d.ts +1 -0
- package/es/organism/list-items/index.d.ts +3 -0
- package/es/organism/mooc-header/index.d.ts +1 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/rewards-form/index.d.ts +2 -0
- package/es/organism/select-opponents/index.d.ts +2 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +2 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/skill-edition/index.d.ts +9 -0
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/types.d.ts +9 -0
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +4 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +4 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +5 -0
- package/es/template/app-player/loading/index.d.ts +3 -0
- package/es/template/app-player/player/index.d.ts +6 -0
- package/es/template/app-player/player/slides/index.d.ts +3 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +3 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +3 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +288 -0
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +7 -0
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/certification-detail/index.d.ts +3 -0
- package/es/template/common/dashboard/index.d.ts +6 -0
- package/es/template/common/search-page/index.d.ts +3 -0
- package/es/template/external-course/index.d.ts +3 -0
- package/es/template/playlist-detail/index.d.ts +3 -0
- package/lib/atom/checkbox-with-title/index.d.ts +1 -0
- package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +6 -1
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +1 -0
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +7 -2
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-text/index.d.ts +1 -0
- package/lib/atom/input-text/index.d.ts.map +1 -1
- package/lib/atom/input-text/index.js +3 -0
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text-with-title/index.d.ts +1 -0
- package/lib/molecule/brand-form-group/index.d.ts +1 -0
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +10 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +3 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/course-sections/index.d.ts +1 -0
- package/lib/molecule/drag-and-drop/index.d.ts +1 -0
- package/lib/molecule/drag-and-drop/upload-report.d.ts +1 -0
- package/lib/molecule/draggable-list/index.d.ts +1 -0
- package/lib/molecule/multi-filter-panel/index.d.ts +1 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +1 -0
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
- package/lib/molecule/translation-modal/index.d.ts +2 -0
- package/lib/organism/assignment-edition/index.d.ts +259 -0
- package/lib/organism/assignment-edition/index.d.ts.map +1 -0
- package/lib/organism/assignment-edition/index.js +123 -0
- package/lib/organism/assignment-edition/index.js.map +1 -0
- package/lib/organism/assignment-edition/style.css +27 -0
- package/lib/organism/assignment-edition/types.d.ts +310 -0
- package/lib/organism/assignment-edition/types.d.ts.map +1 -0
- package/lib/organism/assignment-edition/types.js +58 -0
- package/lib/organism/assignment-edition/types.js.map +1 -0
- package/lib/organism/brand-form/index.d.ts +1 -0
- package/lib/organism/brand-learning-priorities/index.d.ts +1 -0
- package/lib/organism/brand-table/index.d.ts +1 -0
- package/lib/organism/content-selection-list/index.d.ts +8 -1
- package/lib/organism/content-selection-list/index.d.ts.map +1 -1
- package/lib/organism/content-selection-list/index.js +15 -6
- package/lib/organism/content-selection-list/index.js.map +1 -1
- package/lib/organism/content-selection-list/types.d.ts +13 -0
- package/lib/organism/content-selection-list/types.d.ts.map +1 -1
- package/lib/organism/content-selection-list/types.js +7 -0
- package/lib/organism/content-selection-list/types.js.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +15 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.js +27 -8
- package/lib/organism/content-skill-modal/index.js.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +28 -1
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.js +14 -1
- package/lib/organism/content-skill-modal/types.js.map +1 -1
- package/lib/organism/content-translation/index.d.ts +1 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts +1 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +1 -0
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/icon-editor/index.d.ts +1 -0
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/types.d.ts +1 -0
- package/lib/organism/icon-editor/types.d.ts.map +1 -1
- package/lib/organism/list-item/index.d.ts +1 -0
- package/lib/organism/list-items/index.d.ts +3 -0
- package/lib/organism/mooc-header/index.d.ts +1 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +2 -0
- package/lib/organism/select-opponents/index.d.ts +2 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +2 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +9 -0
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +9 -0
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +4 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +4 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +5 -0
- package/lib/template/app-player/loading/index.d.ts +3 -0
- package/lib/template/app-player/player/index.d.ts +6 -0
- package/lib/template/app-player/player/slides/index.d.ts +3 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +3 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +3 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +288 -0
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +7 -0
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/certification-detail/index.d.ts +3 -0
- package/lib/template/common/dashboard/index.d.ts +6 -0
- package/lib/template/common/search-page/index.d.ts +3 -0
- package/lib/template/external-course/index.d.ts +3 -0
- package/lib/template/playlist-detail/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
3
3
|
export declare const ContentSelectionListPropTypes: {
|
|
4
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
4
5
|
title: PropTypes.Validator<string>;
|
|
5
6
|
subtitle: PropTypes.Requireable<string>;
|
|
6
7
|
button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
7
8
|
label: PropTypes.Validator<string>;
|
|
9
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
8
10
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
11
|
}>>>;
|
|
10
12
|
list: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
@@ -22,17 +24,20 @@ export declare const ContentSelectionListPropTypes: {
|
|
|
22
24
|
}>>>;
|
|
23
25
|
checkbox: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
24
26
|
checked: PropTypes.Validator<boolean>;
|
|
27
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
25
28
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
29
|
}>>>;
|
|
27
30
|
deleteButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
31
|
label: PropTypes.Requireable<string>;
|
|
29
32
|
'aria-label': PropTypes.Requireable<string>;
|
|
33
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
30
34
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
35
|
}>>;
|
|
32
36
|
}>>[]>;
|
|
33
37
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
38
|
value: PropTypes.Validator<string>;
|
|
35
39
|
placeholder: PropTypes.Validator<string>;
|
|
40
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
36
41
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
37
42
|
}>>;
|
|
38
43
|
emptyResult: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -42,6 +47,7 @@ export declare const ContentSelectionListPropTypes: {
|
|
|
42
47
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
48
|
title: PropTypes.Validator<string>;
|
|
44
49
|
checked: PropTypes.Validator<boolean>;
|
|
50
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
45
51
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
46
52
|
}>>;
|
|
47
53
|
}>>>;
|
|
@@ -52,6 +58,7 @@ export declare const ContentSelectionListPropTypes: {
|
|
|
52
58
|
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
59
|
title: PropTypes.Requireable<string>;
|
|
54
60
|
checked: PropTypes.Requireable<boolean>;
|
|
61
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
55
62
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
63
|
}>>;
|
|
57
64
|
readOnly: PropTypes.Requireable<boolean>;
|
|
@@ -69,6 +76,7 @@ export declare type ContentListItemType = {
|
|
|
69
76
|
};
|
|
70
77
|
checkbox: {
|
|
71
78
|
checked: boolean;
|
|
79
|
+
disabled?: boolean;
|
|
72
80
|
onChange: (value: boolean) => void;
|
|
73
81
|
};
|
|
74
82
|
deleteButton?: ButtonLinkProps;
|
|
@@ -76,15 +84,18 @@ export declare type ContentListItemType = {
|
|
|
76
84
|
export declare type CheckboxWithTitleProps = {
|
|
77
85
|
title?: string;
|
|
78
86
|
checked?: boolean;
|
|
87
|
+
disabled?: boolean;
|
|
79
88
|
onChange?: (value: boolean) => void;
|
|
80
89
|
};
|
|
81
90
|
export declare type ContentPropsType = {
|
|
91
|
+
disabled?: boolean;
|
|
82
92
|
error?: string;
|
|
83
93
|
hiddenLabel?: string;
|
|
84
94
|
title: string;
|
|
85
95
|
subtitle?: string;
|
|
86
96
|
button: {
|
|
87
97
|
label: string;
|
|
98
|
+
disabled?: boolean;
|
|
88
99
|
onClick: () => void;
|
|
89
100
|
};
|
|
90
101
|
list: {
|
|
@@ -93,6 +104,7 @@ export declare type ContentPropsType = {
|
|
|
93
104
|
search?: {
|
|
94
105
|
value: string;
|
|
95
106
|
placeholder: string;
|
|
107
|
+
disabled?: boolean;
|
|
96
108
|
onChange: (value: string) => void;
|
|
97
109
|
};
|
|
98
110
|
emptyResult?: {
|
|
@@ -102,6 +114,7 @@ export declare type ContentPropsType = {
|
|
|
102
114
|
checkbox?: {
|
|
103
115
|
title: string;
|
|
104
116
|
checked: boolean;
|
|
117
|
+
disabled?: boolean;
|
|
105
118
|
onChange: (value: boolean) => void;
|
|
106
119
|
};
|
|
107
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEzC,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;KACpC,CAAC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iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -5,10 +5,12 @@ exports.ContentSelectionListPropTypes = void 0;
|
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
7
|
const ContentSelectionListPropTypes = exports.ContentSelectionListPropTypes = {
|
|
8
|
+
disabled: _propTypes.default.bool,
|
|
8
9
|
title: _propTypes.default.string.isRequired,
|
|
9
10
|
subtitle: _propTypes.default.string,
|
|
10
11
|
button: _propTypes.default.shape({
|
|
11
12
|
label: _propTypes.default.string.isRequired,
|
|
13
|
+
disabled: _propTypes.default.bool,
|
|
12
14
|
onClick: _propTypes.default.func.isRequired
|
|
13
15
|
}).isRequired,
|
|
14
16
|
list: _propTypes.default.shape({
|
|
@@ -26,17 +28,20 @@ const ContentSelectionListPropTypes = exports.ContentSelectionListPropTypes = {
|
|
|
26
28
|
}).isRequired,
|
|
27
29
|
checkbox: _propTypes.default.shape({
|
|
28
30
|
checked: _propTypes.default.bool.isRequired,
|
|
31
|
+
disabled: _propTypes.default.bool,
|
|
29
32
|
onChange: _propTypes.default.func.isRequired
|
|
30
33
|
}).isRequired,
|
|
31
34
|
deleteButton: _propTypes.default.shape({
|
|
32
35
|
label: _propTypes.default.string,
|
|
33
36
|
'aria-label': _propTypes.default.string,
|
|
37
|
+
disabled: _propTypes.default.bool,
|
|
34
38
|
onClick: _propTypes.default.func
|
|
35
39
|
})
|
|
36
40
|
}).isRequired),
|
|
37
41
|
search: _propTypes.default.shape({
|
|
38
42
|
value: _propTypes.default.string.isRequired,
|
|
39
43
|
placeholder: _propTypes.default.string.isRequired,
|
|
44
|
+
disabled: _propTypes.default.bool,
|
|
40
45
|
onChange: _propTypes.default.func.isRequired
|
|
41
46
|
}),
|
|
42
47
|
emptyResult: _propTypes.default.shape({
|
|
@@ -46,6 +51,7 @@ const ContentSelectionListPropTypes = exports.ContentSelectionListPropTypes = {
|
|
|
46
51
|
checkbox: _propTypes.default.shape({
|
|
47
52
|
title: _propTypes.default.string.isRequired,
|
|
48
53
|
checked: _propTypes.default.bool.isRequired,
|
|
54
|
+
disabled: _propTypes.default.bool,
|
|
49
55
|
onChange: _propTypes.default.func.isRequired
|
|
50
56
|
})
|
|
51
57
|
}).isRequired,
|
|
@@ -56,6 +62,7 @@ const ContentSelectionListPropTypes = exports.ContentSelectionListPropTypes = {
|
|
|
56
62
|
checkboxWithTitle: _propTypes.default.shape({
|
|
57
63
|
title: _propTypes.default.string,
|
|
58
64
|
checked: _propTypes.default.bool,
|
|
65
|
+
disabled: _propTypes.default.bool,
|
|
59
66
|
onChange: _propTypes.default.func
|
|
60
67
|
}),
|
|
61
68
|
readOnly: _propTypes.default.bool
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","ContentSelectionListPropTypes","exports","
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","ContentSelectionListPropTypes","exports","disabled","PropTypes","bool","title","string","isRequired","subtitle","button","shape","label","onClick","func","list","items","arrayOf","hidden","hint","ref","image","tags","iconName","checkbox","checked","onChange","deleteButton","search","value","placeholder","emptyResult","description","error","hiddenLabel","isFetching","actionButtons","object","checkboxWithTitle","readOnly"],"sources":["../../../src/organism/content-selection-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nexport const ContentSelectionListPropTypes = {\n disabled: PropTypes.bool,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n onClick: PropTypes.func.isRequired\n }).isRequired,\n list: PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n hidden: PropTypes.bool,\n hint: PropTypes.string,\n ref: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n tags: PropTypes.shape({\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired\n }).isRequired,\n checkbox: PropTypes.shape({\n checked: PropTypes.bool.isRequired,\n disabled: PropTypes.bool,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n deleteButton: PropTypes.shape({\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n disabled: PropTypes.bool,\n onClick: PropTypes.func\n })\n }).isRequired\n ),\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n onChange: PropTypes.func.isRequired\n }),\n emptyResult: PropTypes.shape({\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired\n }),\n checkbox: PropTypes.shape({\n title: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n disabled: PropTypes.bool,\n onChange: PropTypes.func.isRequired\n })\n }).isRequired,\n error: PropTypes.string,\n hiddenLabel: PropTypes.string,\n isFetching: PropTypes.bool,\n actionButtons: PropTypes.arrayOf(PropTypes.object),\n checkboxWithTitle: PropTypes.shape({\n title: PropTypes.string,\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func\n }),\n readOnly: PropTypes.bool\n};\n\nexport type ContentListItemType = {\n hidden?: boolean;\n hint?: string;\n ref: string;\n title: string;\n subtitle: string;\n image: string;\n tags: {\n label: string;\n iconName: string;\n };\n checkbox: {\n checked: boolean;\n disabled?: boolean;\n onChange: (value: boolean) => void;\n };\n deleteButton?: ButtonLinkProps;\n};\n\nexport type CheckboxWithTitleProps = {\n title?: string;\n checked?: boolean;\n disabled?: boolean;\n onChange?: (value: boolean) => void;\n};\n\nexport type ContentPropsType = {\n disabled?: boolean;\n error?: string;\n hiddenLabel?: string;\n title: string;\n subtitle?: string;\n button: {\n label: string;\n disabled?: boolean;\n onClick: () => void;\n };\n list: {\n title?: string;\n items?: ContentListItemType[];\n search?: {\n value: string;\n placeholder: string;\n disabled?: boolean;\n onChange: (value: string) => void;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n checkbox?: {\n title: string;\n checked: boolean;\n disabled?: boolean;\n onChange: (value: boolean) => void;\n };\n };\n actionButtons?: ButtonLinkProps[];\n checkboxWithTitle?: CheckboxWithTitleProps;\n isFetching?: boolean;\n readOnly?: boolean;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5B,MAAMG,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAG;EAC3CE,QAAQ,EAAEC,kBAAS,CAACC,IAAI;EACxBC,KAAK,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,QAAQ,EAAEL,kBAAS,CAACG,MAAM;EAC1BG,MAAM,EAAEN,kBAAS,CAACO,KAAK,CAAC;IACtBC,KAAK,EAAER,kBAAS,CAACG,MAAM,CAACC,UAAU;IAClCL,QAAQ,EAAEC,kBAAS,CAACC,IAAI;IACxBQ,OAAO,EAAET,kBAAS,CAACU,IAAI,CAACN;EAC1B,CAAC,CAAC,CAACA,UAAU;EACbO,IAAI,EAAEX,kBAAS,CAACO,KAAK,CAAC;IACpBL,KAAK,EAAEF,kBAAS,CAACG,MAAM;IACvBS,KAAK,EAAEZ,kBAAS,CAACa,OAAO,CACtBb,kBAAS,CAACO,KAAK,CAAC;MACdO,MAAM,EAAEd,kBAAS,CAACC,IAAI;MACtBc,IAAI,EAAEf,kBAAS,CAACG,MAAM;MACtBa,GAAG,EAAEhB,kBAAS,CAACG,MAAM,CAACC,UAAU;MAChCF,KAAK,EAAEF,kBAAS,C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,CAACO,KAAK,CAAC;MACxBL,KAAK,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;MAClCiB,OAAO,EAAErB,kBAAS,CAACC,IAAI,CAACG,UAAU;MAClCL,QAAQ,EAAEC,kBAAS,CAACC,IAAI;MACxBqB,QAAQ,EAAEtB,kBAAS,CAACU,IAAI,CAACN;IAC3B,CAAC;EACH,CAAC,CAAC,CAACA,UAAU;EACbyB,KAAK,EAAE7B,kBAAS,CAACG,MAAM;EACvB2B,WAAW,EAAE9B,kBAAS,CAACG,MAAM;EAC7B4B,UAAU,EAAE/B,kBAAS,CAACC,IAAI;EAC1B+B,aAAa,EAAEhC,kBAAS,CAACa,OAAO,CAACb,kBAAS,CAACiC,MAAM,CAAC;EAClDC,iBAAiB,EAAElC,kBAAS,CAACO,KAAK,CAAC;IACjCL,KAAK,EAAEF,kBAAS,CAACG,MAAM;IACvBkB,OAAO,EAAErB,kBAAS,CAACC,IAAI;IACvBF,QAAQ,EAAEC,kBAAS,CAACC,IAAI;IACxBqB,QAAQ,EAAEtB,kBAAS,CAACU;EACtB,CAAC,CAAC;EACFyB,QAAQ,EAAEnC,kBAAS,CAACC;AACtB,CAAC","ignoreList":[]}
|
|
@@ -7,6 +7,11 @@ declare const ContentSkillModal: {
|
|
|
7
7
|
};
|
|
8
8
|
propTypes: {
|
|
9
9
|
contentList: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
10
|
+
selectAll: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
11
|
+
label: import("prop-types").Validator<string>;
|
|
12
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
13
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
|
+
}>>;
|
|
10
15
|
'aria-label': import("prop-types").Requireable<string>;
|
|
11
16
|
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
12
17
|
type: import("prop-types").Requireable<string>;
|
|
@@ -164,6 +169,7 @@ declare const ContentSkillModal: {
|
|
|
164
169
|
title: import("prop-types").Requireable<string>;
|
|
165
170
|
name: import("prop-types").Requireable<string>;
|
|
166
171
|
checked: import("prop-types").Requireable<boolean>;
|
|
172
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
167
173
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
168
174
|
'aria-label': import("prop-types").Requireable<string>;
|
|
169
175
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -543,6 +549,7 @@ declare const ContentSkillModal: {
|
|
|
543
549
|
isFetching: import("prop-types").Requireable<boolean>;
|
|
544
550
|
search: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
545
551
|
value: import("prop-types").Requireable<string>;
|
|
552
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
546
553
|
placeholder: import("prop-types").Validator<string>;
|
|
547
554
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
548
555
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -559,6 +566,7 @@ declare const ContentSkillModal: {
|
|
|
559
566
|
title: import("prop-types").Requireable<string>;
|
|
560
567
|
name: import("prop-types").Requireable<string>;
|
|
561
568
|
checked: import("prop-types").Requireable<boolean>;
|
|
569
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
562
570
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
563
571
|
'aria-label': import("prop-types").Requireable<string>;
|
|
564
572
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -748,6 +756,7 @@ declare const ContentSkillModal: {
|
|
|
748
756
|
emptySearchResult: import("prop-types").Requireable<string>;
|
|
749
757
|
searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
750
758
|
value: import("prop-types").Requireable<string>;
|
|
759
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
751
760
|
placeholder: import("prop-types").Validator<string>;
|
|
752
761
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
753
762
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -797,6 +806,12 @@ declare const ContentSkillModal: {
|
|
|
797
806
|
}> | null | undefined> | null | undefined)[]>;
|
|
798
807
|
}>>>;
|
|
799
808
|
modal: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
809
|
+
title: import("prop-types").Requireable<string>;
|
|
810
|
+
description: import("prop-types").Requireable<string>;
|
|
811
|
+
cancelLabel: import("prop-types").Requireable<string>;
|
|
812
|
+
confirmLabel: import("prop-types").Requireable<string>;
|
|
813
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
814
|
+
error: import("prop-types").Requireable<string>;
|
|
800
815
|
isOpen: import("prop-types").Requireable<boolean>;
|
|
801
816
|
onCancel: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
802
817
|
onConfirm: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -13,17 +13,32 @@ var _types = _interopRequireDefault(require("./types"));
|
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
17
|
const ContentSkillModal = props => {
|
|
17
18
|
const {
|
|
18
19
|
contentList,
|
|
19
20
|
filters,
|
|
20
21
|
modal
|
|
21
22
|
} = props;
|
|
23
|
+
const {
|
|
24
|
+
selectAll,
|
|
25
|
+
...listProps
|
|
26
|
+
} = contentList;
|
|
27
|
+
const buttonLink = selectAll ? {
|
|
28
|
+
...selectAll,
|
|
29
|
+
type: 'secondary'
|
|
30
|
+
} : listProps.buttonLink;
|
|
22
31
|
const {
|
|
23
32
|
isOpen,
|
|
24
33
|
onCancel,
|
|
25
34
|
onConfirm,
|
|
26
|
-
onClose
|
|
35
|
+
onClose,
|
|
36
|
+
title = 'Add content',
|
|
37
|
+
description = 'Add courses, video, interactive and more to this skill',
|
|
38
|
+
cancelLabel = 'Cancel',
|
|
39
|
+
confirmLabel = 'Add',
|
|
40
|
+
error,
|
|
41
|
+
disabled = false
|
|
27
42
|
} = modal;
|
|
28
43
|
const handleCancel = (0, _react.useCallback)(() => {
|
|
29
44
|
onCancel();
|
|
@@ -37,21 +52,23 @@ const ContentSkillModal = props => {
|
|
|
37
52
|
backgroundColor: _colors.COLORS.primary_100
|
|
38
53
|
};
|
|
39
54
|
const footer = (0, _react.useMemo)(() => ({
|
|
55
|
+
text: error,
|
|
56
|
+
isError: Boolean(error),
|
|
40
57
|
cancelButton: {
|
|
41
58
|
onCancel: handleCancel,
|
|
42
|
-
label:
|
|
59
|
+
label: cancelLabel
|
|
43
60
|
},
|
|
44
61
|
confirmButton: {
|
|
45
62
|
onConfirm,
|
|
46
|
-
label:
|
|
63
|
+
label: confirmLabel,
|
|
47
64
|
iconName: 'plus',
|
|
48
|
-
disabled
|
|
65
|
+
disabled,
|
|
49
66
|
color: _colors.COLORS.cm_primary_blue
|
|
50
67
|
}
|
|
51
|
-
}), [handleCancel, onConfirm]);
|
|
68
|
+
}), [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]);
|
|
52
69
|
const baseModalProps = {
|
|
53
|
-
title
|
|
54
|
-
description
|
|
70
|
+
title,
|
|
71
|
+
description,
|
|
55
72
|
headerIcon,
|
|
56
73
|
footer,
|
|
57
74
|
isOpen,
|
|
@@ -67,7 +84,9 @@ const ContentSkillModal = props => {
|
|
|
67
84
|
className: _style.default.container
|
|
68
85
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
86
|
className: _style.default.containerList
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement(_listItems.default,
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_listItems.default, _extends({}, listProps, {
|
|
88
|
+
buttonLink: buttonLink
|
|
89
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
71
90
|
className: _style.default.filtersContainer
|
|
72
91
|
}, /*#__PURE__*/_react.default.createElement(_multiFilterPanel.default, filters))));
|
|
73
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_baseModal","_interopRequireDefault","_listItems","_multiFilterPanel","_provider","_colors","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ContentSkillModal","props","contentList","filters","modal","isOpen","onCancel","onConfirm","onClose","handleCancel","useCallback","handleClose","headerIcon","name","color","COLORS","primary_600","backgroundColor","primary_100","footer","useMemo","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_baseModal","_interopRequireDefault","_listItems","_multiFilterPanel","_provider","_colors","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","ContentSkillModal","props","contentList","filters","modal","selectAll","listProps","buttonLink","type","isOpen","onCancel","onConfirm","onClose","title","description","cancelLabel","confirmLabel","error","disabled","handleCancel","useCallback","handleClose","headerIcon","name","color","COLORS","primary_600","backgroundColor","primary_100","footer","useMemo","text","isError","Boolean","cancelButton","label","confirmButton","iconName","cm_primary_blue","baseModalProps","customStyle","height","width","createElement","className","style","container","containerList","filtersContainer","contextTypes","translate","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/content-skill-modal/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport BaseModal from '../../molecule/base-modal';\nimport ListItems from '../list-items';\nimport MultiFilterPanel from '../../molecule/multi-filter-panel';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {ContentSkillModalProps} from './types';\n\nconst ContentSkillModal = (props: ContentSkillModalProps) => {\n const {contentList, filters, modal} = props;\n const {selectAll, ...listProps} = contentList;\n const buttonLink = selectAll ? {...selectAll, type: 'secondary'} : listProps.buttonLink;\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n title = 'Add content',\n description = 'Add courses, video, interactive and more to this skill',\n cancelLabel = 'Cancel',\n confirmLabel = 'Add',\n error,\n disabled = false\n } = modal;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const headerIcon = {\n name: 'circle-plus',\n color: COLORS.primary_600,\n backgroundColor: COLORS.primary_100\n };\n const footer = useMemo(\n () => ({\n text: error,\n isError: Boolean(error),\n cancelButton: {\n onCancel: handleCancel,\n label: cancelLabel\n },\n confirmButton: {\n onConfirm,\n label: confirmLabel,\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n }),\n [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]\n );\n\n const baseModalProps = {\n title,\n description,\n headerIcon,\n footer,\n isOpen,\n onClose: handleClose,\n // fullscreen modal\n customStyle: {\n height: '80vh',\n width: '80vw'\n }\n };\n\n if (!isOpen) return null;\n\n return (\n <BaseModal {...baseModalProps}>\n <div className={style.container}>\n <div className={style.containerList}>\n <ListItems {...listProps} buttonLink={buttonLink} />\n </div>\n <div className={style.filtersContainer}>\n <MultiFilterPanel {...filters} />\n </div>\n </div>\n </BaseModal>\n );\n};\n\nContentSkillModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nContentSkillModal.propTypes = propTypes;\n\nexport default ContentSkillModal;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAA0D,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAA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-filter-panel/prop-types';
|
|
5
5
|
declare const ContentSkillModalPropTypes: {
|
|
6
6
|
contentList: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
7
|
+
selectAll: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
|
+
label: PropTypes.Validator<string>;
|
|
9
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
10
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}>>;
|
|
7
12
|
'aria-label': PropTypes.Requireable<string>;
|
|
8
13
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
14
|
type: PropTypes.Requireable<string>;
|
|
@@ -161,6 +166,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
161
166
|
title: PropTypes.Requireable<string>;
|
|
162
167
|
name: PropTypes.Requireable<string>;
|
|
163
168
|
checked: PropTypes.Requireable<boolean>;
|
|
169
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
164
170
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
165
171
|
'aria-label': PropTypes.Requireable<string>;
|
|
166
172
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -540,6 +546,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
540
546
|
isFetching: PropTypes.Requireable<boolean>;
|
|
541
547
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
542
548
|
value: PropTypes.Requireable<string>;
|
|
549
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
543
550
|
placeholder: PropTypes.Validator<string>;
|
|
544
551
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
545
552
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -556,6 +563,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
556
563
|
title: PropTypes.Requireable<string>;
|
|
557
564
|
name: PropTypes.Requireable<string>;
|
|
558
565
|
checked: PropTypes.Requireable<boolean>;
|
|
566
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
559
567
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
560
568
|
'aria-label': PropTypes.Requireable<string>;
|
|
561
569
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -745,6 +753,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
745
753
|
emptySearchResult: PropTypes.Requireable<string>;
|
|
746
754
|
searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
747
755
|
value: PropTypes.Requireable<string>;
|
|
756
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
748
757
|
placeholder: PropTypes.Validator<string>;
|
|
749
758
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
750
759
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -794,6 +803,12 @@ declare const ContentSkillModalPropTypes: {
|
|
|
794
803
|
}> | null | undefined> | null | undefined)[]>;
|
|
795
804
|
}>>>;
|
|
796
805
|
modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
806
|
+
title: PropTypes.Requireable<string>;
|
|
807
|
+
description: PropTypes.Requireable<string>;
|
|
808
|
+
cancelLabel: PropTypes.Requireable<string>;
|
|
809
|
+
confirmLabel: PropTypes.Requireable<string>;
|
|
810
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
811
|
+
error: PropTypes.Requireable<string>;
|
|
797
812
|
isOpen: PropTypes.Requireable<boolean>;
|
|
798
813
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
799
814
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -802,13 +817,25 @@ declare const ContentSkillModalPropTypes: {
|
|
|
802
817
|
};
|
|
803
818
|
export default ContentSkillModalPropTypes;
|
|
804
819
|
declare type ModalProps = {
|
|
820
|
+
title?: string;
|
|
821
|
+
description?: string;
|
|
822
|
+
cancelLabel?: string;
|
|
823
|
+
confirmLabel?: string;
|
|
824
|
+
disabled?: boolean;
|
|
825
|
+
error?: string;
|
|
805
826
|
isOpen: boolean;
|
|
806
827
|
onCancel: () => void;
|
|
807
828
|
onConfirm: () => void;
|
|
808
829
|
onClose: () => void;
|
|
809
830
|
};
|
|
810
831
|
export declare type ContentSkillModalProps = {
|
|
811
|
-
contentList: React.ComponentProps<typeof ListItems
|
|
832
|
+
contentList: React.ComponentProps<typeof ListItems> & {
|
|
833
|
+
selectAll?: {
|
|
834
|
+
label: string;
|
|
835
|
+
disabled?: boolean;
|
|
836
|
+
onClick: () => void;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
812
839
|
filters: MultiFilterPanelProps;
|
|
813
840
|
modal: ModalProps;
|
|
814
841
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAetD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAI,CAAC;SACrB,CAAC;KACH,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -7,13 +7,26 @@ var _listItems = _interopRequireDefault(require("../list-items"));
|
|
|
7
7
|
var _propTypes2 = _interopRequireDefault(require("../../molecule/multi-filter-panel/prop-types"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const ModalPropTypes = {
|
|
10
|
+
title: _propTypes.default.string,
|
|
11
|
+
description: _propTypes.default.string,
|
|
12
|
+
cancelLabel: _propTypes.default.string,
|
|
13
|
+
confirmLabel: _propTypes.default.string,
|
|
14
|
+
disabled: _propTypes.default.bool,
|
|
15
|
+
error: _propTypes.default.string,
|
|
10
16
|
isOpen: _propTypes.default.bool,
|
|
11
17
|
onCancel: _propTypes.default.func,
|
|
12
18
|
onConfirm: _propTypes.default.func,
|
|
13
19
|
onClose: _propTypes.default.func
|
|
14
20
|
};
|
|
15
21
|
const ContentSkillModalPropTypes = {
|
|
16
|
-
contentList: _propTypes.default.shape(
|
|
22
|
+
contentList: _propTypes.default.shape({
|
|
23
|
+
..._listItems.default.propTypes,
|
|
24
|
+
selectAll: _propTypes.default.shape({
|
|
25
|
+
label: _propTypes.default.string.isRequired,
|
|
26
|
+
disabled: _propTypes.default.bool,
|
|
27
|
+
onClick: _propTypes.default.func.isRequired
|
|
28
|
+
})
|
|
29
|
+
}).isRequired,
|
|
17
30
|
filters: _propTypes.default.shape(_propTypes2.default).isRequired,
|
|
18
31
|
modal: _propTypes.default.shape(ModalPropTypes).isRequired
|
|
19
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_listItems","_propTypes2","e","__esModule","default","ModalPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_listItems","_propTypes2","e","__esModule","default","ModalPropTypes","title","PropTypes","string","description","cancelLabel","confirmLabel","disabled","bool","error","isOpen","onCancel","func","onConfirm","onClose","ContentSkillModalPropTypes","contentList","shape","ListItems","propTypes","selectAll","label","isRequired","onClick","filters","MultiFilterPanelPropTypes","modal","_default","exports"],"sources":["../../../src/organism/content-skill-modal/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ListItems from '../list-items';\nimport MultiFilterPanelPropTypes, {\n MultiFilterPanelProps\n} from '../../molecule/multi-filter-panel/prop-types';\n\nconst ModalPropTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n cancelLabel: PropTypes.string,\n confirmLabel: PropTypes.string,\n disabled: PropTypes.bool,\n error: PropTypes.string,\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func\n};\n\nconst ContentSkillModalPropTypes = {\n contentList: PropTypes.shape({\n ...ListItems.propTypes,\n selectAll: PropTypes.shape({\n label: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n onClick: PropTypes.func.isRequired\n })\n }).isRequired,\n filters: PropTypes.shape(MultiFilterPanelPropTypes).isRequired,\n modal: PropTypes.shape(ModalPropTypes).isRequired\n};\n\nexport default ContentSkillModalPropTypes;\n\ntype ModalProps = {\n title?: string;\n description?: string;\n cancelLabel?: string;\n confirmLabel?: string;\n disabled?: boolean;\n error?: string;\n isOpen: boolean;\n onCancel: () => void;\n onConfirm: () => void;\n onClose: () => void;\n};\n\nexport type ContentSkillModalProps = {\n contentList: React.ComponentProps<typeof ListItems> & {\n selectAll?: {\n label: string;\n disabled?: boolean;\n onClick: () => void;\n };\n };\n filters: MultiFilterPanelProps;\n modal: ModalProps;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEsD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,MAAMG,cAAc,GAAG;EACrBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,WAAW,EAAEF,kBAAS,CAACC,MAAM;EAC7BE,WAAW,EAAEH,kBAAS,CAACC,MAAM;EAC7BG,YAAY,EAAEJ,kBAAS,CAACC,MAAM;EAC9BI,QAAQ,EAAEL,kBAAS,CAACM,IAAI;EACxBC,KAAK,EAAEP,kBAAS,CAACC,MAAM;EACvBO,MAAM,EAAER,kBAAS,CAACM,IAAI;EACtBG,QAAQ,EAAET,kBAAS,CAACU,IAAI;EACxBC,SAAS,EAAEX,kBAAS,CAACU,IAAI;EACzBE,OAAO,EAAEZ,kBAAS,CAACU;AACrB,CAAC;AAED,MAAMG,0BAA0B,GAAG;EACjCC,WAAW,EAAEd,kBAAS,CAACe,KAAK,CAAC;IAC3B,GAAGC,kBAAS,CAACC,SAAS;IACtBC,SAAS,EAAElB,kBAAS,CAACe,KAAK,CAAC;MACzBI,KAAK,EAAEnB,kBAAS,CAACC,MAAM,CAACmB,UAAU;MAClCf,QAAQ,EAAEL,kBAAS,CAACM,IAAI;MACxBe,OAAO,EAAErB,kBAAS,CAACU,IAAI,CAACU;IAC1B,CAAC;EACH,CAAC,CAAC,CAACA,UAAU;EACbE,OAAO,EAAEtB,kBAAS,CAACe,KAAK,CAACQ,mBAAyB,CAAC,CAACH,UAAU;EAC9DI,KAAK,EAAExB,kBAAS,CAACe,KAAK,CAACjB,cAAc,CAAC,CAACsB;AACzC,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GAEagB,0BAA0B","ignoreList":[]}
|
|
@@ -15,6 +15,7 @@ declare namespace PlayListTranslation {
|
|
|
15
15
|
title: PropTypes.Requireable<string>;
|
|
16
16
|
placeholder: PropTypes.Requireable<string>;
|
|
17
17
|
defaultValue: PropTypes.Requireable<string>;
|
|
18
|
+
maxLength: PropTypes.Requireable<number>;
|
|
18
19
|
disabled: PropTypes.Requireable<boolean>;
|
|
19
20
|
readOnly: PropTypes.Requireable<boolean>;
|
|
20
21
|
value: PropTypes.Requireable<string>;
|
|
@@ -18,6 +18,7 @@ declare const FilterCheckboxAndSearch: {
|
|
|
18
18
|
emptySearchResult: import("prop-types").Requireable<string>;
|
|
19
19
|
searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
20
20
|
value: import("prop-types").Requireable<string>;
|
|
21
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
21
22
|
placeholder: import("prop-types").Validator<string>;
|
|
22
23
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
23
24
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkH1B,CAAC;AASF,eAAe,uBAAuB,CAAC"}
|
|
@@ -14,6 +14,7 @@ declare const propTypes: {
|
|
|
14
14
|
emptySearchResult: PropTypes.Requireable<string>;
|
|
15
15
|
searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
16
|
value: PropTypes.Requireable<string>;
|
|
17
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
17
18
|
placeholder: PropTypes.Validator<string>;
|
|
18
19
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
20
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBd,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -20,6 +20,7 @@ declare const IconEditor: {
|
|
|
20
20
|
placeholder: import("prop-types").Requireable<string>;
|
|
21
21
|
defaultValue: import("prop-types").Requireable<string>;
|
|
22
22
|
theme: import("prop-types").Requireable<string>;
|
|
23
|
+
maxLength: import("prop-types").Requireable<number>;
|
|
23
24
|
disabled: import("prop-types").Requireable<boolean>;
|
|
24
25
|
readOnly: import("prop-types").Requireable<boolean>;
|
|
25
26
|
value: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
|
|
@@ -17,6 +17,7 @@ declare const IconEditorPropTypes: {
|
|
|
17
17
|
placeholder: PropTypes.Requireable<string>;
|
|
18
18
|
defaultValue: PropTypes.Requireable<string>;
|
|
19
19
|
theme: PropTypes.Requireable<string>;
|
|
20
|
+
maxLength: PropTypes.Requireable<number>;
|
|
20
21
|
disabled: PropTypes.Requireable<boolean>;
|
|
21
22
|
readOnly: PropTypes.Requireable<boolean>;
|
|
22
23
|
value: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC"}
|
|
@@ -142,6 +142,7 @@ declare namespace ListItem {
|
|
|
142
142
|
title: PropTypes.Requireable<string>;
|
|
143
143
|
name: PropTypes.Requireable<string>;
|
|
144
144
|
checked: PropTypes.Requireable<boolean>;
|
|
145
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
145
146
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
146
147
|
'aria-label': PropTypes.Requireable<string>;
|
|
147
148
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -170,6 +170,7 @@ declare namespace ListItems {
|
|
|
170
170
|
title: PropTypes.Requireable<string>;
|
|
171
171
|
name: PropTypes.Requireable<string>;
|
|
172
172
|
checked: PropTypes.Requireable<boolean>;
|
|
173
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
173
174
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
174
175
|
'aria-label': PropTypes.Requireable<string>;
|
|
175
176
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -549,6 +550,7 @@ declare namespace ListItems {
|
|
|
549
550
|
isFetching: PropTypes.Requireable<boolean>;
|
|
550
551
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
551
552
|
value: PropTypes.Requireable<string>;
|
|
553
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
552
554
|
placeholder: PropTypes.Validator<string>;
|
|
553
555
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
554
556
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -565,6 +567,7 @@ declare namespace ListItems {
|
|
|
565
567
|
title: PropTypes.Requireable<string>;
|
|
566
568
|
name: PropTypes.Requireable<string>;
|
|
567
569
|
checked: PropTypes.Requireable<boolean>;
|
|
570
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
568
571
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
569
572
|
'aria-label': PropTypes.Requireable<string>;
|
|
570
573
|
'data-name': PropTypes.Requireable<string>;
|