@weing-dev/ui-kit-primitive 0.3.2 → 0.4.2
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/Divider-m-B4TrPH.js +29 -0
- package/dist/Divider.css +1 -0
- package/dist/Icon-DExqF865.js +1166 -0
- package/dist/bind-D3ZJ5k4I.js +47 -0
- package/dist/calendar.css +1 -0
- package/dist/calendar.d.ts +10 -0
- package/dist/calendar.js +4075 -0
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +94 -0
- package/dist/color-B71xRiyK.js +384 -0
- package/dist/compiler-runtime-BFrE5JtX.js +326 -0
- package/dist/components/LNB/LNB.context.d.ts +14 -14
- package/dist/components/LNB/LNB.d.ts +8 -6
- package/dist/components/LNB/makeNavigation.d.ts +11 -6
- package/dist/display.css +1 -0
- package/dist/display.d.ts +15 -0
- package/dist/display.js +5280 -0
- package/dist/editor-style.css +7 -0
- package/dist/editor-style.d.ts +0 -0
- package/dist/editor-style.js +1 -0
- package/dist/editor.css +1 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +338 -0
- package/dist/entry/calendar.d.ts +10 -0
- package/dist/entry/chart.d.ts +2 -0
- package/dist/entry/display.d.ts +15 -0
- package/dist/entry/editor-style.d.ts +0 -0
- package/dist/entry/editor.d.ts +5 -0
- package/dist/entry/feedback.d.ts +6 -0
- package/dist/entry/form.d.ts +17 -0
- package/dist/entry/icon.d.ts +5 -0
- package/dist/entry/navigation.d.ts +9 -0
- package/dist/entry/table.d.ts +3 -0
- package/dist/entry/types.d.ts +1 -1
- package/dist/entry/video-player-style.d.ts +0 -0
- package/dist/entry/video-player.d.ts +3 -0
- package/dist/feedback.css +1 -0
- package/dist/feedback.d.ts +6 -0
- package/dist/feedback.js +385 -0
- package/dist/form.css +1 -0
- package/dist/form.d.ts +17 -0
- package/dist/form.js +3548 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +18 -0
- package/dist/index.css +1 -7
- package/dist/index.js +4083 -4069
- package/dist/index.umd.cjs +26 -26
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +9 -0
- package/dist/navigation.js +1036 -0
- package/dist/table.css +1 -0
- package/dist/table.d.ts +3 -0
- package/dist/table.js +184 -0
- package/dist/usePopper-DvYrGFkh.js +1038 -0
- package/dist/video-player-style.css +1 -0
- package/dist/video-player-style.d.ts +0 -0
- package/dist/video-player-style.js +1 -0
- package/dist/video-player.css +1 -0
- package/dist/video-player.d.ts +3 -0
- package/dist/video-player.js +1751 -0
- package/package.json +44 -2
- package/dist/components/GlobalStyle/GlobalStyle.d.ts +0 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Quill Editor v2.0.3
|
|
3
|
+
* https://quilljs.com
|
|
4
|
+
* Copyright (c) 2017-2024, Slab
|
|
5
|
+
* Copyright (c) 2014, Jason Chen
|
|
6
|
+
* Copyright (c) 2013, salesforce.com
|
|
7
|
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/editor.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer Editor{@keyframes _skeletonGradient_3y806_1{0%{background-position:-800% 0}to{background-position:800% 0}}._EditorContainer_3y806_10{display:flex;flex-direction:column;position:relative;flex:1;background-color:var(--backgroundDefault, #fff)}._EditorContainer_3y806_10._readOnly_3y806_17{pointer-events:none}._EditorContainer_3y806_10._readOnly_3y806_17 .ql-toolbar,._EditorContainer_3y806_10._readOnly_3y806_17 .ql-container{background-color:var(--backgroundSecond, rgba(145, 158, 171, .0784313725))}._SkeletonWrapper_3y806_26{position:absolute;top:0;right:0;bottom:0;left:0;flex:1;background:linear-gradient(60deg,#f1f3f5 25%,#e5e7eb,#f1f3f5 75%);background-size:800% 800%;animation:_skeletonGradient_3y806_1 32s infinite linear}._Wrapper_3y806_34{flex:1;visibility:visible}._Wrapper_3y806_34._isLoading_3y806_38{visibility:hidden}}._EditorContainer_3y806_10 .ql-editor.ql-blank:before{font-style:normal}._EditorContainer_3y806_10 .ql-picker.ql-size .ql-picker-label:before,._EditorContainer_3y806_10 .ql-picker.ql-size .ql-picker-item:before{content:attr(data-value)}._EditorContainer_3y806_10 .ql-picker.ql-size .ql-picker-options{max-height:200px;overflow-y:auto}._EditorContainer_3y806_10 .ql-picker.ql-font{min-width:150px}._EditorContainer_3y806_10 .ql-picker.ql-font ._ql-picker-label_3y806_45,._EditorContainer_3y806_10 .ql-picker.ql-font ._ql-picker-item_3y806_46{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._EditorContainer_3y806_10 .ql-picker.ql-font ._ql-picker-options_3y806_49{min-width:max-content;max-width:300px}
|
package/dist/editor.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Editor } from '../components/Editor/Editor';
|
|
2
|
+
export type { EditorContextValue, CustomImageUploadHandler, UploadedImageInfo, } from '../components/Editor/Editor.context';
|
|
3
|
+
export type { EditorProps, CustomFont, CustomFontSource, } from '../components/Editor/Editor';
|
|
4
|
+
export type { ToolbarOptions, ToolbarGroup, ToolbarItem, ToolbarSimpleFormat, ToolbarComplexFormat, ToolbarSizeValue, } from '../components/Editor/constants/editor.constants';
|
|
5
|
+
export {};
|
package/dist/editor.js
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { j as v, c as ne } from "./compiler-runtime-BFrE5JtX.js";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { c as oe } from "./bind-D3ZJ5k4I.js";
|
|
4
|
+
const re = "_EditorContainer_3y806_10", le = "_readOnly_3y806_17", ie = "_SkeletonWrapper_3y806_26", se = "_skeletonGradient_3y806_1", ce = "_Wrapper_3y806_34", ae = "_isLoading_3y806_38", ue = {
|
|
5
|
+
EditorContainer: re,
|
|
6
|
+
readOnly: le,
|
|
7
|
+
SkeletonWrapper: ie,
|
|
8
|
+
skeletonGradient: se,
|
|
9
|
+
Wrapper: ce,
|
|
10
|
+
isLoading: ae,
|
|
11
|
+
"ql-picker-label": "_ql-picker-label_3y806_45",
|
|
12
|
+
"ql-picker-item": "_ql-picker-item_3y806_46",
|
|
13
|
+
"ql-picker-options": "_ql-picker-options_3y806_49"
|
|
14
|
+
}, Q = {
|
|
15
|
+
quill: null,
|
|
16
|
+
isLoading: !1,
|
|
17
|
+
editorRef: {
|
|
18
|
+
current: null
|
|
19
|
+
},
|
|
20
|
+
initialValue: "",
|
|
21
|
+
readOnly: !1,
|
|
22
|
+
placeholder: "내용을 입력하세요...",
|
|
23
|
+
onChange: () => {
|
|
24
|
+
},
|
|
25
|
+
onImageUpload: void 0
|
|
26
|
+
// onImageUpload로 prop 이름 유지 (또는 onCustomImageUpload로 변경)
|
|
27
|
+
}, M = l.createContext(Q), W = ["8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "16pt", "18pt", "20pt", "22pt", "24pt", "28pt", "32pt", "36pt", "48pt", "72pt"], H = {
|
|
28
|
+
ITEM: {
|
|
29
|
+
BOLD: "bold",
|
|
30
|
+
ITALIC: "italic",
|
|
31
|
+
UNDERLINE: "underline",
|
|
32
|
+
STRIKE: "strike",
|
|
33
|
+
BLOCKQUOTE: "blockquote",
|
|
34
|
+
CODE_BLOCK: "code-block",
|
|
35
|
+
LINK: "link",
|
|
36
|
+
IMAGE: "image",
|
|
37
|
+
VIDEO: "video",
|
|
38
|
+
FORMULA: "formula",
|
|
39
|
+
CLEAN: "clean",
|
|
40
|
+
LIST_ORDERED: {
|
|
41
|
+
list: "ordered"
|
|
42
|
+
},
|
|
43
|
+
LIST_BULLET: {
|
|
44
|
+
list: "bullet"
|
|
45
|
+
},
|
|
46
|
+
LIST_CHECK: {
|
|
47
|
+
list: "check"
|
|
48
|
+
},
|
|
49
|
+
SCRIPT_SUB: {
|
|
50
|
+
script: "sub"
|
|
51
|
+
},
|
|
52
|
+
SCRIPT_SUPER: {
|
|
53
|
+
script: "super"
|
|
54
|
+
},
|
|
55
|
+
INDENT_OUT: {
|
|
56
|
+
indent: "-1"
|
|
57
|
+
},
|
|
58
|
+
INDENT_IN: {
|
|
59
|
+
indent: "+1"
|
|
60
|
+
},
|
|
61
|
+
DIRECTION_RTL: {
|
|
62
|
+
direction: "rtl"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, u = H.ITEM;
|
|
66
|
+
function F(a) {
|
|
67
|
+
if (!a) return [];
|
|
68
|
+
const t = [];
|
|
69
|
+
for (const o of a)
|
|
70
|
+
if (Array.isArray(o))
|
|
71
|
+
for (const i of o)
|
|
72
|
+
typeof i == "object" && i !== null && "font" in i && Array.isArray(i.font) && t.push(...i.font.filter((s) => typeof s == "string"));
|
|
73
|
+
return t;
|
|
74
|
+
}
|
|
75
|
+
function G(a) {
|
|
76
|
+
return a.toLowerCase().replace(/\s+/g, "-");
|
|
77
|
+
}
|
|
78
|
+
const X = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Set();
|
|
79
|
+
function fe(a) {
|
|
80
|
+
if (a.length === 0) return "";
|
|
81
|
+
const t = [];
|
|
82
|
+
for (const o of a)
|
|
83
|
+
for (const i of o.sources) {
|
|
84
|
+
const s = i.format || "woff", c = i.weight || "normal", d = i.style || "normal", m = `url("${i.url}") format("${s}")`;
|
|
85
|
+
t.push(`@font-face {
|
|
86
|
+
font-family: "${o.family}";
|
|
87
|
+
src: ${m};
|
|
88
|
+
font-weight: ${c};
|
|
89
|
+
font-style: ${d};
|
|
90
|
+
font-display: swap;
|
|
91
|
+
}`);
|
|
92
|
+
}
|
|
93
|
+
return t.join(`
|
|
94
|
+
`);
|
|
95
|
+
}
|
|
96
|
+
function de(a, t) {
|
|
97
|
+
if (a.length === 0) return "";
|
|
98
|
+
const o = [];
|
|
99
|
+
for (let i = 0; i < a.length; i++) {
|
|
100
|
+
const s = a[i], c = t[i] || G(s);
|
|
101
|
+
X.set(c, s);
|
|
102
|
+
const d = s.includes(" ") ? `"${s}"` : s;
|
|
103
|
+
o.push(`.ql-font-${c} { font-family: ${d}; }`), o.push(`.ql-picker.ql-font .ql-picker-item[data-value="${c.replace(/"/g, '\\"')}"] { font-family: ${d}; }`), o.push(`.ql-picker.ql-font .ql-picker-item[data-value="${c.replace(/"/g, '\\"')}"] { font-size: 0; }`), o.push(`.ql-picker.ql-font .ql-picker-item[data-value="${c.replace(/"/g, '\\"')}"]::before { content: "${s.replace(/"/g, '\\"')}"; font-size: 14px; white-space: nowrap; }`), o.push(`.ql-picker.ql-font .ql-picker-label[data-value="${c.replace(/"/g, '\\"')}"] { font-size: 0; }`), o.push(`.ql-picker.ql-font .ql-picker-label[data-value="${c.replace(/"/g, '\\"')}"]::before { content: "${s.replace(/"/g, '\\"')}"; font-size: 14px; white-space: nowrap; }`);
|
|
104
|
+
}
|
|
105
|
+
return o.join(`
|
|
106
|
+
`);
|
|
107
|
+
}
|
|
108
|
+
const K = [[{
|
|
109
|
+
header: [1, 2, 3, 4, 5, 6, !1]
|
|
110
|
+
}], [{
|
|
111
|
+
size: [...W]
|
|
112
|
+
}], [u.BOLD, u.ITALIC, u.UNDERLINE, u.STRIKE], [u.LIST_ORDERED, u.LIST_BULLET, u.LIST_CHECK], [u.SCRIPT_SUB, u.SCRIPT_SUPER], [u.INDENT_OUT, u.INDENT_IN], [u.DIRECTION_RTL], [{
|
|
113
|
+
color: []
|
|
114
|
+
}, {
|
|
115
|
+
background: []
|
|
116
|
+
}], [{
|
|
117
|
+
font: []
|
|
118
|
+
}], [{
|
|
119
|
+
align: []
|
|
120
|
+
}], [u.LINK, u.IMAGE, u.VIDEO, u.FORMULA], [u.CLEAN]], U = oe.bind(ue), pe = (a) => {
|
|
121
|
+
const {
|
|
122
|
+
...t
|
|
123
|
+
} = a, o = l.use(M), {
|
|
124
|
+
isLoading: i
|
|
125
|
+
} = o;
|
|
126
|
+
return i ? /* @__PURE__ */ v.jsx("div", { ...t, className: U("SkeletonWrapper", t.className) }) : null;
|
|
127
|
+
}, me = (a) => {
|
|
128
|
+
const t = ne.c(8), {
|
|
129
|
+
...o
|
|
130
|
+
} = a, {
|
|
131
|
+
editorRef: i,
|
|
132
|
+
isLoading: s
|
|
133
|
+
} = l.use(M), c = i || o.ref, d = U("Wrapper", o.className), m = s ? "hidden" : "visible";
|
|
134
|
+
let p;
|
|
135
|
+
t[0] !== o.style || t[1] !== m ? (p = {
|
|
136
|
+
visibility: m,
|
|
137
|
+
...o.style
|
|
138
|
+
}, t[0] = o.style, t[1] = m, t[2] = p) : p = t[2];
|
|
139
|
+
let I;
|
|
140
|
+
return t[3] !== o || t[4] !== c || t[5] !== d || t[6] !== p ? (I = /* @__PURE__ */ v.jsx("div", { ...o, ref: c, className: d, style: p }), t[3] = o, t[4] = c, t[5] = d, t[6] = p, t[7] = I) : I = t[7], I;
|
|
141
|
+
}, Ee = (a) => {
|
|
142
|
+
const {
|
|
143
|
+
children: t,
|
|
144
|
+
initialValue: o,
|
|
145
|
+
placeholder: i,
|
|
146
|
+
readOnly: s,
|
|
147
|
+
toolbarOptions: c,
|
|
148
|
+
onChange: d,
|
|
149
|
+
onImageUpload: m,
|
|
150
|
+
customFonts: p,
|
|
151
|
+
...I
|
|
152
|
+
} = a, [Z, D] = l.useState(!0), [A, J] = l.useState(null), [S, Y] = l.useState(null), b = l.useRef(null), E = l.useRef(null), L = l.useRef(d), x = l.useRef(!1), z = l.useRef(m), y = l.useRef(null), q = l.useRef(null), _ = l.useMemo(() => c ? c.map((n) => Array.isArray(n) ? n.map((r) => typeof r == "object" && r !== null && "font" in r && Array.isArray(r.font) ? {
|
|
153
|
+
font: r.font.map((e) => typeof e == "string" ? G(e) : e)
|
|
154
|
+
} : r) : n) : K, [c]), $ = l.useMemo(() => ({
|
|
155
|
+
theme: "snow",
|
|
156
|
+
modules: {
|
|
157
|
+
toolbar: {
|
|
158
|
+
container: _,
|
|
159
|
+
handlers: {
|
|
160
|
+
image: function() {
|
|
161
|
+
if (typeof document > "u") return;
|
|
162
|
+
const r = this.quill, e = z.current, g = r.getSelection(!0);
|
|
163
|
+
if (e) {
|
|
164
|
+
const f = document.createElement("input");
|
|
165
|
+
f.setAttribute("type", "file"), f.setAttribute("accept", "image/*"), f.click(), f.onchange = async () => {
|
|
166
|
+
if (f.files && f.files[0]) {
|
|
167
|
+
const C = f.files[0];
|
|
168
|
+
try {
|
|
169
|
+
await e(C, r, g);
|
|
170
|
+
} catch (k) {
|
|
171
|
+
console.error("[EditorRoot] Image upload failed:", k);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
} else
|
|
176
|
+
alert("이미지 업로드 핸들러가 설정되지 않았습니다. 이미지는 base64로 인코딩됩니다.");
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
imageResize: !0,
|
|
181
|
+
mediaResize: !0
|
|
182
|
+
},
|
|
183
|
+
placeholder: i || "내용을 입력하세요...",
|
|
184
|
+
readOnly: s || !1
|
|
185
|
+
}), [i, s, _]), T = l.useCallback((...n) => {
|
|
186
|
+
var r, e;
|
|
187
|
+
(e = L.current) == null || e.call(L, {
|
|
188
|
+
delta: n[0],
|
|
189
|
+
oldContents: n[1],
|
|
190
|
+
source: n[2],
|
|
191
|
+
value: (r = E.current) == null ? void 0 : r.root.innerHTML
|
|
192
|
+
});
|
|
193
|
+
}, []), B = l.useCallback(() => {
|
|
194
|
+
const n = E.current;
|
|
195
|
+
if (!n)
|
|
196
|
+
return;
|
|
197
|
+
n.off("text-change", T);
|
|
198
|
+
const r = b.current;
|
|
199
|
+
if (r) {
|
|
200
|
+
const e = r.parentElement;
|
|
201
|
+
e && e.querySelectorAll(".ql-toolbar").forEach((f) => {
|
|
202
|
+
e.removeChild(f);
|
|
203
|
+
}), r.innerHTML = "";
|
|
204
|
+
}
|
|
205
|
+
y.current && (y.current.remove(), y.current = null), q.current && (q.current.remove(), q.current = null), E.current = null, x.current = !1;
|
|
206
|
+
}, [T]);
|
|
207
|
+
l.useEffect(() => {
|
|
208
|
+
import("quill").then((n) => {
|
|
209
|
+
J(n);
|
|
210
|
+
}).catch((n) => {
|
|
211
|
+
console.error("[EditorRoot] Failed to load Quill module:", n), D(!1);
|
|
212
|
+
});
|
|
213
|
+
}, []), l.useEffect(() => {
|
|
214
|
+
typeof window < "u" && import("./index-CsNmTnCb.js").then((n) => {
|
|
215
|
+
Y(n.default);
|
|
216
|
+
}).catch((n) => {
|
|
217
|
+
console.error("[EditorRoot] Failed to load custom Quill modules:", n);
|
|
218
|
+
});
|
|
219
|
+
}, []), l.useEffect(() => {
|
|
220
|
+
L.current = d;
|
|
221
|
+
}, [d]), l.useEffect(() => {
|
|
222
|
+
z.current = m;
|
|
223
|
+
}, [m]), l.useEffect(() => {
|
|
224
|
+
if (typeof document > "u" || !p || p.length === 0) {
|
|
225
|
+
const r = document.getElementById("quill-editor-custom-fonts");
|
|
226
|
+
r && (r.remove(), q.current = null);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const n = fe(p);
|
|
230
|
+
if (n) {
|
|
231
|
+
const r = document.getElementById("quill-editor-custom-fonts");
|
|
232
|
+
r && r.remove();
|
|
233
|
+
const e = document.createElement("style");
|
|
234
|
+
e.id = "quill-editor-custom-fonts", e.textContent = n, document.head.appendChild(e), q.current = e;
|
|
235
|
+
}
|
|
236
|
+
return () => {
|
|
237
|
+
};
|
|
238
|
+
}, [p]), l.useEffect(() => {
|
|
239
|
+
if (typeof document > "u") return;
|
|
240
|
+
const n = F(c || K), r = F(_);
|
|
241
|
+
if (n.length > 0) {
|
|
242
|
+
const e = de(n, r);
|
|
243
|
+
if (e) {
|
|
244
|
+
const g = document.getElementById("quill-editor-font-styles");
|
|
245
|
+
g && g.remove();
|
|
246
|
+
const f = document.createElement("style");
|
|
247
|
+
f.id = "quill-editor-font-styles", f.textContent = e, document.head.appendChild(f), y.current = f;
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
const e = document.getElementById("quill-editor-font-styles");
|
|
251
|
+
e && (e.remove(), y.current = null);
|
|
252
|
+
}
|
|
253
|
+
return () => {
|
|
254
|
+
};
|
|
255
|
+
}, [c, _]), l.useEffect(() => {
|
|
256
|
+
var n, r;
|
|
257
|
+
if (A && S && b.current && !E.current) {
|
|
258
|
+
const e = A.default, g = e.import("parchment"), f = new g.StyleAttributor("size", "fontSize", {
|
|
259
|
+
scope: g.Scope.INLINE,
|
|
260
|
+
whitelist: [...W]
|
|
261
|
+
});
|
|
262
|
+
e.register(f, !0);
|
|
263
|
+
const C = F(_);
|
|
264
|
+
if (C.length > 0) {
|
|
265
|
+
const R = e.import("attributors/class/font");
|
|
266
|
+
if (R && typeof R == "object" && "whitelist" in R) {
|
|
267
|
+
const h = R;
|
|
268
|
+
h.whitelist = C, e.register("attributors/class/font", h, !0);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
S.ImageResize && !O.has("imageResize") && (e.register("modules/imageResize", S.ImageResize), O.add("imageResize")), S.MediaResize && !O.has("mediaResize") && (e.register("modules/mediaResize", S.MediaResize), O.add("mediaResize"));
|
|
272
|
+
const k = new e(b.current, $);
|
|
273
|
+
if (E.current = k, !x.current && o !== void 0 && (k.clipboard.dangerouslyPasteHTML(o || ""), x.current = !0), (n = E.current) == null || n.on("text-change", T), D(!1), typeof window < "u" && b.current) {
|
|
274
|
+
const R = (r = b.current.parentElement) == null ? void 0 : r.querySelector(".ql-toolbar");
|
|
275
|
+
if (R) {
|
|
276
|
+
const h = R.querySelector(".ql-picker.ql-font");
|
|
277
|
+
if (h) {
|
|
278
|
+
const w = () => {
|
|
279
|
+
const N = h.querySelector(".ql-picker-label");
|
|
280
|
+
if (N && N.getAttribute("data-value")) {
|
|
281
|
+
const P = N.getAttribute("data-value"), j = X.get(P || "");
|
|
282
|
+
if (j && P) {
|
|
283
|
+
const V = Array.from(N.childNodes).find((te) => te.nodeType === Node.TEXT_NODE);
|
|
284
|
+
V && (V.textContent = j);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
w(), new MutationObserver(() => {
|
|
289
|
+
w();
|
|
290
|
+
}).observe(h, {
|
|
291
|
+
attributes: !0,
|
|
292
|
+
attributeFilter: ["data-value"],
|
|
293
|
+
subtree: !0
|
|
294
|
+
}), h.addEventListener("click", () => {
|
|
295
|
+
setTimeout(w, 0);
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}, [o, A, S, $, T, _]), l.useEffect(() => () => {
|
|
302
|
+
B(), y.current && (y.current.remove(), y.current = null);
|
|
303
|
+
}, [B]), l.useEffect(() => {
|
|
304
|
+
const n = E.current;
|
|
305
|
+
n && n.enable(!s);
|
|
306
|
+
}, [s]);
|
|
307
|
+
const ee = {
|
|
308
|
+
...Q,
|
|
309
|
+
quill: E.current,
|
|
310
|
+
isLoading: Z,
|
|
311
|
+
editorRef: b,
|
|
312
|
+
placeholder: i,
|
|
313
|
+
initialValue: o,
|
|
314
|
+
readOnly: s,
|
|
315
|
+
toolbarOptions: c,
|
|
316
|
+
onChange: d,
|
|
317
|
+
onImageUpload: z.current
|
|
318
|
+
};
|
|
319
|
+
return /* @__PURE__ */ v.jsx(M.Provider, { value: ee, children: /* @__PURE__ */ v.jsx("div", { ...I, className: U("EditorContainer", I.className, {
|
|
320
|
+
readOnly: s
|
|
321
|
+
}), children: t }) });
|
|
322
|
+
};
|
|
323
|
+
function ye(a, t) {
|
|
324
|
+
return {
|
|
325
|
+
...a,
|
|
326
|
+
...t
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
const ge = {
|
|
330
|
+
Root: Ee,
|
|
331
|
+
Input: me,
|
|
332
|
+
Skeleton: pe
|
|
333
|
+
}, be = ye(ge, {
|
|
334
|
+
TOOLBAR: H
|
|
335
|
+
});
|
|
336
|
+
export {
|
|
337
|
+
be as Editor
|
|
338
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Calendar } from '../components/Calendar/Calendar';
|
|
2
|
+
export { CalendarContext } from '../components/Calendar/Calendar.context';
|
|
3
|
+
export { default as ScrollCalendar } from '../components/ScrollCalendar/ScrollCalendar';
|
|
4
|
+
export { ScrollCalendarContext } from '../components/ScrollCalendar/ScrollCalendar.context';
|
|
5
|
+
export { default as WeeklyCalendar } from '../components/WeeklyCalendar/WeeklyCalendar';
|
|
6
|
+
export { WeeklyCalendarContext } from '../components/WeeklyCalendar/WeeklyCalendar.context';
|
|
7
|
+
export type { CalendarContextType } from '../components/Calendar/Calendar.context';
|
|
8
|
+
export type { ScrollCalendarContextType } from '../components/ScrollCalendar/ScrollCalendar.context';
|
|
9
|
+
export type { WeeklyCalendarContextType, EventItemAsProps, EventItemPopperAsProps, } from '../components/WeeklyCalendar/WeeklyCalendar.context';
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Avatar } from '../components/Avatar/Avatar';
|
|
2
|
+
export { default as Badge } from '../components/Badge/Badge';
|
|
3
|
+
export { default as BarCode } from '../components/BarCode/BarCode';
|
|
4
|
+
export { default as Chips } from '../components/Chips/Chips';
|
|
5
|
+
export { default as Comment } from '../components/Comment/Comment';
|
|
6
|
+
export { default as Divider } from '../components/Divider/Divider';
|
|
7
|
+
export { default as Label } from '../components/Label/Label';
|
|
8
|
+
export { default as LazyImage } from '../components/LazyImage/LazyImage';
|
|
9
|
+
export { default as QRCode } from '../components/QRCode/QRCode';
|
|
10
|
+
export { default as Thumbnail } from '../components/Thumbnail/Thumbnail';
|
|
11
|
+
export type { BadgeRootProps, BadgeRenderProps, } from '../components/Badge/Badge';
|
|
12
|
+
export type { BarcodeActions } from '../components/BarCode/BarCode';
|
|
13
|
+
export type { QRCodeRef } from '../components/QRCode/QRCode';
|
|
14
|
+
export type { ThumbnailRootProps } from '../components/Thumbnail/Thumbnail';
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Editor } from '../components/Editor/Editor';
|
|
2
|
+
export type { EditorContextValue, CustomImageUploadHandler, UploadedImageInfo, } from '../components/Editor/Editor.context';
|
|
3
|
+
export type { EditorProps, CustomFont, CustomFontSource, } from '../components/Editor/Editor';
|
|
4
|
+
export type { ToolbarOptions, ToolbarGroup, ToolbarItem, ToolbarSimpleFormat, ToolbarComplexFormat, ToolbarSizeValue, } from '../components/Editor/constants/editor.constants';
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Modal } from '../components/Modal/Modal';
|
|
2
|
+
export { default as Popup } from '../components/Popup/Popup';
|
|
3
|
+
export { default as Sheet } from '../components/Sheet/Sheet';
|
|
4
|
+
export type { PopupRootProps } from '../components/Popup/Popup';
|
|
5
|
+
export type { SheetRootProps } from '../components/Sheet/Sheet';
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { default as Button } from '../components/Button/Button';
|
|
2
|
+
export { default as HelperText } from '../components/HelperText/HelperText';
|
|
3
|
+
export { default as Cascader } from '../components/Cascader/Cascader';
|
|
4
|
+
export { default as CheckBox } from '../components/Form/CheckBox/CheckBox';
|
|
5
|
+
export { default as Dropdown } from '../components/Form/Dropdown/Dropdown';
|
|
6
|
+
export { default as OTPInput } from '../components/Form/OTPInput/OTPInput';
|
|
7
|
+
export { default as Switch } from '../components/Form/Switch/Switch';
|
|
8
|
+
export { default as Radio } from '../components/Form/Radio/Radio';
|
|
9
|
+
export { default as TextInput } from '../components/Form/TextInput/TextInput';
|
|
10
|
+
export { default as TextArea } from '../components/Form/TextArea/TextArea';
|
|
11
|
+
export { default as MobilePicker } from '../components/MobilePicker/MobilePicker';
|
|
12
|
+
export { default as Slider } from '../components/Slider/Slider';
|
|
13
|
+
export { default as Stepper } from '../components/Stepper/Stepper';
|
|
14
|
+
export { default as TimeInput } from '../components/TimeInput/TimeInput';
|
|
15
|
+
export type { CascaderOption } from '../components/Cascader/Cascader.context';
|
|
16
|
+
export type { StepperProviderProps } from '../components/Stepper/Stepper';
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Icon } from '../components/Icon/Icon';
|
|
2
|
+
export { IconProvider } from '../components/Icon/context';
|
|
3
|
+
export { ICON_NAMES } from '../components/Icon/Icon.constant';
|
|
4
|
+
export type { IconName, StrictIconProps } from '../components/Icon/Icon';
|
|
5
|
+
export type { IconProviderProps, IconRegistry, IconComponent, DefaultIconName, } from '../components/Icon/context';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as Accordion } from '../components/Accordion/Accordion';
|
|
2
|
+
export { default as Breadcrumb } from '../components/Breadcrumb/Breadcrumb';
|
|
3
|
+
export { default as List } from '../components/List/List';
|
|
4
|
+
export { default as LNB } from '../components/LNB/LNB';
|
|
5
|
+
export { makeNavigation } from '../components/LNB/makeNavigation';
|
|
6
|
+
export { default as Pagination } from '../components/Pagination/Pagination';
|
|
7
|
+
export { default as ScrollSpy } from '../components/ScrollSpy/ScrollSpy';
|
|
8
|
+
export { default as Tab } from '../components/Tab/Tab';
|
|
9
|
+
export type { LNBContextType, LNBListItem, Navigation, } from '../components/LNB/LNB';
|
package/dist/entry/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** Table */
|
|
3
3
|
export type { TableRootProps } from '../components/Table/Table';
|
|
4
4
|
/** LNB */
|
|
5
|
-
export type { Navigation } from '../components/LNB/LNB';
|
|
5
|
+
export type { LNBContextType, LNBListItem, Navigation } from '../components/LNB/LNB';
|
|
6
6
|
/** Badge */
|
|
7
7
|
export type { BadgeRootProps, BadgeRenderProps, } from '../components/Badge/Badge';
|
|
8
8
|
/** QRCode */
|
|
File without changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { VideoPlayer, VIDEO_PLAYER_DEFAULTS, convertSrtToVtt, getHtmlVideoElementFromVideoJs, isSrtSubtitleSource, parseWebVttToCues, videeoPlayerConvertSrtToVtt, videeoPlayerParseWebVttToCues, VideeoPlayerConvertSrtToVtt, VideeoPlayerParseWebVttToCues, } from '../components/VideoPlayer';
|
|
2
|
+
export type { IVideoPlayer, VideoPlayerProps, VideoPlayerRootProps, VideoPlayerControls, VideoPlayerTexts, VideoPlayerAria, VideoPlayerIcons, VideeoPlayerControls, VideeoPlayerTexts, VideeoPlayerAria, VideeoPlayerIcons, VideoPlayerEvents, VideoPlayerStoreApi, VideoPlayerImageComponent, VideoPlayerImageProps, VideoPlayerStore, VideoPlayerState, VideoPlayerActions, VideoPlayerStoreConfig, VideoPlayerExternalController, VideoJsPlayer, VideoPlayerProviderProps, VttCue, VideeoPlayerVttCue, } from '../components/VideoPlayer';
|
|
3
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer Popup{html:has(._Layer_14dap_2:popover-open._bodyScroll_14dap_2){overflow:auto}html:has(._Layer_14dap_2:popover-open:not(._bodyScroll_14dap_2)){overflow:hidden}@property --shadow-color{syntax: "<color>"; initial-value: rgba(145,158,171,.2); inherits: false;}._Contents_14dap_13{padding:16px;background-color:#fff;border-radius:10px;box-shadow:0 20px 50px 20px var(--shadow-color);z-index:1000;position:relative;display:flex;flex-direction:column}._Dimmed_14dap_23{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;cursor:default}._Layer_14dap_2{width:100%;height:100%;border:none;background:none}._Layer_14dap_2:popover-open{display:flex;justify-content:center;align-items:center}._Layer_14dap_2::backdrop{display:none}}@layer Sheet{._Dimmed_dueb9_2{position:fixed;top:0;left:0;width:100dvw;height:100dvh;background-color:#00000080;z-index:998}@property --safe-size{syntax: "<length>"; initial-value: 1000px; inherits: false;}@property --shadow-color{syntax: "<color>"; initial-value: rgba(145,158,171,.1215686275); inherits: false;}._Wrapper_dueb9_21{position:fixed;z-index:999;display:none;transition:display .25s ease-in-out allow-discrete;background-color:#fff}._Wrapper_dueb9_21._open_dueb9_28{display:block}._Wrapper_dueb9_21._top_dueb9_31{width:100vw;box-shadow:0 40px 40px -4px var(--shadow-color);padding-top:var(--safe-size);top:calc(0% - var(--safe-size));left:0}._Wrapper_dueb9_21._bottom_dueb9_38{width:100vw;border-radius:16px 16px 0 0;box-shadow:0 -40px 40px -4px var(--shadow-color);padding-bottom:var(--safe-size);bottom:calc(0% - var(--safe-size));left:0}._Wrapper_dueb9_21._left_dueb9_46{height:100vh;box-shadow:40px 0 40px -4px var(--shadow-color);padding-left:var(--safe-size);top:0;left:calc(0% - var(--safe-size))}._Wrapper_dueb9_21._right_dueb9_53{height:100vh;box-shadow:-40px 0 40px -4px var(--shadow-color);padding-right:var(--safe-size);top:0;right:calc(0% - var(--safe-size))}}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Modal } from '../components/Modal/Modal';
|
|
2
|
+
export { default as Popup } from '../components/Popup/Popup';
|
|
3
|
+
export { default as Sheet } from '../components/Sheet/Sheet';
|
|
4
|
+
export type { PopupRootProps } from '../components/Popup/Popup';
|
|
5
|
+
export type { SheetRootProps } from '../components/Sheet/Sheet';
|
|
6
|
+
export {};
|