🚀 Init preview and typebot cotext in editor
This commit is contained in:
@ -7,6 +7,9 @@ const featherIconsBaseProps: IconProps = {
|
||||
strokeLinecap: 'round',
|
||||
strokeLinejoin: 'round',
|
||||
}
|
||||
|
||||
// 99% of these icons are from Feather icons (https://feathericons.com/)
|
||||
|
||||
export const SettingsIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<circle cx="12" cy="12" r="3"></circle>
|
||||
@ -102,3 +105,59 @@ export const FlagIcon = (props: IconProps) => (
|
||||
<line x1="4" y1="22" x2="4" y2="15"></line>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const BoldIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
|
||||
<path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const ItalicIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<line x1="19" y1="4" x2="10" y2="4"></line>
|
||||
<line x1="14" y1="20" x2="5" y2="20"></line>
|
||||
<line x1="15" y1="4" x2="9" y2="20"></line>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const UnderlineIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path>
|
||||
<line x1="4" y1="21" x2="20" y2="21"></line>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const LinkIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
|
||||
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const SaveIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path>
|
||||
<polyline points="17 21 17 13 7 13 7 21"></polyline>
|
||||
<polyline points="7 3 7 8 15 8"></polyline>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const CheckIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<polyline points="20 6 9 17 4 12"></polyline>
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const ChatIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
|
||||
</Icon>
|
||||
)
|
||||
|
||||
export const TrashIcon = (props: IconProps) => (
|
||||
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
|
||||
<polyline points="3 6 5 6 21 6"></polyline>
|
||||
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
|
||||
</Icon>
|
||||
)
|
||||
|
31
apps/builder/assets/styles/plate.css
Normal file
31
apps/builder/assets/styles/plate.css
Normal file
@ -0,0 +1,31 @@
|
||||
.slate-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.slate-italic {
|
||||
font-style: oblique;
|
||||
}
|
||||
|
||||
.slate-underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.slate-ToolbarButton-active {
|
||||
color: blue !important;
|
||||
}
|
||||
.slate-ToolbarButton-active > svg {
|
||||
stroke-width: 2px;
|
||||
}
|
||||
|
||||
.slate-ToolbarButton {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.slate-a {
|
||||
color: blue !important;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.slate-html-container > div {
|
||||
min-height: 24px;
|
||||
}
|
Reference in New Issue
Block a user