@soul-refiner/design-system 2.14.64 → 2.14.66
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/components/editor/minimal_editor/alignment_dropdown.js +67 -0
- package/dist/components/editor/minimal_editor/minimal_editor.js +107 -0
- package/dist/components/editor/minimal_editor/navbar.js +45 -0
- package/dist/components/editor/minimal_editor/plugins.js +1 -0
- package/dist/components/editor/plugins/blocks/text.js +1 -1
- package/dist/components/input/counter/counter.js +151 -0
- package/dist/components/media/video-player/video.js +1 -1
- package/dist/components/navigation/tabs/custom-tabs.js +22 -0
- package/dist/index.js +1 -1
- package/dist/src/components/editor/index.d.ts +2 -0
- package/dist/src/components/editor/index.d.ts.map +1 -1
- package/dist/src/components/editor/minimal_editor/alignment_dropdown.d.ts +6 -0
- package/dist/src/components/editor/minimal_editor/alignment_dropdown.d.ts.map +1 -0
- package/dist/src/components/editor/minimal_editor/index.d.ts +3 -0
- package/dist/src/components/editor/minimal_editor/index.d.ts.map +1 -0
- package/dist/src/components/editor/minimal_editor/minimal_editor.d.ts +18 -0
- package/dist/src/components/editor/minimal_editor/minimal_editor.d.ts.map +1 -0
- package/dist/src/components/editor/minimal_editor/navbar.d.ts +8 -0
- package/dist/src/components/editor/minimal_editor/navbar.d.ts.map +1 -0
- package/dist/src/components/editor/minimal_editor/plugins.d.ts +2 -0
- package/dist/src/components/editor/minimal_editor/plugins.d.ts.map +1 -0
- package/dist/src/components/editor/plugins/blocks/text.d.ts.map +1 -1
- package/dist/src/components/input/counter/counter.d.ts +27 -0
- package/dist/src/components/input/counter/counter.d.ts.map +1 -0
- package/dist/src/components/input/counter/index.d.ts +3 -0
- package/dist/src/components/input/counter/index.d.ts.map +1 -0
- package/dist/src/components/input/index.d.ts +2 -0
- package/dist/src/components/input/index.d.ts.map +1 -1
- package/dist/src/components/navigation/index.d.ts +2 -2
- package/dist/src/components/navigation/index.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/custom-tabs.d.ts +34 -0
- package/dist/src/components/navigation/tabs/custom-tabs.d.ts.map +1 -0
- package/dist/src/components/navigation/tabs/index.d.ts +2 -0
- package/dist/src/components/navigation/tabs/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),o=require("@udecode/plate"),i=require("@udecode/plate-alignment"),n=require("../../actions/dropdown/dropdown.js"),t=require("../../../icons/text/align_center.js"),l=require("../../../icons/text/align_justified.js"),a=require("../../../icons/text/align_left.js"),s=require("../../../icons/text/align_right.js"),c=require("../../../icons/arrow/chevron_down.js");const d=[{value:"left",icon:a.AlignLeft,label:"Align Left"},{value:"center",icon:t.AlignCenter,label:"Align Center"},{value:"right",icon:s.AlignRight,label:"Align Right"},{value:"justify",icon:l.AlignJustified,label:"Align Justify"}],g=r.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
`,u=r.styled.button`
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 2px;
|
|
9
|
+
min-width: 32px;
|
|
10
|
+
height: 28px;
|
|
11
|
+
padding: 6px;
|
|
12
|
+
border: none;
|
|
13
|
+
border-radius: 3px;
|
|
14
|
+
background-color: ${({$active:e})=>e?"var(--color-grey-8)":"transparent"};
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
transition: background-color 0.2s ease;
|
|
17
|
+
|
|
18
|
+
&:hover:not(:disabled) {
|
|
19
|
+
background-color: var(--color-grey-8);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:active:not(:disabled) {
|
|
23
|
+
background-color: var(--color-grey-7);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
fill: var(--color-grey-3);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:disabled {
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
svg {
|
|
33
|
+
fill: var(--color-grey-7);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`,p=r.styled.button`
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
width: 28px;
|
|
41
|
+
height: 28px;
|
|
42
|
+
padding: 6px;
|
|
43
|
+
border: none;
|
|
44
|
+
border-radius: 3px;
|
|
45
|
+
background-color: ${({$active:e})=>e?"var(--color-grey-8)":"transparent"};
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
transition: background-color 0.2s ease;
|
|
48
|
+
|
|
49
|
+
&:hover:not(:disabled) {
|
|
50
|
+
background-color: var(--color-grey-8);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:active:not(:disabled) {
|
|
54
|
+
background-color: var(--color-grey-7);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
svg {
|
|
58
|
+
fill: var(--color-grey-3);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:disabled {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
svg {
|
|
64
|
+
fill: var(--color-grey-7);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;exports.MinimalAlignmentDropdown=({editorRef:r})=>{const t=i.useAlignDropdownMenuState(),{radioGroupProps:l}=i.useAlignDropdownMenu(t),s=l.value||"left",v=d.find(e=>e.value===s)?.icon||a.AlignLeft;return e.jsx(g,{children:e.jsx(n.Dropdown,{onChange:e=>{const i=e.target.getAttribute("data-value");i&&o.setAlign(r,{value:i})},offset:[0,4],options:d.map(r=>({icon:e.jsx(p,{$active:s===r.value,children:e.jsx(r.icon,{size:16})}),value:r.value,sx:"gap: 0px; padding: 4px;"})),maintainState:!1,trigger:e.jsxs(u,{$active:!1,title:"Text Alignment",children:[e.jsx(v,{size:16}),e.jsx(c.ChevronDown,{size:16})]})})})};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var o=require("react/jsx-runtime"),r=require("styled-components"),e=require("@udecode/plate"),l=require("./plugins.js"),t=require("./navbar.js");const i=r.styled.div`
|
|
3
|
+
position: relative;
|
|
4
|
+
width: ${({$width:o})=>o};
|
|
5
|
+
${({$height:o})=>o?`height: ${o};`:""}
|
|
6
|
+
min-height: ${({$minHeight:o})=>o};
|
|
7
|
+
border: 1px solid ${({$borderColor:o})=>o};
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
background-color: ${({$contentBackgroundColor:o})=>o};
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
|
|
14
|
+
* {
|
|
15
|
+
font-family: var(--font-inter);
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.slate-bold {
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.slate-italic {
|
|
24
|
+
font-style: italic;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.slate-underline {
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ul {
|
|
32
|
+
padding-left: 20px;
|
|
33
|
+
margin: 0;
|
|
34
|
+
|
|
35
|
+
li {
|
|
36
|
+
list-style-type: disc;
|
|
37
|
+
margin: 4px 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ol {
|
|
42
|
+
padding-left: 20px;
|
|
43
|
+
margin: 0;
|
|
44
|
+
|
|
45
|
+
li {
|
|
46
|
+
list-style-type: decimal;
|
|
47
|
+
margin: 4px 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
${({$sx:o})=>o||""};
|
|
52
|
+
`,a=r.styled.div`
|
|
53
|
+
flex: 1;
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
overflow-x: hidden;
|
|
56
|
+
|
|
57
|
+
& > div {
|
|
58
|
+
padding: 36px 16px 16px 16px;
|
|
59
|
+
min-height: 100px;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
line-height: 1.5;
|
|
63
|
+
color: ${({$textColor:o})=>o};
|
|
64
|
+
|
|
65
|
+
& > div {
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
li {
|
|
71
|
+
color: ${({$textColor:o})=>o};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Placeholder text color */
|
|
75
|
+
[data-slate-placeholder]::before {
|
|
76
|
+
color: ${({$placeholderColor:o})=>o};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
span[data-slate-placeholder='true'] {
|
|
80
|
+
color: ${({$placeholderColor:o})=>o};
|
|
81
|
+
opacity: 1;
|
|
82
|
+
font-size: 1rem;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
padding: 38px 5px;
|
|
86
|
+
font-family: var(--font-inter);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Custom scrollbar styles */
|
|
90
|
+
&::-webkit-scrollbar {
|
|
91
|
+
width: 8px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::-webkit-scrollbar-track {
|
|
95
|
+
background: var(--color-grey-10, #f1f1f1);
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&::-webkit-scrollbar-thumb {
|
|
100
|
+
background: var(--color-grey-6, #888);
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
105
|
+
background: var(--color-grey-5, #555);
|
|
106
|
+
}
|
|
107
|
+
`;exports.MinimalEditor=({editable:r,onChange:n,sx:d,placeholder:c="Write a short description about your course...",previousContent:s=[{type:"p",children:[{text:""}]}],width:h="100%",height:p="300px",minHeight:g="120px",navBackgroundColor:x="var(--color-white)",contentBackgroundColor:u="var(--color-white)",borderColor:b="var(--color-grey-8)",placeholderColor:$="var(--color-grey-5)",textColor:m="var(--color-grey-3)"})=>o.jsx(e.Plate,{id:"minimal-editor",initialValue:s,onChange:n,plugins:l.plugins,children:o.jsxs(i,{$sx:d,$width:h,$height:p,$minHeight:g,$borderColor:b,$contentBackgroundColor:u,children:[r&&o.jsx(t.MinimalEditorBar,{navBackgroundColor:x,borderColor:b}),o.jsx(a,{$contentBackgroundColor:u,$placeholderColor:$,$textColor:m,children:o.jsx(e.PlateContent,{autoFocus:!1,placeholder:c,readOnly:!r,spellCheck:!0})})]})});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),o=require("@udecode/plate"),t=require("@udecode/plate-indent"),i=require("../../../icons/basic/bold.js"),n=require("../../../icons/basic/italic.js"),s=require("../../../icons/basic/underline.js"),d=require("../../../icons/text/list_ordered.js"),l=require("../../../icons/text/list_unordered.js"),a=require("../../../icons/text/indent_increase.js"),c=require("../../../icons/text/indent_decrease.js"),u=require("./alignment_dropdown.js");const p=r.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
padding: 8px 12px;
|
|
6
|
+
background-color: ${({$navBackgroundColor:e})=>e};
|
|
7
|
+
border-radius: 4px 4px 0 0;
|
|
8
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
9
|
+
`,h=r.styled.button`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
width: ${({$width:e})=>e??28}px;
|
|
14
|
+
height: ${({$height:e})=>e??28}px;
|
|
15
|
+
padding: 6px;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: 3px;
|
|
18
|
+
background-color: ${({$active:e})=>e?"var(--color-grey-8)":"transparent"};
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition: background-color 0.2s ease;
|
|
21
|
+
|
|
22
|
+
&:hover:not(:disabled) {
|
|
23
|
+
background-color: var(--color-grey-8);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:active:not(:disabled) {
|
|
27
|
+
background-color: var(--color-grey-7);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
svg {
|
|
31
|
+
fill: var(--color-grey-3);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
svg {
|
|
37
|
+
fill: var(--color-grey-7);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`,x=r.styled.div`
|
|
41
|
+
width: 1px;
|
|
42
|
+
height: 20px;
|
|
43
|
+
background-color: ${({$borderColor:e})=>e};
|
|
44
|
+
margin: 0 4px;
|
|
45
|
+
`;exports.MinimalEditorBar=({navBackgroundColor:r="var(--color-white)",borderColor:b="var(--color-grey-9)",buttonWidth:g=28,buttonHeight:$=28})=>{const j=o.useEditorRef(),k=o.useMarkToolbarButtonState({nodeType:o.MARK_BOLD}),{props:{pressed:v,onClick:C}}=o.useMarkToolbarButton(k),y=o.useMarkToolbarButtonState({nodeType:o.MARK_ITALIC}),{props:{pressed:B,onClick:T}}=o.useMarkToolbarButton(y),w=o.useMarkToolbarButtonState({nodeType:o.MARK_UNDERLINE}),{props:{pressed:L,onClick:M}}=o.useMarkToolbarButton(w),q=o.useListToolbarButtonState({nodeType:o.ELEMENT_OL}),{props:{pressed:I,onClick:m}}=o.useListToolbarButton(q),E=o.useListToolbarButtonState({nodeType:o.ELEMENT_UL}),{props:{pressed:_,onClick:f}}=o.useListToolbarButton(E);return e.jsxs(p,{$navBackgroundColor:r,$borderColor:b,children:[e.jsx(h,{$active:v,onClick:C,title:"Bold",$width:g,$height:$,children:e.jsx(i.Bold,{size:16})}),e.jsx(h,{$active:B,onClick:T,title:"Italic",$width:g,$height:$,children:e.jsx(n.Italic,{size:16})}),e.jsx(h,{$active:L,onClick:M,title:"Underline",$width:g,$height:$,children:e.jsx(s.Underline,{size:16})}),e.jsx(x,{$borderColor:b}),e.jsx(u.MinimalAlignmentDropdown,{editorRef:j}),e.jsx(x,{$borderColor:b}),e.jsx(h,{$active:_,onClick:f,title:"Bullet List",$width:g,$height:$,children:e.jsx(l.ListUnordered,{size:16})}),e.jsx(h,{$active:I,onClick:m,title:"Numbered List",$width:g,$height:$,children:e.jsx(d.ListOrdered,{size:16})}),e.jsx(x,{$borderColor:b}),e.jsx(h,{onClick:()=>{j&&t.outdent(j)},title:"Decrease Indent",$width:g,$height:$,children:e.jsx(c.IndentDecrease,{size:16})}),e.jsx(h,{onClick:()=>{j&&t.indent(j)},title:"Increase Indent",$width:g,$height:$,children:e.jsx(a.IndentIncrease,{size:16})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),t=require("@udecode/plate-indent"),i=require("../plugins/plate.js");const n=e.createPlugins([e.createParagraphPlugin(),e.createListPlugin(),e.createBoldPlugin(),e.createItalicPlugin(),e.createUnderlinePlugin(),e.createAlignPlugin({inject:{props:{validTypes:[e.ELEMENT_PARAGRAPH]}}}),t.createIndentPlugin({options:{offset:40,unit:"px"}}),e.createHistoryPlugin()],{components:i.plateUI});exports.plugins=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate"),n=require("../../../atoms/typography/paragraph.js"),l=require("../../../atoms/typography/heading.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);const s=a.default.forwardRef(({children:t,...l},i)=>{const a=l?.style?.textAlign,s=l.element?.indent||0,c=s>0?`padding-left: ${40*s}px;`:"";return e.jsx(r.PlateElement,{asChild:!0,ref:i,...l,children:e.jsx(e.Fragment,{children:e.jsx(n.P,{as:"div",$textAlign:a,$sx:c,children:t})})})}),c=r.createPluginFactory({key:r.ELEMENT_PARAGRAPH,type:r.ELEMENT_PARAGRAPH,isElement:!0}),E=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.One,{$textAlign:a,children:t})})})}),d=r.createPluginFactory({key:r.ELEMENT_H1,type:r.ELEMENT_H1,isElement:!0}),x=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Two,{$textAlign:a,children:t})})})}),o=r.createPluginFactory({key:r.ELEMENT_H2,type:r.ELEMENT_H2,isElement:!0}),h=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Three,{$textAlign:a,children:t})})})}),u=r.createPluginFactory({key:r.ELEMENT_H3,type:r.ELEMENT_H3,isElement:!0}),g=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Four,{$textAlign:a,children:t})})})}),f=r.createPluginFactory({key:r.ELEMENT_H4,type:r.ELEMENT_H4,isElement:!0}),p=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Five,{$textAlign:a,children:t})})})}),y=r.createPluginFactory({key:r.ELEMENT_H5,type:r.ELEMENT_H5,isElement:!0}),m=a.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Six,{$textAlign:a,children:t})})})}),H=r.createPluginFactory({key:r.ELEMENT_H6,type:r.ELEMENT_H6,isElement:!0});exports.HFiveElement=p,exports.HFourElement=g,exports.HOneElement=E,exports.HSixElement=m,exports.HThreeElement=h,exports.HTwoElement=x,exports.ParagraphElement=s,exports.createHFivePlugin=y,exports.createHFourPlugin=f,exports.createHOnePlugin=d,exports.createHSixPlugin=H,exports.createHThreePlugin=u,exports.createHTwoPlugin=o,exports.createParagraphPlugin=c;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("styled-components"),t=require("../../../icons/basic/plus.js"),l=require("../../../icons/basic/minus.js");const n=o.styled.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
|
|
8
|
+
${({$sx:e})=>e||""}
|
|
9
|
+
`,i=o.styled.label`
|
|
10
|
+
font-family: var(--font-inter);
|
|
11
|
+
font-size: ${({$size:e})=>"small"===e?12:"large"===e?16:14}px;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
line-height: ${({$size:e})=>"small"===e?16:"large"===e?20:18}px;
|
|
14
|
+
color: var(--color-grey-2);
|
|
15
|
+
|
|
16
|
+
${({$disabled:e})=>e&&"color: var(--color-grey-6);"}
|
|
17
|
+
`,a=o.styled.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
border-radius: 8px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
width: ${({$width:e})=>e||"fit-content"};
|
|
22
|
+
|
|
23
|
+
max-width: ${({$maxWidth:e})=>e||"none"};
|
|
24
|
+
height: ${({$height:e,$size:r})=>e||(()=>{switch(r){case"small":return"32px";case"large":return"48px";default:return"40px"}})()};
|
|
25
|
+
transition: all 0.2s ease;
|
|
26
|
+
|
|
27
|
+
${({$variant:e,$disabled:r})=>"outlined"===e?"\n border: 1px solid var(--color-grey-8);\n background-color: var(--color-white);\n ":"filled"===e?"\n border: 1px solid transparent;\n background-color: var(--color-grey-10);\n ":"\n border: 1px solid var(--color-grey-8);\n background-color: var(--color-white);\n "}
|
|
28
|
+
|
|
29
|
+
${({$error:e})=>e&&"\n border-color: var(--color-red-4) !important;\n "}
|
|
30
|
+
|
|
31
|
+
${({$success:e})=>e&&"\n border-color: var(--color-green-3) !important;\n "}
|
|
32
|
+
|
|
33
|
+
&:focus-within {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
${({$disabled:e})=>e&&"\n opacity: 0.6;\n cursor: not-allowed;\n "}
|
|
37
|
+
`,s=o.styled.button`
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
background-color: var(--color-white);
|
|
42
|
+
border: none;
|
|
43
|
+
border-radius: 8px 0 0 8px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition: all 0.2s ease;
|
|
46
|
+
flex: 1;
|
|
47
|
+
min-width: ${({$size:e})=>{switch(e){case"small":return"32px";case"large":return"48px";default:return"40px"}}};
|
|
48
|
+
height: 100%;
|
|
49
|
+
|
|
50
|
+
&:hover:not(:disabled) {
|
|
51
|
+
background-color: var(--color-grey-10);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:active:not(:disabled) {
|
|
55
|
+
background-color: var(--color-grey-8);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:disabled {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
opacity: 0.5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
svg {
|
|
64
|
+
color: var(--color-grey-3);
|
|
65
|
+
}
|
|
66
|
+
`,c=o.styled.input`
|
|
67
|
+
background-color: var(--color-white);
|
|
68
|
+
border: none;
|
|
69
|
+
border-left: 1px solid var(--color-grey-8);
|
|
70
|
+
border-right: 1px solid var(--color-grey-8);
|
|
71
|
+
color: var(--color-grey-2);
|
|
72
|
+
font-family: var(--font-inter);
|
|
73
|
+
font-size: ${({$size:e})=>"small"===e?14:16}px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
line-height: ${({$size:e})=>"small"===e?20:"large"===e?24:22}px;
|
|
76
|
+
outline: none;
|
|
77
|
+
text-align: center;
|
|
78
|
+
|
|
79
|
+
flex: 1.2;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
max-width: none;
|
|
82
|
+
|
|
83
|
+
&::placeholder {
|
|
84
|
+
color: var(--color-grey-6);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:disabled {
|
|
88
|
+
cursor: not-allowed;
|
|
89
|
+
color: var(--color-grey-6);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&::-webkit-outer-spin-button,
|
|
93
|
+
&::-webkit-inner-spin-button {
|
|
94
|
+
-webkit-appearance: none;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&[type='number'] {
|
|
99
|
+
-moz-appearance: textfield;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
${({$inputSx:e})=>e||""}
|
|
103
|
+
`,d=o.styled.div`
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
background-color: var(--color-white);
|
|
108
|
+
border-left: 1px solid var(--color-grey-8);
|
|
109
|
+
border-right: 1px solid var(--color-grey-8);
|
|
110
|
+
flex: 1.2;
|
|
111
|
+
min-width: ${({$size:e})=>{switch(e){case"small":return"48px";case"large":return"64px";default:return"56px"}}};
|
|
112
|
+
height: 100%;
|
|
113
|
+
`,u=o.styled.button`
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
background-color: var(--color-blue-3);
|
|
118
|
+
border: none;
|
|
119
|
+
border-radius: 0 8px 8px 0;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
transition: all 0.2s ease;
|
|
122
|
+
flex: 1;
|
|
123
|
+
min-width: ${({$size:e})=>{switch(e){case"small":return"32px";case"large":return"48px";default:return"40px"}}};
|
|
124
|
+
height: 100%;
|
|
125
|
+
|
|
126
|
+
&:hover:not(:disabled) {
|
|
127
|
+
background-color: var(--color-blue-2);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:active:not(:disabled) {
|
|
131
|
+
background-color: var(--color-blue-1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:disabled {
|
|
135
|
+
cursor: not-allowed;
|
|
136
|
+
opacity: 0.5;
|
|
137
|
+
background-color: var(--color-grey-8);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
svg {
|
|
141
|
+
color: var(--color-white);
|
|
142
|
+
}
|
|
143
|
+
`,p=o.styled.span`
|
|
144
|
+
font-family: var(--font-inter);
|
|
145
|
+
font-size: ${({$size:e})=>"small"===e?12:14}px;
|
|
146
|
+
line-height: ${({$size:e})=>"small"===e?16:20}px;
|
|
147
|
+
color: var(--color-grey-4);
|
|
148
|
+
|
|
149
|
+
${({$error:e})=>e&&"color: var(--color-red-4);"}
|
|
150
|
+
${({$success:e})=>e&&"color: var(--color-green-3);"}
|
|
151
|
+
`;exports.Counter=({value:o,onChange:g,min:h=0,max:x=999,step:$=1,disabled:b=!1,size:v="medium",variant:f="default",allowDirectInput:y=!0,placeholder:m="0",label:w,helperText:z,error:k=!1,errorText:j,success:S=!1,successText:M,width:N,maxWidth:q,height:C,className:D,sx:W})=>{const[I,T]=r.useState(o.toString()),[A,E]=r.useState(!1),[B,F]=r.useState(!1);r.useEffect(()=>{A||T(o.toString())},[o,A]);const K=e=>{const r=Math.max(h,Math.min(x,e));r!==o&&g(r),F(!1)},P=()=>{if(b)return;const e=Math.max(h,o-$);K(e)},U=()=>{if(b)return;const e=Math.min(x,o+$);K(e)},G=()=>{if(E(!1),""===I)return void T(o.toString());const e=parseInt(I,10);if(isNaN(e)||e<h||e>x)return T(o.toString()),void F(!1);K(e)},H=b||o<=h,J=b||o>=x,L=k||B,O=S&&!L;return e.jsxs(n,{className:D,$sx:W,children:[w&&e.jsx(i,{$size:v,$disabled:b,children:w}),e.jsxs(a,{$size:v,$variant:f,$disabled:b,$error:L,$success:O,$width:N,$maxWidth:q,$height:C,children:[e.jsx(s,{onClick:P,disabled:H,$size:v,$variant:f,type:"button",children:e.jsx(l.Minus,{color:"grey-3",size:"small"===v?16:"large"===v?20:16})}),y?e.jsx(c,{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:I,onChange:e=>{const r=e.target.value;if(T(r),""===r)return void F(!1);const o=parseInt(r,10);isNaN(o)?F(!0):F(o<h||o>x)},onFocus:()=>{E(!0),F(!1)},onBlur:G,onKeyDown:e=>{"Enter"===e.key&&G(),"ArrowUp"===e.key&&(e.preventDefault(),U()),"ArrowDown"===e.key&&(e.preventDefault(),P())},disabled:b,placeholder:m,$size:v,$error:L,$success:O,$variant:f}):e.jsx(d,{$size:v,$variant:f,children:e.jsx("span",{style:{fontSize:"small"===v?14:16,fontWeight:500,color:"var(--color-grey-2)",margin:0},children:o})}),e.jsx(u,{onClick:U,disabled:J,$size:v,$variant:f,type:"button",children:e.jsx(t.Plus,{color:"white",size:"small"===v?16:"large"===v?20:16})})]}),(z||j||M)&&e.jsxs(p,{$size:v,$error:L,$success:O,children:[L&&j,O&&M,!L&&!O&&z]})]})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("react"),t=require("next/image"),n=require("react-player"),r=require("styled-components"),o=require("../../actions/button/button.js"),l=require("../../atoms/box/box.js");require("../../navigation/breadcrumb/breadcrumb.js"),require("../../navigation/inner/inner.js");var s=require("../../navigation/tabs/tabs.js")
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),t=require("next/image"),n=require("react-player"),r=require("styled-components"),o=require("../../actions/button/button.js"),l=require("../../atoms/box/box.js");require("../../navigation/breadcrumb/breadcrumb.js"),require("../../navigation/inner/inner.js");var s=require("../../navigation/tabs/tabs.js");require("../../navigation/tabs/custom-tabs.js");var a=require("../../../icons/basic/select_item.js"),d=require("../../atoms/typography/heading.js"),c=require("../../atoms/typography/paragraph.js"),p=require("../../../icons/security/lock_circle.js"),u=require("../../../icons/audio_video/play_solid.js"),g=require("../../../utils/local-storage.js"),h=require("./playlist-item.js"),x=require("./misc.js"),f=require("../../../icons/arrow/chevron_down.js"),m=require("../../surfaces/accordion/accordion.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=b(i),w=b(t),v=b(n);const j=1280/720,$=200*j,I=r.styled.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
background-color: var(--color-grey-0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("styled-components"),t=require("../../atoms/box/box.js"),o=require("../../atoms/typography/paragraph.js");const r=({items:i,sx:o,defaultWidth:r="104px",defaultHeight:l="50px",mobileWidth:a="80px",mobileHeight:d="38px"})=>e.jsx(t.Box,{$display:"flex",sx:`\n gap: 0;\n ${o||""}\n `,children:i.map((i,t)=>e.jsx(s,{label:i.label,active:i.active,onClick:i.onClick,disabled:i.disabled,width:i.width||r,height:i.height||l,mobileWidth:a,mobileHeight:d,sx:i.sx},t))}),s=({label:i,active:t,onClick:r,disabled:s,width:a="104px",height:d="50px",mobileWidth:h="80px",mobileHeight:n="38px",sx:x})=>e.jsx(l,{onClick:s?void 0:r,$active:t,$disabled:s,$width:a,$height:d,$mobileWidth:h,$mobileHeight:n,$sx:x,children:e.jsx(o.P,{$fontSize:14,$lineHeight:20,$semiBold:!0,$color:t?"grey-3":s?"grey-5":"grey-3",sx:"\n transition: color 0.2s ease;\n ",children:i})}),l=i.styled.div`
|
|
3
|
+
width: ${({$width:e})=>e};
|
|
4
|
+
height: ${({$height:e})=>e};
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
border-bottom: 3px solid
|
|
10
|
+
${({$active:e})=>e?"var(--Grey_N-Grey-3, #4A4F55)":"var(--Grey_N-Grey-8, #D0D2D6)"};
|
|
11
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
12
|
+
transition: border-color 0.2s ease;
|
|
13
|
+
|
|
14
|
+
@media (max-width: 768px) {
|
|
15
|
+
width: ${({$mobileWidth:e})=>e};
|
|
16
|
+
height: ${({$mobileHeight:e})=>e};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
${({$disabled:e,$active:i})=>!e&&!i&&"\n &:hover {\n border-bottom-color: var(--Grey_N-Grey-5, #787D84);\n }\n "}
|
|
20
|
+
|
|
21
|
+
${({$sx:e})=>e||""}
|
|
22
|
+
`;r.Item=s,s.displayName="CustomTabs.Item",exports.CustomTabs=r;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./components/actions/button/button.js"),o=require("./components/actions/dropdown/dropdown.js"),r=require("./components/actions/rate/rate.js"),
|
|
1
|
+
"use strict";var e=require("./components/actions/button/button.js"),o=require("./components/actions/dropdown/dropdown.js"),r=require("./components/actions/rate/rate.js"),t=require("./components/actions/switch/switch.js"),s=require("./components/actions/toggle/toggle.js"),i=require("./components/actions/upload/upload.js"),n=require("./components/actions/AccountSelector/selector.js"),a=require("./components/atoms/box/box.js"),p=require("./components/atoms/hide/hide.js"),c=require("./components/atoms/highlighter/highlighter.js"),u=require("./components/atoms/seconds_to_duration/seconds_to_duration.js"),m=require("./components/atoms/typography/display.js"),d=require("./components/atoms/typography/heading.js"),l=require("./components/atoms/typography/paragraph.js"),x=require("./components/atoms/typography/typography.js"),j=require("./components/atoms/time_ago/time_ago.js"),q=require("./components/card/card.js"),g=require("./components/editor/editor.js"),b=require("./components/editor/simple_editor/simple_editor.js"),h=require("./components/editor/minimal_editor/minimal_editor.js"),y=require("./components/feedback/badge/badge.js"),f=require("./components/feedback/banner/banner.js"),T=require("./components/feedback/loader/loader.js"),_=require("./components/feedback/notification/notification.js"),P=require("./components/feedback/progress/progress.js"),k=require("./components/feedback/toast/toast.js"),w=require("./components/feedback/tooltip/tooltip.js"),C=require("./components/feedback/animated_toast/animated_toast.js"),v=require("./components/feedback/emojiPicker/emoji-picker.js"),A=require("./components/feedback/emojiPicker/emoji-reactions.js"),S=require("./components/feedback/videoLoader/videoLoader.js"),D=require("./components/iconography/avatar/avatar.js"),B=require("./components/iconography/icon/icon.js"),I=require("./components/input/checkbox/checkbox.js"),E=require("./components/input/counter/counter.js"),R=require("./components/input/date/date.js"),H=require("./components/input/filter/filter.js"),L=require("./components/input/radio/radio.js"),M=require("./components/input/search/search.js"),N=require("./components/input/select/select.js"),V=require("./components/input/text_area/text_area.js"),U=require("./components/input/text_input/text_input.js"),F=require("./components/input/calendar/calendar.js"),z=require("./components/input/time/time.js"),G=require("./components/input/time_input/time_input.js"),J=require("./components/media/audio-player/audio-player.js"),K=require("./components/media/audio-playlist/audio-playlist.js"),O=require("./components/media/audio-preview/audio-preview.js"),Q=require("./components/media/video/video.js"),W=require("./components/media/video-player/video.js"),X=require("./components/media/audio-playlist/playing_indicator.js"),Y=require("./components/navigation/breadcrumb/breadcrumb.js"),Z=require("./components/navigation/inner/inner.js"),$=require("./components/navigation/tabs/tabs.js"),ee=require("./components/navigation/tabs/custom-tabs.js"),oe=require("./components/surfaces/accordion/accordion.js"),re=require("./components/surfaces/carousel/card/card.js"),te=require("./components/surfaces/comment/comment.js"),se=require("./components/surfaces/discuss_post/discuss_post.js"),ie=require("./components/surfaces/drawer/drawer.js"),ne=require("./components/surfaces/drawer/bottom-drawer.js"),ae=require("./components/surfaces/message/message.js"),pe=require("./components/surfaces/modal/modal.js"),ce=require("./components/surfaces/portal/portal.js"),ue=require("./components/surfaces/post/post.js"),me=require("./components/surfaces/calendar_date/calendar_date.js"),de=require("./components/table/table/table.js"),le=require("./components/custom/users_selection/users_selection.js"),xe=require("./components/custom/courses_selection/courses_selection.js"),je=require("./icons/index.js"),qe=require("./emoji/emojis.json.js");exports.Button=e.Button,exports.Dropdown=o.Dropdown,exports.Rate=r.Rate,exports.Switch=t.Switch,exports.Toggle=s.Toggle,exports.Upload=i.Upload,exports.AccountSelector=n.AccountSelector,exports.Box=a.Box,exports.HideButRender=p.HideButRender,exports.Highlighter=c.Highlighter,exports.SecToDuration=u.SecToDuration,exports.Display=m.Display,exports.H=d.H,exports.P=l.P,exports.Typography=x.Typography,exports.TimeAgo=j.TimeAgo,exports.Card=q.Card,exports.Editor=g.Editor,exports.SimpleEditor=b.SimpleEditor,exports.MinimalEditor=h.MinimalEditor,exports.Badge=y.Badge,exports.Banner=f.Banner,exports.Loader=T.Loader,exports.Notification=_.Notification,exports.Progress=P.Progress,exports.Toast=k.Toast,exports.Tooltip=w.Tooltip,exports.AnimatedToast=C.AnimatedToast,exports.CustomEmojiPicker=v.CustomEmojiPicker,exports.EmojiReaction=A.EmojiReaction,exports.VideoLoader=S.VideoLoader,exports.Avatar=D.Avatar,exports.Icon=B.Icon,exports.Checkbox=I.Checkbox,exports.Counter=E.Counter,exports.DatePicker=R.DatePicker,exports.Filter=H.Filter,exports.Radio=L.Radio,exports.Search=M.Search,exports.Select=N.Select,exports.TextArea=V.TextArea,exports.TextInput=U.TextInput,exports.CalendarInput=F.CalendarInput,exports.Time=z.Time,exports.TimeInput=G.TimeInput,exports.AudioPlayer=J.AudioPlayer,exports.AudioPlaylist=K.AudioPlaylist,exports.AudioPreview=O.AudioPreview,exports.Video=Q.Video,exports.VideoPlayer=W.VideoPlayer,exports.NowPlaying=X.NowPlaying,exports.Breadcrumb=Y.Breadcrumb,exports.InnerNav=Z.InnerNav,exports.Tabs=$.Tabs,exports.CustomTabs=ee.CustomTabs,exports.Accordion=oe.Accordion,exports.CardCarousel=re.CardCarousel,exports.Comment=te.Comment,exports.DiscussPost=se.DiscussPost,exports.Drawer=ie.Drawer,exports.BottomDrawer=ne.BottomDrawer,exports.Message=ae.Message,exports.Modal=pe.Modal,exports.Portal=ce.Portal,exports.Post=ue.Post,exports.CalendarDate=me.CalendarDate,exports.Table=de.Table,exports.UsersSelection=le.UsersSelection,exports.CoursesSelection=xe.CoursesSelection,exports.Icons=je,exports.emoji=qe;
|
|
@@ -2,4 +2,6 @@ export { Editor } from './editor';
|
|
|
2
2
|
export type { EditorProps, EditorContent } from './editor';
|
|
3
3
|
export { SimpleEditor } from './simple_editor';
|
|
4
4
|
export type { SimpleEditorProps } from './simple_editor';
|
|
5
|
+
export { MinimalEditor } from './minimal_editor';
|
|
6
|
+
export type { MinimalEditorProps } from './minimal_editor';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PlateEditor } from '@udecode/plate';
|
|
2
|
+
export interface MinimalAlignmentDropdownProps {
|
|
3
|
+
editorRef: PlateEditor;
|
|
4
|
+
}
|
|
5
|
+
export declare const MinimalAlignmentDropdown: ({ editorRef, }: MinimalAlignmentDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=alignment_dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/alignment_dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AAavD,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,WAAW,CAAC;CACxB;AA+BD,eAAO,MAAM,wBAAwB,mBAElC,6BAA6B,4CA2C/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TElement } from '@udecode/plate';
|
|
2
|
+
export interface MinimalEditorProps {
|
|
3
|
+
editable: boolean;
|
|
4
|
+
onChange: (newNodes: TElement[]) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
sx?: string;
|
|
7
|
+
previousContent?: TElement[];
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
minHeight?: string;
|
|
11
|
+
navBackgroundColor?: string;
|
|
12
|
+
contentBackgroundColor?: string;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
placeholderColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const MinimalEditor: ({ editable, onChange, sx, placeholder, previousContent, width, height, minHeight, navBackgroundColor, contentBackgroundColor, borderColor, placeholderColor, textColor, }: MinimalEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=minimal_editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minimal_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/minimal_editor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAE7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,8KAyBvB,kBAAkB,4CAqCpB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MinimalEditorBarProps {
|
|
2
|
+
navBackgroundColor?: string;
|
|
3
|
+
borderColor?: string;
|
|
4
|
+
buttonWidth?: number;
|
|
5
|
+
buttonHeight?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const MinimalEditorBar: ({ navBackgroundColor, borderColor, buttonWidth, buttonHeight, }: MinimalEditorBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=navbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/navbar.tsx"],"names":[],"mappings":"AAqBA,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,oEAK1B,qBAAqB,4CAwIvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/plugins.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,4LAyBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AASxB,eAAO,MAAM,gBAAgB,4FAiB3B,CAAC;AAEH,eAAO,MAAM,qBAAqB,ghBAIhC,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,ghBAI3B,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,ghBAI3B,CAAC;AAEH,eAAO,MAAM,aAAa,4FAYxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,ghBAI7B,CAAC;AAEH,eAAO,MAAM,YAAY,4FAYvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,ghBAI5B,CAAC;AAEH,eAAO,MAAM,YAAY,4FAYvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,ghBAI5B,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,ghBAI3B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type CounterSize = 'small' | 'medium' | 'large';
|
|
2
|
+
export type CounterVariant = 'default' | 'outlined' | 'filled';
|
|
3
|
+
export interface CounterProps {
|
|
4
|
+
value: number;
|
|
5
|
+
onChange: (value: number) => void;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: CounterSize;
|
|
11
|
+
variant?: CounterVariant;
|
|
12
|
+
allowDirectInput?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
helperText?: string;
|
|
16
|
+
error?: boolean;
|
|
17
|
+
errorText?: string;
|
|
18
|
+
success?: boolean;
|
|
19
|
+
successText?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
maxWidth?: string;
|
|
22
|
+
height?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
sx?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const Counter: ({ value, onChange, min, max, step, disabled, size, variant, allowDirectInput, placeholder, label, helperText, error, errorText, success, successText, width, maxWidth, height, className, sx, }: CounterProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=counter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counter.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/counter/counter.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,OAAO,oMAsBjB,YAAY,4CA0Ld,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/counter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Checkbox } from './checkbox';
|
|
2
2
|
export type { CheckboxProps } from './checkbox';
|
|
3
|
+
export { Counter } from './counter';
|
|
4
|
+
export type { CounterProps, CounterSize, CounterVariant } from './counter';
|
|
3
5
|
export { DatePicker } from './date';
|
|
4
6
|
export type { DatePickerProps } from './date';
|
|
5
7
|
export { Filter } from './filter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -2,6 +2,6 @@ export { Breadcrumb } from './breadcrumb';
|
|
|
2
2
|
export type { BreadcrumbProps, BreadcrumbItemProps } from './breadcrumb';
|
|
3
3
|
export { InnerNav } from './inner';
|
|
4
4
|
export type { InnerNavBackButtonProps, InnerNavDropdownProps, InnerNavItemProps, InnerNavDrawerProps, } from './inner';
|
|
5
|
-
export { Tabs } from './tabs';
|
|
6
|
-
export type { TabProps } from './tabs';
|
|
5
|
+
export { Tabs, CustomTabs } from './tabs';
|
|
6
|
+
export type { TabProps, CustomTabsProps, CustomTabItem, CustomTabItemProps, } from './tabs';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC1C,YAAY,EACV,QAAQ,EACR,eAAe,EACf,aAAa,EACb,kBAAkB,GACnB,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CustomTabItem {
|
|
2
|
+
label: string;
|
|
3
|
+
active?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
sx?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CustomTabsProps {
|
|
11
|
+
items: CustomTabItem[];
|
|
12
|
+
sx?: string;
|
|
13
|
+
defaultWidth?: string;
|
|
14
|
+
defaultHeight?: string;
|
|
15
|
+
mobileWidth?: string;
|
|
16
|
+
mobileHeight?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const CustomTabs: {
|
|
19
|
+
({ items, sx, defaultWidth, defaultHeight, mobileWidth, mobileHeight, }: CustomTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Item: ({ label, active, onClick, disabled, width, height, mobileWidth, mobileHeight, sx, }: CustomTabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
export interface CustomTabItemProps {
|
|
23
|
+
label: string;
|
|
24
|
+
active?: boolean;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
width?: string;
|
|
28
|
+
height?: string;
|
|
29
|
+
mobileWidth?: string;
|
|
30
|
+
mobileHeight?: string;
|
|
31
|
+
sx?: string;
|
|
32
|
+
}
|
|
33
|
+
export { CustomTabs };
|
|
34
|
+
//# sourceMappingURL=custom-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/custom-tabs.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,UAAU;6EAOb,eAAe;gGAiDf,kBAAkB;CAxBpB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAkFD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
|