@quen-ui/components 1.0.0 → 1.1.0
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/Button/styles.cjs.js +6 -10
- package/dist/Button/styles.es.js +6 -10
- package/dist/Calendar/Calendar.cjs.js +5 -3
- package/dist/Calendar/Calendar.es.js +5 -3
- package/dist/Calendar/styles.cjs.js +0 -1
- package/dist/Calendar/styles.es.js +0 -1
- package/dist/Card/Card.cjs.js +8 -4
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/Card.es.js +8 -4
- package/dist/Card/styles.cjs.js +9 -3
- package/dist/Card/styles.d.ts +3 -1
- package/dist/Card/styles.es.js +9 -3
- package/dist/Card/types.d.ts +2 -0
- package/dist/Drawer/Drawer.cjs.js +2 -2
- package/dist/Dropdown/Dropdown.cjs.js +2 -2
- package/dist/Form/Form.cjs.js +1 -1
- package/dist/Form/Form.es.js +1 -1
- package/dist/Image/styles.cjs.js +3 -1
- package/dist/Image/styles.es.js +3 -1
- package/dist/Layout/Footer.cjs.js +9 -0
- package/dist/Layout/Footer.d.ts +1 -2
- package/dist/Layout/Footer.es.js +9 -0
- package/dist/Layout/Header.cjs.js +12 -4
- package/dist/Layout/Header.es.js +12 -4
- package/dist/Layout/Layout.cjs.js +8 -3
- package/dist/Layout/Layout.d.ts +1 -1
- package/dist/Layout/Layout.es.js +8 -3
- package/dist/Layout/Sidebar.cjs.js +2 -1
- package/dist/Layout/Sidebar.es.js +2 -1
- package/dist/Layout/styles.cjs.js +6 -4
- package/dist/Layout/styles.d.ts +2 -0
- package/dist/Layout/styles.es.js +6 -4
- package/dist/Layout/types.d.ts +6 -0
- package/dist/Menu/MenuItem.cjs.js +9 -1
- package/dist/Menu/MenuItem.es.js +9 -1
- package/dist/Menu/styles.cjs.js +3 -1
- package/dist/Menu/styles.es.js +3 -1
- package/dist/Menu/types.d.ts +4 -1
- package/dist/Modal/Modal.cjs.js +4 -4
- package/dist/Modal/Modal.es.js +2 -2
- package/dist/Modal/styles.cjs.js +3 -1
- package/dist/Modal/styles.es.js +3 -1
- 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/dist/typography/Text/Text.cjs.js +2 -2
- package/dist/typography/Text/Text.es.js +2 -2
- package/dist/typography/Text/types.d.ts +1 -1
- 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
package/dist/Layout/types.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface ILayoutContextProps {
|
|
|
11
11
|
toggleSidebar: () => void;
|
|
12
12
|
/** Toggles desktop sidebar collapse state */
|
|
13
13
|
toggleSliderCollapse: () => void;
|
|
14
|
+
setIsFooter: (isFooter: boolean) => void;
|
|
15
|
+
isFooter: boolean;
|
|
14
16
|
}
|
|
15
17
|
export interface ILayoutHeaderProps {
|
|
16
18
|
/** Custom CSS classes */
|
|
@@ -30,6 +32,10 @@ export interface ILayoutHeaderProps {
|
|
|
30
32
|
export interface ILayoutProps {
|
|
31
33
|
/** Viewport width (px) for mobile/desktop switch */
|
|
32
34
|
breakpoint?: number;
|
|
35
|
+
/** Custom CSS classes */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Inline styles */
|
|
38
|
+
style?: React.CSSProperties;
|
|
33
39
|
}
|
|
34
40
|
export interface ILayoutSidebarProps {
|
|
35
41
|
/** Desktop collapsed state */
|
|
@@ -24,6 +24,7 @@ const MenuItem = ({
|
|
|
24
24
|
const refMenuItem = React.useRef(null);
|
|
25
25
|
const hasChildren = !!item.children?.length;
|
|
26
26
|
const [visible, setVisible] = React.useState(false);
|
|
27
|
+
const { key: _, ...otherProps } = item;
|
|
27
28
|
const handleMouseEnter = () => {
|
|
28
29
|
setVisible(true);
|
|
29
30
|
};
|
|
@@ -42,13 +43,20 @@ const MenuItem = ({
|
|
|
42
43
|
className: helpers.cnMerge(getItemClassName(item), className),
|
|
43
44
|
active: activeKeys?.includes(getItemKey(item)),
|
|
44
45
|
onClick: getItemOnClick(item),
|
|
46
|
+
as: item.as,
|
|
47
|
+
...otherProps,
|
|
45
48
|
children: [
|
|
46
49
|
getItemLeftContent(item),
|
|
47
50
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
48
51
|
Text,
|
|
49
52
|
{
|
|
50
53
|
size,
|
|
51
|
-
className: helpers.cnMerge(
|
|
54
|
+
className: helpers.cnMerge(
|
|
55
|
+
{
|
|
56
|
+
"quen-ui--menu__item_group": hasChildren && direction === "vertical"
|
|
57
|
+
},
|
|
58
|
+
"quen-ui--menu__item_label"
|
|
59
|
+
),
|
|
52
60
|
children: getItemLabel(item)
|
|
53
61
|
}
|
|
54
62
|
),
|
package/dist/Menu/MenuItem.es.js
CHANGED
|
@@ -23,6 +23,7 @@ const MenuItem = ({
|
|
|
23
23
|
const refMenuItem = useRef(null);
|
|
24
24
|
const hasChildren = !!item.children?.length;
|
|
25
25
|
const [visible, setVisible] = useState(false);
|
|
26
|
+
const { key: _, ...otherProps } = item;
|
|
26
27
|
const handleMouseEnter = () => {
|
|
27
28
|
setVisible(true);
|
|
28
29
|
};
|
|
@@ -41,13 +42,20 @@ const MenuItem = ({
|
|
|
41
42
|
className: cnMerge(getItemClassName(item), className),
|
|
42
43
|
active: activeKeys?.includes(getItemKey(item)),
|
|
43
44
|
onClick: getItemOnClick(item),
|
|
45
|
+
as: item.as,
|
|
46
|
+
...otherProps,
|
|
44
47
|
children: [
|
|
45
48
|
getItemLeftContent(item),
|
|
46
49
|
/* @__PURE__ */ jsx(
|
|
47
50
|
Text,
|
|
48
51
|
{
|
|
49
52
|
size,
|
|
50
|
-
className: cnMerge(
|
|
53
|
+
className: cnMerge(
|
|
54
|
+
{
|
|
55
|
+
"quen-ui--menu__item_group": hasChildren && direction === "vertical"
|
|
56
|
+
},
|
|
57
|
+
"quen-ui--menu__item_label"
|
|
58
|
+
),
|
|
51
59
|
children: getItemLabel(item)
|
|
52
60
|
}
|
|
53
61
|
),
|
package/dist/Menu/styles.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const styled = require("styled-components");
|
|
4
4
|
const Flex = require("../Flex/Flex.cjs.js");
|
|
5
5
|
const MenuItemStyled = styled.button.withConfig({
|
|
6
|
-
shouldForwardProp: (prop) => !["disabled", "active", "hover"].includes(prop)
|
|
6
|
+
shouldForwardProp: (prop) => !["disabled", "active", "hover", "leftContent", "label"].includes(prop)
|
|
7
7
|
}).attrs((props) => ({
|
|
8
8
|
className: props.active ? "quen-ui__menu-item--active" : "quen-ui__menu-item"
|
|
9
9
|
}))`
|
|
@@ -18,6 +18,7 @@ const MenuItemStyled = styled.button.withConfig({
|
|
|
18
18
|
transition: background 0.2s ease;
|
|
19
19
|
background: transparent;
|
|
20
20
|
justify-content: flex-start;
|
|
21
|
+
text-decoration: none;
|
|
21
22
|
|
|
22
23
|
color: ${({ theme, disabled }) => disabled ? theme.components.Menu.disabledColor : theme.components.Menu.color};
|
|
23
24
|
|
|
@@ -44,6 +45,7 @@ const MenuItemStyled = styled.button.withConfig({
|
|
|
44
45
|
|
|
45
46
|
.quen-ui--menu__item_label {
|
|
46
47
|
width: 100%;
|
|
48
|
+
text-align: left;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
&:hover {
|
package/dist/Menu/styles.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import Flex from "../Flex/Flex.es.js";
|
|
3
3
|
const MenuItemStyled = styled.button.withConfig({
|
|
4
|
-
shouldForwardProp: (prop) => !["disabled", "active", "hover"].includes(prop)
|
|
4
|
+
shouldForwardProp: (prop) => !["disabled", "active", "hover", "leftContent", "label"].includes(prop)
|
|
5
5
|
}).attrs((props) => ({
|
|
6
6
|
className: props.active ? "quen-ui__menu-item--active" : "quen-ui__menu-item"
|
|
7
7
|
}))`
|
|
@@ -16,6 +16,7 @@ const MenuItemStyled = styled.button.withConfig({
|
|
|
16
16
|
transition: background 0.2s ease;
|
|
17
17
|
background: transparent;
|
|
18
18
|
justify-content: flex-start;
|
|
19
|
+
text-decoration: none;
|
|
19
20
|
|
|
20
21
|
color: ${({ theme, disabled }) => disabled ? theme.components.Menu.disabledColor : theme.components.Menu.color};
|
|
21
22
|
|
|
@@ -42,6 +43,7 @@ const MenuItemStyled = styled.button.withConfig({
|
|
|
42
43
|
|
|
43
44
|
.quen-ui--menu__item_label {
|
|
44
45
|
width: 100%;
|
|
46
|
+
text-align: left;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
&:hover {
|
package/dist/Menu/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, JSX } from 'react';
|
|
2
2
|
import { TQuenSize } from '../types/size';
|
|
3
3
|
export interface IMenuDefaultItem {
|
|
4
4
|
/** Unique item identifier */
|
|
@@ -15,6 +15,9 @@ export interface IMenuDefaultItem {
|
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
/** Custom CSS classes */
|
|
17
17
|
className?: string;
|
|
18
|
+
/** Renders as custom element (e.g., "a" for links) */
|
|
19
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
20
|
+
[key: string]: any;
|
|
18
21
|
}
|
|
19
22
|
export type TMenuPropGetItemKey<Item> = (item: Item) => string;
|
|
20
23
|
export type TMenuPropGetItemIcon<Item> = (item: Item) => React.ReactNode;
|
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");
|
|
@@ -25,7 +25,6 @@ const Modal = ({
|
|
|
25
25
|
width,
|
|
26
26
|
...props
|
|
27
27
|
}) => {
|
|
28
|
-
console.log(open);
|
|
29
28
|
const [state, toggle] = reactTransitionState.useTransitionState({
|
|
30
29
|
timeout: 500,
|
|
31
30
|
unmountOnExit: true,
|
|
@@ -51,15 +50,16 @@ const Modal = ({
|
|
|
51
50
|
};
|
|
52
51
|
}, []);
|
|
53
52
|
React.useEffect(() => {
|
|
53
|
+
const overflow = document.body.style.overflow;
|
|
54
54
|
if (state.isEnter) {
|
|
55
55
|
document.body.style.overflow = "hidden";
|
|
56
56
|
}
|
|
57
57
|
return () => {
|
|
58
|
-
document.body.style.overflow =
|
|
58
|
+
document.body.style.overflow = overflow;
|
|
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 }),
|
package/dist/Modal/Modal.es.js
CHANGED
|
@@ -24,7 +24,6 @@ const Modal = ({
|
|
|
24
24
|
width,
|
|
25
25
|
...props
|
|
26
26
|
}) => {
|
|
27
|
-
console.log(open);
|
|
28
27
|
const [state, toggle] = useTransitionState({
|
|
29
28
|
timeout: 500,
|
|
30
29
|
unmountOnExit: true,
|
|
@@ -50,11 +49,12 @@ const Modal = ({
|
|
|
50
49
|
};
|
|
51
50
|
}, []);
|
|
52
51
|
useEffect(() => {
|
|
52
|
+
const overflow = document.body.style.overflow;
|
|
53
53
|
if (state.isEnter) {
|
|
54
54
|
document.body.style.overflow = "hidden";
|
|
55
55
|
}
|
|
56
56
|
return () => {
|
|
57
|
-
document.body.style.overflow =
|
|
57
|
+
document.body.style.overflow = overflow;
|
|
58
58
|
};
|
|
59
59
|
}, [state]);
|
|
60
60
|
if (state.isEnter && container) {
|
package/dist/Modal/styles.cjs.js
CHANGED
|
@@ -58,7 +58,9 @@ const ModalStyled = styled.div.withConfig({
|
|
|
58
58
|
}
|
|
59
59
|
`};
|
|
60
60
|
`;
|
|
61
|
-
const ModalContentStyled = styled.div
|
|
61
|
+
const ModalContentStyled = styled.div.withConfig({
|
|
62
|
+
shouldForwardProp: (prop) => !["scrollable"].includes(prop)
|
|
63
|
+
})`
|
|
62
64
|
${({ scrollable }) => scrollable && styled.css`
|
|
63
65
|
overflow-y: auto;
|
|
64
66
|
max-height: 60vh;
|
package/dist/Modal/styles.es.js
CHANGED
|
@@ -56,7 +56,9 @@ const ModalStyled = styled.div.withConfig({
|
|
|
56
56
|
}
|
|
57
57
|
`};
|
|
58
58
|
`;
|
|
59
|
-
const ModalContentStyled = styled.div
|
|
59
|
+
const ModalContentStyled = styled.div.withConfig({
|
|
60
|
+
shouldForwardProp: (prop) => !["scrollable"].includes(prop)
|
|
61
|
+
})`
|
|
60
62
|
${({ scrollable }) => scrollable && css`
|
|
61
63
|
overflow-y: auto;
|
|
62
64
|
max-height: 60vh;
|
|
@@ -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;
|