@quen-ui/components 1.0.0 → 1.0.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/Drawer/Drawer.cjs.js +2 -2
- package/dist/Dropdown/Dropdown.cjs.js +2 -2
- package/dist/Modal/Modal.cjs.js +2 -2
- package/dist/Notification/NotificationInstance.cjs.js +2 -2
- package/dist/RichTextEditor/plugins.cjs.js +28 -51
- package/dist/RichTextEditor/plugins.es.js +4 -27
- package/dist/index.cjs.js +93 -0
- package/dist/index.d.ts +65 -1
- package/dist/index.es.js +93 -0
- package/package.json +3 -2
- package/dist/_virtual/client.cjs.js +0 -5
- package/dist/_virtual/client.cjs2.js +0 -4
- package/dist/_virtual/client.es.js +0 -5
- package/dist/_virtual/client.es2.js +0 -4
- package/dist/_virtual/index.cjs.js +0 -4
- package/dist/_virtual/index.es.js +0 -4
- package/dist/_virtual/react-dom-client.development.cjs.js +0 -4
- package/dist/_virtual/react-dom-client.development.es.js +0 -4
- package/dist/_virtual/react-dom-client.production.cjs.js +0 -4
- package/dist/_virtual/react-dom-client.production.es.js +0 -4
- package/dist/_virtual/scheduler.development.cjs.js +0 -4
- package/dist/_virtual/scheduler.development.es.js +0 -4
- package/dist/_virtual/scheduler.production.cjs.js +0 -4
- package/dist/_virtual/scheduler.production.es.js +0 -4
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs.js +0 -30
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.es.js +0 -31
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs.js +0 -23
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.es.js +0 -24
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBold.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBold.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH1.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH1.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH2.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH2.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconList.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconList.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.es.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.cjs.js +0 -7
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.es.js +0 -7
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.cjs.js +0 -19870
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.es.js +0 -19870
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.cjs.js +0 -11524
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.es.js +0 -11524
- package/dist/node_modules/react-dom/client.cjs.js +0 -31
- package/dist/node_modules/react-dom/client.es.js +0 -31
- package/dist/node_modules/scheduler/cjs/scheduler.development.cjs.js +0 -264
- package/dist/node_modules/scheduler/cjs/scheduler.development.es.js +0 -264
- package/dist/node_modules/scheduler/cjs/scheduler.production.cjs.js +0 -259
- package/dist/node_modules/scheduler/cjs/scheduler.production.es.js +0 -259
- package/dist/node_modules/scheduler/index.cjs.js +0 -17
- package/dist/node_modules/scheduler/index.es.js +0 -17
- package/dist/packages/components/index.cjs.js +0 -93
- package/dist/packages/components/index.es.js +0 -93
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const reactDom = require("react-dom");
|
|
5
5
|
const reactTransitionState = require("react-transition-state");
|
|
6
6
|
const hooks = require("@quen-ui/hooks");
|
|
7
7
|
const styles = require("./styles.cjs.js");
|
|
@@ -41,7 +41,7 @@ const Drawer = ({
|
|
|
41
41
|
setContainer(container2);
|
|
42
42
|
}, []);
|
|
43
43
|
if (state.isEnter && container) {
|
|
44
|
-
return
|
|
44
|
+
return reactDom.createPortal(
|
|
45
45
|
/* @__PURE__ */ jsxRuntime.jsx(styles.DrawerWrapper, { zIndex, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
46
46
|
styles.DrawerStyled,
|
|
47
47
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const reactDom = require("react-dom");
|
|
5
5
|
const reactTransitionState = require("react-transition-state");
|
|
6
6
|
const hooks = require("@quen-ui/hooks");
|
|
7
7
|
const styles = require("./styles.cjs.js");
|
|
@@ -75,7 +75,7 @@ const Dropdown = ({
|
|
|
75
75
|
if (disabled) {
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
78
|
-
return /* @__PURE__ */ jsxRuntime.jsx(styles.DropdownWrapper, { children: state.isEnter && containerDropdown &&
|
|
78
|
+
return /* @__PURE__ */ jsxRuntime.jsx(styles.DropdownWrapper, { children: state.isEnter && containerDropdown && reactDom.createPortal(
|
|
79
79
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
80
80
|
DropdownPortal,
|
|
81
81
|
{
|
package/dist/Modal/Modal.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const reactDom = require("react-dom");
|
|
5
5
|
const reactTransitionState = require("react-transition-state");
|
|
6
6
|
const styles = require("./styles.cjs.js");
|
|
7
7
|
const Title = require("../typography/Title/Title.cjs.js");
|
|
@@ -59,7 +59,7 @@ const Modal = ({
|
|
|
59
59
|
};
|
|
60
60
|
}, [state]);
|
|
61
61
|
if (state.isEnter && container) {
|
|
62
|
-
return
|
|
62
|
+
return reactDom.createPortal(
|
|
63
63
|
/* @__PURE__ */ jsxRuntime.jsx(styles.ModalContainer, { status: state.status, zIndex, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(styles.ModalStyled, { fullScreen, className, size, width, children: [
|
|
64
64
|
/* @__PURE__ */ jsxRuntime.jsxs(styles.ModalHeaderStyled, { children: [
|
|
65
65
|
title && /* @__PURE__ */ jsxRuntime.jsx(Title, { size, children: title }),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const
|
|
5
|
+
const reactDom = require("react-dom");
|
|
6
6
|
const helpers = require("@quen-ui/helpers");
|
|
7
7
|
const NotificationsStore = require("./NotificationsStore.cjs.js");
|
|
8
8
|
const styles = require("./styles.cjs.js");
|
|
@@ -72,7 +72,7 @@ const NotificationInstance = () => {
|
|
|
72
72
|
setNotifications([...NotificationsStore.data]);
|
|
73
73
|
};
|
|
74
74
|
if (element) {
|
|
75
|
-
return
|
|
75
|
+
return reactDom.createPortal(
|
|
76
76
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
77
77
|
topNotifications.length ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
78
78
|
styles.NotificationsWrapper,
|
|
@@ -1,35 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const iconsReact = require("@tabler/icons-react");
|
|
5
|
+
const client = require("react-dom/client");
|
|
5
6
|
const theme = require("@quen-ui/theme");
|
|
6
7
|
const RichTextEditorTableControl = require("./RichTextEditorTableControl.cjs.js");
|
|
7
8
|
const RichTextEditorColorControl = require("./RichTextEditorColorControl.cjs.js");
|
|
8
9
|
const helpers = require("./helpers.cjs.js");
|
|
9
|
-
const IconAlignLeft = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.cjs.js");
|
|
10
|
-
const IconAlignCenter = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.cjs.js");
|
|
11
|
-
const IconAlignRight = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.cjs.js");
|
|
12
|
-
const IconAlignJustified = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.cjs.js");
|
|
13
|
-
const IconLink = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconLink.cjs.js");
|
|
14
|
-
const IconImageInPicture = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.cjs.js");
|
|
15
|
-
const IconTextColor = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.cjs.js");
|
|
16
|
-
const IconClearFormatting = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.cjs.js");
|
|
17
|
-
const IconArrowBackUp = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.cjs.js");
|
|
18
|
-
const IconArrowForwardUp = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.cjs.js");
|
|
19
|
-
const IconTable = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconTable.cjs.js");
|
|
20
|
-
const IconBold = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconBold.cjs.js");
|
|
21
|
-
const IconItalic = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.cjs.js");
|
|
22
|
-
const IconUnderline = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.cjs.js");
|
|
23
|
-
const IconStrikethrough = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.cjs.js");
|
|
24
|
-
const IconHighlight = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.cjs.js");
|
|
25
|
-
const IconBlockquote = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.cjs.js");
|
|
26
|
-
const IconH1 = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconH1.cjs.js");
|
|
27
|
-
const IconH2 = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconH2.cjs.js");
|
|
28
|
-
const IconSuperscript = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.cjs.js");
|
|
29
|
-
const IconSubscript = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.cjs.js");
|
|
30
|
-
const IconList = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconList.cjs.js");
|
|
31
|
-
const IconListNumbers = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.cjs.js");
|
|
32
|
-
const IconCheckbox = require("../node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.cjs.js");
|
|
33
10
|
const onPluginLink = ({ exec }) => {
|
|
34
11
|
const url = window.prompt(
|
|
35
12
|
"Paste the URL (start with http:// or https://):",
|
|
@@ -73,7 +50,7 @@ const onTablePlugin = ({
|
|
|
73
50
|
const handleClose = () => {
|
|
74
51
|
container.remove();
|
|
75
52
|
};
|
|
76
|
-
const root = client.
|
|
53
|
+
const root = client.createRoot(container);
|
|
77
54
|
root.render(
|
|
78
55
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
79
56
|
RichTextEditorTableControl,
|
|
@@ -95,7 +72,7 @@ const onColorPickerPlugin = ({
|
|
|
95
72
|
const currentColor = savedRange ? helpers.getCurrentTextColor(savedRange) : null;
|
|
96
73
|
const container = document.createElement("div");
|
|
97
74
|
document.body.appendChild(container);
|
|
98
|
-
const root = client.
|
|
75
|
+
const root = client.createRoot(container);
|
|
99
76
|
const closePopup = () => {
|
|
100
77
|
try {
|
|
101
78
|
root.unmount();
|
|
@@ -240,7 +217,7 @@ const insertCheckbox = (editor) => {
|
|
|
240
217
|
const checkBoxPlugin = {
|
|
241
218
|
key: "checkbox",
|
|
242
219
|
title: "Check list",
|
|
243
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconCheckbox
|
|
220
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconCheckbox, {}),
|
|
244
221
|
action: ({ editor, context }) => {
|
|
245
222
|
editor?.focus();
|
|
246
223
|
const prev = context.getPluginState("checkbox")?.active ?? false;
|
|
@@ -276,7 +253,7 @@ const checkBoxPlugin = {
|
|
|
276
253
|
};
|
|
277
254
|
const boldPlugin = {
|
|
278
255
|
key: "bold",
|
|
279
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconBold
|
|
256
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconBold, {}),
|
|
280
257
|
title: "Bold (Ctrl/Cmd+B)",
|
|
281
258
|
action: ({ exec, context, editor }) => {
|
|
282
259
|
const prev = context.getPluginState("bold")?.active ?? false;
|
|
@@ -290,7 +267,7 @@ const boldPlugin = {
|
|
|
290
267
|
};
|
|
291
268
|
const italicPlugin = {
|
|
292
269
|
key: "italic",
|
|
293
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconItalic
|
|
270
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconItalic, {}),
|
|
294
271
|
title: "Italic (Ctrl/Cmd+I)",
|
|
295
272
|
action: ({ exec, context, editor }) => {
|
|
296
273
|
const prev = context.getPluginState("italic")?.active ?? false;
|
|
@@ -304,7 +281,7 @@ const italicPlugin = {
|
|
|
304
281
|
};
|
|
305
282
|
const underlinePlugin = {
|
|
306
283
|
key: "underline",
|
|
307
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconUnderline
|
|
284
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconUnderline, {}),
|
|
308
285
|
title: "Underlined (Ctrl/Cmd+U)",
|
|
309
286
|
action: ({ exec, context }) => {
|
|
310
287
|
const prev = context.getPluginState("underline")?.active ?? false;
|
|
@@ -317,7 +294,7 @@ const underlinePlugin = {
|
|
|
317
294
|
};
|
|
318
295
|
const strikethroughPlugin = {
|
|
319
296
|
key: "strikethrough",
|
|
320
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconStrikethrough
|
|
297
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconStrikethrough, {}),
|
|
321
298
|
title: "Strikethrough",
|
|
322
299
|
action: ({ exec, context }) => {
|
|
323
300
|
const prev = context.getPluginState("strikethrough")?.active ?? false;
|
|
@@ -330,7 +307,7 @@ const strikethroughPlugin = {
|
|
|
330
307
|
};
|
|
331
308
|
const highlightPlugin = {
|
|
332
309
|
key: "highlight",
|
|
333
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconHighlight
|
|
310
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconHighlight, {}),
|
|
334
311
|
title: "Highlight",
|
|
335
312
|
action: ({ exec, context }) => {
|
|
336
313
|
const prev = context.getPluginState("highlight")?.active ?? false;
|
|
@@ -347,7 +324,7 @@ const highlightPlugin = {
|
|
|
347
324
|
};
|
|
348
325
|
const blockquotePlugin = {
|
|
349
326
|
key: "blockquote",
|
|
350
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconBlockquote
|
|
327
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconBlockquote, {}),
|
|
351
328
|
title: "Blockquote",
|
|
352
329
|
action: ({ exec, context }) => {
|
|
353
330
|
const prev = context.getPluginState("blockquote")?.active ?? false;
|
|
@@ -377,7 +354,7 @@ const blockquotePlugin = {
|
|
|
377
354
|
};
|
|
378
355
|
const superscriptPlugin = {
|
|
379
356
|
key: "superscript",
|
|
380
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconSuperscript
|
|
357
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconSuperscript, {}),
|
|
381
358
|
title: "Superscript",
|
|
382
359
|
action: ({ exec, context }) => {
|
|
383
360
|
const prev = context.getPluginState("superscript")?.active ?? false;
|
|
@@ -394,7 +371,7 @@ const superscriptPlugin = {
|
|
|
394
371
|
};
|
|
395
372
|
const h1Plugin = {
|
|
396
373
|
key: "h1",
|
|
397
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconH1
|
|
374
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconH1, {}),
|
|
398
375
|
title: "H1 heading",
|
|
399
376
|
action: ({ exec, context }) => {
|
|
400
377
|
const prev = context.getPluginState("h1")?.active ?? false;
|
|
@@ -416,7 +393,7 @@ const h1Plugin = {
|
|
|
416
393
|
};
|
|
417
394
|
const h2Plugin = {
|
|
418
395
|
key: "h2",
|
|
419
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconH2
|
|
396
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconH2, {}),
|
|
420
397
|
title: "H2 heading",
|
|
421
398
|
action: ({ exec, context }) => {
|
|
422
399
|
const prev = context.getPluginState("h2")?.active ?? false;
|
|
@@ -438,7 +415,7 @@ const h2Plugin = {
|
|
|
438
415
|
};
|
|
439
416
|
const subscriptPlugin = {
|
|
440
417
|
key: "subscript",
|
|
441
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconSubscript
|
|
418
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconSubscript, {}),
|
|
442
419
|
title: "Subscript",
|
|
443
420
|
action: ({ exec, context }) => {
|
|
444
421
|
const prev = context.getPluginState("subscript")?.active ?? false;
|
|
@@ -455,7 +432,7 @@ const subscriptPlugin = {
|
|
|
455
432
|
};
|
|
456
433
|
const bulletedListPlugin = {
|
|
457
434
|
key: "bulletedList",
|
|
458
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconList
|
|
435
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconList, {}),
|
|
459
436
|
title: "Bulleted List",
|
|
460
437
|
action: ({ exec, context }) => {
|
|
461
438
|
const prev = context.getPluginState("bulletedList")?.active ?? false;
|
|
@@ -472,7 +449,7 @@ const bulletedListPlugin = {
|
|
|
472
449
|
};
|
|
473
450
|
const numberedListPlugin = {
|
|
474
451
|
key: "numberedList",
|
|
475
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconListNumbers
|
|
452
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconListNumbers, {}),
|
|
476
453
|
title: "Numbered list",
|
|
477
454
|
action: ({ exec, context }) => {
|
|
478
455
|
const prev = context.getPluginState("numberedList")?.active ?? false;
|
|
@@ -502,61 +479,61 @@ const defaultPlugins = [
|
|
|
502
479
|
numberedListPlugin,
|
|
503
480
|
{
|
|
504
481
|
key: "alignLeft",
|
|
505
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconAlignLeft
|
|
482
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconAlignLeft, {}),
|
|
506
483
|
title: "Align left",
|
|
507
484
|
action: ({ exec }) => exec("justifyLeft")
|
|
508
485
|
},
|
|
509
486
|
{
|
|
510
487
|
key: "alignCenter",
|
|
511
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconAlignCenter
|
|
488
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconAlignCenter, {}),
|
|
512
489
|
title: "Align center",
|
|
513
490
|
action: ({ exec }) => exec("justifyCenter")
|
|
514
491
|
},
|
|
515
492
|
{
|
|
516
493
|
key: "alignRight",
|
|
517
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconAlignRight
|
|
494
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconAlignRight, {}),
|
|
518
495
|
title: "Align right",
|
|
519
496
|
action: ({ exec }) => exec("justifyRight")
|
|
520
497
|
},
|
|
521
498
|
{
|
|
522
499
|
key: "justify",
|
|
523
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconAlignJustified
|
|
500
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconAlignJustified, {}),
|
|
524
501
|
title: "Justify",
|
|
525
502
|
action: ({ exec }) => exec("justifyFull")
|
|
526
503
|
},
|
|
527
504
|
{
|
|
528
505
|
key: "link",
|
|
529
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconLink
|
|
506
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconLink, {}),
|
|
530
507
|
title: "Paste link (Ctrl/Cmd+K)",
|
|
531
508
|
action: onPluginLink
|
|
532
509
|
},
|
|
533
510
|
{
|
|
534
511
|
key: "image",
|
|
535
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconImageInPicture
|
|
512
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconImageInPicture, {}),
|
|
536
513
|
title: "Insert image",
|
|
537
514
|
action: onPluginImage
|
|
538
515
|
},
|
|
539
516
|
{
|
|
540
517
|
key: "textColor",
|
|
541
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconTextColor
|
|
518
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconTextColor, {}),
|
|
542
519
|
title: "Text color",
|
|
543
520
|
action: onColorPickerPlugin
|
|
544
521
|
},
|
|
545
522
|
{
|
|
546
523
|
key: "clear",
|
|
547
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconClearFormatting
|
|
524
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconClearFormatting, {}),
|
|
548
525
|
title: "Clear formatting",
|
|
549
526
|
action: onClearFormattingPlugin
|
|
550
527
|
},
|
|
551
528
|
{
|
|
552
529
|
key: "undo",
|
|
553
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconArrowBackUp
|
|
530
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconArrowBackUp, {}),
|
|
554
531
|
title: "Undo",
|
|
555
532
|
action: ({ exec }) => exec("undo")
|
|
556
533
|
},
|
|
557
534
|
{
|
|
558
535
|
key: "redo",
|
|
559
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconArrowForwardUp
|
|
536
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconArrowForwardUp, {}),
|
|
560
537
|
title: "Redo",
|
|
561
538
|
action: ({ exec }) => exec("redo")
|
|
562
539
|
},
|
|
@@ -564,7 +541,7 @@ const defaultPlugins = [
|
|
|
564
541
|
{
|
|
565
542
|
key: "table",
|
|
566
543
|
title: "Table",
|
|
567
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(IconTable
|
|
544
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconTable, {}),
|
|
568
545
|
action: onTablePlugin
|
|
569
546
|
}
|
|
570
547
|
];
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { IconAlignLeft, IconAlignCenter, IconAlignRight, IconAlignJustified, IconLink, IconImageInPicture, IconTextColor, IconClearFormatting, IconArrowBackUp, IconArrowForwardUp, IconTable, IconBold, IconItalic, IconUnderline, IconStrikethrough, IconHighlight, IconBlockquote, IconH1, IconH2, IconSuperscript, IconSubscript, IconList, IconListNumbers, IconCheckbox } from "@tabler/icons-react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
3
4
|
import { QuenUIProvider, QuenUILightTheme } from "@quen-ui/theme";
|
|
4
5
|
import RichTextEditorTableControl from "./RichTextEditorTableControl.es.js";
|
|
5
6
|
import RichTextEditorColorControl from "./RichTextEditorColorControl.es.js";
|
|
6
7
|
import { isCursorInTag, getCurrentTextColor, getCurrentBlock, findClosestAncestorElement, unwrapInlineColorSpans, insertNodeAtSelection, setCursorAtEnd } from "./helpers.es.js";
|
|
7
|
-
import IconAlignLeft from "../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.es.js";
|
|
8
|
-
import IconAlignCenter from "../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.es.js";
|
|
9
|
-
import IconAlignRight from "../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.es.js";
|
|
10
|
-
import IconAlignJustified from "../node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.es.js";
|
|
11
|
-
import IconLink from "../node_modules/@tabler/icons-react/dist/esm/icons/IconLink.es.js";
|
|
12
|
-
import IconImageInPicture from "../node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.es.js";
|
|
13
|
-
import IconTextColor from "../node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.es.js";
|
|
14
|
-
import IconClearFormatting from "../node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.es.js";
|
|
15
|
-
import IconArrowBackUp from "../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.es.js";
|
|
16
|
-
import IconArrowForwardUp from "../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.es.js";
|
|
17
|
-
import IconTable from "../node_modules/@tabler/icons-react/dist/esm/icons/IconTable.es.js";
|
|
18
|
-
import IconBold from "../node_modules/@tabler/icons-react/dist/esm/icons/IconBold.es.js";
|
|
19
|
-
import IconItalic from "../node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.es.js";
|
|
20
|
-
import IconUnderline from "../node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.es.js";
|
|
21
|
-
import IconStrikethrough from "../node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.es.js";
|
|
22
|
-
import IconHighlight from "../node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.es.js";
|
|
23
|
-
import IconBlockquote from "../node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.es.js";
|
|
24
|
-
import IconH1 from "../node_modules/@tabler/icons-react/dist/esm/icons/IconH1.es.js";
|
|
25
|
-
import IconH2 from "../node_modules/@tabler/icons-react/dist/esm/icons/IconH2.es.js";
|
|
26
|
-
import IconSuperscript from "../node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.es.js";
|
|
27
|
-
import IconSubscript from "../node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.es.js";
|
|
28
|
-
import IconList from "../node_modules/@tabler/icons-react/dist/esm/icons/IconList.es.js";
|
|
29
|
-
import IconListNumbers from "../node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.es.js";
|
|
30
|
-
import IconCheckbox from "../node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.es.js";
|
|
31
8
|
const onPluginLink = ({ exec }) => {
|
|
32
9
|
const url = window.prompt(
|
|
33
10
|
"Paste the URL (start with http:// or https://):",
|
|
@@ -71,7 +48,7 @@ const onTablePlugin = ({
|
|
|
71
48
|
const handleClose = () => {
|
|
72
49
|
container.remove();
|
|
73
50
|
};
|
|
74
|
-
const root =
|
|
51
|
+
const root = createRoot(container);
|
|
75
52
|
root.render(
|
|
76
53
|
/* @__PURE__ */ jsx(
|
|
77
54
|
RichTextEditorTableControl,
|
|
@@ -93,7 +70,7 @@ const onColorPickerPlugin = ({
|
|
|
93
70
|
const currentColor = savedRange ? getCurrentTextColor(savedRange) : null;
|
|
94
71
|
const container = document.createElement("div");
|
|
95
72
|
document.body.appendChild(container);
|
|
96
|
-
const root =
|
|
73
|
+
const root = createRoot(container);
|
|
97
74
|
const closePopup = () => {
|
|
98
75
|
try {
|
|
99
76
|
root.unmount();
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Title = require("./typography/Title/Title.cjs.js");
|
|
4
|
+
const Text = require("./typography/Text/Text.cjs.js");
|
|
5
|
+
const Button = require("./Button/Button.cjs.js");
|
|
6
|
+
const Card = require("./Card/Card.cjs.js");
|
|
7
|
+
const Flex = require("./Flex/Flex.cjs.js");
|
|
8
|
+
const index = require("./Layout/index.cjs.js");
|
|
9
|
+
const index$1 = require("./Tabs/index.cjs.js");
|
|
10
|
+
const Alert = require("./Alert/Alert.cjs.js");
|
|
11
|
+
const Avatar = require("./Avatar/Avatar.cjs.js");
|
|
12
|
+
const Badge = require("./Badge/Badge.cjs.js");
|
|
13
|
+
const types = require("./Badge/types.cjs.js");
|
|
14
|
+
const Breadcrumbs = require("./Breadcrumbs/Breadcrumbs.cjs.js");
|
|
15
|
+
const index$2 = require("./Checkbox/index.cjs.js");
|
|
16
|
+
const Divider = require("./Divider/Divider.cjs.js");
|
|
17
|
+
const Drawer = require("./Drawer/Drawer.cjs.js");
|
|
18
|
+
const Dropdown = require("./Dropdown/Dropdown.cjs.js");
|
|
19
|
+
const TextField = require("./TextField/TextField.cjs.js");
|
|
20
|
+
const Image = require("./Image/Image.cjs.js");
|
|
21
|
+
const Loader = require("./Loader/Loader.cjs.js");
|
|
22
|
+
const InputNumber = require("./InputNumber/InputNumber.cjs.js");
|
|
23
|
+
const Select = require("./Select/Select.cjs.js");
|
|
24
|
+
const Modal = require("./Modal/Modal.cjs.js");
|
|
25
|
+
const NotificationInstance = require("./Notification/NotificationInstance.cjs.js");
|
|
26
|
+
const types$1 = require("./Notification/types.cjs.js");
|
|
27
|
+
const Progress = require("./Progress/Progress.cjs.js");
|
|
28
|
+
const index$3 = require("./RadioButton/index.cjs.js");
|
|
29
|
+
const Switch = require("./Switch/Switch.cjs.js");
|
|
30
|
+
const Tag = require("./Tag/Tag.cjs.js");
|
|
31
|
+
const Textarea = require("./Textarea/Textarea.cjs.js");
|
|
32
|
+
const Tooltip = require("./Tooltip/Tooltip.cjs.js");
|
|
33
|
+
const Menu = require("./Menu/Menu.cjs.js");
|
|
34
|
+
const EmptyState = require("./EmptyState/EmptyState.cjs.js");
|
|
35
|
+
const Pagination = require("./Pagination/Pagination.cjs.js");
|
|
36
|
+
const index$4 = require("./Accordion/index.cjs.js");
|
|
37
|
+
const index$5 = require("./message/index.cjs.js");
|
|
38
|
+
const index$6 = require("./Form/index.cjs.js");
|
|
39
|
+
const Calendar = require("./Calendar/Calendar.cjs.js");
|
|
40
|
+
const InputDate = require("./InputDate/InputDate.cjs.js");
|
|
41
|
+
const Slider = require("./Slider/Slider.cjs.js");
|
|
42
|
+
const index$7 = require("./Skeleton/index.cjs.js");
|
|
43
|
+
const Spoiler = require("./Spoiler/Spoiler.cjs.js");
|
|
44
|
+
const Highlight = require("./Highlight/Highlight.cjs.js");
|
|
45
|
+
const LoadingOverlay = require("./LoadingOverlay/LoadingOverlay.cjs.js");
|
|
46
|
+
const index$8 = require("./ColorPicker/index.cjs.js");
|
|
47
|
+
const RichTextEditor = require("./RichTextEditor/RichTextEditor.cjs.js");
|
|
48
|
+
exports.Title = Title;
|
|
49
|
+
exports.Text = Text;
|
|
50
|
+
exports.Button = Button;
|
|
51
|
+
exports.Card = Card;
|
|
52
|
+
exports.Flex = Flex;
|
|
53
|
+
exports.Layout = index.Layout;
|
|
54
|
+
exports.Tabs = index$1;
|
|
55
|
+
exports.Alert = Alert;
|
|
56
|
+
exports.Avatar = Avatar;
|
|
57
|
+
exports.Badge = Badge;
|
|
58
|
+
exports.BADGE_COLOR = types.BADGE_COLOR;
|
|
59
|
+
exports.Breadcrumbs = Breadcrumbs;
|
|
60
|
+
exports.Checkbox = index$2.Checkbox;
|
|
61
|
+
exports.Divider = Divider;
|
|
62
|
+
exports.Drawer = Drawer;
|
|
63
|
+
exports.Dropdown = Dropdown;
|
|
64
|
+
exports.TextField = TextField;
|
|
65
|
+
exports.Image = Image;
|
|
66
|
+
exports.Loader = Loader;
|
|
67
|
+
exports.InputNumber = InputNumber;
|
|
68
|
+
exports.Select = Select;
|
|
69
|
+
exports.Modal = Modal;
|
|
70
|
+
exports.NotificationInstance = NotificationInstance.NotificationInstance;
|
|
71
|
+
exports.notifications = NotificationInstance.notifications;
|
|
72
|
+
exports.NOTIFICATION_STATUSES = types$1.NOTIFICATION_STATUSES;
|
|
73
|
+
exports.Progress = Progress;
|
|
74
|
+
exports.RadioButton = index$3.RadioButton;
|
|
75
|
+
exports.Switch = Switch;
|
|
76
|
+
exports.Tag = Tag;
|
|
77
|
+
exports.Textarea = Textarea;
|
|
78
|
+
exports.Tooltip = Tooltip;
|
|
79
|
+
exports.Menu = Menu;
|
|
80
|
+
exports.EmptyState = EmptyState;
|
|
81
|
+
exports.Pagination = Pagination;
|
|
82
|
+
exports.Accordion = index$4.Accordion;
|
|
83
|
+
exports.message = index$5.message;
|
|
84
|
+
exports.Form = index$6.Form;
|
|
85
|
+
exports.Calendar = Calendar;
|
|
86
|
+
exports.InputDate = InputDate;
|
|
87
|
+
exports.Slider = Slider;
|
|
88
|
+
exports.Skeleton = index$7.Skeleton;
|
|
89
|
+
exports.Spoiler = Spoiler;
|
|
90
|
+
exports.Highlight = Highlight;
|
|
91
|
+
exports.LoadingOverlay = LoadingOverlay;
|
|
92
|
+
exports.ColorPicker = index$8.ColorPicker;
|
|
93
|
+
exports.RichTextEditor = RichTextEditor;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,65 @@
|
|
|
1
|
-
export {}
|
|
1
|
+
export { Title } from './typography/Title';
|
|
2
|
+
export type { ITitleProps, TTitleType, TTitleSize } from './typography/Title';
|
|
3
|
+
export { Text } from './typography/Text';
|
|
4
|
+
export type { ITextProps, TTextType, TTextSize } from './typography/Text';
|
|
5
|
+
export { Button } from './Button';
|
|
6
|
+
export type { IButtonProps, TButtonView } from './Button';
|
|
7
|
+
export { Card } from './Card';
|
|
8
|
+
export type { ICardProps } from './Card';
|
|
9
|
+
export { Flex } from './Flex';
|
|
10
|
+
export type { IFlexProps } from './Flex';
|
|
11
|
+
export { Layout } from './Layout';
|
|
12
|
+
export type { ILayoutProps, ILayoutSidebarProps, ILayoutHeaderProps } from './Layout';
|
|
13
|
+
export { default as Tabs } from './Tabs';
|
|
14
|
+
export { Alert } from './Alert';
|
|
15
|
+
export type { IAlertProps } from './Alert';
|
|
16
|
+
export { Avatar } from './Avatar';
|
|
17
|
+
export type { IAvatarProps } from './Avatar';
|
|
18
|
+
export { Badge, BADGE_COLOR } from './Badge';
|
|
19
|
+
export type { TBadgeColor, IBadgeProps } from './Badge';
|
|
20
|
+
export { Breadcrumbs } from './Breadcrumbs';
|
|
21
|
+
export type { IBreadcrumbItemProps, IBreadcrumbItemDefault, IBreadcrumbsProps, TBreadcrumbPropGetItemIcon, TBreadcrumbPropGetItemOnClick, TBreadcrumbsPropOnItemClick, TBreadcrumbPropGetItemHref, TBreadcrumbPropGetItemLabel, TBreadcrumbsPropGetItemClassname } from './Breadcrumbs';
|
|
22
|
+
export { Checkbox } from './Checkbox';
|
|
23
|
+
export type { ICheckboxGroupProps, ICheckboxProps, TCheckboxGroupPropGetItemKey, TCheckboxGroupPropGetItemValue, TCheckboxGroupPropGetItemLabel, ICheckboxGroupDefaultItem, TCheckboxGroupPropGetItemDisabled } from './Checkbox';
|
|
24
|
+
export { Divider } from './Divider';
|
|
25
|
+
export type { IDividerProps } from './Divider';
|
|
26
|
+
export { Drawer } from './Drawer';
|
|
27
|
+
export type { IDrawerProps } from './Drawer';
|
|
28
|
+
export { Dropdown } from './Dropdown';
|
|
29
|
+
export type { IDropdownMappersItem, IDropdownProps, TDropdownListProps, TDropdownGetItemKey, TDropdownGetItemDisabled, IDropdownDefaultItem, TDropdownDirection, TDropdownOnClick, TDropdownPortalProps, TDropdownSortGroup, TDropdownItemProps, TDropdownGetItemLeftContent, TDropdownGetItemGroupId, TDropdownGetItemLabel, TDropdownGetItemOnClick } from './Dropdown';
|
|
30
|
+
export { TextField, type ITextFieldProps } from './TextField';
|
|
31
|
+
export { Image } from './Image';
|
|
32
|
+
export type { IImageProps } from './Image';
|
|
33
|
+
export { Loader } from './Loader';
|
|
34
|
+
export type { ILoaderProps } from './Loader';
|
|
35
|
+
export { InputNumber } from './InputNumber';
|
|
36
|
+
export type { IInputNumberProps } from './InputNumber';
|
|
37
|
+
export { Select } from './Select';
|
|
38
|
+
export type { ISelectDefaultItem, TSelectGetItemValue, TSelectSingleValue, TSelectGetItemLabel, TMultiSelectItemOnChange, TMultiSelectProps, TSelectGetItemDisabled, TSingleSelectProps, TSelectProps, TMultiSelectValueOnChange, TSingleSelectValueOnChange, TSingleSelectItemOnChange } from './Select';
|
|
39
|
+
export { Modal } from './Modal';
|
|
40
|
+
export type { IModalProps } from './Modal';
|
|
41
|
+
export { NotificationInstance, notifications, NOTIFICATION_STATUSES, type INotificationParams, type INotificationsContext } from './Notification';
|
|
42
|
+
export { Progress } from './Progress';
|
|
43
|
+
export type { IProgressProps } from './Progress';
|
|
44
|
+
export { RadioButton, type IRadioGroupDefaultItem, type TRadioGroupPropGetItemValue, type IRadioButtonProps, type TRadioGroupPropGetItemDisabled, type TRadioGroupPropGetItemLabel, type TRadioGroupPropGetItemKey, type IRadioGroupProps } from './RadioButton';
|
|
45
|
+
export { Switch } from './Switch';
|
|
46
|
+
export type { ISwitchProps } from './Switch';
|
|
47
|
+
export { Tag, type ITagProps } from './Tag';
|
|
48
|
+
export { Textarea, type ITextareaProps } from './Textarea';
|
|
49
|
+
export type { TQuenSize } from './types/size';
|
|
50
|
+
export { Tooltip, type ITooltipProps } from './Tooltip';
|
|
51
|
+
export { Menu, type IMenuProps, type TMenuPropGetItemIcon, type IMenuDefaultItem, type TMenuPropGetItemKey, type TMenuPropGetItemDisabled, type TMenuPropGetItemOnClick, type TMenuPropGetItemLabel, type TMenuPropGetItemClassName } from './Menu';
|
|
52
|
+
export { EmptyState, type IEmptyStateProps } from './EmptyState';
|
|
53
|
+
export { Pagination, type IPaginationProps } from './Pagination';
|
|
54
|
+
export { Accordion, type IAccordionDefaultItem, type TAccordionGetItemDisabled, type TAccordionGetItemStyle, type TAccordionGetItemKey, type TAccordionGetItemShowArrow, type TAccordionVariants, type TAccordionGetItemLabel, type TAccordionGetItemClassName, type IAccordionGroupProps, type IAccordionGroupApi, type IAccordionProps, type TAccordionGetItemChildren, type TAccordionGetItemLeftContent, type TAccordionGetItemRightContent } from './Accordion';
|
|
55
|
+
export { message, type IMessageConfig } from './message';
|
|
56
|
+
export { Form, type IFormProps, type IFormFieldProps, type IFormFieldArrayProps, type IUseFormOptions, type IFormValidationRule, type IFormFieldError, type IFormInstance, type TFormFieldValidate, type TFormOnValueChange } from './Form';
|
|
57
|
+
export { Calendar, type ICalendarLocale, type TCalendarProps, type TCalendarRenderDay, type TGetDayProps } from './Calendar';
|
|
58
|
+
export { InputDate, type TInputDateProps } from './InputDate';
|
|
59
|
+
export { Slider, type ISliderProps } from './Slider';
|
|
60
|
+
export { Skeleton, type ISkeletonProps, type ISkeletonLayoutProps, type ISkeletonLayoutSchema, type ISkeletonAvatarProps, type ISkeletonButtonProps, type TSkeletonListProps } from './Skeleton';
|
|
61
|
+
export { Spoiler, type ISpoilerProps } from './Spoiler';
|
|
62
|
+
export { Highlight, type IHighlightProps } from './Highlight';
|
|
63
|
+
export { LoadingOverlay, type ILoadingOverlayProps } from './LoadingOverlay';
|
|
64
|
+
export { ColorPicker, type IColorPickerProps, type TRgbColor, type THslColor, type TColorValue, type TColorFormat } from './ColorPicker';
|
|
65
|
+
export { RichTextEditor, type IRichTextEditorProps, type IRichTextEditorPlugin, type IRichTextEditorHandle, type IRichTextEditorPluginActionParams, type IRichTextEditorPluginContext } from './RichTextEditor';
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { default as default2 } from "./typography/Title/Title.es.js";
|
|
2
|
+
import { default as default3 } from "./typography/Text/Text.es.js";
|
|
3
|
+
import { default as default4 } from "./Button/Button.es.js";
|
|
4
|
+
import { default as default5 } from "./Card/Card.es.js";
|
|
5
|
+
import { default as default6 } from "./Flex/Flex.es.js";
|
|
6
|
+
import { Layout } from "./Layout/index.es.js";
|
|
7
|
+
import { default as default7 } from "./Tabs/index.es.js";
|
|
8
|
+
import { default as default8 } from "./Alert/Alert.es.js";
|
|
9
|
+
import { default as default9 } from "./Avatar/Avatar.es.js";
|
|
10
|
+
import { default as default10 } from "./Badge/Badge.es.js";
|
|
11
|
+
import { BADGE_COLOR } from "./Badge/types.es.js";
|
|
12
|
+
import { default as default11 } from "./Breadcrumbs/Breadcrumbs.es.js";
|
|
13
|
+
import { Checkbox } from "./Checkbox/index.es.js";
|
|
14
|
+
import { default as default12 } from "./Divider/Divider.es.js";
|
|
15
|
+
import { default as default13 } from "./Drawer/Drawer.es.js";
|
|
16
|
+
import { default as default14 } from "./Dropdown/Dropdown.es.js";
|
|
17
|
+
import { default as default15 } from "./TextField/TextField.es.js";
|
|
18
|
+
import { default as default16 } from "./Image/Image.es.js";
|
|
19
|
+
import { default as default17 } from "./Loader/Loader.es.js";
|
|
20
|
+
import { default as default18 } from "./InputNumber/InputNumber.es.js";
|
|
21
|
+
import { default as default19 } from "./Select/Select.es.js";
|
|
22
|
+
import { default as default20 } from "./Modal/Modal.es.js";
|
|
23
|
+
import { NotificationInstance, notifications } from "./Notification/NotificationInstance.es.js";
|
|
24
|
+
import { NOTIFICATION_STATUSES } from "./Notification/types.es.js";
|
|
25
|
+
import { default as default21 } from "./Progress/Progress.es.js";
|
|
26
|
+
import { RadioButton } from "./RadioButton/index.es.js";
|
|
27
|
+
import { default as default22 } from "./Switch/Switch.es.js";
|
|
28
|
+
import { default as default23 } from "./Tag/Tag.es.js";
|
|
29
|
+
import { default as default24 } from "./Textarea/Textarea.es.js";
|
|
30
|
+
import { default as default25 } from "./Tooltip/Tooltip.es.js";
|
|
31
|
+
import { default as default26 } from "./Menu/Menu.es.js";
|
|
32
|
+
import { default as default27 } from "./EmptyState/EmptyState.es.js";
|
|
33
|
+
import { default as default28 } from "./Pagination/Pagination.es.js";
|
|
34
|
+
import { Accordion } from "./Accordion/index.es.js";
|
|
35
|
+
import { message } from "./message/index.es.js";
|
|
36
|
+
import { Form } from "./Form/index.es.js";
|
|
37
|
+
import { default as default29 } from "./Calendar/Calendar.es.js";
|
|
38
|
+
import { default as default30 } from "./InputDate/InputDate.es.js";
|
|
39
|
+
import { default as default31 } from "./Slider/Slider.es.js";
|
|
40
|
+
import { Skeleton } from "./Skeleton/index.es.js";
|
|
41
|
+
import { default as default32 } from "./Spoiler/Spoiler.es.js";
|
|
42
|
+
import { default as default33 } from "./Highlight/Highlight.es.js";
|
|
43
|
+
import { default as default34 } from "./LoadingOverlay/LoadingOverlay.es.js";
|
|
44
|
+
import { ColorPicker } from "./ColorPicker/index.es.js";
|
|
45
|
+
import { default as default35 } from "./RichTextEditor/RichTextEditor.es.js";
|
|
46
|
+
export {
|
|
47
|
+
Accordion,
|
|
48
|
+
default8 as Alert,
|
|
49
|
+
default9 as Avatar,
|
|
50
|
+
BADGE_COLOR,
|
|
51
|
+
default10 as Badge,
|
|
52
|
+
default11 as Breadcrumbs,
|
|
53
|
+
default4 as Button,
|
|
54
|
+
default29 as Calendar,
|
|
55
|
+
default5 as Card,
|
|
56
|
+
Checkbox,
|
|
57
|
+
ColorPicker,
|
|
58
|
+
default12 as Divider,
|
|
59
|
+
default13 as Drawer,
|
|
60
|
+
default14 as Dropdown,
|
|
61
|
+
default27 as EmptyState,
|
|
62
|
+
default6 as Flex,
|
|
63
|
+
Form,
|
|
64
|
+
default33 as Highlight,
|
|
65
|
+
default16 as Image,
|
|
66
|
+
default30 as InputDate,
|
|
67
|
+
default18 as InputNumber,
|
|
68
|
+
Layout,
|
|
69
|
+
default17 as Loader,
|
|
70
|
+
default34 as LoadingOverlay,
|
|
71
|
+
default26 as Menu,
|
|
72
|
+
default20 as Modal,
|
|
73
|
+
NOTIFICATION_STATUSES,
|
|
74
|
+
NotificationInstance,
|
|
75
|
+
default28 as Pagination,
|
|
76
|
+
default21 as Progress,
|
|
77
|
+
RadioButton,
|
|
78
|
+
default35 as RichTextEditor,
|
|
79
|
+
default19 as Select,
|
|
80
|
+
Skeleton,
|
|
81
|
+
default31 as Slider,
|
|
82
|
+
default32 as Spoiler,
|
|
83
|
+
default22 as Switch,
|
|
84
|
+
default7 as Tabs,
|
|
85
|
+
default23 as Tag,
|
|
86
|
+
default3 as Text,
|
|
87
|
+
default15 as TextField,
|
|
88
|
+
default24 as Textarea,
|
|
89
|
+
default2 as Title,
|
|
90
|
+
default25 as Tooltip,
|
|
91
|
+
message,
|
|
92
|
+
notifications
|
|
93
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quen-ui/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://quen-ui.github.io/quen-ui/",
|
|
7
7
|
"repository": {
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"react-textarea-autosize": "^8.5.9",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
42
|
"react-transition-state": "^2.3.1",
|
|
43
|
-
"styled-components": "^6.1.19"
|
|
43
|
+
"styled-components": "^6.1.19",
|
|
44
|
+
"@tabler/icons-react": "^3.36.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/chroma-js": "^3.1.2",
|