wini-web-components 2.7.0 → 2.7.1
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/dist/types/index.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/dist/wini-web-components.css +4 -0
- package/dist/wini-web-components.js +32 -0
- package/dist/wini-web-components.mjs +6753 -0
- package/package.json +44 -82
- package/README.md +0 -21
- package/dist/component/button/button.d.ts +0 -21
- package/dist/component/button/button.js +0 -73
- package/dist/component/calendar/calendar.d.ts +0 -30
- package/dist/component/calendar/calendar.js +0 -357
- package/dist/component/card/card-info.d.ts +0 -15
- package/dist/component/card/card-info.js +0 -51
- package/dist/component/card/card.d.ts +0 -13
- package/dist/component/card/card.js +0 -33
- package/dist/component/checkbox/checkbox.d.ts +0 -24
- package/dist/component/checkbox/checkbox.js +0 -90
- package/dist/component/ck-editor/ckeditor.d.ts +0 -36
- package/dist/component/ck-editor/ckeditor.js +0 -392
- package/dist/component/component-status.d.ts +0 -8
- package/dist/component/component-status.js +0 -39
- package/dist/component/date-picker/date-picker.d.ts +0 -25
- package/dist/component/date-picker/date-picker.js +0 -329
- package/dist/component/date-time-picker/date-time-picker.d.ts +0 -36
- package/dist/component/date-time-picker/date-time-picker.js +0 -528
- package/dist/component/dialog/dialog.d.ts +0 -18
- package/dist/component/dialog/dialog.js +0 -113
- package/dist/component/import-file/import-file.d.ts +0 -33
- package/dist/component/import-file/import-file.js +0 -151
- package/dist/component/infinite-scroll/infinite-scroll.d.ts +0 -17
- package/dist/component/infinite-scroll/infinite-scroll.js +0 -37
- package/dist/component/input-multi-select/input-multi-select.d.ts +0 -21
- package/dist/component/input-multi-select/input-multi-select.js +0 -260
- package/dist/component/input-opt/input-opt.d.ts +0 -21
- package/dist/component/input-opt/input-opt.js +0 -157
- package/dist/component/input-otp/input-otp.d.ts +0 -22
- package/dist/component/input-otp/input-otp.js +0 -131
- package/dist/component/number-picker/number-picker.d.ts +0 -23
- package/dist/component/number-picker/number-picker.js +0 -125
- package/dist/component/pagination/pagination.d.ts +0 -13
- package/dist/component/pagination/pagination.js +0 -90
- package/dist/component/popup/popup.d.ts +0 -40
- package/dist/component/popup/popup.js +0 -125
- package/dist/component/progress-bar/progress-bar.d.ts +0 -16
- package/dist/component/progress-bar/progress-bar.js +0 -23
- package/dist/component/progress-circle/progress-circle.d.ts +0 -14
- package/dist/component/progress-circle/progress-circle.js +0 -19
- package/dist/component/radio-button/radio-button.d.ts +0 -20
- package/dist/component/radio-button/radio-button.js +0 -33
- package/dist/component/rating/rating.d.ts +0 -23
- package/dist/component/rating/rating.js +0 -54
- package/dist/component/select1/select1.d.ts +0 -31
- package/dist/component/select1/select1.js +0 -249
- package/dist/component/slider/slider.d.ts +0 -31
- package/dist/component/slider/slider.js +0 -64
- package/dist/component/switch/switch.d.ts +0 -23
- package/dist/component/switch/switch.js +0 -50
- package/dist/component/table/table.d.ts +0 -51
- package/dist/component/table/table.js +0 -66
- package/dist/component/tag/tag.d.ts +0 -22
- package/dist/component/tag/tag.js +0 -19
- package/dist/component/text/text.d.ts +0 -16
- package/dist/component/text/text.js +0 -20
- package/dist/component/text-area/text-area.d.ts +0 -27
- package/dist/component/text-area/text-area.js +0 -57
- package/dist/component/text-field/text-field.d.ts +0 -36
- package/dist/component/text-field/text-field.js +0 -80
- package/dist/component/toast-noti/toast-noti.d.ts +0 -5
- package/dist/component/toast-noti/toast-noti.js +0 -25
- package/dist/component/wini-icon/winicon.d.ts +0 -20
- package/dist/component/wini-icon/winicon.js +0 -176
- package/dist/form/login/view.d.ts +0 -40
- package/dist/form/login/view.js +0 -66
- package/dist/i18n.d.ts +0 -2
- package/dist/i18n.js +0 -125
- package/dist/index.d.ts +0 -33
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -18
- package/dist/language/i18n.d.ts +0 -2
- package/dist/language/i18n.js +0 -146
- package/global.d.ts +0 -4
- /package/{public → dist}/favicon.ico +0 -0
- /package/{public → dist}/index.html +0 -0
- /package/{public → dist}/logo192.png +0 -0
- /package/{public → dist}/logo512.png +0 -0
- /package/{public → dist}/manifest.json +0 -0
- /package/{public → dist}/robots.txt +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CardInfo = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
require("./card-info.css");
|
|
9
|
-
function CardInfo(_a) {
|
|
10
|
-
var Name = _a.Name, Subtitle = _a.Subtitle, Image = _a.Image, Content = _a.Content, _b = _a.className, className = _b === void 0 ? '' : _b, style = _a.style, direction = _a.direction;
|
|
11
|
-
return react_1.default.createElement("div", { className: "card-media-position ".concat(className.split(' ').filter(function (e) { return e !== 'row' && e !== 'col'; }).join(' '), " ").concat(direction), style: style },
|
|
12
|
-
react_1.default.createElement("div", { className: "media-preview-card" }, Image !== null && Image !== void 0 ? Image : react_1.default.createElement("img", { className: "media-preview-child", src: Image !== null && Image !== void 0 ? Image : "https://via.placeholder.com/40x40" })),
|
|
13
|
-
react_1.default.createElement("div", { className: "des-info" },
|
|
14
|
-
react_1.default.createElement("div", { className: "content-title" },
|
|
15
|
-
react_1.default.createElement("div", { className: "content-title-parent" },
|
|
16
|
-
react_1.default.createElement("div", { className: "content-title-text" },
|
|
17
|
-
" ", Name !== null && Name !== void 0 ? Name : 'Lorem Ipsum is simply dummy text'),
|
|
18
|
-
react_1.default.createElement("div", { className: "content-subtitle-text" }, Subtitle !== null && Subtitle !== void 0 ? Subtitle : 'Subtitle')),
|
|
19
|
-
react_1.default.createElement("div", { className: "body-content" }, Content !== null && Content !== void 0 ? Content : 'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.')),
|
|
20
|
-
react_1.default.createElement("div", { className: "sub-content-list" }, Array.from({ length: 3 }).map(function (e, i) { return react_1.default.createElement("div", { className: "item-sub-content" },
|
|
21
|
-
react_1.default.createElement("div", { className: "media-sub-content" },
|
|
22
|
-
react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
-
react_1.default.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.7262 5.38462C11.9431 5.60157 11.9431 5.95333 11.7262 6.17029L7.28172 10.6147C7.06476 10.8317 6.713 10.8317 6.49605 10.6147L4.27382 8.39251C4.05687 8.17555 4.05687 7.8238 4.27382 7.60684C4.49078 7.38988 4.84254 7.38988 5.0595 7.60684L6.88888 9.43622L10.9405 5.38462C11.1574 5.16766 11.5092 5.16766 11.7262 5.38462Z", fill: "#61616B" }),
|
|
24
|
-
react_1.default.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8 2.44412C4.93175 2.44412 2.44444 4.93143 2.44444 7.99967C2.44444 11.0679 4.93175 13.5552 8 13.5552C11.0682 13.5552 13.5555 11.0679 13.5555 7.99967C13.5555 4.93143 11.0682 2.44412 8 2.44412ZM1.33333 7.99967C1.33333 4.31778 4.3181 1.33301 8 1.33301C11.6819 1.33301 14.6667 4.31778 14.6667 7.99967C14.6667 11.6816 11.6819 14.6663 8 14.6663C4.3181 14.6663 1.33333 11.6816 1.33333 7.99967Z", fill: "#61616B" }))),
|
|
25
|
-
react_1.default.createElement("div", { className: "title-sub-content" }, "Graphic design ".concat(i))); })),
|
|
26
|
-
react_1.default.createElement("button", { type: 'button', className: "btn-seemore", onClick: function () { } },
|
|
27
|
-
react_1.default.createElement("div", { className: "button2" }, "See more"),
|
|
28
|
-
react_1.default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
29
|
-
react_1.default.createElement("path", { d: "M7.04222 3.27596C6.86471 3.09845 6.86471 2.81064 7.04222 2.63313C7.21974 2.45562 7.50754 2.45562 7.68505 2.63313L10.8665 5.81461L10.8698 5.81793C10.9503 5.89994 11 6.01235 11 6.13636C11 6.198 10.9877 6.25676 10.9655 6.31036C10.9433 6.36397 10.9104 6.4142 10.8669 6.45778L7.68505 9.6396C7.50754 9.81711 7.21974 9.81711 7.04222 9.6396C6.86471 9.46208 6.86471 9.17428 7.04222 8.99677L9.44809 6.59091H1.45455C1.20351 6.59091 1 6.3874 1 6.13636C1 5.88533 1.20351 5.68182 1.45455 5.68182H9.44808L7.04222 3.27596Z", fill: "#287CF0" }))),
|
|
30
|
-
react_1.default.createElement("div", { className: "number-card" }, Array.from({ length: 3 }).map(function (e, i) {
|
|
31
|
-
return react_1.default.createElement("div", { className: "card" },
|
|
32
|
-
react_1.default.createElement("div", { className: "card-infomation" },
|
|
33
|
-
react_1.default.createElement("div", { className: "content1" },
|
|
34
|
-
react_1.default.createElement("div", { className: "content-title-parent" },
|
|
35
|
-
react_1.default.createElement("div", { className: "content-title4" }, "".concat(e)),
|
|
36
|
-
react_1.default.createElement("div", { className: "content-subtitle-text" }, "Time on desgin")))));
|
|
37
|
-
}))),
|
|
38
|
-
react_1.default.createElement("div", { className: "combo-action-view" },
|
|
39
|
-
react_1.default.createElement("div", { className: "combo" },
|
|
40
|
-
react_1.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
41
|
-
react_1.default.createElement("path", { d: "M17.5261 1.67395C17.9407 1.73017 18.2312 2.11184 18.175 2.52645L17.5689 6.99614C17.5128 7.4101 17.1322 7.70049 16.7181 7.64528L12.1726 7.03922C11.7579 6.98393 11.4665 6.6029 11.5218 6.18817C11.5771 5.77344 11.9582 5.48207 12.3729 5.53736L15.2903 5.92636C14.0585 4.38085 12.1438 3.40919 10 3.40919C6.25174 3.40919 3.18182 6.47911 3.18182 10.2274C3.18182 10.6458 2.84265 10.985 2.42425 10.985C2.00585 10.985 1.66667 10.6458 1.66667 10.2274C1.66667 5.64231 5.41494 1.89404 10 1.89404C12.5318 1.89404 14.8177 3.00972 16.3361 4.81209L16.6736 2.32287C16.7298 1.90826 17.1115 1.61773 17.5261 1.67395Z", fill: "#61616B" }),
|
|
42
|
-
react_1.default.createElement("path", { d: "M18.3333 10.2281C18.3333 9.80972 17.9941 9.47054 17.5757 9.47054C17.1573 9.47054 16.8182 9.80972 16.8182 10.2281C16.8182 13.9764 13.7482 17.0463 9.99997 17.0463C7.85595 17.0463 5.94105 16.0745 4.70926 14.5287L7.6271 14.9177C8.04182 14.973 8.42285 14.6816 8.47815 14.2669C8.53345 13.8522 8.24207 13.4712 7.82734 13.4159L3.28189 12.8098C2.86781 12.7546 2.48719 13.045 2.43106 13.4589L1.825 17.9286C1.76878 18.3432 2.05931 18.7249 2.47391 18.7811C2.88852 18.8373 3.27019 18.5468 3.32641 18.1322L3.66388 15.6433C5.18221 17.4458 7.46818 18.5615 9.99997 18.5615C14.585 18.5615 18.3333 14.8132 18.3333 10.2281Z", fill: "#61616B" }))),
|
|
43
|
-
react_1.default.createElement("div", { className: "combo-button" },
|
|
44
|
-
react_1.default.createElement("div", { className: "button3" },
|
|
45
|
-
react_1.default.createElement("div", { className: "button4" },
|
|
46
|
-
react_1.default.createElement("div", { className: "button5" }, "Button"))),
|
|
47
|
-
react_1.default.createElement("div", { className: "button6" },
|
|
48
|
-
react_1.default.createElement("div", { className: "button4" },
|
|
49
|
-
react_1.default.createElement("div", { className: "button5" }, "Button"))))));
|
|
50
|
-
}
|
|
51
|
-
exports.CardInfo = CardInfo;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import './card.css';
|
|
3
|
-
interface cardInfoProps {
|
|
4
|
-
avatar?: ReactNode;
|
|
5
|
-
heading?: ReactNode;
|
|
6
|
-
subHeading?: ReactNode;
|
|
7
|
-
content?: ReactNode;
|
|
8
|
-
action?: ReactNode;
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function CardSimple({ avatar, heading, subHeading, content, action, style, className }: cardInfoProps): React.JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CardSimple = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
require("./card.css");
|
|
9
|
-
function CardSimple(_a) {
|
|
10
|
-
var avatar = _a.avatar, heading = _a.heading, subHeading = _a.subHeading, content = _a.content, action = _a.action, style = _a.style, className = _a.className;
|
|
11
|
-
return react_1.default.createElement("div", { className: "card-new-grid ".concat(className !== null && className !== void 0 ? className : ''), style: style },
|
|
12
|
-
react_1.default.createElement("div", { className: "list-item" },
|
|
13
|
-
react_1.default.createElement("div", { className: "media" },
|
|
14
|
-
react_1.default.createElement("div", { className: "media-styleimage-circle" }, avatar !== null && avatar !== void 0 ? avatar : react_1.default.createElement("img", { className: "media-styleimage-circle-child", src: "https://via.placeholder.com/40x40" }))),
|
|
15
|
-
react_1.default.createElement("div", { className: "content" },
|
|
16
|
-
react_1.default.createElement("div", { className: "content-title-parent" },
|
|
17
|
-
heading ? react_1.default.createElement("div", { className: "content-title" }, heading) : react_1.default.createElement("div", { className: "content-title" }, "name"),
|
|
18
|
-
subHeading ? react_1.default.createElement("div", { className: "subtitle" }, subHeading) : react_1.default.createElement("div", { className: "subtitle" }, "sub"))),
|
|
19
|
-
react_1.default.createElement("div", { className: "media1" },
|
|
20
|
-
react_1.default.createElement("svg", { onClick: function () { }, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
21
|
-
react_1.default.createElement("path", { d: "M3.60698 5.34049C3.35391 5.10851 2.94912 5.10851 2.69605 5.34049C2.43465 5.58011 2.43465 5.97512 2.69605 6.21474L7.54454 10.6592C7.7976 10.8912 8.2024 10.8912 8.45546 10.6592L13.3039 6.21474C13.5654 5.97512 13.5654 5.58011 13.3039 5.34049C13.0509 5.10851 12.6461 5.10851 12.393 5.34049L8 9.36743L3.60698 5.34049Z", fill: "#61616B" })))),
|
|
22
|
-
react_1.default.createElement("div", { className: "frame-parent" }, content !== null && content !== void 0 ? content : react_1.default.createElement("div", { className: "content-parent" },
|
|
23
|
-
react_1.default.createElement("div", { className: "content1" },
|
|
24
|
-
react_1.default.createElement("div", { className: "content-title-wrapper" },
|
|
25
|
-
react_1.default.createElement("div", { className: "content-title" }, "value1")),
|
|
26
|
-
react_1.default.createElement("div", { className: "body-content" }, "content1")),
|
|
27
|
-
react_1.default.createElement("div", { className: "content1" },
|
|
28
|
-
react_1.default.createElement("div", { className: "content-title-wrapper" },
|
|
29
|
-
react_1.default.createElement("div", { className: "content-title" }, "value2")),
|
|
30
|
-
react_1.default.createElement("div", { className: "body-content" }, "content2")))),
|
|
31
|
-
react_1.default.createElement("div", null, action !== null && action !== void 0 ? action : react_1.default.createElement("div", null)));
|
|
32
|
-
}
|
|
33
|
-
exports.CardSimple = CardSimple;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
interface CheckboxProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
onChange?: (value: boolean, target: HTMLInputElement) => void;
|
|
5
|
-
value?: boolean;
|
|
6
|
-
checkColor?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
/** default 2.4rem **/
|
|
11
|
-
size?: number | string;
|
|
12
|
-
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
|
13
|
-
}
|
|
14
|
-
interface CheckboxState {
|
|
15
|
-
value?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class Checkbox extends React.Component<CheckboxProps, CheckboxState> {
|
|
18
|
-
private ref;
|
|
19
|
-
constructor(props: CheckboxProps);
|
|
20
|
-
componentDidUpdate(prevProps: Readonly<CheckboxProps>): void;
|
|
21
|
-
onChange: () => void;
|
|
22
|
-
render(): React.JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Checkbox = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const checkbox_module_css_1 = __importDefault(require("./checkbox.module.css"));
|
|
42
|
-
class Checkbox extends react_1.default.Component {
|
|
43
|
-
constructor(props) {
|
|
44
|
-
var _a;
|
|
45
|
-
super(props);
|
|
46
|
-
this.ref = (0, react_1.createRef)();
|
|
47
|
-
this.onChange = () => {
|
|
48
|
-
const newValue = !this.state.value;
|
|
49
|
-
this.setState({ value: newValue });
|
|
50
|
-
if (this.props.onChange && this.ref.current)
|
|
51
|
-
this.props.onChange(newValue, this.ref.current.querySelector("input"));
|
|
52
|
-
};
|
|
53
|
-
this.state = {
|
|
54
|
-
value: (_a = this.props.value) !== null && _a !== void 0 ? _a : false
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
componentDidUpdate(prevProps) {
|
|
58
|
-
if (prevProps.value !== this.props.value) {
|
|
59
|
-
this.setState({ value: this.props.value });
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
render() {
|
|
63
|
-
var _a, _b, _c;
|
|
64
|
-
let convertStyle = {
|
|
65
|
-
width: (_a = this.props.size) !== null && _a !== void 0 ? _a : '2.4rem',
|
|
66
|
-
height: (_b = this.props.size) !== null && _b !== void 0 ? _b : '2.4rem',
|
|
67
|
-
};
|
|
68
|
-
if (this.props.style) {
|
|
69
|
-
delete this.props.style.width;
|
|
70
|
-
delete this.props.style.minWidth;
|
|
71
|
-
delete this.props.style.maxWidth;
|
|
72
|
-
delete this.props.style.height;
|
|
73
|
-
delete this.props.style.minHeight;
|
|
74
|
-
delete this.props.style.maxHeight;
|
|
75
|
-
convertStyle = Object.assign(Object.assign({}, this.props.style), convertStyle);
|
|
76
|
-
}
|
|
77
|
-
return react_1.default.createElement("label", { ref: this.ref, id: this.props.id, className: `${checkbox_module_css_1.default['checkbox-container']} row ${(_c = this.props.className) !== null && _c !== void 0 ? _c : ''}`, style: convertStyle, "is-null-value": `${this.state.value == undefined}`, onClick: this.props.onClick },
|
|
78
|
-
react_1.default.createElement("input", { type: "checkbox", checked: this.state.value ? true : false, disabled: this.props.disabled, onChange: (ev) => {
|
|
79
|
-
ev.stopPropagation();
|
|
80
|
-
const newValue = !this.state.value;
|
|
81
|
-
this.setState({ value: newValue });
|
|
82
|
-
if (this.props.onChange)
|
|
83
|
-
this.props.onChange(newValue, ev.target);
|
|
84
|
-
} }),
|
|
85
|
-
react_1.default.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { '--check-color': this.props.checkColor } }, this.state.value === undefined ?
|
|
86
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.79199 9.95298C4.79199 9.69148 5.00398 9.47949 5.26548 9.47949H14.7352C14.9967 9.47949 15.2087 9.69148 15.2087 9.95298C15.2087 10.2145 14.9967 10.4265 14.7352 10.4265H5.26548C5.00398 10.4265 4.79199 10.2145 4.79199 9.95298Z" }) :
|
|
87
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.07 6.49317C15.2549 6.67808 15.2549 6.97787 15.07 7.16278L8.91467 13.3181C8.72977 13.503 8.42997 13.503 8.24507 13.3181L4.93067 10.0037C4.74577 9.81878 4.74577 9.51899 4.93067 9.33408C5.11558 9.14917 5.41537 9.14917 5.60028 9.33408L8.57987 12.3137L14.4004 6.49317C14.5853 6.30827 14.8851 6.30827 15.07 6.49317Z" })));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.Checkbox = Checkbox;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { ClassicEditor, EventInfo } from 'ckeditor5';
|
|
3
|
-
import './ck-editor.css';
|
|
4
|
-
/**
|
|
5
|
-
* Please update the following values with your tokens.
|
|
6
|
-
* Instructions on how to obtain them: https://ckeditor.com/docs/trial/latest/guides/real-time/quick-start.html
|
|
7
|
-
*/
|
|
8
|
-
interface Props {
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
menuBar?: boolean;
|
|
15
|
-
onChange?: (event: EventInfo, editor: ClassicEditor) => void;
|
|
16
|
-
onFocus?: (event: EventInfo, editor: ClassicEditor) => void;
|
|
17
|
-
onBlur?: (event: EventInfo, editor: ClassicEditor) => void;
|
|
18
|
-
onError?: (error: Error, details: any) => void;
|
|
19
|
-
onReady?: (editor: ClassicEditor) => void;
|
|
20
|
-
onAfterDestroy?: (editor: ClassicEditor) => void;
|
|
21
|
-
extraPlugins?: Array<any>;
|
|
22
|
-
fontFamily?: Array<string>;
|
|
23
|
-
fontSize?: Array<number | "default">;
|
|
24
|
-
fontColors?: Array<{
|
|
25
|
-
color: string;
|
|
26
|
-
label: string;
|
|
27
|
-
}>;
|
|
28
|
-
fontBgColors?: Array<{
|
|
29
|
-
color: string;
|
|
30
|
-
label: string;
|
|
31
|
-
}>;
|
|
32
|
-
helperText?: string;
|
|
33
|
-
helperTextColor?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare function CustomCkEditor5(props: Props): React.JSX.Element;
|
|
36
|
-
export {};
|
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CustomCkEditor5 = CustomCkEditor5;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const react_2 = require("react");
|
|
9
|
-
const ckeditor5_react_1 = require("@ckeditor/ckeditor5-react");
|
|
10
|
-
const ckeditor5_1 = require("ckeditor5");
|
|
11
|
-
require("./ck-editor.css");
|
|
12
|
-
const react_i18next_1 = require("react-i18next");
|
|
13
|
-
/**
|
|
14
|
-
* Create a free account with a trial: https://portal.ckeditor.com/checkout?plan=free
|
|
15
|
-
*/
|
|
16
|
-
const LICENSE_KEY = 'GPL'; // or <YOUR_LICENSE_KEY>.
|
|
17
|
-
function CustomCkEditor5(props) {
|
|
18
|
-
var _a, _b, _c, _d;
|
|
19
|
-
const editorContainerRef = (0, react_2.useRef)(null);
|
|
20
|
-
const editorRef = (0, react_2.useRef)(null);
|
|
21
|
-
// const editorWordCountRef = useRef(null);
|
|
22
|
-
const [isLayoutReady, setIsLayoutReady] = (0, react_2.useState)(false);
|
|
23
|
-
const { i18n } = (0, react_i18next_1.useTranslation)();
|
|
24
|
-
(0, react_2.useEffect)(() => {
|
|
25
|
-
setIsLayoutReady(true);
|
|
26
|
-
return () => setIsLayoutReady(false);
|
|
27
|
-
}, []);
|
|
28
|
-
const { editorConfig } = (0, react_2.useMemo)(() => {
|
|
29
|
-
if (!isLayoutReady) {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
editorConfig: {
|
|
34
|
-
toolbar: {
|
|
35
|
-
items: [
|
|
36
|
-
'heading',
|
|
37
|
-
'|',
|
|
38
|
-
// 'sourceEditing',
|
|
39
|
-
// 'showBlocks',
|
|
40
|
-
// 'findAndReplace',
|
|
41
|
-
// 'textPartLanguage',
|
|
42
|
-
'fontSize',
|
|
43
|
-
'fontFamily',
|
|
44
|
-
'fontColor',
|
|
45
|
-
'fontBackgroundColor',
|
|
46
|
-
'|',
|
|
47
|
-
'bold',
|
|
48
|
-
'italic',
|
|
49
|
-
'underline',
|
|
50
|
-
'strikethrough',
|
|
51
|
-
// 'subscript',
|
|
52
|
-
// 'superscript',
|
|
53
|
-
// 'code',
|
|
54
|
-
// 'removeFormat',
|
|
55
|
-
'|',
|
|
56
|
-
'specialCharacters',
|
|
57
|
-
'insertImage',
|
|
58
|
-
'horizontalLine',
|
|
59
|
-
'pageBreak',
|
|
60
|
-
'link',
|
|
61
|
-
// 'bookmark',
|
|
62
|
-
// 'insertImageViaUrl',
|
|
63
|
-
// 'ckbox',
|
|
64
|
-
'mediaEmbed',
|
|
65
|
-
'insertTable',
|
|
66
|
-
'highlight',
|
|
67
|
-
// 'blockQuote',
|
|
68
|
-
// 'codeBlock',
|
|
69
|
-
'htmlEmbed',
|
|
70
|
-
'|',
|
|
71
|
-
'alignment',
|
|
72
|
-
'|',
|
|
73
|
-
'bulletedList',
|
|
74
|
-
'numberedList',
|
|
75
|
-
'todoList',
|
|
76
|
-
'outdent',
|
|
77
|
-
'indent'
|
|
78
|
-
],
|
|
79
|
-
shouldNotGroupWhenFull: false,
|
|
80
|
-
},
|
|
81
|
-
plugins: [
|
|
82
|
-
ckeditor5_1.Alignment,
|
|
83
|
-
ckeditor5_1.Autoformat,
|
|
84
|
-
ckeditor5_1.AutoImage,
|
|
85
|
-
ckeditor5_1.AutoLink,
|
|
86
|
-
ckeditor5_1.Autosave,
|
|
87
|
-
ckeditor5_1.BalloonToolbar,
|
|
88
|
-
ckeditor5_1.BlockQuote,
|
|
89
|
-
ckeditor5_1.Bold,
|
|
90
|
-
ckeditor5_1.Bookmark,
|
|
91
|
-
ckeditor5_1.Code,
|
|
92
|
-
ckeditor5_1.CodeBlock,
|
|
93
|
-
ckeditor5_1.Essentials,
|
|
94
|
-
ckeditor5_1.FindAndReplace,
|
|
95
|
-
ckeditor5_1.FontBackgroundColor,
|
|
96
|
-
ckeditor5_1.FontColor,
|
|
97
|
-
ckeditor5_1.FontFamily,
|
|
98
|
-
ckeditor5_1.FontSize,
|
|
99
|
-
ckeditor5_1.FullPage,
|
|
100
|
-
ckeditor5_1.GeneralHtmlSupport,
|
|
101
|
-
ckeditor5_1.Heading,
|
|
102
|
-
ckeditor5_1.Highlight,
|
|
103
|
-
ckeditor5_1.HorizontalLine,
|
|
104
|
-
ckeditor5_1.HtmlComment,
|
|
105
|
-
ckeditor5_1.HtmlEmbed,
|
|
106
|
-
ckeditor5_1.ImageBlock,
|
|
107
|
-
ckeditor5_1.ImageCaption,
|
|
108
|
-
ckeditor5_1.ImageInline,
|
|
109
|
-
ckeditor5_1.ImageInsert,
|
|
110
|
-
ckeditor5_1.ImageInsertViaUrl,
|
|
111
|
-
ckeditor5_1.ImageResize,
|
|
112
|
-
ckeditor5_1.ImageStyle,
|
|
113
|
-
ckeditor5_1.ImageTextAlternative,
|
|
114
|
-
ckeditor5_1.ImageToolbar,
|
|
115
|
-
ckeditor5_1.ImageUpload,
|
|
116
|
-
ckeditor5_1.Indent,
|
|
117
|
-
ckeditor5_1.IndentBlock,
|
|
118
|
-
ckeditor5_1.Italic,
|
|
119
|
-
ckeditor5_1.Link,
|
|
120
|
-
ckeditor5_1.LinkImage,
|
|
121
|
-
ckeditor5_1.List,
|
|
122
|
-
ckeditor5_1.ListProperties,
|
|
123
|
-
ckeditor5_1.Markdown,
|
|
124
|
-
ckeditor5_1.MediaEmbed,
|
|
125
|
-
ckeditor5_1.Mention,
|
|
126
|
-
ckeditor5_1.PageBreak,
|
|
127
|
-
ckeditor5_1.Paragraph,
|
|
128
|
-
ckeditor5_1.PasteFromMarkdownExperimental,
|
|
129
|
-
ckeditor5_1.PasteFromOffice,
|
|
130
|
-
ckeditor5_1.PictureEditing,
|
|
131
|
-
ckeditor5_1.RemoveFormat,
|
|
132
|
-
ckeditor5_1.ShowBlocks,
|
|
133
|
-
ckeditor5_1.SourceEditing,
|
|
134
|
-
ckeditor5_1.SpecialCharacters,
|
|
135
|
-
ckeditor5_1.SpecialCharactersArrows,
|
|
136
|
-
ckeditor5_1.SpecialCharactersCurrency,
|
|
137
|
-
ckeditor5_1.SpecialCharactersEssentials,
|
|
138
|
-
ckeditor5_1.SpecialCharactersLatin,
|
|
139
|
-
ckeditor5_1.SpecialCharactersMathematical,
|
|
140
|
-
ckeditor5_1.SpecialCharactersText,
|
|
141
|
-
ckeditor5_1.Strikethrough,
|
|
142
|
-
ckeditor5_1.Style,
|
|
143
|
-
ckeditor5_1.Subscript,
|
|
144
|
-
ckeditor5_1.Superscript,
|
|
145
|
-
ckeditor5_1.Table,
|
|
146
|
-
ckeditor5_1.TableCaption,
|
|
147
|
-
ckeditor5_1.TableCellProperties,
|
|
148
|
-
ckeditor5_1.TableColumnResize,
|
|
149
|
-
ckeditor5_1.TableProperties,
|
|
150
|
-
ckeditor5_1.TableToolbar,
|
|
151
|
-
ckeditor5_1.TextPartLanguage,
|
|
152
|
-
ckeditor5_1.TextTransformation,
|
|
153
|
-
// Title,
|
|
154
|
-
ckeditor5_1.TodoList,
|
|
155
|
-
ckeditor5_1.Underline,
|
|
156
|
-
ckeditor5_1.WordCount
|
|
157
|
-
],
|
|
158
|
-
balloonToolbar: ['bold', 'italic', '|', 'link', 'insertImage', '|', 'bulletedList', 'numberedList'],
|
|
159
|
-
extraPlugins: props.extraPlugins,
|
|
160
|
-
mediaEmbed: {
|
|
161
|
-
previewsInData: true,
|
|
162
|
-
providers: [
|
|
163
|
-
{
|
|
164
|
-
name: "youtube",
|
|
165
|
-
url: /^https:\/\/www\.youtube\.com\/watch\?v=([\w-]+)/,
|
|
166
|
-
html: (match) => {
|
|
167
|
-
const id = match[1];
|
|
168
|
-
return ('<div style="position: relative; padding-bottom: 56.25%; height: 0;">' +
|
|
169
|
-
`<iframe src="https://www.youtube.com/embed/${id}" ` +
|
|
170
|
-
'style="position: absolute; width: 100%; height: 100%; left: 0;" ' +
|
|
171
|
-
'frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>' +
|
|
172
|
-
"</div>");
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
fontFamily: {
|
|
178
|
-
options: props.fontFamily || ["Default", "Arial", "Courier New", "Inter", "Roboto", "Times New Roman", "Source Serif 4"],
|
|
179
|
-
supportAllValues: true
|
|
180
|
-
},
|
|
181
|
-
fontSize: {
|
|
182
|
-
options: props.fontSize || [10, 12, 14, 'default', 18, 20, 22, 24],
|
|
183
|
-
supportAllValues: true,
|
|
184
|
-
},
|
|
185
|
-
fontColor: {
|
|
186
|
-
columns: 6,
|
|
187
|
-
colors: props.fontColors || [
|
|
188
|
-
{
|
|
189
|
-
color: 'var(--neutral-text-title-color)',
|
|
190
|
-
label: 'title'
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
color: 'var(--neutral-text-subtitle-color)',
|
|
194
|
-
label: 'subtitle'
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
color: 'var(--neutral-text-body-color)',
|
|
198
|
-
label: 'body'
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
color: 'var(--neutral-text-placeholder-color)',
|
|
202
|
-
label: 'placeholder'
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
color: 'var(--neutral-text-disabled-color)',
|
|
206
|
-
label: 'disabled'
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
color: 'var(--neutral-text-stable-color)',
|
|
210
|
-
label: 'stable'
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
color: 'var(--primary-main-color)',
|
|
214
|
-
label: 'primay'
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
color: 'var(--warning-main-color)',
|
|
218
|
-
label: 'warning'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
color: 'var(--success-main-color)',
|
|
222
|
-
label: 'success'
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
color: 'var(--secondary3-main-color)',
|
|
226
|
-
label: 'secondary3'
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
color: 'var(--secondary4-main-color)',
|
|
230
|
-
label: 'secondary4'
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
color: 'var(--secondary5-main-color)',
|
|
234
|
-
label: 'secondary5'
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
color: 'var(--infor-main-color)',
|
|
238
|
-
label: 'infor'
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
color: 'var(--error-main-color)',
|
|
242
|
-
label: 'error'
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
},
|
|
246
|
-
fontBackgroundColor: {
|
|
247
|
-
columns: 6,
|
|
248
|
-
colors: props.fontBgColors || [
|
|
249
|
-
{
|
|
250
|
-
color: 'var(--neutral-main-background-color)',
|
|
251
|
-
label: 'main'
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
color: 'var(--neutral-main-reverse-background-color)',
|
|
255
|
-
label: 'main-reverse'
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
color: 'var(--neutral-absolute-background-color)',
|
|
259
|
-
label: 'absolute'
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
color: 'var(--neutral-absolute-reverse-background-color)',
|
|
263
|
-
label: 'absolute-reverse'
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
color: 'var(--primary-background)',
|
|
267
|
-
label: 'primay-bg'
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
color: 'var(--warning-background)',
|
|
271
|
-
label: 'warning-bg'
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
color: 'var(--success-background)',
|
|
275
|
-
label: 'success-bg'
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
color: 'var(--secondary3-background)',
|
|
279
|
-
label: 'secondary3-bg'
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
color: 'var(--secondary4-background)',
|
|
283
|
-
label: 'secondary4-bg'
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
color: 'var(--secondary5-background)',
|
|
287
|
-
label: 'secondary5-bg'
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
color: 'var(--infor-background)',
|
|
291
|
-
label: 'infor-bg'
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
color: 'var(--error-background)',
|
|
295
|
-
label: 'error-bg'
|
|
296
|
-
},
|
|
297
|
-
],
|
|
298
|
-
},
|
|
299
|
-
heading: {
|
|
300
|
-
options: [
|
|
301
|
-
{
|
|
302
|
-
model: 'paragraph',
|
|
303
|
-
title: 'Paragraph',
|
|
304
|
-
class: 'ck-heading_paragraph'
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
model: 'heading1',
|
|
308
|
-
view: 'h1',
|
|
309
|
-
title: 'Heading 1',
|
|
310
|
-
class: 'ck-heading_heading1'
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
model: 'heading2',
|
|
314
|
-
view: 'h2',
|
|
315
|
-
title: 'Heading 2',
|
|
316
|
-
class: 'ck-heading_heading2'
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
model: 'heading3',
|
|
320
|
-
view: 'h3',
|
|
321
|
-
title: 'Heading 3',
|
|
322
|
-
class: 'ck-heading_heading3'
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
model: 'heading4',
|
|
326
|
-
view: 'h4',
|
|
327
|
-
title: 'Heading 4',
|
|
328
|
-
class: 'ck-heading_heading4'
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
model: 'heading5',
|
|
332
|
-
view: 'h5',
|
|
333
|
-
title: 'Heading 5',
|
|
334
|
-
class: 'ck-heading_heading5'
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
model: 'heading6',
|
|
338
|
-
view: 'h6',
|
|
339
|
-
title: 'Heading 6',
|
|
340
|
-
class: 'ck-heading_heading6'
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
},
|
|
344
|
-
htmlSupport: {
|
|
345
|
-
allow: [
|
|
346
|
-
{
|
|
347
|
-
name: /^.*$/,
|
|
348
|
-
styles: true,
|
|
349
|
-
attributes: true,
|
|
350
|
-
classes: true
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
},
|
|
354
|
-
image: {
|
|
355
|
-
toolbar: [
|
|
356
|
-
'toggleImageCaption',
|
|
357
|
-
'imageTextAlternative',
|
|
358
|
-
'|',
|
|
359
|
-
'imageStyle:inline',
|
|
360
|
-
'imageStyle:wrapText',
|
|
361
|
-
'imageStyle:breakText',
|
|
362
|
-
'|',
|
|
363
|
-
'resizeImage'
|
|
364
|
-
]
|
|
365
|
-
},
|
|
366
|
-
language: "vi",
|
|
367
|
-
licenseKey: LICENSE_KEY,
|
|
368
|
-
link: {
|
|
369
|
-
addTargetToExternalLinks: true,
|
|
370
|
-
defaultProtocol: 'https://',
|
|
371
|
-
decorators: {
|
|
372
|
-
toggleDownloadable: {
|
|
373
|
-
mode: 'manual',
|
|
374
|
-
label: 'Downloadable',
|
|
375
|
-
attributes: {
|
|
376
|
-
download: 'file'
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
menuBar: { isVisible: props.menuBar },
|
|
382
|
-
placeholder: props.placeholder,
|
|
383
|
-
table: {
|
|
384
|
-
contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties']
|
|
385
|
-
},
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
}, [isLayoutReady, i18n.language]);
|
|
389
|
-
return react_1.default.createElement("div", { ref: editorContainerRef, className: `col editor-container editor-container_classic-editor editor-container_include-style ${(_a = props.className) !== null && _a !== void 0 ? _a : ""} ${((_b = props.helperText) === null || _b === void 0 ? void 0 : _b.length) ? 'helper-text' : ""}`, "helper-text": props.helperText, style: props.style ? Object.assign(Object.assign({}, { '--helper-text-color': (_c = props.helperTextColor) !== null && _c !== void 0 ? _c : '#e14337' }), props.style) : { '--helper-text-color': (_d = props.helperTextColor) !== null && _d !== void 0 ? _d : '#e14337' } },
|
|
390
|
-
react_1.default.createElement("div", { className: "editor-container__editor" },
|
|
391
|
-
react_1.default.createElement("div", { ref: editorRef }, editorConfig && (react_1.default.createElement(ckeditor5_react_1.CKEditor, { onReady: props.onReady, onAfterDestroy: props.onAfterDestroy, onFocus: props.onFocus, onChange: props.onChange, onBlur: props.onBlur, editor: ckeditor5_1.ClassicEditor, onError: props.onError, config: editorConfig, data: props.value, disabled: props.disabled })))));
|
|
392
|
-
}
|