@use-kona/editor 0.1.3 → 0.1.4
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/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/plugins/CodeBlockPlugin/index.d.ts +1 -0
- package/dist/plugins/FloatingMenuPlugin/FloatingMenu.js +15 -28
- package/dist/plugins/FloatingMenuPlugin/types.d.ts +4 -1
- package/dist/plugins/HighlightsPlugin/HighlightsPlugin.d.ts +1 -0
- package/dist/plugins/HighlightsPlugin/HighlightsPlugin.js +3 -0
- package/dist/plugins/index.d.ts +1 -1
- package/package.json +12 -11
- package/src/index.ts +0 -1
- package/src/plugins/CodeBlockPlugin/index.ts +1 -0
- package/src/plugins/FloatingMenuPlugin/FloatingMenu.tsx +13 -22
- package/src/plugins/FloatingMenuPlugin/types.ts +4 -1
- package/src/plugins/HighlightsPlugin/HighlightsPlugin.tsx +4 -0
- package/src/plugins/index.ts +1 -1
- package/dist/examples/Backdrop.d.ts +0 -5
- package/dist/examples/Backdrop.js +0 -13
- package/dist/examples/Backdrop.module.js +0 -5
- package/dist/examples/Backdrop_module.css +0 -6
- package/dist/examples/CodeBlock.d.ts +0 -12
- package/dist/examples/CodeBlock.js +0 -163
- package/dist/examples/CodeBlock.module.js +0 -9
- package/dist/examples/CodeBlock_module.css +0 -66
- package/dist/examples/DragBlock.d.ts +0 -11
- package/dist/examples/DragBlock.js +0 -38
- package/dist/examples/DragBlock.module.js +0 -9
- package/dist/examples/DragBlock_module.css +0 -43
- package/dist/examples/DragHandler.d.ts +0 -2
- package/dist/examples/DragHandler.js +0 -44
- package/dist/examples/DragHandler.module.js +0 -8
- package/dist/examples/DragHandler_module.css +0 -18
- package/dist/examples/Editor.d.ts +0 -8
- package/dist/examples/Editor.js +0 -44
- package/dist/examples/Editor.module.js +0 -12
- package/dist/examples/Editor_module.css +0 -127
- package/dist/examples/Emoji.d.ts +0 -5
- package/dist/examples/Emoji.js +0 -8
- package/dist/examples/EmojiSelector.d.ts +0 -16
- package/dist/examples/EmojiSelector.js +0 -91
- package/dist/examples/EmojiSelector.module.js +0 -7
- package/dist/examples/EmojiSelector_module.css +0 -36
- package/dist/examples/FloatingMenu.d.ts +0 -19
- package/dist/examples/FloatingMenu.js +0 -244
- package/dist/examples/FloatingMenu.module.js +0 -9
- package/dist/examples/FloatingMenu_module.css +0 -75
- package/dist/examples/LinksHint.d.ts +0 -7
- package/dist/examples/LinksHint.js +0 -50
- package/dist/examples/LinksHint.module.js +0 -6
- package/dist/examples/LinksHint_module.css +0 -28
- package/dist/examples/Menu.d.ts +0 -6
- package/dist/examples/Menu.js +0 -94
- package/dist/examples/Menu.module.js +0 -8
- package/dist/examples/Menu_module.css +0 -38
- package/dist/examples/colors.d.ts +0 -10
- package/dist/examples/colors.js +0 -12
- package/dist/examples/getCommands.d.ts +0 -2
- package/dist/examples/getCommands.js +0 -100
- package/dist/examples/getPlugins.d.ts +0 -2
- package/dist/examples/getPlugins.js +0 -144
- package/dist/examples/getShortcuts.d.ts +0 -2
- package/dist/examples/getShortcuts.js +0 -90
- package/dist/examples/icons/bold.d.ts +0 -2
- package/dist/examples/icons/bold.js +0 -27
- package/dist/examples/icons/check.d.ts +0 -2
- package/dist/examples/icons/check.js +0 -24
- package/dist/examples/icons/chevronRight.d.ts +0 -2
- package/dist/examples/icons/chevronRight.js +0 -24
- package/dist/examples/icons/code.d.ts +0 -2
- package/dist/examples/icons/code.js +0 -30
- package/dist/examples/icons/color.d.ts +0 -2
- package/dist/examples/icons/color.js +0 -30
- package/dist/examples/icons/copy.d.ts +0 -2
- package/dist/examples/icons/copy.js +0 -27
- package/dist/examples/icons/cross.d.ts +0 -2
- package/dist/examples/icons/cross.js +0 -27
- package/dist/examples/icons/drag.d.ts +0 -2
- package/dist/examples/icons/drag.js +0 -39
- package/dist/examples/icons/edit.d.ts +0 -2
- package/dist/examples/icons/edit.js +0 -30
- package/dist/examples/icons/external.d.ts +0 -2
- package/dist/examples/icons/external.js +0 -30
- package/dist/examples/icons/heading1.d.ts +0 -2
- package/dist/examples/icons/heading1.js +0 -45
- package/dist/examples/icons/heading2.d.ts +0 -2
- package/dist/examples/icons/heading2.js +0 -45
- package/dist/examples/icons/heading3.d.ts +0 -2
- package/dist/examples/icons/heading3.js +0 -48
- package/dist/examples/icons/italic.d.ts +0 -2
- package/dist/examples/icons/italic.js +0 -30
- package/dist/examples/icons/link.d.ts +0 -2
- package/dist/examples/icons/link.js +0 -30
- package/dist/examples/icons/ol.d.ts +0 -2
- package/dist/examples/icons/ol.js +0 -36
- package/dist/examples/icons/strikethrough.d.ts +0 -2
- package/dist/examples/icons/strikethrough.js +0 -27
- package/dist/examples/icons/text.d.ts +0 -2
- package/dist/examples/icons/text.js +0 -22
- package/dist/examples/icons/types.d.ts +0 -3
- package/dist/examples/icons/types.js +0 -0
- package/dist/examples/icons/ul.d.ts +0 -2
- package/dist/examples/icons/ul.js +0 -39
- package/dist/examples/icons/underline.d.ts +0 -2
- package/dist/examples/icons/underline.js +0 -27
- package/dist/examples/store.d.ts +0 -9
- package/dist/examples/store.js +0 -7
- package/dist/examples/styles.module.js +0 -11
- package/dist/examples/styles_module.css +0 -78
- package/dist/examples/text.d.ts +0 -3
- package/dist/examples/text.js +0 -65
- package/dist/examples/ui/Button/Button.d.ts +0 -8
- package/dist/examples/ui/Button/Button.js +0 -15
- package/dist/examples/ui/Button/ButtonWrapper.d.ts +0 -4
- package/dist/examples/ui/Button/ButtonWrapper.js +0 -14
- package/dist/examples/ui/Button/index.d.ts +0 -2
- package/dist/examples/ui/Button/index.js +0 -3
- package/dist/examples/ui/Button/styles.module.js +0 -10
- package/dist/examples/ui/Button/styles_module.css +0 -72
- package/dist/examples/ui/Button/types.d.ts +0 -1
- package/dist/examples/ui/Button/types.js +0 -0
- package/dist/examples/ui/Dropdown/Dropdown.d.ts +0 -16
- package/dist/examples/ui/Dropdown/Dropdown.js +0 -75
- package/dist/examples/ui/Dropdown/index.d.ts +0 -1
- package/dist/examples/ui/Dropdown/index.js +0 -2
- package/dist/examples/ui/Menu/Menu.d.ts +0 -41
- package/dist/examples/ui/Menu/Menu.js +0 -404
- package/dist/examples/ui/Menu/MenuDelimiter.d.ts +0 -1
- package/dist/examples/ui/Menu/MenuDelimiter.js +0 -6
- package/dist/examples/ui/Menu/MenuHotkey.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuHotkey.js +0 -12
- package/dist/examples/ui/Menu/MenuIcon.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuIcon.js +0 -12
- package/dist/examples/ui/Menu/MenuItem.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuItem.js +0 -17
- package/dist/examples/ui/Menu/MenuTitle.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuTitle.js +0 -12
- package/dist/examples/ui/Menu/SafeSpace.d.ts +0 -6
- package/dist/examples/ui/Menu/SafeSpace.js +0 -65
- package/dist/examples/ui/Menu/index.d.ts +0 -2
- package/dist/examples/ui/Menu/index.js +0 -2
- package/dist/examples/ui/Menu/styles.module.js +0 -21
- package/dist/examples/ui/Menu/styles_module.css +0 -140
- package/dist/examples/ui/Menu/types.d.ts +0 -16
- package/dist/examples/ui/Menu/types.js +0 -0
- package/dist/examples/ui/useMenuPosition.d.ts +0 -18
- package/dist/examples/ui/useMenuPosition.js +0 -51
- package/dist/examples/ui/useMergeRefs.d.ts +0 -23
- package/dist/examples/ui/useMergeRefs.js +0 -11
- package/src/examples/Backdrop.module.css +0 -8
- package/src/examples/Backdrop.tsx +0 -16
- package/src/examples/CodeBlock.module.css +0 -65
- package/src/examples/CodeBlock.tsx +0 -109
- package/src/examples/DragBlock.module.css +0 -42
- package/src/examples/DragBlock.tsx +0 -57
- package/src/examples/DragHandler.module.css +0 -17
- package/src/examples/DragHandler.tsx +0 -39
- package/src/examples/Editor.module.css +0 -129
- package/src/examples/Editor.tsx +0 -68
- package/src/examples/Emoji.tsx +0 -9
- package/src/examples/EmojiSelector.module.css +0 -35
- package/src/examples/EmojiSelector.tsx +0 -115
- package/src/examples/FloatingMenu.module.css +0 -74
- package/src/examples/FloatingMenu.tsx +0 -278
- package/src/examples/LinksHint.module.css +0 -27
- package/src/examples/LinksHint.tsx +0 -58
- package/src/examples/Menu.module.css +0 -37
- package/src/examples/Menu.tsx +0 -94
- package/src/examples/colors.ts +0 -11
- package/src/examples/getCommands.tsx +0 -92
- package/src/examples/getPlugins.tsx +0 -164
- package/src/examples/getShortcuts.ts +0 -107
- package/src/examples/icons/bold.tsx +0 -20
- package/src/examples/icons/check.tsx +0 -19
- package/src/examples/icons/chevronRight.tsx +0 -19
- package/src/examples/icons/code.tsx +0 -21
- package/src/examples/icons/color.tsx +0 -23
- package/src/examples/icons/copy.tsx +0 -20
- package/src/examples/icons/cross.tsx +0 -20
- package/src/examples/icons/drag.tsx +0 -24
- package/src/examples/icons/edit.tsx +0 -21
- package/src/examples/icons/external.tsx +0 -21
- package/src/examples/icons/heading1.tsx +0 -26
- package/src/examples/icons/heading2.tsx +0 -26
- package/src/examples/icons/heading3.tsx +0 -27
- package/src/examples/icons/italic.tsx +0 -21
- package/src/examples/icons/link.tsx +0 -21
- package/src/examples/icons/ol.tsx +0 -23
- package/src/examples/icons/strikethrough.tsx +0 -20
- package/src/examples/icons/text.tsx +0 -18
- package/src/examples/icons/types.ts +0 -3
- package/src/examples/icons/ul.tsx +0 -24
- package/src/examples/icons/underline.tsx +0 -20
- package/src/examples/store.ts +0 -16
- package/src/examples/styles.module.css +0 -77
- package/src/examples/text.tsx +0 -138
- package/src/examples/ui/Button/Button.tsx +0 -34
- package/src/examples/ui/Button/ButtonWrapper.tsx +0 -22
- package/src/examples/ui/Button/index.ts +0 -2
- package/src/examples/ui/Button/styles.module.css +0 -75
- package/src/examples/ui/Button/types.ts +0 -1
- package/src/examples/ui/Dropdown/Dropdown.tsx +0 -101
- package/src/examples/ui/Dropdown/index.ts +0 -1
- package/src/examples/ui/Menu/Menu.tsx +0 -576
- package/src/examples/ui/Menu/MenuDelimiter.tsx +0 -3
- package/src/examples/ui/Menu/MenuHotkey.tsx +0 -17
- package/src/examples/ui/Menu/MenuIcon.tsx +0 -17
- package/src/examples/ui/Menu/MenuItem.tsx +0 -45
- package/src/examples/ui/Menu/MenuTitle.tsx +0 -17
- package/src/examples/ui/Menu/SafeSpace.tsx +0 -84
- package/src/examples/ui/Menu/index.ts +0 -2
- package/src/examples/ui/Menu/styles.module.css +0 -143
- package/src/examples/ui/Menu/types.ts +0 -18
- package/src/examples/ui/useMenuPosition.ts +0 -72
- package/src/examples/ui/useMergeRefs.ts +0 -39
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const ExternalIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-external-link",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M11 13l9 -9"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M15 4h5v5"
|
|
27
|
-
})
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
export { ExternalIcon };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Heading1Icon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-h-1",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M19 18v-8l-2 2"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M4 6v12"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M12 6v12"
|
|
27
|
-
}),
|
|
28
|
-
/*#__PURE__*/ jsx("path", {
|
|
29
|
-
d: "M11 18h2"
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ jsx("path", {
|
|
32
|
-
d: "M3 18h2"
|
|
33
|
-
}),
|
|
34
|
-
/*#__PURE__*/ jsx("path", {
|
|
35
|
-
d: "M4 12h8"
|
|
36
|
-
}),
|
|
37
|
-
/*#__PURE__*/ jsx("path", {
|
|
38
|
-
d: "M3 6h2"
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ jsx("path", {
|
|
41
|
-
d: "M11 6h2"
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
export { Heading1Icon };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Heading2Icon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-h-2",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M4 6v12"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M12 6v12"
|
|
27
|
-
}),
|
|
28
|
-
/*#__PURE__*/ jsx("path", {
|
|
29
|
-
d: "M11 18h2"
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ jsx("path", {
|
|
32
|
-
d: "M3 18h2"
|
|
33
|
-
}),
|
|
34
|
-
/*#__PURE__*/ jsx("path", {
|
|
35
|
-
d: "M4 12h8"
|
|
36
|
-
}),
|
|
37
|
-
/*#__PURE__*/ jsx("path", {
|
|
38
|
-
d: "M3 6h2"
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ jsx("path", {
|
|
41
|
-
d: "M11 6h2"
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
export { Heading2Icon };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Heading3Icon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-h-3",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M19 14a2 2 0 1 0 -2 -2"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M17 16a2 2 0 1 0 2 -2"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M4 6v12"
|
|
27
|
-
}),
|
|
28
|
-
/*#__PURE__*/ jsx("path", {
|
|
29
|
-
d: "M12 6v12"
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ jsx("path", {
|
|
32
|
-
d: "M11 18h2"
|
|
33
|
-
}),
|
|
34
|
-
/*#__PURE__*/ jsx("path", {
|
|
35
|
-
d: "M3 18h2"
|
|
36
|
-
}),
|
|
37
|
-
/*#__PURE__*/ jsx("path", {
|
|
38
|
-
d: "M4 12h8"
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ jsx("path", {
|
|
41
|
-
d: "M3 6h2"
|
|
42
|
-
}),
|
|
43
|
-
/*#__PURE__*/ jsx("path", {
|
|
44
|
-
d: "M11 6h2"
|
|
45
|
-
})
|
|
46
|
-
]
|
|
47
|
-
});
|
|
48
|
-
export { Heading3Icon };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const ItalicIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-italic",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M11 5l6 0"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M7 19l6 0"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M14 5l-4 14"
|
|
27
|
-
})
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
export { ItalicIcon };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const LinkIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-link",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M9 15l6 -6"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"
|
|
27
|
-
})
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
export { LinkIcon };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const OlIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-list-numbers",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M11 6h9"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M11 12h9"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M12 18h8"
|
|
27
|
-
}),
|
|
28
|
-
/*#__PURE__*/ jsx("path", {
|
|
29
|
-
d: "M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ jsx("path", {
|
|
32
|
-
d: "M6 10v-6l-2 2"
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
});
|
|
36
|
-
export { OlIcon };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const StrikethroughIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-strikethrough",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M5 12l14 0"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
});
|
|
27
|
-
export { StrikethroughIcon };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const TextIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
fill: "none",
|
|
7
|
-
stroke: "currentColor",
|
|
8
|
-
strokeLinecap: "round",
|
|
9
|
-
strokeLinejoin: "round",
|
|
10
|
-
strokeWidth: 1.25,
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
children: [
|
|
13
|
-
/*#__PURE__*/ jsx("path", {
|
|
14
|
-
stroke: "none",
|
|
15
|
-
d: "M0 0h24v24H0z"
|
|
16
|
-
}),
|
|
17
|
-
/*#__PURE__*/ jsx("path", {
|
|
18
|
-
d: "M4 6h16M4 12h10M4 18h14"
|
|
19
|
-
})
|
|
20
|
-
]
|
|
21
|
-
});
|
|
22
|
-
export { TextIcon };
|
|
File without changes
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const UlIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-list",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M9 6l11 0"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M9 12l11 0"
|
|
24
|
-
}),
|
|
25
|
-
/*#__PURE__*/ jsx("path", {
|
|
26
|
-
d: "M9 18l11 0"
|
|
27
|
-
}),
|
|
28
|
-
/*#__PURE__*/ jsx("path", {
|
|
29
|
-
d: "M5 6l0 .01"
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ jsx("path", {
|
|
32
|
-
d: "M5 12l0 .01"
|
|
33
|
-
}),
|
|
34
|
-
/*#__PURE__*/ jsx("path", {
|
|
35
|
-
d: "M5 18l0 .01"
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
export { UlIcon };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const UnderlineIcon = ({ size })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
stroke: "currentColor",
|
|
9
|
-
strokeWidth: 1.5,
|
|
10
|
-
strokeLinecap: "round",
|
|
11
|
-
strokeLinejoin: "round",
|
|
12
|
-
className: "icon icon-tabler icons-tabler-outline icon-tabler-underline",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsx("path", {
|
|
15
|
-
stroke: "none",
|
|
16
|
-
d: "M0 0h24v24H0z",
|
|
17
|
-
fill: "none"
|
|
18
|
-
}),
|
|
19
|
-
/*#__PURE__*/ jsx("path", {
|
|
20
|
-
d: "M7 5v5a5 5 0 0 0 10 0v-5"
|
|
21
|
-
}),
|
|
22
|
-
/*#__PURE__*/ jsx("path", {
|
|
23
|
-
d: "M5 19h14"
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
});
|
|
27
|
-
export { UnderlineIcon };
|
package/dist/examples/store.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type FloatingMenuMode = 'main' | 'link' | 'colors';
|
|
2
|
-
type Store = {
|
|
3
|
-
isFloatingMenuOpen: boolean;
|
|
4
|
-
floatingMenuMode: FloatingMenuMode;
|
|
5
|
-
url?: string;
|
|
6
|
-
emojiSearch: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const $store: import("nanostores").PreinitializedMapStore<Store> & object;
|
|
9
|
-
export {};
|
package/dist/examples/store.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./styles_module.css";
|
|
2
|
-
const styles_module = {
|
|
3
|
-
root: "root-qzPneW",
|
|
4
|
-
menu: "menu-B8Sin3",
|
|
5
|
-
button: "button-ozmUk3",
|
|
6
|
-
active: "active-QvTEq9",
|
|
7
|
-
divider: "divider-T8sMbz",
|
|
8
|
-
floating: "floating-hKTbQp",
|
|
9
|
-
hint: "hint-vLpspr"
|
|
10
|
-
};
|
|
11
|
-
export { styles_module as default };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
--background-color: #fff;
|
|
3
|
-
--kona-editor-background-color: #fff;
|
|
4
|
-
--text-color: #444;
|
|
5
|
-
--kona-editor-text-color: #444;
|
|
6
|
-
--border-color: #ddd;
|
|
7
|
-
--kona-editor-border-color: #ddd;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
body.dark-theme {
|
|
11
|
-
color: #eee;
|
|
12
|
-
--background-color: #222;
|
|
13
|
-
--text-color: #eee;
|
|
14
|
-
--border-color: #000;
|
|
15
|
-
background-color: #222;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.root-qzPneW {
|
|
19
|
-
border: 1px solid var(--border-color);
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
width: 600px;
|
|
22
|
-
height: calc(100vh - 256px);
|
|
23
|
-
max-height: 100vh;
|
|
24
|
-
margin: 32px auto;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
|
|
27
|
-
& [role="textbox"] {
|
|
28
|
-
outline: none;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.menu-B8Sin3 {
|
|
33
|
-
column-gap: 4px;
|
|
34
|
-
padding: 8px;
|
|
35
|
-
display: flex;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.button-ozmUk3 {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
width: 24px;
|
|
41
|
-
height: 24px;
|
|
42
|
-
color: inherit;
|
|
43
|
-
background-color: #0000;
|
|
44
|
-
border: none;
|
|
45
|
-
border-radius: 4px;
|
|
46
|
-
outline: none;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
margin: 0;
|
|
50
|
-
padding: 0;
|
|
51
|
-
transition: background-color .25s;
|
|
52
|
-
display: inline-flex;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.button-ozmUk3.active-QvTEq9 {
|
|
56
|
-
background-color: #eee;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.divider-T8sMbz {
|
|
60
|
-
background-color: #ccc;
|
|
61
|
-
width: 1px;
|
|
62
|
-
height: 24px;
|
|
63
|
-
display: inline-block;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.floating-hKTbQp {
|
|
67
|
-
height: 24px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.hint-vLpspr {
|
|
71
|
-
color: #444;
|
|
72
|
-
background-color: #fff;
|
|
73
|
-
border: 1px solid #ccc;
|
|
74
|
-
border-radius: 4px;
|
|
75
|
-
padding: 2px;
|
|
76
|
-
box-shadow: 0 1px 3px #0000000f;
|
|
77
|
-
}
|
|
78
|
-
|
package/dist/examples/text.d.ts
DELETED
package/dist/examples/text.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { createHyperscript, createText } from "slate-hyperscript";
|
|
2
|
-
import { CodeBlockPlugin, HeadingsPlugin, LinksPlugin, ListsPlugin } from "../plugins/index.js";
|
|
3
|
-
const text_elements = {
|
|
4
|
-
paragraph: {
|
|
5
|
-
type: 'paragraph'
|
|
6
|
-
},
|
|
7
|
-
heading1: {
|
|
8
|
-
type: HeadingsPlugin.HeadingLevel1
|
|
9
|
-
},
|
|
10
|
-
heading2: {
|
|
11
|
-
type: HeadingsPlugin.HeadingLevel2
|
|
12
|
-
},
|
|
13
|
-
heading3: {
|
|
14
|
-
type: HeadingsPlugin.HeadingLevel3
|
|
15
|
-
},
|
|
16
|
-
numberedList: {
|
|
17
|
-
type: ListsPlugin.NUMBERED_LIST_ELEMENT
|
|
18
|
-
},
|
|
19
|
-
bulletedList: {
|
|
20
|
-
type: ListsPlugin.BULLETED_LIST_ELEMENT
|
|
21
|
-
},
|
|
22
|
-
listItem: {
|
|
23
|
-
type: ListsPlugin.LIST_ITEM_ELEMENT
|
|
24
|
-
},
|
|
25
|
-
codeBlock: {
|
|
26
|
-
type: CodeBlockPlugin.CODE_ELEMENT
|
|
27
|
-
},
|
|
28
|
-
codeBlockLine: {
|
|
29
|
-
type: CodeBlockPlugin.CODE_LINE_ELEMENT
|
|
30
|
-
},
|
|
31
|
-
hlink: {
|
|
32
|
-
type: LinksPlugin.LINK_TYPE
|
|
33
|
-
},
|
|
34
|
-
hemoji: {
|
|
35
|
-
type: 'emoji'
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const creators = {
|
|
39
|
-
htext: createText
|
|
40
|
-
};
|
|
41
|
-
const jsx = createHyperscript({
|
|
42
|
-
elements: text_elements,
|
|
43
|
-
creators
|
|
44
|
-
});
|
|
45
|
-
const text_text = /*#__PURE__*/ jsx("fragment", null, /*#__PURE__*/ jsx("heading1", null, "About"), /*#__PURE__*/ jsx("paragraph", null, /*#__PURE__*/ jsx("htext", {
|
|
46
|
-
bold: true,
|
|
47
|
-
italic: true
|
|
48
|
-
}, "Kona Editor"), ' ', "is a text editor based on Slate.js that I use in", ' ', /*#__PURE__*/ jsx("hemoji", {
|
|
49
|
-
emoji: "kona"
|
|
50
|
-
}, "'"), /*#__PURE__*/ jsx("hlink", {
|
|
51
|
-
url: "https://kona.to"
|
|
52
|
-
}, "Kona calendar"), " for notes and event descriptions. I decided to open-source the editor for a few reasons:"), /*#__PURE__*/ jsx("numberedList", null, /*#__PURE__*/ jsx("listItem", null, "I had a lot of ", /*#__PURE__*/ jsx("htext", {
|
|
53
|
-
strikethrough: true
|
|
54
|
-
}, "difficulties"), " fun while building this editor and there were always not enough examples of how to do it right. I wanted to make a little contribution to the community, so others could use my code as a reference."), /*#__PURE__*/ jsx("listItem", null, "I have always wanted to try to build something open-sourced, but there have not been enough good ideas on what to build. I think that an editor is a pretty decent starting point.")), /*#__PURE__*/ jsx("heading2", null, "Usage"), /*#__PURE__*/ jsx("codeBlock", {
|
|
55
|
-
language: "tsx"
|
|
56
|
-
}, /*#__PURE__*/ jsx("codeBlockLine", null, "import { KonaEditor } from '@use-kona/editor';"), /*#__PURE__*/ jsx("codeBlockLine", null, " "), /*#__PURE__*/ jsx("codeBlockLine", null, "const App = () => {"), /*#__PURE__*/ jsx("codeBlockLine", null, " return ("), /*#__PURE__*/ jsx("codeBlockLine", null, " <KonaEditor"), /*#__PURE__*/ jsx("codeBlockLine", null, " initialValue={initialValue}"), /*#__PURE__*/ jsx("codeBlockLine", null, " plugins={plugins}"), /*#__PURE__*/ jsx("codeBlockLine", null, " onChange={handleChange}"), /*#__PURE__*/ jsx("codeBlockLine", null, " />"), /*#__PURE__*/ jsx("codeBlockLine", null, " )"), /*#__PURE__*/ jsx("codeBlockLine", null, "}")), /*#__PURE__*/ jsx("paragraph", null, "Defining the list of plugins might be a little tricky, but I've tried to cover everything you'll need in docs."), /*#__PURE__*/ jsx("heading2", null, "List of plugins"), /*#__PURE__*/ jsx("heading3", null, "BasicFormattingPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Allows to use ", /*#__PURE__*/ jsx("htext", {
|
|
57
|
-
bold: true
|
|
58
|
-
}, "bold"), ", ", /*#__PURE__*/ jsx("htext", {
|
|
59
|
-
italic: true
|
|
60
|
-
}, "italic"), ",", ' ', /*#__PURE__*/ jsx("htext", {
|
|
61
|
-
underline: true
|
|
62
|
-
}, "underlined"), " and", ' ', /*#__PURE__*/ jsx("htext", {
|
|
63
|
-
strikethrough: true
|
|
64
|
-
}, "strikethrough"), " text"), /*#__PURE__*/ jsx("heading3", null, "BreaksPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Overrides default Slate behavior by breaking custom block types when user presses Enter."), /*#__PURE__*/ jsx("heading3", null, "CodeBlockPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Adds support for code blocks."), /*#__PURE__*/ jsx("heading3", null, "CommandsPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Adds Notion-style menu with custom list of commands"), /*#__PURE__*/ jsx("heading3", null, "DnDPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Allows reordering blocks by drag'n'dropping them"), /*#__PURE__*/ jsx("heading3", null, "FloatingMenuPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Adds menu which is shown when user selects a text"), /*#__PURE__*/ jsx("heading3", null, "HeadingsPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Adds three levels of headings"), /*#__PURE__*/ jsx("heading3", null, "HighlightsPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Allows highlighting selected text with a custom color"), /*#__PURE__*/ jsx("heading3", null, "LinksPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Gives user ability to convert the selected text into a link"), /*#__PURE__*/ jsx("heading3", null, "MenuPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Adds pinned to the top menu with custom commands"), /*#__PURE__*/ jsx("heading3", null, "NodeIdPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Assigns a unique id to each block"), /*#__PURE__*/ jsx("heading3", null, "PlaceholderPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Allows to setup a custom placeholder for the selected line"), /*#__PURE__*/ jsx("heading3", null, "ShortcutsPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Converts some popular markdown shortcuts to a custom node"), /*#__PURE__*/ jsx("heading3", null, "TableOfContentsPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Shows a quick map of headings inside the document"), /*#__PURE__*/ jsx("heading3", null, "EmojiPlugin"), /*#__PURE__*/ jsx("paragraph", null, "Allows paste emoji to the text"));
|
|
65
|
-
export { text_text as text };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
4
|
-
size?: "sm" | "md" | "lg";
|
|
5
|
-
variant?: "primary" | "secondary" | "danger" | "transparent";
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "size"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { ButtonWrapper } from "./ButtonWrapper.js";
|
|
4
|
-
const Button = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
5
|
-
const { size = 'md', variant = 'secondary', onClick = ()=>{}, children, ...rest } = props;
|
|
6
|
-
return /*#__PURE__*/ jsx(ButtonWrapper, {
|
|
7
|
-
ref: ref,
|
|
8
|
-
size: size,
|
|
9
|
-
onClick: onClick,
|
|
10
|
-
variant: variant,
|
|
11
|
-
...rest,
|
|
12
|
-
children: children
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
export { Button };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const ButtonWrapper: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
size: "sm" | "md" | "lg";
|
|
3
|
-
variant?: "primary" | "secondary" | "transparent" | "danger";
|
|
4
|
-
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|