inconel 0.1.40 → 0.1.41
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/cjs/components/RichTextEditor/RichTextEditor.cjs +1 -1
- package/dist/cjs/components/RichTextEditor/RichTextEditor.cjs.map +1 -1
- package/dist/cjs/components/RichTextEditor/icons.cjs +2 -0
- package/dist/cjs/components/RichTextEditor/icons.cjs.map +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.js +157 -156
- package/dist/components/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/components/RichTextEditor/icons.d.ts +22 -0
- package/dist/components/RichTextEditor/icons.d.ts.map +1 -0
- package/dist/components/RichTextEditor/icons.js +67 -0
- package/dist/components/RichTextEditor/icons.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +13 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const icons: {
|
|
2
|
+
bold: import("react").JSX.Element;
|
|
3
|
+
italic: import("react").JSX.Element;
|
|
4
|
+
underline: import("react").JSX.Element;
|
|
5
|
+
strike: import("react").JSX.Element;
|
|
6
|
+
alignLeft: import("react").JSX.Element;
|
|
7
|
+
alignCenter: import("react").JSX.Element;
|
|
8
|
+
alignRight: import("react").JSX.Element;
|
|
9
|
+
alignJustify: import("react").JSX.Element;
|
|
10
|
+
listUl: import("react").JSX.Element;
|
|
11
|
+
listOl: import("react").JSX.Element;
|
|
12
|
+
outdent: import("react").JSX.Element;
|
|
13
|
+
indent: import("react").JSX.Element;
|
|
14
|
+
clearFormat: import("react").JSX.Element;
|
|
15
|
+
link: import("react").JSX.Element;
|
|
16
|
+
image: import("react").JSX.Element;
|
|
17
|
+
gallery: import("react").JSX.Element;
|
|
18
|
+
undo: import("react").JSX.Element;
|
|
19
|
+
redo: import("react").JSX.Element;
|
|
20
|
+
code: import("react").JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/icons.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;CA8CjB,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as h, jsxs as M, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
const t = (d) => /* @__PURE__ */ h(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: "18",
|
|
6
|
+
height: "18",
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: "none",
|
|
9
|
+
stroke: "currentColor",
|
|
10
|
+
strokeWidth: "2",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
focusable: "false",
|
|
15
|
+
children: d
|
|
16
|
+
}
|
|
17
|
+
), i = {
|
|
18
|
+
bold: t(/* @__PURE__ */ h("path", { d: "M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z" })),
|
|
19
|
+
italic: t(/* @__PURE__ */ h("path", { d: "M19 4h-9M14 20H5M15 4 9 20" })),
|
|
20
|
+
underline: t(/* @__PURE__ */ h("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 20h14" })),
|
|
21
|
+
strike: t(
|
|
22
|
+
/* @__PURE__ */ h("path", { d: "M16 6a4 4 0 0 0-4-2c-2.5 0-4 1.3-4 3s1.5 2.5 4 3M4 12h16M8 18a4 4 0 0 0 4 2c2.5 0 4-1.3 4-3 0-.9-.4-1.6-1.2-2.1" })
|
|
23
|
+
),
|
|
24
|
+
alignLeft: t(/* @__PURE__ */ h("path", { d: "M4 6h16M4 10h10M4 14h16M4 18h10" })),
|
|
25
|
+
alignCenter: t(/* @__PURE__ */ h("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" })),
|
|
26
|
+
alignRight: t(/* @__PURE__ */ h("path", { d: "M4 6h16M10 10h10M4 14h16M10 18h10" })),
|
|
27
|
+
alignJustify: t(/* @__PURE__ */ h("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" })),
|
|
28
|
+
listUl: t(
|
|
29
|
+
/* @__PURE__ */ M(a, { children: [
|
|
30
|
+
/* @__PURE__ */ h("path", { d: "M9 6h11M9 12h11M9 18h11" }),
|
|
31
|
+
/* @__PURE__ */ h("path", { d: "M4.5 6h.01M4.5 12h.01M4.5 18h.01", strokeWidth: "3" })
|
|
32
|
+
] })
|
|
33
|
+
),
|
|
34
|
+
listOl: t(
|
|
35
|
+
/* @__PURE__ */ M(a, { children: [
|
|
36
|
+
/* @__PURE__ */ h("path", { d: "M10 6h10M10 12h10M10 18h10" }),
|
|
37
|
+
/* @__PURE__ */ h("path", { d: "M4 5.5 5.5 5v4.5M4 14.5a1.5 1.5 0 1 1 3 0c0 1-3 2-3 3.5h3", strokeWidth: "1.5" })
|
|
38
|
+
] })
|
|
39
|
+
),
|
|
40
|
+
outdent: t(/* @__PURE__ */ h("path", { d: "M4 6h16M10 10h10M10 14h10M4 18h16M7 9l-3 3 3 3" })),
|
|
41
|
+
indent: t(/* @__PURE__ */ h("path", { d: "M4 6h16M10 10h10M10 14h10M4 18h16M4 9l3 3-3 3" })),
|
|
42
|
+
clearFormat: t(/* @__PURE__ */ h("path", { d: "M6 5h12M12 5l-1.5 6M9 19h4M4 4l16 16" })),
|
|
43
|
+
link: t(
|
|
44
|
+
/* @__PURE__ */ h("path", { d: "M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1" })
|
|
45
|
+
),
|
|
46
|
+
image: t(
|
|
47
|
+
/* @__PURE__ */ M(a, { children: [
|
|
48
|
+
/* @__PURE__ */ h("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
49
|
+
/* @__PURE__ */ h("circle", { cx: "9", cy: "10", r: "1.5" }),
|
|
50
|
+
/* @__PURE__ */ h("path", { d: "m3 17 5-5 4 4 3-3 6 6" })
|
|
51
|
+
] })
|
|
52
|
+
),
|
|
53
|
+
gallery: t(
|
|
54
|
+
/* @__PURE__ */ M(a, { children: [
|
|
55
|
+
/* @__PURE__ */ h("path", { d: "M7 7V5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2" }),
|
|
56
|
+
/* @__PURE__ */ h("rect", { x: "3", y: "8", width: "15", height: "12", rx: "1.5" }),
|
|
57
|
+
/* @__PURE__ */ h("path", { d: "m3 17 4-4 3 3 3-3 5 5" })
|
|
58
|
+
] })
|
|
59
|
+
),
|
|
60
|
+
undo: t(/* @__PURE__ */ h("path", { d: "M9 14 4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3" })),
|
|
61
|
+
redo: t(/* @__PURE__ */ h("path", { d: "m15 14 5-5-5-5M20 9H10a6 6 0 0 0 0 12h3" })),
|
|
62
|
+
code: t(/* @__PURE__ */ h("path", { d: "m8 7-5 5 5 5M16 7l5 5-5 5" }))
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
i as icons
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../../../src/components/RichTextEditor/icons.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nconst icon = (paths: ReactNode) => (\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n {paths}\n </svg>\n)\n\nexport const icons = {\n bold: icon(<path d=\"M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z\" />),\n italic: icon(<path d=\"M19 4h-9M14 20H5M15 4 9 20\" />),\n underline: icon(<path d=\"M7 4v7a5 5 0 0 0 10 0V4M5 20h14\" />),\n strike: icon(\n <path d=\"M16 6a4 4 0 0 0-4-2c-2.5 0-4 1.3-4 3s1.5 2.5 4 3M4 12h16M8 18a4 4 0 0 0 4 2c2.5 0 4-1.3 4-3 0-.9-.4-1.6-1.2-2.1\" />,\n ),\n alignLeft: icon(<path d=\"M4 6h16M4 10h10M4 14h16M4 18h10\" />),\n alignCenter: icon(<path d=\"M4 6h16M7 10h10M4 14h16M7 18h10\" />),\n alignRight: icon(<path d=\"M4 6h16M10 10h10M4 14h16M10 18h10\" />),\n alignJustify: icon(<path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />),\n listUl: icon(\n <>\n <path d=\"M9 6h11M9 12h11M9 18h11\" />\n <path d=\"M4.5 6h.01M4.5 12h.01M4.5 18h.01\" strokeWidth=\"3\" />\n </>,\n ),\n listOl: icon(\n <>\n <path d=\"M10 6h10M10 12h10M10 18h10\" />\n <path d=\"M4 5.5 5.5 5v4.5M4 14.5a1.5 1.5 0 1 1 3 0c0 1-3 2-3 3.5h3\" strokeWidth=\"1.5\" />\n </>,\n ),\n outdent: icon(<path d=\"M4 6h16M10 10h10M10 14h10M4 18h16M7 9l-3 3 3 3\" />),\n indent: icon(<path d=\"M4 6h16M10 10h10M10 14h10M4 18h16M4 9l3 3-3 3\" />),\n clearFormat: icon(<path d=\"M6 5h12M12 5l-1.5 6M9 19h4M4 4l16 16\" />),\n link: icon(\n <path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\" />,\n ),\n image: icon(\n <>\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <circle cx=\"9\" cy=\"10\" r=\"1.5\" />\n <path d=\"m3 17 5-5 4 4 3-3 6 6\" />\n </>,\n ),\n gallery: icon(\n <>\n <path d=\"M7 7V5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2\" />\n <rect x=\"3\" y=\"8\" width=\"15\" height=\"12\" rx=\"1.5\" />\n <path d=\"m3 17 4-4 3 3 3-3 5 5\" />\n </>,\n ),\n undo: icon(<path d=\"M9 14 4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3\" />),\n redo: icon(<path d=\"m15 14 5-5-5-5M20 9H10a6 6 0 0 0 0 12h3\" />),\n code: icon(<path d=\"m8 7-5 5 5 5M16 7l5 5-5 5\" />),\n}\n"],"names":["icon","paths","jsx","icons","jsxs","Fragment"],"mappings":";AAEA,MAAMA,IAAO,CAACC,MACZ,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,QAAO;AAAA,IACP,aAAY;AAAA,IACZ,eAAc;AAAA,IACd,gBAAe;AAAA,IACf,eAAY;AAAA,IACZ,WAAU;AAAA,IAET,UAAAD;AAAA,EAAA;AACH,GAGWE,IAAQ;AAAA,EACnB,MAAMH,EAAK,gBAAAE,EAAC,QAAA,EAAK,GAAE,2DAA0D,CAAE;AAAA,EAC/E,QAAQF,EAAK,gBAAAE,EAAC,QAAA,EAAK,GAAE,8BAA6B,CAAE;AAAA,EACpD,WAAWF,EAAK,gBAAAE,EAAC,QAAA,EAAK,GAAE,mCAAkC,CAAE;AAAA,EAC5D,QAAQF;AAAA,IACN,gBAAAE,EAAC,QAAA,EAAK,GAAE,kHAAA,CAAkH;AAAA,EAAA;AAAA,EAE5H,WAAWF,EAAK,gBAAAE,EAAC,QAAA,EAAK,GAAE,mCAAkC,CAAE;AAAA,EAC5D,aAAaF,EAAK,gBAAAE,EAAC,QAAA,EAAK,GAAE,mCAAkC,CAAE;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