@soul-refiner/design-system 2.14.65 → 2.14.67
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/card/person/person.js +4 -4
- 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/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/atoms/typography/heading.d.ts +1 -0
- package/dist/src/components/atoms/typography/heading.d.ts.map +1 -1
- package/dist/src/components/card/person/person.d.ts.map +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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var i=require("react/jsx-runtime"),e=require("react"),r=require("next/image"),t=require("styled-components"),o=require("../../atoms/box/box.js"),s=require("../../actions/button/button.js"),n=require("../../actions/dropdown/dropdown.js"),
|
|
2
|
+
"use strict";var i=require("react/jsx-runtime"),e=require("react"),r=require("next/image"),t=require("styled-components"),o=require("../../atoms/box/box.js"),s=require("../../actions/button/button.js"),n=require("../../actions/dropdown/dropdown.js"),l=require("../../atoms/typography/heading.js"),a=require("../../atoms/typography/paragraph.js"),d=require("../../../icons/basic/ellipsis_horizontal.js"),x=require("../../iconography/avatar/icons/ispaid.js"),p=require("@mui/material"),h=require("../../../icons/time/hourglass.js");function c(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var g=c(e),u=c(r);const f=t.styled.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
&:hover > div {
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
margin-left: 4px;
|
|
63
|
-
`,
|
|
63
|
+
`,w=t.styled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
|
|
67
67
|
${({$addMarginLeft:i})=>i&&"\n margin-left: auto;\n padding-left: 16px;\n border-left: 1px solid var(--color-grey-5);\n margin-right: 40px;\n\n @media (max-width: 1440px) {\n margin-right: 0;\n }\n @media (max-width: 1366px) {\n margin-right: 20px;\n }\n "};
|
|
68
|
-
`,
|
|
68
|
+
`,v=t.styled.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
margin-left: 4px;
|
|
72
|
-
`;exports.PersonCard=({actions:e,chip:r,dotsActions:t,href:c,image:q,subtitle:z,sx:P,title:H,isPaidUser:S,progress:
|
|
72
|
+
`;exports.PersonCard=({actions:e,chip:r,dotsActions:t,href:c,image:q,subtitle:z,sx:P,title:H,isPaidUser:S,progress:k,lastOnline:C,containerSx:B})=>i.jsx(m,{$image:q,$sx:B,children:i.jsxs(j,{$sx:P,children:[i.jsxs(f,{as:c?"a":"div",href:c,children:[t&&!!t.length&&i.jsx(n.Dropdown,{containerSx:"",hasArrow:!0,maintainState:!1,onClick:i=>i.preventDefault(),options:t,sx:"position: absolute; top: 8px; right: 8px; z-index: 24; display: none;",trigger:i.jsx(s.Button,{className:"icon",icon:i.jsx(d.EllipsisHorizontal,{}),onClick:i=>i.stopPropagation(),showChevron:!1,size:"small",type:"outlined"})}),i.jsx(u.default,{alt:"",height:400,quality:100,src:q,width:312})]}),r&&i.jsx(o.Box,{sx:"position: absolute; top: 8px; left: 8px; z-index: 24;",children:r}),i.jsxs($,{children:[i.jsxs(o.Box,{$display:"flex",$dir:"row",$gap:8,sx:"min-width:0",children:[i.jsx(l.H,{as:"span",$bold:!0,$color:"white",$fontSize:24,$lineHeight:36,sx:"display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;",title:H,children:H}),S&&i.jsx(o.Box,{sx:"padding: .6rem 0 0 0; width: 18.33px; height: 18.33px; flex-shrink:0;",children:i.jsx(x.IsPaid,{})})]}),z&&i.jsx(a.P,{as:"span",$color:"white",$fontSize:14,$lineHeight:20,children:z}),(k||C)&&i.jsxs(y,{children:[void 0!==k&&i.jsxs(i.Fragment,{children:[i.jsx(p.CircularProgress,{variant:"determinate",value:k,style:{color:"green",width:18,height:18}}),i.jsxs(b,{children:[i.jsx(a.P,{$fontSize:10,$color:"grey-9",$lineHeight:14,children:"Progress"}),i.jsxs(a.P,{$fontSize:10,$color:"white",$bold:!0,$lineHeight:14,children:[k,"%"]})]})]}),C&&i.jsxs(w,{$addMarginLeft:void 0!==k,children:[i.jsx(h.Hourglass,{}),i.jsxs(v,{children:[i.jsx(a.P,{$fontSize:10,$color:"grey-9",$lineHeight:14,children:"Last online"}),i.jsx(a.P,{$fontSize:10,$color:"white",$bold:!0,$lineHeight:14,children:C})]})]})]}),e&&i.jsx(o.Box,{$display:"flex",$dir:"row",$gap:8,sx:"margin-top: 16px;",children:g.default.Children.toArray(e)})]})]})});
|
|
@@ -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;
|
|
@@ -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"),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/feedback/badge/badge.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;
|
|
@@ -8,6 +8,7 @@ export interface HeadingProps extends CommonProps {
|
|
|
8
8
|
$fontSize?: 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40 | 48 | 64;
|
|
9
9
|
$lineHeight?: 96 | 64 | 60 | 54 | 48 | 36 | 28 | 26;
|
|
10
10
|
$sx?: string;
|
|
11
|
+
title?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const H: {
|
|
13
14
|
({ sx, ...args }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/typography/heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;CAClE;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5D,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/typography/heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;CAClE;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5D,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,eAAO,MAAM,CAAC;sBAAqB,YAAY;;0BAIjB,WAAW;;;;0BAMX,WAAW;;;;0BAMT,WAAW;;;;0BAMZ,WAAW;;;;0BAMX,WAAW;;;;0BAMZ,WAAW;;;;0BAMT,WAAW;;;;0BAMX,WAAW;;;CA5C1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/person/person.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAMpF,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IACpD,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,qHAapB,eAAe,
|
|
1
|
+
{"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/person/person.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAMpF,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IACpD,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,qHAapB,eAAe,4CAmGjB,CAAC"}
|
|
@@ -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"}
|
|
@@ -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"}
|