@lotte-innovate/ui-component-test 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/README.md +53 -0
  2. package/dist/lib/components/Editor/index.d.ts +15 -15
  3. package/dist/lib/components/Editor/index.js +15 -15
  4. package/dist/lib/components/Editor/index.mjs +1 -1
  5. package/dist/lib/constants.d.ts +0 -647
  6. package/dist/lib/constants.js +0 -895
  7. package/dist/lib/constants.mjs.map +1 -1
  8. package/dist/lib/index.d.ts +0 -1
  9. package/dist/lib/index.js +0 -1
  10. package/dist/lib/index.mjs +1 -1
  11. package/dist/lib/tailwind.config.d.ts +3 -0
  12. package/dist/lib/tsconfig.tsbuildinfo +1 -0
  13. package/dist/lib/utils/utils.mjs.map +1 -1
  14. package/dist/tailwind.config.d.ts +3 -0
  15. package/dist/tailwind.config.js +65 -0
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/package.json +8 -11
  18. package/public/tinymce/icons/default/index.mjs +1 -1
  19. package/public/tinymce/plugins/advlist/index.mjs +1 -1
  20. package/public/tinymce/plugins/code/index.mjs +1 -1
  21. package/public/tinymce/plugins/code/plugin.mjs +1 -1
  22. package/public/tinymce/plugins/codesample/index.mjs +1 -1
  23. package/public/tinymce/plugins/codesample/plugin.mjs +1 -1
  24. package/public/tinymce/plugins/image/index.mjs +1 -1
  25. package/public/tinymce/plugins/image/plugin.mjs +1 -1
  26. package/public/tinymce/plugins/link/index.mjs +1 -1
  27. package/public/tinymce/plugins/link/index.mjs.map +1 -1
  28. package/public/tinymce/plugins/link/plugin.mjs +1 -1
  29. package/public/tinymce/plugins/lists/index.mjs +1 -1
  30. package/public/tinymce/plugins/lists/plugin.mjs +1 -1
  31. package/public/tinymce/plugins/table/index.mjs +1 -1
  32. package/public/tinymce/themes/silver/index.mjs +1 -1
  33. package/public/tinymce/themes/silver/index.mjs.map +1 -1
  34. package/_virtual/icons.mjs +0 -2
  35. package/_virtual/icons.mjs.map +0 -1
  36. package/_virtual/index.mjs +0 -2
  37. package/_virtual/index.mjs.map +0 -1
  38. package/_virtual/index10.mjs +0 -2
  39. package/_virtual/index10.mjs.map +0 -1
  40. package/_virtual/index11.mjs +0 -2
  41. package/_virtual/index11.mjs.map +0 -1
  42. package/_virtual/index12.mjs +0 -2
  43. package/_virtual/index12.mjs.map +0 -1
  44. package/_virtual/index13.mjs +0 -2
  45. package/_virtual/index13.mjs.map +0 -1
  46. package/_virtual/index14.mjs +0 -2
  47. package/_virtual/index14.mjs.map +0 -1
  48. package/_virtual/index15.mjs +0 -2
  49. package/_virtual/index15.mjs.map +0 -1
  50. package/_virtual/index16.mjs +0 -2
  51. package/_virtual/index16.mjs.map +0 -1
  52. package/_virtual/index17.mjs +0 -2
  53. package/_virtual/index17.mjs.map +0 -1
  54. package/_virtual/index18.mjs +0 -2
  55. package/_virtual/index18.mjs.map +0 -1
  56. package/_virtual/index19.mjs +0 -2
  57. package/_virtual/index19.mjs.map +0 -1
  58. package/_virtual/index2.mjs +0 -2
  59. package/_virtual/index2.mjs.map +0 -1
  60. package/_virtual/index20.mjs +0 -2
  61. package/_virtual/index20.mjs.map +0 -1
  62. package/_virtual/index21.mjs +0 -2
  63. package/_virtual/index21.mjs.map +0 -1
  64. package/_virtual/index22.mjs +0 -2
  65. package/_virtual/index22.mjs.map +0 -1
  66. package/_virtual/index3.mjs +0 -2
  67. package/_virtual/index3.mjs.map +0 -1
  68. package/_virtual/index4.mjs +0 -2
  69. package/_virtual/index4.mjs.map +0 -1
  70. package/_virtual/index5.mjs +0 -2
  71. package/_virtual/index5.mjs.map +0 -1
  72. package/_virtual/index6.mjs +0 -2
  73. package/_virtual/index6.mjs.map +0 -1
  74. package/_virtual/index7.mjs +0 -2
  75. package/_virtual/index7.mjs.map +0 -1
  76. package/_virtual/index8.mjs +0 -2
  77. package/_virtual/index8.mjs.map +0 -1
  78. package/_virtual/index9.mjs +0 -2
  79. package/_virtual/index9.mjs.map +0 -1
  80. package/_virtual/jsx-runtime.mjs +0 -2
  81. package/_virtual/jsx-runtime.mjs.map +0 -1
  82. package/_virtual/jsx-runtime2.mjs +0 -2
  83. package/_virtual/jsx-runtime2.mjs.map +0 -1
  84. package/_virtual/model.mjs +0 -2
  85. package/_virtual/model.mjs.map +0 -1
  86. package/_virtual/plugin.mjs +0 -2
  87. package/_virtual/plugin.mjs.map +0 -1
  88. package/_virtual/plugin2.mjs +0 -2
  89. package/_virtual/plugin2.mjs.map +0 -1
  90. package/_virtual/plugin3.mjs +0 -2
  91. package/_virtual/plugin3.mjs.map +0 -1
  92. package/_virtual/plugin4.mjs +0 -2
  93. package/_virtual/plugin4.mjs.map +0 -1
  94. package/_virtual/plugin5.mjs +0 -2
  95. package/_virtual/plugin5.mjs.map +0 -1
  96. package/_virtual/plugin6.mjs +0 -2
  97. package/_virtual/plugin6.mjs.map +0 -1
  98. package/_virtual/plugin7.mjs +0 -2
  99. package/_virtual/plugin7.mjs.map +0 -1
  100. package/_virtual/react-jsx-runtime.development.mjs +0 -2
  101. package/_virtual/react-jsx-runtime.development.mjs.map +0 -1
  102. package/_virtual/react-jsx-runtime.production.min.mjs +0 -2
  103. package/_virtual/react-jsx-runtime.production.min.mjs.map +0 -1
  104. package/_virtual/react.development.mjs +0 -2
  105. package/_virtual/react.development.mjs.map +0 -1
  106. package/_virtual/react.production.min.mjs +0 -2
  107. package/_virtual/react.production.min.mjs.map +0 -1
  108. package/_virtual/theme.mjs +0 -2
  109. package/_virtual/theme.mjs.map +0 -1
  110. package/_virtual/tinymce.mjs +0 -2
  111. package/_virtual/tinymce.mjs.map +0 -1
  112. package/_virtual/tinymce2.mjs +0 -2
  113. package/_virtual/tinymce2.mjs.map +0 -1
  114. package/dist/lib/color/alpha.d.ts +0 -784
  115. package/dist/lib/color/alpha.js +0 -784
  116. package/dist/lib/color/constants.d.ts +0 -15
  117. package/dist/lib/color/constants.js +0 -265
  118. package/dist/lib/color/dark.d.ts +0 -392
  119. package/dist/lib/color/dark.js +0 -392
  120. package/dist/lib/color/krdsColors.d.ts +0 -309
  121. package/dist/lib/color/krdsColors.js +0 -309
  122. package/dist/lib/color/light.d.ts +0 -392
  123. package/dist/lib/color/light.js +0 -393
  124. package/dist/lib/theme/ThemeProvider.d.ts +0 -16
  125. package/dist/lib/theme/ThemeProvider.js +0 -29
  126. package/dist/lib/theme/ThemeProvider.mjs +0 -3
  127. package/dist/lib/theme/ThemeProvider.mjs.map +0 -1
  128. package/dist/lib/theme/index.d.ts +0 -2
  129. package/dist/lib/theme/index.js +0 -2
  130. package/dist/lib/types.d.ts +0 -90
  131. package/dist/lib/types.js +0 -1
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # LOTTE UI COMPONENT LIBRARY
2
+
3
+ <br />
4
+
5
+ ## 목차
6
+
7
+ - [Introduction](#introduction)
8
+ - [Installation](#installation)
9
+ - [Usage](#usage)
10
+ - [License](#license)
11
+
12
+ ## Introduction
13
+
14
+ L-UI 에디터를 포함한 단일 패키지입니다.
15
+
16
+ 에디터 컴포넌트는 웹 애플리케이션에서 사용할 수 있는 WYSIWYG HTML 편집기입니다.
17
+
18
+ 다양한 플러그인을 통해 기능을 확장할 수 있으며 상세 기능은 이 [링크](https://www.tiny.cloud/docs/tinymce/6/examples/)에서 확인 가능합니다.
19
+
20
+ ## Installation
21
+
22
+ 패키지를 설치하기 위해 아래 명령어를 사용합니다.
23
+
24
+ ```bash
25
+ npm i @lotte-innovate/lui-editor
26
+ ```
27
+
28
+ ```bash
29
+ yarn add @lotte-innovate/lui-editor
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ React 프로젝트에서 에디터를 사용하는 방법에 대한 예시입니다.
35
+
36
+ ```javascript
37
+ import React from 'react';
38
+ import { Editor } from '@lotte-innovate/lui-editor';
39
+
40
+ const App = () => {
41
+ return (
42
+ <div>
43
+ <Editor />
44
+ </div>
45
+ );
46
+ };
47
+
48
+ export default App;
49
+ ```
50
+
51
+ ## License
52
+
53
+ @lotte-innovate
@@ -1,24 +1,24 @@
1
1
  import React from 'react';
2
2
  import { IAllProps } from '@tinymce/tinymce-react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import '../../../../public/tinymce/tinymce';
5
- import '../../../../public/tinymce/themes/silver';
6
- import '../../../../public/tinymce/models/dom';
7
- import '../../../../public/tinymce/icons/default';
8
- import '../../../../public/tinymce/skins/ui/oxide/skin';
9
- import '../../../../public/tinymce/plugins/advlist';
10
- import '../../../../public/tinymce/plugins/code';
11
- import '../../../../public/tinymce/plugins/codesample';
12
- import '../../../../public/tinymce/plugins/link';
13
- import '../../../../public/tinymce/plugins/lists';
14
- import '../../../../public/tinymce/plugins/table';
15
- import '../../../../public/tinymce/plugins/image';
16
- import '../../../../public/tinymce/skins/content/default/content';
17
- import '../../../../public/tinymce/skins/ui/oxide/content';
4
+ import 'tinymce/tinymce';
5
+ import 'tinymce/themes/silver';
6
+ import 'tinymce/models/dom';
7
+ import 'tinymce/icons/default';
8
+ import 'tinymce/skins/ui/oxide/skin';
9
+ import 'tinymce/plugins/advlist';
10
+ import 'tinymce/plugins/code';
11
+ import 'tinymce/plugins/codesample';
12
+ import 'tinymce/plugins/link';
13
+ import 'tinymce/plugins/lists';
14
+ import 'tinymce/plugins/table';
15
+ import 'tinymce/plugins/image';
16
+ import 'tinymce/skins/content/default/content';
17
+ import 'tinymce/skins/ui/oxide/content';
18
18
  export interface EditorProps extends VariantProps<typeof editorVariants> {
19
19
  }
20
20
  declare const editorVariants: (props?: ({
21
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
21
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
22
22
  size?: "small" | "medium" | "large" | null | undefined;
23
23
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
24
24
  export declare const Editor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & EditorProps & IAllProps & React.RefAttributes<HTMLDivElement>>;
@@ -28,20 +28,20 @@ import { cva } from 'class-variance-authority';
28
28
  import { scalingVariants } from '../../../lib/constants';
29
29
  import { cn } from '../../../lib/utils/utils';
30
30
  import { marked } from 'marked';
31
- import '../../../../public/tinymce/tinymce';
32
- import '../../../../public/tinymce/themes/silver';
33
- import '../../../../public/tinymce/models/dom';
34
- import '../../../../public/tinymce/icons/default';
35
- import '../../../../public/tinymce/skins/ui/oxide/skin';
36
- import '../../../../public/tinymce/plugins/advlist';
37
- import '../../../../public/tinymce/plugins/code';
38
- import '../../../../public/tinymce/plugins/codesample';
39
- import '../../../../public/tinymce/plugins/link';
40
- import '../../../../public/tinymce/plugins/lists';
41
- import '../../../../public/tinymce/plugins/table';
42
- import '../../../../public/tinymce/plugins/image';
43
- import '../../../../public/tinymce/skins/content/default/content';
44
- import '../../../../public/tinymce/skins/ui/oxide/content';
31
+ import 'tinymce/tinymce';
32
+ import 'tinymce/themes/silver';
33
+ import 'tinymce/models/dom';
34
+ import 'tinymce/icons/default';
35
+ import 'tinymce/skins/ui/oxide/skin';
36
+ import 'tinymce/plugins/advlist';
37
+ import 'tinymce/plugins/code';
38
+ import 'tinymce/plugins/codesample';
39
+ import 'tinymce/plugins/link';
40
+ import 'tinymce/plugins/lists';
41
+ import 'tinymce/plugins/table';
42
+ import 'tinymce/plugins/image';
43
+ import 'tinymce/skins/content/default/content';
44
+ import 'tinymce/skins/ui/oxide/content';
45
45
  var editorVariants = cva('', {
46
46
  variants: {
47
47
  scaling: __assign({}, scalingVariants),
@@ -64,7 +64,7 @@ export var Editor = forwardRef(function (_a, ref) {
64
64
  height: '100%',
65
65
  plugins: 'link table code lists codesample',
66
66
  menubar: false,
67
- toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown',
67
+ toolbar: 'blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown',
68
68
  content_style: 'body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }',
69
69
  setup: function (editor) {
70
70
  editor.ui.registry.addButton('inlinecode', {
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{j as t}from"../../../../_virtual/jsx-runtime.mjs";import{r as i}from"../../../../_virtual/index.mjs";import{Editor as e}from"@tinymce/tinymce-react";import{cva as r}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as n}from"../../utils/utils.mjs";import{marked as a}from"marked";import"../../../../_virtual/tinymce.mjs";import"../../../../_virtual/index17.mjs";import"../../../../_virtual/index21.mjs";import"../../../../_virtual/index5.mjs";import"../../../../public/tinymce/skins/ui/oxide/skin.mjs";import"../../../../_virtual/index3.mjs";import"../../../../_virtual/index19.mjs";import"../../../../_virtual/index13.mjs";import"../../../../_virtual/index7.mjs";import"../../../../_virtual/index15.mjs";import"../../../../_virtual/index11.mjs";import"../../../../_virtual/index9.mjs";import"../../../../public/tinymce/skins/content/default/content.mjs";import"../../../../public/tinymce/skins/ui/oxide/content.mjs";var s=function(){return s=Object.assign||function(t){for(var i,e=1,r=arguments.length;e<r;e++)for(var o in i=arguments[e])Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);return t},s.apply(this,arguments)},m=function(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e},l=r("",{variants:{scaling:s({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),c=i.forwardRef((function(i,r){var o=i.className,c=i.size,u=i.scaling,p=m(i,["className","size","scaling"]);return t.jsx("div",{className:n(l({size:c,scaling:u}),o),ref:r,children:t.jsx(e,s({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var i=t.getContent({format:"text"}),e=a(i);t.setContent(e)}})}}},p))})}));c.displayName="Editor";export{c as Editor,c as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as i}from"react";import{Editor as e}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as s}from"marked";import"tinymce/tinymce";import"tinymce/themes/silver";import"tinymce/models/dom";import"tinymce/icons/default";import"tinymce/skins/ui/oxide/skin";import"tinymce/plugins/advlist";import"tinymce/plugins/code";import"tinymce/plugins/codesample";import"tinymce/plugins/link";import"tinymce/plugins/lists";import"tinymce/plugins/table";import"tinymce/plugins/image";import"tinymce/skins/content/default/content";import"tinymce/skins/ui/oxide/content";var m=function(){return m=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++)for(var o in i=arguments[e])Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);return t},m.apply(this,arguments)},a=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e},c=n("",{variants:{scaling:m({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),l=i((function(i,n){var o=i.className,l=i.size,p=i.scaling,u=a(i,["className","size","scaling"]);return t("div",{className:r(c({size:l,scaling:p}),o),ref:n,children:t(e,m({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var i=t.getContent({format:"text"}),e=s(i);t.setContent(e)}})}}},u))})}));l.displayName="Editor";export{l as Editor,l as default};
3
3
  //# sourceMappingURL=index.mjs.map