@maily-to/core 0.0.16 → 0.0.17
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/index.js +704 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +585 -448
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
package/dist/index.mjs
CHANGED
|
@@ -54,17 +54,17 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
// src/styles/index.css
|
|
57
|
-
styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n --variable-icon-size: 12px;\n --variable-icon-gap: 4px;\n}\n.mly-editor .mly-prose p:where([class~=text-sm]) {\n font-size: 16px;\n}\n.mly-editor .mly-prose h1,\n.mly-editor .mly-prose h2,\n.mly-editor .mly-prose h3 {\n margin-top: 0;\n margin-bottom: 12px;\n}\n.mly-editor .mly-prose h1 {\n font-size: 36px;\n}\n.mly-editor .mly-prose h2 {\n font-size: 30px;\n}\n.mly-editor .mly-prose h3 {\n font-size: 24px;\n}\n.mly-editor .mly-prose p {\n font-size: 15px;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose h1 + p,\n.mly-editor .mly-prose h2 + p,\n.mly-editor .mly-prose h3 + p,\n.mly-editor .mly-prose hr + p,\n.mly-editor .mly-prose table + p {\n margin-top: 0;\n}\n.mly-editor .mly-prose ol,\n.mly-editor .mly-prose ul {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose li:not(:last-child) {\n margin-bottom: 8px;\n}\n.mly-editor .mly-prose li > p {\n margin: 0;\n}\n.mly-editor .mly-prose img,\n.mly-editor .mly-prose .node-logo {\n margin-top: 0;\n margin-bottom: 32px;\n}\n.mly-editor .mly-prose hr {\n margin-block: 32px;\n}\n.mly-editor .mly-prose .footer {\n display: block;\n font-size: 13px;\n margin-bottom: 20px;\n color: rgb(100, 116, 139);\n}\n.mly-editor .mly-prose .spacer + * {\n margin-top: 0;\n}\n.mly-editor .mly-prose p + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose blockquote + .spacer {\n margin-top: -16px;\n}\n.mly-editor .mly-prose h1 + .spacer,\n.mly-editor .mly-prose h2 + .spacer,\n.mly-editor .mly-prose h3 + .spacer {\n margin-top: -12px;\n}\n.mly-editor .mly-prose ol + .spacer,\n.mly-editor .mly-prose ul + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose img + .spacer,\n.mly-editor .mly-prose .node-logo + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose .node-button + .spacer,\n.mly-editor .mly-prose .node-linkCard + .spacer,\n.mly-editor .mly-prose footer + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose .node-button,\n.mly-editor .mly-prose .node-linkCard {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose .node-image {\n line-height: 0;\n margin-top: 0;\n margin-bottom: 32px;\n outline: none;\n}\n.mly-editor .mly-prose .node-image + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose code::before,\n.mly-editor .mly-prose code::after {\n content: none;\n}\n.mly-no-scrollbar::-webkit-scrollbar {\n display: none;\n}\n.mly-no-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.mly-editor .react-colorful__alpha {\n border-radius: 0;\n}\n.mly-editor .react-colorful__saturation,\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n border-radius: 8px;\n}\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n height: 16px;\n}\n.mly-editor .react-colorful__pointer {\n width: 16px;\n height: 16px;\n}\n.ProseMirror-selectednode {\n outline: 3px solid #555;\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.
|
|
57
|
+
styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n --variable-icon-size: 12px;\n --variable-icon-gap: 4px;\n}\n.mly-editor .mly-prose p:where([class~=text-sm]) {\n font-size: 16px;\n}\n.mly-editor .mly-prose h1,\n.mly-editor .mly-prose h2,\n.mly-editor .mly-prose h3 {\n margin-top: 0;\n margin-bottom: 12px;\n}\n.mly-editor .mly-prose h1 {\n font-size: 36px;\n}\n.mly-editor .mly-prose h2 {\n font-size: 30px;\n}\n.mly-editor .mly-prose h3 {\n font-size: 24px;\n}\n.mly-editor .mly-prose p {\n font-size: 15px;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose h1 + p,\n.mly-editor .mly-prose h2 + p,\n.mly-editor .mly-prose h3 + p,\n.mly-editor .mly-prose hr + p,\n.mly-editor .mly-prose table + p {\n margin-top: 0;\n}\n.mly-editor .mly-prose ol,\n.mly-editor .mly-prose ul {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose li:not(:last-child) {\n margin-bottom: 8px;\n}\n.mly-editor .mly-prose li > p {\n margin: 0;\n}\n.mly-editor .mly-prose img,\n.mly-editor .mly-prose .node-logo {\n margin-top: 0;\n margin-bottom: 32px;\n}\n.mly-editor .mly-prose hr {\n margin-block: 32px;\n}\n.mly-editor .mly-prose .footer {\n display: block;\n font-size: 13px;\n margin-bottom: 20px;\n color: rgb(100, 116, 139);\n}\n.mly-editor .mly-prose .spacer + * {\n margin-top: 0;\n}\n.mly-editor .mly-prose p + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose blockquote + .spacer {\n margin-top: -16px;\n}\n.mly-editor .mly-prose h1 + .spacer,\n.mly-editor .mly-prose h2 + .spacer,\n.mly-editor .mly-prose h3 + .spacer {\n margin-top: -12px;\n}\n.mly-editor .mly-prose ol + .spacer,\n.mly-editor .mly-prose ul + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose img + .spacer,\n.mly-editor .mly-prose .node-logo + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose .node-button + .spacer,\n.mly-editor .mly-prose .node-linkCard + .spacer,\n.mly-editor .mly-prose footer + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose .node-button,\n.mly-editor .mly-prose .node-linkCard {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose .node-image {\n line-height: 0;\n margin-top: 0;\n margin-bottom: 32px;\n outline: none;\n}\n.mly-editor .mly-prose .node-image + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose code::before,\n.mly-editor .mly-prose code::after {\n content: none;\n}\n.mly-no-scrollbar::-webkit-scrollbar {\n display: none;\n}\n.mly-no-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.mly-editor .react-colorful__alpha {\n border-radius: 0;\n}\n.mly-editor .react-colorful__saturation,\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n border-radius: 8px;\n}\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n height: 16px;\n}\n.mly-editor .react-colorful__pointer {\n width: 16px;\n height: 16px;\n}\n.ProseMirror-selectednode {\n outline: 3px solid #555;\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0;\n &:focus {\n outline: none;\n }\n p {\n margin-top: 0;\n }\n h1 {\n --variable-icon-size: 28px;\n }\n h2 {\n --variable-icon-size: 24px;\n }\n h3 {\n --variable-icon-size: 20px;\n }\n h1,\n h2,\n h3 {\n --variable-icon-gap: 8px;\n }\n .is-editor-empty:first-child:not([data-type=columns], [data-type=section], ul, li, ol)::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--placeholder-color);\n pointer-events: none;\n height: 0;\n }\n .is-empty:not([data-type=columns], [data-type=section], ol, ul, li)::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--placeholder-color);\n pointer-events: none;\n height: 0;\n }\n [data-type=columns] .is-empty::before,\n [data-type=section] .is-empty::before {\n --l-threshold: 0.66;\n --diff: calc(var(--l-threshold) - l);\n color: oklch(from var(--bg-color) clamp(0.05, max(min(var(--diff) * infinity, 1), 0), 0.95) c h) !important;\n opacity: 0.6;\n }\n [data-type=columns] {\n display: flex;\n margin: 0;\n padding: 0;\n &.has-focus [data-type=column],\n &:hover [data-type=column] {\n outline: 1.5px solid #e9ecef;\n outline-style: dashed;\n }\n [data-type=column].has-focus {\n outline-style: solid;\n }\n }\n [data-type=column] {\n display: table-cell;\n flex-basis: 0;\n flex-grow: 1;\n overflow: auto;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n [data-type=section] {\n margin: 0;\n padding: 0;\n [data-type=section-cell] {\n padding: 0;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n [data-type=for] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n .node-for.has-focus [data-repeat-indicator] {\n opacity: 1;\n }\n [data-type=show] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n *:has(+ .ProseMirror-gapcursor) {\n margin-bottom: 0 !important;\n }\n .ProseMirror-gapcursor {\n &::after {\n border: 1.5px solid gray;\n width: 24px;\n }\n & + * {\n margin-top: 0 !important;\n }\n }\n}\n.hide-number-controls {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &[type=number] {\n -moz-appearance: textfield;\n }\n}\n.hide-scrollbars {\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n}\n');
|
|
58
58
|
|
|
59
59
|
// src/styles/preflight.css
|
|
60
60
|
styleInject(':where(.mly-editor),\n:where(.mly-editor) ::before,\n:where(.mly-editor) ::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb;\n}\n:where(.mly-editor) ::before,\n:where(.mly-editor) ::after {\n --tw-content: "";\n}\n:where(.mly-editor) html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n:where(.mly-editor) body {\n margin: 0;\n line-height: inherit;\n}\n:where(.mly-editor) hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n:where(.mly-editor) abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n:where(.mly-editor) h1,\n:where(.mly-editor) h2,\n:where(.mly-editor) h3,\n:where(.mly-editor) h4,\n:where(.mly-editor) h5,\n:where(.mly-editor) h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n:where(.mly-editor) a {\n color: inherit;\n text-decoration: inherit;\n}\n:where(.mly-editor) b,\n:where(.mly-editor) strong {\n font-weight: bolder;\n}\n:where(.mly-editor) code,\n:where(.mly-editor) kbd,\n:where(.mly-editor) samp,\n:where(.mly-editor) pre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n font-size: 1em;\n}\n:where(.mly-editor) small {\n font-size: 80%;\n}\n:where(.mly-editor) sub,\n:where(.mly-editor) sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n:where(.mly-editor) sub {\n bottom: -0.25em;\n}\n:where(.mly-editor) sup {\n top: -0.5em;\n}\n:where(.mly-editor) table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) input,\n:where(.mly-editor) optgroup,\n:where(.mly-editor) select,\n:where(.mly-editor) textarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) select {\n text-transform: none;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) [type=button],\n:where(.mly-editor) [type=reset],\n:where(.mly-editor) [type=submit] {\n -webkit-appearance: button;\n background-image: none;\n}\n:where(.mly-editor) :-moz-focusring {\n outline: auto;\n}\n:where(.mly-editor) :-moz-ui-invalid {\n box-shadow: none;\n}\n:where(.mly-editor) progress {\n vertical-align: baseline;\n}\n:where(.mly-editor) ::-webkit-inner-spin-button,\n:where(.mly-editor) ::-webkit-outer-spin-button {\n height: auto;\n}\n:where(.mly-editor) [type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n:where(.mly-editor) ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n:where(.mly-editor) ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n:where(.mly-editor) summary {\n display: list-item;\n}\n:where(.mly-editor) blockquote,\n:where(.mly-editor) dl,\n:where(.mly-editor) dd,\n:where(.mly-editor) h1,\n:where(.mly-editor) h2,\n:where(.mly-editor) h3,\n:where(.mly-editor) h4,\n:where(.mly-editor) h5,\n:where(.mly-editor) h6,\n:where(.mly-editor) hr,\n:where(.mly-editor) figure,\n:where(.mly-editor) p,\n:where(.mly-editor) pre {\n margin: 0;\n}\n:where(.mly-editor) fieldset {\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) legend {\n padding: 0;\n}\n:where(.mly-editor) ol,\n:where(.mly-editor) ul,\n:where(.mly-editor) menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) dialog {\n padding: 0;\n}\n:where(.mly-editor) textarea {\n resize: vertical;\n}\n:where(.mly-editor) input::-moz-placeholder,\n:where(.mly-editor) textarea::-moz-placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.mly-editor) input::placeholder,\n:where(.mly-editor) textarea::placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) [role=button] {\n cursor: pointer;\n}\n:where(.mly-editor) :disabled {\n cursor: default;\n}\n:where(.mly-editor) img,\n:where(.mly-editor) svg,\n:where(.mly-editor) video,\n:where(.mly-editor) canvas,\n:where(.mly-editor) audio,\n:where(.mly-editor) iframe,\n:where(.mly-editor) embed,\n:where(.mly-editor) object {\n display: block;\n vertical-align: middle;\n}\n:where(.mly-editor) img,\n:where(.mly-editor) video {\n max-width: 100%;\n height: auto;\n}\n:where(.mly-editor) [hidden] {\n display: none;\n}\n');
|
|
61
61
|
|
|
62
62
|
// src/styles/tailwind.css
|
|
63
|
-
styleInject('*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n.mly-prose {\n color: var(--tw-prose-body);\n max-width: 65ch;\n}\n.mly-prose :where(p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where([class~=lead]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}\n.mly-prose :where(a):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}\n.mly-prose :where(strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-bold);\n font-weight: 600;\n}\n.mly-prose :where(a strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol[type=A]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=A s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=I]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type=I s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type="1"]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n}\n.mly-prose :where(ul):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n font-weight: 400;\n color: var(--tw-prose-counters);\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n color: var(--tw-prose-bullets);\n}\n.mly-prose :where(dt):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}\n.mly-prose :where(hr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}\n.mly-prose :where(blockquote):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201c""\\201d""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}\n.mly-prose :where(blockquote p:first-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: open-quote;\n}\n.mly-prose :where(blockquote p:last-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: close-quote;\n}\n.mly-prose :where(h1):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}\n.mly-prose :where(h1 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 900;\n color: inherit;\n}\n.mly-prose :where(h2):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}\n.mly-prose :where(h2 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 800;\n color: inherit;\n}\n.mly-prose :where(h3):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}\n.mly-prose :where(h3 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(h4):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}\n.mly-prose :where(h4 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(picture):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(video):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(kbd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: "`";\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: "`";\n}\n.mly-prose :where(a code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h1 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h2 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.875em;\n}\n.mly-prose :where(h3 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.9em;\n}\n.mly-prose :where(h4 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(pre):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: none;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: none;\n}\n.mly-prose :where(table):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}\n.mly-prose :where(thead):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}\n.mly-prose :where(thead th):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody tr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}\n.mly-prose :where(tbody tr:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 0;\n}\n.mly-prose :where(tbody td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: baseline;\n}\n.mly-prose :where(tfoot):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}\n.mly-prose :where(tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: top;\n}\n.mly-prose :where(th, td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n text-align: start;\n}\n.mly-prose :where(figure > *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(figcaption):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n.mly-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}\n.mly-prose :where(picture > img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(.mly-prose > ul > li p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(dl):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where(dd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(hr + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h2 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h3 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h4 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(thead th:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(thead th:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(tbody td, tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(figure):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(.mly-prose > :first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(.mly-prose > :last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 0;\n}\n.mly-pointer-events-none {\n pointer-events: none;\n}\n.mly-absolute {\n position: absolute;\n}\n.mly-relative {\n position: relative;\n}\n.mly-inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.mly-left-0 {\n left: 0px;\n}\n.mly-left-1\\.5 {\n left: 0.375rem;\n}\n.mly-left-2 {\n left: 0.5rem;\n}\n.mly-right-0 {\n right: 0px;\n}\n.mly-right-1 {\n right: 0.25rem;\n}\n.mly-top-0 {\n top: 0px;\n}\n.mly-top-8 {\n top: 2rem;\n}\n.mly-z-0 {\n z-index: 0;\n}\n.mly-z-10 {\n z-index: 10;\n}\n.mly-z-50 {\n z-index: 50;\n}\n.mly-z-\\[1\\] {\n z-index: 1;\n}\n.mly-z-\\[9999\\] {\n z-index: 9999;\n}\n.\\!mly-my-0 {\n margin-top: 0px !important;\n margin-bottom: 0px !important;\n}\n.mly--mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mly-mx-0\\.5 {\n margin-left: 0.125rem;\n margin-right: 0.125rem;\n}\n.mly-mx-1\\.5 {\n margin-left: 0.375rem;\n margin-right: 0.375rem;\n}\n.mly-my-0\\.5 {\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n.mly-my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.\\!mly-mb-0 {\n margin-bottom: 0px !important;\n}\n.\\!mly-mb-1\\.5 {\n margin-bottom: 0.375rem !important;\n}\n.mly-mb-1\\.5 {\n margin-bottom: 0.375rem;\n}\n.mly-mb-4 {\n margin-bottom: 1rem;\n}\n.mly-ml-1 {\n margin-left: 0.25rem;\n}\n.mly-ml-auto {\n margin-left: auto;\n}\n.mly-mt-4 {\n margin-top: 1rem;\n}\n.mly-block {\n display: block;\n}\n.mly-inline-block {\n display: inline-block;\n}\n.mly-flex {\n display: flex;\n}\n.mly-inline-flex {\n display: inline-flex;\n}\n.mly-grid {\n display: grid;\n}\n.mly-aspect-square {\n aspect-ratio: 1 / 1;\n}\n.\\!mly-size-7 {\n width: 1.75rem !important;\n height: 1.75rem !important;\n}\n.mly-size-3 {\n width: 0.75rem;\n height: 0.75rem;\n}\n.mly-size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.mly-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.mly-size-5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.mly-size-7 {\n width: 1.75rem;\n height: 1.75rem;\n}\n.mly-size-\\[15px\\] {\n width: 15px;\n height: 15px;\n}\n.mly-size-\\[var\\(--variable-icon-size\\)\\] {\n width: var(--variable-icon-size);\n height: var(--variable-icon-size);\n}\n.\\!mly-h-7 {\n height: 1.75rem !important;\n}\n.mly-h-10 {\n height: 2.5rem;\n}\n.mly-h-11 {\n height: 2.75rem;\n}\n.mly-h-3 {\n height: 0.75rem;\n}\n.mly-h-4 {\n height: 1rem;\n}\n.mly-h-6 {\n height: 1.5rem;\n}\n.mly-h-7 {\n height: 1.75rem;\n}\n.mly-h-9 {\n height: 2.25rem;\n}\n.mly-h-\\[28px\\] {\n height: 28px;\n}\n.mly-h-\\[2px\\] {\n height: 2px;\n}\n.mly-h-auto {\n height: auto;\n}\n.mly-h-full {\n height: 100%;\n}\n.mly-h-px {\n height: 1px;\n}\n.mly-max-h-\\[330px\\] {\n max-height: 330px;\n}\n.mly-min-h-24 {\n min-height: 6rem;\n}\n.mly-min-h-7 {\n min-height: 1.75rem;\n}\n.\\!mly-w-full {\n width: 100% !important;\n}\n.mly-w-10 {\n width: 2.5rem;\n}\n.mly-w-3 {\n width: 0.75rem;\n}\n.mly-w-32 {\n width: 8rem;\n}\n.mly-w-36 {\n width: 9rem;\n}\n.mly-w-4 {\n width: 1rem;\n}\n.mly-w-40 {\n width: 10rem;\n}\n.mly-w-52 {\n width: 13rem;\n}\n.mly-w-6 {\n width: 1.5rem;\n}\n.mly-w-7 {\n width: 1.75rem;\n}\n.mly-w-72 {\n width: 18rem;\n}\n.mly-w-96 {\n width: 24rem;\n}\n.mly-w-\\[1\\.5px\\] {\n width: 1.5px;\n}\n.mly-w-\\[28px\\] {\n width: 28px;\n}\n.mly-w-\\[300px\\] {\n width: 300px;\n}\n.mly-w-full {\n width: 100%;\n}\n.mly-w-max {\n width: -moz-max-content;\n width: max-content;\n}\n.mly-w-px {\n width: 1px;\n}\n.mly-min-w-0 {\n min-width: 0px;\n}\n.mly-min-w-28 {\n min-width: 7rem;\n}\n.mly-min-w-\\[240px\\] {\n min-width: 240px;\n}\n.mly-min-w-\\[260px\\] {\n min-width: 260px;\n}\n.mly-min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.mly-max-w-12 {\n max-width: 3rem;\n}\n.mly-max-w-20 {\n max-width: 5rem;\n}\n.mly-max-w-28 {\n max-width: 7rem;\n}\n.mly-max-w-max {\n max-width: -moz-max-content;\n max-width: max-content;\n}\n.mly-shrink-0 {\n flex-shrink: 0;\n}\n.mly-grow {\n flex-grow: 1;\n}\n.mly-border-separate {\n border-collapse: separate;\n}\n.mly-translate-x-full {\n --tw-translate-x: 100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.mly-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes mly-spin {\n to {\n transform: rotate(360deg);\n }\n}\n.mly-animate-spin {\n animation: mly-spin 1s linear infinite;\n}\n.mly-cursor-default {\n cursor: default;\n}\n.mly-cursor-grab {\n cursor: grab;\n}\n.mly-select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.mly-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.mly-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.mly-flex-col {\n flex-direction: column;\n}\n.mly-items-center {\n align-items: center;\n}\n.mly-items-stretch {\n align-items: stretch;\n}\n.mly-justify-start {\n justify-content: flex-start;\n}\n.mly-justify-center {\n justify-content: center;\n}\n.mly-justify-between {\n justify-content: space-between;\n}\n.mly-gap-0\\.5 {\n gap: 0.125rem;\n}\n.mly-gap-1 {\n gap: 0.25rem;\n}\n.mly-gap-1\\.5 {\n gap: 0.375rem;\n}\n.mly-gap-2 {\n gap: 0.5rem;\n}\n.mly-gap-3 {\n gap: 0.75rem;\n}\n.mly-gap-4 {\n gap: 1rem;\n}\n.mly-gap-\\[1px\\] {\n gap: 1px;\n}\n.mly-gap-\\[var\\(--variable-icon-gap\\)\\] {\n gap: var(--variable-icon-gap);\n}\n.mly-space-x-0\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n.mly-overflow-hidden {\n overflow: hidden;\n}\n.mly-overflow-y-auto {\n overflow-y: auto;\n}\n.mly-scroll-smooth {\n scroll-behavior: smooth;\n}\n.mly-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\!mly-rounded {\n border-radius: 0.25rem !important;\n}\n.\\!mly-rounded-full {\n border-radius: 9999px !important;\n}\n.\\!mly-rounded-md {\n border-radius: 0.375rem !important;\n}\n.\\!mly-rounded-none {\n border-radius: 0px !important;\n}\n.mly-rounded {\n border-radius: 0.25rem;\n}\n.mly-rounded-full {\n border-radius: 9999px;\n}\n.mly-rounded-lg {\n border-radius: 0.5rem;\n}\n.mly-rounded-md {\n border-radius: 0.375rem;\n}\n.mly-rounded-none {\n border-radius: 0px;\n}\n.mly-rounded-sm {\n border-radius: 0.125rem;\n}\n.mly-rounded-xl {\n border-radius: 0.75rem;\n}\n.mly-rounded-t-lg {\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n}\n.mly-border {\n border-width: 1px;\n}\n.mly-border-0 {\n border-width: 0px;\n}\n.mly-border-2 {\n border-width: 2px;\n}\n.mly-border-\\[1\\.5px\\] {\n border-width: 1.5px;\n}\n.mly-border-b {\n border-bottom-width: 1px;\n}\n.mly-border-l-4 {\n border-left-width: 4px;\n}\n.mly-border-t {\n border-top-width: 1px;\n}\n.mly-border-none {\n border-style: none;\n}\n.mly-border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n.mly-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.mly-border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity));\n}\n.mly-border-rose-400 {\n --tw-border-opacity: 1;\n border-color: rgb(251 113 133 / var(--tw-border-opacity));\n}\n.mly-border-slate-200 {\n --tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--tw-border-opacity));\n}\n.mly-border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n.\\!mly-bg-transparent {\n background-color: transparent !important;\n}\n.mly-bg-\\[\\#efefef\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(239 239 239 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.mly-bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity));\n}\n.mly-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(253 164 175 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 241 242 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(244 63 94 / var(--tw-bg-opacity));\n}\n.mly-bg-soft-gray {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.mly-bg-soft-gray\\/40 {\n background-color: rgb(244 245 246 / 0.4);\n}\n.mly-bg-soft-gray\\/60 {\n background-color: rgb(244 245 246 / 0.6);\n}\n.mly-bg-transparent {\n background-color: transparent;\n}\n.mly-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.mly-bg-yellow-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--tw-bg-opacity));\n}\n.mly-stroke-midnight-gray {\n stroke: #333333;\n}\n.mly-stroke-\\[1\\.2\\] {\n stroke-width: 1.2;\n}\n.mly-stroke-\\[1\\] {\n stroke-width: 1;\n}\n.mly-stroke-\\[2\\.5\\] {\n stroke-width: 2.5;\n}\n.\\!mly-p-0 {\n padding: 0px !important;\n}\n.\\!mly-p-0\\.5 {\n padding: 0.125rem !important;\n}\n.mly-p-0 {\n padding: 0px;\n}\n.mly-p-0\\.5 {\n padding: 0.125rem;\n}\n.mly-p-1 {\n padding: 0.25rem;\n}\n.mly-p-3 {\n padding: 0.75rem;\n}\n.mly-p-4 {\n padding: 1rem;\n}\n.mly-px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.mly-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.mly-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.mly-px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.mly-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.mly-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.mly-px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.mly-px-\\[26px\\] {\n padding-left: 26px;\n padding-right: 26px;\n}\n.mly-px-\\[32px\\] {\n padding-left: 32px;\n padding-right: 32px;\n}\n.mly-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.mly-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.mly-py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.mly-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.mly-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.mly-py-\\[20px\\] {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.mly-pl-1 {\n padding-left: 0.25rem;\n}\n.mly-pl-4 {\n padding-left: 1rem;\n}\n.mly-pl-7 {\n padding-left: 1.75rem;\n}\n.mly-pl-8 {\n padding-left: 2rem;\n}\n.mly-pl-\\[26px\\] {\n padding-left: 26px;\n}\n.mly-pr-1\\.5 {\n padding-right: 0.375rem;\n}\n.mly-pr-6 {\n padding-right: 1.5rem;\n}\n.mly-text-left {\n text-align: left;\n}\n.mly-text-center {\n text-align: center;\n}\n.mly-font-mono {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n}\n.\\!mly-text-base {\n font-size: 1rem !important;\n line-height: 1.5rem !important;\n}\n.\\!mly-text-lg {\n font-size: 1.125rem !important;\n line-height: 1.75rem !important;\n}\n.mly-text-\\[10px\\] {\n font-size: 10px;\n}\n.mly-text-\\[13px\\] {\n font-size: 13px;\n}\n.mly-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.mly-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.mly-font-medium {\n font-weight: 500;\n}\n.mly-font-normal {\n font-weight: 400;\n}\n.mly-font-semibold {\n font-weight: 600;\n}\n.mly-uppercase {\n text-transform: uppercase;\n}\n.mly-capitalize {\n text-transform: capitalize;\n}\n.mly-tabular-nums {\n --tw-numeric-spacing: tabular-nums;\n font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);\n}\n.mly-leading-none {\n line-height: 1;\n}\n.mly-tracking-normal {\n letter-spacing: 0em;\n}\n.mly-tracking-widest {\n letter-spacing: 0.1em;\n}\n.mly-text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.mly-text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity));\n}\n.mly-text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.mly-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.mly-text-gray-950 {\n --tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--tw-text-opacity));\n}\n.mly-text-midnight-gray {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\n}\n.mly-text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.mly-text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}\n.mly-text-rose-600 {\n --tw-text-opacity: 1;\n color: rgb(225 29 72 / var(--tw-text-opacity));\n}\n.mly-text-rose-800 {\n --tw-text-opacity: 1;\n color: rgb(159 18 57 / var(--tw-text-opacity));\n}\n.mly-text-slate-400 {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity));\n}\n.mly-text-slate-500 {\n --tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--tw-text-opacity));\n}\n.mly-text-slate-600 {\n --tw-text-opacity: 1;\n color: rgb(71 85 105 / var(--tw-text-opacity));\n}\n.mly-text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity));\n}\n.mly-no-underline {\n text-decoration-line: none;\n}\n.mly-underline-offset-4 {\n text-underline-offset: 4px;\n}\n.mly-antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.mly-opacity-60 {\n opacity: 0.6;\n}\n.mly-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.mly-ring-offset-white {\n --tw-ring-offset-color: #fff;\n}\n.mly-drop-shadow-md {\n --tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.mly-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n@keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.mly-animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.mly-fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.mly-zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.mly-ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.\\[text-align\\:revert-layer\\] {\n text-align: revert-layer;\n}\n.file\\:mly-border-0::file-selector-button {\n border-width: 0px;\n}\n.file\\:mly-bg-transparent::file-selector-button {\n background-color: transparent;\n}\n.file\\:mly-text-sm::file-selector-button {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.file\\:mly-font-medium::file-selector-button {\n font-weight: 500;\n}\n.placeholder\\:mly-text-gray-500::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-500::placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.hover\\:mly-bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-gray-100\\/80:hover {\n background-color: rgb(243 244 246 / 0.8);\n}\n.hover\\:mly-bg-red-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-red-500\\/90:hover {\n background-color: rgb(239 68 68 / 0.9);\n}\n.hover\\:mly-bg-rose-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-soft-gray:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-soft-gray\\/60:hover {\n background-color: rgb(244 245 246 / 0.6);\n}\n.hover\\:mly-text-black:hover {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-gray-900:hover {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-midnight-gray:hover {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\n}\n.hover\\:mly-underline:hover {\n text-decoration-line: underline;\n}\n.focus\\:mly-bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-red-200:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-soft-gray:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:mly-ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:mly-ring-midnight-gray\\/50:focus {\n --tw-ring-color: rgb(51 51 51 / 0.5);\n}\n.focus-visible\\:mly-border-gray-400:focus-visible {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity));\n}\n.focus-visible\\:mly-outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:mly-ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:mly-ring-gray-400:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));\n}\n.focus-visible\\:mly-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.active\\:mly-bg-soft-gray:active {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.disabled\\:mly-pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:mly-cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:mly-opacity-50:disabled {\n opacity: 0.5;\n}\n.aria-selected\\:mly-bg-soft-gray[aria-selected=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[disabled\\]\\:mly-pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[state\\=open\\]\\:mly-bg-rose-100[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=open\\]\\:mly-bg-soft-gray[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-bg-soft-gray[data-state=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-text-gray-900[data-state=true] {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.data-\\[disabled\\]\\:mly-opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.\\[\\&_svg\\]\\:mly-pointer-events-none svg {\n pointer-events: none;\n}\n');
|
|
63
|
+
styleInject('*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n* {\n scrollbar-color: initial;\n scrollbar-width: initial;\n}\n.mly-prose {\n color: var(--tw-prose-body);\n max-width: 65ch;\n}\n.mly-prose :where(p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where([class~=lead]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}\n.mly-prose :where(a):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}\n.mly-prose :where(strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-bold);\n font-weight: 600;\n}\n.mly-prose :where(a strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol[type=A]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=A s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=I]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type=I s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type="1"]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n}\n.mly-prose :where(ul):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n font-weight: 400;\n color: var(--tw-prose-counters);\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n color: var(--tw-prose-bullets);\n}\n.mly-prose :where(dt):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}\n.mly-prose :where(hr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}\n.mly-prose :where(blockquote):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201c""\\201d""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}\n.mly-prose :where(blockquote p:first-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: open-quote;\n}\n.mly-prose :where(blockquote p:last-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: close-quote;\n}\n.mly-prose :where(h1):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}\n.mly-prose :where(h1 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 900;\n color: inherit;\n}\n.mly-prose :where(h2):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}\n.mly-prose :where(h2 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 800;\n color: inherit;\n}\n.mly-prose :where(h3):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}\n.mly-prose :where(h3 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(h4):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}\n.mly-prose :where(h4 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(picture):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(video):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(kbd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: "`";\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: "`";\n}\n.mly-prose :where(a code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h1 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h2 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.875em;\n}\n.mly-prose :where(h3 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.9em;\n}\n.mly-prose :where(h4 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(pre):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: none;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: none;\n}\n.mly-prose :where(table):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}\n.mly-prose :where(thead):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}\n.mly-prose :where(thead th):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody tr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}\n.mly-prose :where(tbody tr:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 0;\n}\n.mly-prose :where(tbody td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: baseline;\n}\n.mly-prose :where(tfoot):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}\n.mly-prose :where(tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: top;\n}\n.mly-prose :where(th, td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n text-align: start;\n}\n.mly-prose :where(figure > *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(figcaption):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n.mly-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}\n.mly-prose :where(picture > img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(.mly-prose > ul > li p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(dl):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where(dd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(hr + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h2 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h3 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h4 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(thead th:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(thead th:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(tbody td, tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(figure):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(.mly-prose > :first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(.mly-prose > :last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 0;\n}\n.mly-pointer-events-none {\n pointer-events: none;\n}\n.mly-absolute {\n position: absolute;\n}\n.mly-relative {\n position: relative;\n}\n.mly-inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.mly-left-0 {\n left: 0px;\n}\n.mly-left-1\\.5 {\n left: 0.375rem;\n}\n.mly-left-2 {\n left: 0.5rem;\n}\n.mly-right-0 {\n right: 0px;\n}\n.mly-right-1 {\n right: 0.25rem;\n}\n.mly-right-1\\.5 {\n right: 0.375rem;\n}\n.mly-top-0 {\n top: 0px;\n}\n.mly-top-8 {\n top: 2rem;\n}\n.mly-isolate {\n isolation: isolate;\n}\n.mly-z-0 {\n z-index: 0;\n}\n.mly-z-10 {\n z-index: 10;\n}\n.mly-z-20 {\n z-index: 20;\n}\n.mly-z-50 {\n z-index: 50;\n}\n.mly-z-\\[1\\] {\n z-index: 1;\n}\n.mly-z-\\[9999\\] {\n z-index: 9999;\n}\n.\\!mly-my-0 {\n margin-top: 0px !important;\n margin-bottom: 0px !important;\n}\n.mly--mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mly-mx-0\\.5 {\n margin-left: 0.125rem;\n margin-right: 0.125rem;\n}\n.mly-mx-1\\.5 {\n margin-left: 0.375rem;\n margin-right: 0.375rem;\n}\n.mly-my-0\\.5 {\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n.mly-my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.\\!mly-mb-0 {\n margin-bottom: 0px !important;\n}\n.\\!mly-mb-1\\.5 {\n margin-bottom: 0.375rem !important;\n}\n.-mly-ms-px {\n margin-inline-start: -1px;\n}\n.mly-mb-1\\.5 {\n margin-bottom: 0.375rem;\n}\n.mly-mb-4 {\n margin-bottom: 1rem;\n}\n.mly-ml-1 {\n margin-left: 0.25rem;\n}\n.mly-ml-auto {\n margin-left: auto;\n}\n.mly-mt-4 {\n margin-top: 1rem;\n}\n.mly-block {\n display: block;\n}\n.mly-inline-block {\n display: inline-block;\n}\n.mly-flex {\n display: flex;\n}\n.mly-inline-flex {\n display: inline-flex;\n}\n.mly-grid {\n display: grid;\n}\n.mly-inline-grid {\n display: inline-grid;\n}\n.mly-aspect-square {\n aspect-ratio: 1 / 1;\n}\n.\\!mly-size-7 {\n width: 1.75rem !important;\n height: 1.75rem !important;\n}\n.mly-size-3 {\n width: 0.75rem;\n height: 0.75rem;\n}\n.mly-size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.mly-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.mly-size-5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.mly-size-7 {\n width: 1.75rem;\n height: 1.75rem;\n}\n.mly-size-\\[15px\\] {\n width: 15px;\n height: 15px;\n}\n.mly-size-\\[var\\(--variable-icon-size\\)\\] {\n width: var(--variable-icon-size);\n height: var(--variable-icon-size);\n}\n.\\!mly-h-7 {\n height: 1.75rem !important;\n}\n.mly-h-10 {\n height: 2.5rem;\n}\n.mly-h-11 {\n height: 2.75rem;\n}\n.mly-h-3 {\n height: 0.75rem;\n}\n.mly-h-4 {\n height: 1rem;\n}\n.mly-h-6 {\n height: 1.5rem;\n}\n.mly-h-7 {\n height: 1.75rem;\n}\n.mly-h-8 {\n height: 2rem;\n}\n.mly-h-9 {\n height: 2.25rem;\n}\n.mly-h-\\[28px\\] {\n height: 28px;\n}\n.mly-h-\\[2px\\] {\n height: 2px;\n}\n.mly-h-auto {\n height: auto;\n}\n.mly-h-full {\n height: 100%;\n}\n.mly-h-px {\n height: 1px;\n}\n.mly-max-h-52 {\n max-height: 13rem;\n}\n.mly-max-h-\\[330px\\] {\n max-height: 330px;\n}\n.mly-min-h-24 {\n min-height: 6rem;\n}\n.mly-min-h-7 {\n min-height: 1.75rem;\n}\n.\\!mly-w-full {\n width: 100% !important;\n}\n.mly-w-10 {\n width: 2.5rem;\n}\n.mly-w-3 {\n width: 0.75rem;\n}\n.mly-w-32 {\n width: 8rem;\n}\n.mly-w-36 {\n width: 9rem;\n}\n.mly-w-4 {\n width: 1rem;\n}\n.mly-w-40 {\n width: 10rem;\n}\n.mly-w-52 {\n width: 13rem;\n}\n.mly-w-6 {\n width: 1.5rem;\n}\n.mly-w-64 {\n width: 16rem;\n}\n.mly-w-7 {\n width: 1.75rem;\n}\n.mly-w-72 {\n width: 18rem;\n}\n.mly-w-9 {\n width: 2.25rem;\n}\n.mly-w-96 {\n width: 24rem;\n}\n.mly-w-\\[1\\.5px\\] {\n width: 1.5px;\n}\n.mly-w-\\[28px\\] {\n width: 28px;\n}\n.mly-w-\\[300px\\] {\n width: 300px;\n}\n.mly-w-full {\n width: 100%;\n}\n.mly-w-max {\n width: -moz-max-content;\n width: max-content;\n}\n.mly-w-px {\n width: 1px;\n}\n.mly-min-w-0 {\n min-width: 0px;\n}\n.mly-min-w-28 {\n min-width: 7rem;\n}\n.mly-min-w-\\[260px\\] {\n min-width: 260px;\n}\n.mly-min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.mly-max-w-12 {\n max-width: 3rem;\n}\n.mly-max-w-20 {\n max-width: 5rem;\n}\n.mly-max-w-28 {\n max-width: 7rem;\n}\n.mly-max-w-max {\n max-width: -moz-max-content;\n max-width: max-content;\n}\n.mly-max-w-xs {\n max-width: 20rem;\n}\n.mly-shrink-0 {\n flex-shrink: 0;\n}\n.mly-grow {\n flex-grow: 1;\n}\n.mly-border-separate {\n border-collapse: separate;\n}\n.mly-translate-x-full {\n --tw-translate-x: 100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.mly-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes mly-spin {\n to {\n transform: rotate(360deg);\n }\n}\n.mly-animate-spin {\n animation: mly-spin 1s linear infinite;\n}\n.mly-cursor-default {\n cursor: default;\n}\n.mly-cursor-grab {\n cursor: grab;\n}\n.mly-cursor-pointer {\n cursor: pointer;\n}\n.mly-select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.mly-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.mly-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.mly-grid-cols-\\[12px_1fr\\] {\n grid-template-columns: 12px 1fr;\n}\n.mly-flex-col {\n flex-direction: column;\n}\n.mly-items-center {\n align-items: center;\n}\n.mly-items-stretch {\n align-items: stretch;\n}\n.mly-justify-start {\n justify-content: flex-start;\n}\n.mly-justify-center {\n justify-content: center;\n}\n.mly-justify-between {\n justify-content: space-between;\n}\n.mly-gap-0\\.5 {\n gap: 0.125rem;\n}\n.mly-gap-1 {\n gap: 0.25rem;\n}\n.mly-gap-1\\.5 {\n gap: 0.375rem;\n}\n.mly-gap-2 {\n gap: 0.5rem;\n}\n.mly-gap-3 {\n gap: 0.75rem;\n}\n.mly-gap-4 {\n gap: 1rem;\n}\n.mly-gap-\\[1px\\] {\n gap: 1px;\n}\n.mly-gap-\\[var\\(--variable-icon-gap\\)\\] {\n gap: var(--variable-icon-gap);\n}\n.mly-space-x-0\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n.mly-overflow-hidden {\n overflow: hidden;\n}\n.mly-overflow-y-auto {\n overflow-y: auto;\n}\n.mly-scroll-smooth {\n scroll-behavior: smooth;\n}\n.mly-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\!mly-rounded {\n border-radius: 0.25rem !important;\n}\n.\\!mly-rounded-full {\n border-radius: 9999px !important;\n}\n.\\!mly-rounded-md {\n border-radius: 0.375rem !important;\n}\n.\\!mly-rounded-none {\n border-radius: 0px !important;\n}\n.mly-rounded {\n border-radius: 0.25rem;\n}\n.mly-rounded-full {\n border-radius: 9999px;\n}\n.mly-rounded-lg {\n border-radius: 0.5rem;\n}\n.mly-rounded-md {\n border-radius: 0.375rem;\n}\n.mly-rounded-none {\n border-radius: 0px;\n}\n.mly-rounded-sm {\n border-radius: 0.125rem;\n}\n.mly-rounded-xl {\n border-radius: 0.75rem;\n}\n.mly-rounded-s-lg {\n border-start-start-radius: 0.5rem;\n border-end-start-radius: 0.5rem;\n}\n.mly-rounded-s-none {\n border-start-start-radius: 0px;\n border-end-start-radius: 0px;\n}\n.mly-rounded-t-lg {\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n}\n.mly-border {\n border-width: 1px;\n}\n.mly-border-0 {\n border-width: 0px;\n}\n.mly-border-2 {\n border-width: 2px;\n}\n.mly-border-\\[1\\.5px\\] {\n border-width: 1.5px;\n}\n.mly-border-b {\n border-bottom-width: 1px;\n}\n.mly-border-l-4 {\n border-left-width: 4px;\n}\n.mly-border-t {\n border-top-width: 1px;\n}\n.mly-border-none {\n border-style: none;\n}\n.mly-border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n.mly-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.mly-border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity));\n}\n.mly-border-rose-400 {\n --tw-border-opacity: 1;\n border-color: rgb(251 113 133 / var(--tw-border-opacity));\n}\n.mly-border-slate-200 {\n --tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--tw-border-opacity));\n}\n.mly-border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n.\\!mly-bg-transparent {\n background-color: transparent !important;\n}\n.mly-bg-\\[\\#efefef\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(239 239 239 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.mly-bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity));\n}\n.mly-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(253 164 175 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 241 242 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(244 63 94 / var(--tw-bg-opacity));\n}\n.mly-bg-soft-gray {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.mly-bg-soft-gray\\/40 {\n background-color: rgb(244 245 246 / 0.4);\n}\n.mly-bg-soft-gray\\/60 {\n background-color: rgb(244 245 246 / 0.6);\n}\n.mly-bg-transparent {\n background-color: transparent;\n}\n.mly-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.mly-bg-yellow-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--tw-bg-opacity));\n}\n.mly-stroke-midnight-gray {\n stroke: #333333;\n}\n.mly-stroke-\\[1\\.2\\] {\n stroke-width: 1.2;\n}\n.mly-stroke-\\[1\\] {\n stroke-width: 1;\n}\n.mly-stroke-\\[2\\.5\\] {\n stroke-width: 2.5;\n}\n.\\!mly-p-0 {\n padding: 0px !important;\n}\n.\\!mly-p-0\\.5 {\n padding: 0.125rem !important;\n}\n.mly-p-0 {\n padding: 0px;\n}\n.mly-p-0\\.5 {\n padding: 0.125rem;\n}\n.mly-p-1 {\n padding: 0.25rem;\n}\n.mly-p-3 {\n padding: 0.75rem;\n}\n.mly-p-4 {\n padding: 1rem;\n}\n.mly-px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.mly-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.mly-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.mly-px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.mly-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.mly-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.mly-px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.mly-px-\\[26px\\] {\n padding-left: 26px;\n padding-right: 26px;\n}\n.mly-px-\\[32px\\] {\n padding-left: 32px;\n padding-right: 32px;\n}\n.mly-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.mly-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.mly-py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.mly-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.mly-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.mly-py-\\[20px\\] {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.mly-pe-8 {\n padding-inline-end: 2rem;\n}\n.mly-pl-1 {\n padding-left: 0.25rem;\n}\n.mly-pl-4 {\n padding-left: 1rem;\n}\n.mly-pl-7 {\n padding-left: 1.75rem;\n}\n.mly-pl-8 {\n padding-left: 2rem;\n}\n.mly-pl-\\[26px\\] {\n padding-left: 26px;\n}\n.mly-pr-1\\.5 {\n padding-right: 0.375rem;\n}\n.mly-pr-6 {\n padding-right: 1.5rem;\n}\n.mly-pr-7 {\n padding-right: 1.75rem;\n}\n.mly-ps-3 {\n padding-inline-start: 0.75rem;\n}\n.mly-text-left {\n text-align: left;\n}\n.mly-text-center {\n text-align: center;\n}\n.mly-font-mono {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n}\n.\\!mly-text-base {\n font-size: 1rem !important;\n line-height: 1.5rem !important;\n}\n.\\!mly-text-lg {\n font-size: 1.125rem !important;\n line-height: 1.75rem !important;\n}\n.mly-text-\\[10px\\] {\n font-size: 10px;\n}\n.mly-text-\\[13px\\] {\n font-size: 13px;\n}\n.mly-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.mly-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.mly-font-medium {\n font-weight: 500;\n}\n.mly-font-normal {\n font-weight: 400;\n}\n.mly-font-semibold {\n font-weight: 600;\n}\n.mly-uppercase {\n text-transform: uppercase;\n}\n.mly-capitalize {\n text-transform: capitalize;\n}\n.mly-tabular-nums {\n --tw-numeric-spacing: tabular-nums;\n font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);\n}\n.mly-leading-none {\n line-height: 1;\n}\n.mly-tracking-normal {\n letter-spacing: 0em;\n}\n.mly-tracking-widest {\n letter-spacing: 0.1em;\n}\n.mly-text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.mly-text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity));\n}\n.mly-text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.mly-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n.mly-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n.mly-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.mly-text-gray-950 {\n --tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--tw-text-opacity));\n}\n.mly-text-midnight-gray {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\n}\n.mly-text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.mly-text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}\n.mly-text-rose-600 {\n --tw-text-opacity: 1;\n color: rgb(225 29 72 / var(--tw-text-opacity));\n}\n.mly-text-rose-800 {\n --tw-text-opacity: 1;\n color: rgb(159 18 57 / var(--tw-text-opacity));\n}\n.mly-text-slate-400 {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity));\n}\n.mly-text-slate-500 {\n --tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--tw-text-opacity));\n}\n.mly-text-slate-600 {\n --tw-text-opacity: 1;\n color: rgb(71 85 105 / var(--tw-text-opacity));\n}\n.mly-text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity));\n}\n.mly-no-underline {\n text-decoration-line: none;\n}\n.mly-underline-offset-4 {\n text-underline-offset: 4px;\n}\n.mly-antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.mly-opacity-60 {\n opacity: 0.6;\n}\n.mly-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.mly-ring-offset-white {\n --tw-ring-offset-color: #fff;\n}\n.mly-drop-shadow-md {\n --tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.mly-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n@keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.mly-animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.mly-fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.mly-zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.mly-ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track {\n background-color: var(--scrollbar-track);\n border-radius: var(--scrollbar-track-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track:hover {\n background-color: var(--scrollbar-track-hover, var(--scrollbar-track));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track:active {\n background-color: var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb);\n border-radius: var(--scrollbar-thumb-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover, var(--scrollbar-thumb));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb:active {\n background-color: var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner {\n background-color: var(--scrollbar-corner);\n border-radius: var(--scrollbar-corner-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner:hover {\n background-color: var(--scrollbar-corner-hover, var(--scrollbar-corner));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner:active {\n background-color: var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)));\n}\n.mly-scrollbar-thin {\n scrollbar-width: thin;\n scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);\n}\n.mly-scrollbar-thin::-webkit-scrollbar {\n display: block;\n width: 8px;\n height: 8px;\n}\n.mly-scrollbar-track-transparent {\n --scrollbar-track: transparent !important;\n}\n.mly-scrollbar-thumb-gray-200 {\n --scrollbar-thumb: #e5e7eb !important;\n}\n.\\[text-align\\:revert-layer\\] {\n text-align: revert-layer;\n}\n.file\\:mly-border-0::file-selector-button {\n border-width: 0px;\n}\n.file\\:mly-bg-transparent::file-selector-button {\n background-color: transparent;\n}\n.file\\:mly-text-sm::file-selector-button {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.file\\:mly-font-medium::file-selector-button {\n font-weight: 500;\n}\n.placeholder\\:mly-text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-500::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-500::placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.mly-peer:disabled ~ .peer-disabled\\:mly-opacity-50 {\n opacity: 0.5;\n}\n.aria-selected\\:mly-bg-soft-gray[aria-selected=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[disabled\\]\\:mly-pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[state\\=open\\]\\:mly-bg-rose-100[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=open\\]\\:mly-bg-soft-gray[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-bg-soft-gray[data-state=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-text-gray-900[data-state=true] {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.data-\\[disabled\\]\\:mly-opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.hover\\:mly-bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-gray-100\\/80:hover {\n background-color: rgb(243 244 246 / 0.8);\n}\n.hover\\:mly-bg-red-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-red-500\\/90:hover {\n background-color: rgb(239 68 68 / 0.9);\n}\n.hover\\:mly-bg-rose-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-soft-gray:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-soft-gray\\/60:hover {\n background-color: rgb(244 245 246 / 0.6);\n}\n.hover\\:mly-text-black:hover {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-gray-900:hover {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-midnight-gray:hover {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\n}\n.hover\\:mly-underline:hover {\n text-decoration-line: underline;\n}\n.focus\\:mly-z-10:focus {\n z-index: 10;\n}\n.focus\\:mly-bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-red-200:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-soft-gray:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:mly-ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:mly-ring-midnight-gray\\/50:focus {\n --tw-ring-color: rgb(51 51 51 / 0.5);\n}\n.focus-visible\\:mly-relative:focus-visible {\n position: relative;\n}\n.focus-visible\\:mly-z-10:focus-visible {\n z-index: 10;\n}\n.focus-visible\\:mly-border-gray-400:focus-visible {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity));\n}\n.focus-visible\\:mly-outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:mly-ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:mly-ring-gray-400:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));\n}\n.focus-visible\\:mly-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.active\\:mly-bg-soft-gray:active {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.disabled\\:mly-pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:mly-cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:mly-opacity-50:disabled {\n opacity: 0.5;\n}\n.\\[\\&_svg\\]\\:mly-pointer-events-none svg {\n pointer-events: none;\n}\n');
|
|
64
64
|
|
|
65
65
|
// src/editor/index.tsx
|
|
66
66
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
67
|
-
import { useRef as
|
|
67
|
+
import { useRef as useRef10 } from "react";
|
|
68
68
|
|
|
69
69
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
70
70
|
import { BubbleMenu } from "@tiptap/react";
|
|
@@ -161,7 +161,7 @@ import { Node, mergeAttributes } from "@tiptap/core";
|
|
|
161
161
|
import { v4 as uuid } from "uuid";
|
|
162
162
|
var DEFAULT_COLUMN_WIDTH = "auto";
|
|
163
163
|
var DEFAULT_COLUMN_VERTICAL_ALIGN = "top";
|
|
164
|
-
var
|
|
164
|
+
var ColumnExtension = Node.create({
|
|
165
165
|
name: "column",
|
|
166
166
|
content: "block+",
|
|
167
167
|
isolating: true,
|
|
@@ -488,7 +488,7 @@ var BaseButton = React2.forwardRef(
|
|
|
488
488
|
"asChild"
|
|
489
489
|
]);
|
|
490
490
|
const Comp = asChild ? Slot : "button";
|
|
491
|
-
const baseClass = "mly-inline-flex mly-items-center mly-justify-center mly-rounded-md mly-text-sm mly-font-medium mly-ring-offset-white mly-transition-colors focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 disabled:mly-opacity-50";
|
|
491
|
+
const baseClass = "mly-inline-flex mly-items-center mly-justify-center mly-rounded-md mly-text-sm mly-font-medium mly-ring-offset-white mly-transition-colors focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 focus-visible:mly-relative focus-visible:mly-z-10 disabled:mly-opacity-50 ";
|
|
492
492
|
const variantClasses = {
|
|
493
493
|
default: "mly-bg-gray-900 mly-text-gray-50 hover:mly-bg-soft-gray",
|
|
494
494
|
destructive: "mly-bg-red-500 mly-text-gray-50 hover:mly-bg-red-500/90",
|
|
@@ -648,8 +648,8 @@ function ShowPopover(props) {
|
|
|
648
648
|
PopoverTrigger,
|
|
649
649
|
{
|
|
650
650
|
className: cn(
|
|
651
|
-
"mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm
|
|
652
|
-
showIfKey && "mly-bg-rose-100 mly-text-rose-800
|
|
651
|
+
"mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2",
|
|
652
|
+
showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
|
|
653
653
|
),
|
|
654
654
|
children: /* @__PURE__ */ jsx7(Eye, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" })
|
|
655
655
|
}
|
|
@@ -741,7 +741,7 @@ function ColumnsWidthConfig(props) {
|
|
|
741
741
|
onColumnWidthChange
|
|
742
742
|
} = props;
|
|
743
743
|
return /* @__PURE__ */ jsxs3(Popover, { children: [
|
|
744
|
-
/* @__PURE__ */ jsx8(PopoverTrigger, { className: "mly-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-text-sm
|
|
744
|
+
/* @__PURE__ */ jsx8(PopoverTrigger, { className: "mly-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray", children: /* @__PURE__ */ jsx8(SlidersVertical, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5]" }) }),
|
|
745
745
|
/* @__PURE__ */ jsxs3(
|
|
746
746
|
PopoverContent,
|
|
747
747
|
{
|
|
@@ -835,6 +835,7 @@ function SwitchButton(props) {
|
|
|
835
835
|
|
|
836
836
|
// src/editor/components/ui/select.tsx
|
|
837
837
|
import { useId } from "react";
|
|
838
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
838
839
|
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
839
840
|
function Select(props) {
|
|
840
841
|
const {
|
|
@@ -850,13 +851,13 @@ function Select(props) {
|
|
|
850
851
|
const selectId = `mly${useId()}`;
|
|
851
852
|
const content = /* @__PURE__ */ jsxs4("div", { className: "relative", children: [
|
|
852
853
|
/* @__PURE__ */ jsx9("label", { htmlFor: selectId, className: "sr-only", children: label }),
|
|
853
|
-
Icon && /* @__PURE__ */ jsx9("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-flex mly-items-center", children: /* @__PURE__ */ jsx9(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
854
|
+
Icon && /* @__PURE__ */ jsx9("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ jsx9(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
854
855
|
/* @__PURE__ */ jsx9(
|
|
855
856
|
"select",
|
|
856
857
|
{
|
|
857
858
|
id: selectId,
|
|
858
859
|
className: cn(
|
|
859
|
-
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-px-1.5 mly-py-0.5 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors hover:mly-bg-soft-gray focus:mly-
|
|
860
|
+
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-px-1.5 mly-py-0.5 mly-pr-7 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 active:mly-bg-soft-gray",
|
|
860
861
|
!!Icon && "mly-pl-7",
|
|
861
862
|
className
|
|
862
863
|
),
|
|
@@ -864,7 +865,16 @@ function Select(props) {
|
|
|
864
865
|
onChange: (event) => onValueChange(event.target.value),
|
|
865
866
|
children: options.map((option) => /* @__PURE__ */ jsx9("option", { value: option.value, children: option.label }, option.value))
|
|
866
867
|
}
|
|
867
|
-
)
|
|
868
|
+
),
|
|
869
|
+
/* @__PURE__ */ jsx9("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ jsx9(
|
|
870
|
+
ChevronDownIcon,
|
|
871
|
+
{
|
|
872
|
+
size: 16,
|
|
873
|
+
strokeWidth: 2,
|
|
874
|
+
"aria-hidden": "true",
|
|
875
|
+
role: "img"
|
|
876
|
+
}
|
|
877
|
+
) })
|
|
868
878
|
] });
|
|
869
879
|
if (!tooltip) {
|
|
870
880
|
return content;
|
|
@@ -947,8 +957,8 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
947
957
|
{ value: "0", label: "None" },
|
|
948
958
|
{ value: "4", label: "Small" },
|
|
949
959
|
{ value: "8", label: "Medium" },
|
|
950
|
-
{ value: "
|
|
951
|
-
{ value: "
|
|
960
|
+
{ value: "16", label: "Large" },
|
|
961
|
+
{ value: "24", label: "Extra Large" }
|
|
952
962
|
],
|
|
953
963
|
onValueChange: (value) => {
|
|
954
964
|
editor.commands.updateColumns({
|
|
@@ -1619,7 +1629,7 @@ function useMailyContext() {
|
|
|
1619
1629
|
}
|
|
1620
1630
|
|
|
1621
1631
|
// src/editor/components/for-menu/for-bubble-menu.tsx
|
|
1622
|
-
import { BubbleMenu as BubbleMenu2 } from "@tiptap/react";
|
|
1632
|
+
import { BubbleMenu as BubbleMenu2, findChildren } from "@tiptap/react";
|
|
1623
1633
|
import { Braces as Braces2 } from "lucide-react";
|
|
1624
1634
|
import { useCallback as useCallback3, useMemo as useMemo3, useRef as useRef4, useState as useState5 } from "react";
|
|
1625
1635
|
import { sticky as sticky2 } from "tippy.js";
|
|
@@ -1694,7 +1704,7 @@ function InputAutocomplete(props) {
|
|
|
1694
1704
|
"button",
|
|
1695
1705
|
{
|
|
1696
1706
|
type: "button",
|
|
1697
|
-
className: "mly-w-full mly-truncate mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-midnight-gray
|
|
1707
|
+
className: "mly-w-full mly-truncate mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-midnight-gray aria-selected:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none",
|
|
1698
1708
|
onClick: () => {
|
|
1699
1709
|
var _a2;
|
|
1700
1710
|
onValueChange(option);
|
|
@@ -1744,7 +1754,13 @@ function ForBubbleMenu(props) {
|
|
|
1744
1754
|
}, [editor]);
|
|
1745
1755
|
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
1746
1756
|
shouldShow: ({ editor: editor2 }) => {
|
|
1747
|
-
|
|
1757
|
+
var _a;
|
|
1758
|
+
const activeForNode = getClosestNodeByName(editor2, "for");
|
|
1759
|
+
const sectionNodeChildren = activeForNode ? (_a = findChildren(activeForNode == null ? void 0 : activeForNode.node, (node) => {
|
|
1760
|
+
return node.type.name === "section";
|
|
1761
|
+
})) == null ? void 0 : _a[0] : null;
|
|
1762
|
+
const hasActiveSectionNodeChildren = sectionNodeChildren && editor2.isActive("section");
|
|
1763
|
+
if (isTextSelected(editor2) || hasActiveSectionNodeChildren) {
|
|
1748
1764
|
return false;
|
|
1749
1765
|
}
|
|
1750
1766
|
return editor2.isActive("for");
|
|
@@ -1779,7 +1795,7 @@ function ForBubbleMenu(props) {
|
|
|
1779
1795
|
"button",
|
|
1780
1796
|
{
|
|
1781
1797
|
className: cn(
|
|
1782
|
-
"mly-
|
|
1798
|
+
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
1783
1799
|
!isValidEachKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1784
1800
|
),
|
|
1785
1801
|
onClick: () => {
|
|
@@ -1790,8 +1806,8 @@ function ForBubbleMenu(props) {
|
|
|
1790
1806
|
}, 0);
|
|
1791
1807
|
},
|
|
1792
1808
|
children: [
|
|
1793
|
-
/* @__PURE__ */ jsx22(Braces2, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1794
|
-
/* @__PURE__ */ jsx22("span", { children: state == null ? void 0 : state.each })
|
|
1809
|
+
/* @__PURE__ */ jsx22(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1810
|
+
/* @__PURE__ */ jsx22("span", { className: "mly-min-w-0 mly-truncate", children: state == null ? void 0 : state.each })
|
|
1795
1811
|
]
|
|
1796
1812
|
}
|
|
1797
1813
|
),
|
|
@@ -1887,7 +1903,11 @@ function AlignmentSwitch(props) {
|
|
|
1887
1903
|
}
|
|
1888
1904
|
|
|
1889
1905
|
// src/editor/components/ui/link-input-popover.tsx
|
|
1890
|
-
import {
|
|
1906
|
+
import {
|
|
1907
|
+
ChevronDownIcon as ChevronDownIcon2,
|
|
1908
|
+
CornerDownLeft as CornerDownLeft3,
|
|
1909
|
+
Link
|
|
1910
|
+
} from "lucide-react";
|
|
1891
1911
|
import { useRef as useRef5, useState as useState6 } from "react";
|
|
1892
1912
|
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1893
1913
|
function LinkInputPopover(props) {
|
|
@@ -1898,7 +1918,9 @@ function LinkInputPopover(props) {
|
|
|
1898
1918
|
icon: Icon = Link
|
|
1899
1919
|
} = props;
|
|
1900
1920
|
const [isOpen, setIsOpen] = useState6(false);
|
|
1921
|
+
const [protocol, setProtocol] = useState6("https://");
|
|
1901
1922
|
const linkInputRef = useRef5(null);
|
|
1923
|
+
const defaultUrlWithoutProtocol = defaultValue.replace(/https?:\/\//, "");
|
|
1902
1924
|
const popoverButton = /* @__PURE__ */ jsx24(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx24(
|
|
1903
1925
|
BaseButton,
|
|
1904
1926
|
{
|
|
@@ -1906,10 +1928,14 @@ function LinkInputPopover(props) {
|
|
|
1906
1928
|
size: "sm",
|
|
1907
1929
|
type: "button",
|
|
1908
1930
|
className: "mly-size-7",
|
|
1909
|
-
"data-state": !!
|
|
1931
|
+
"data-state": !!defaultUrlWithoutProtocol,
|
|
1910
1932
|
children: /* @__PURE__ */ jsx24(Icon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-midnight-gray" })
|
|
1911
1933
|
}
|
|
1912
1934
|
) });
|
|
1935
|
+
const normalizeProtocol = (value, p = protocol) => {
|
|
1936
|
+
value = value.replace(/https?:\/\//, "");
|
|
1937
|
+
return p + value;
|
|
1938
|
+
};
|
|
1913
1939
|
return /* @__PURE__ */ jsxs9(Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
1914
1940
|
tooltip ? /* @__PURE__ */ jsxs9(Tooltip, { children: [
|
|
1915
1941
|
/* @__PURE__ */ jsx24(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
@@ -1920,7 +1946,7 @@ function LinkInputPopover(props) {
|
|
|
1920
1946
|
{
|
|
1921
1947
|
align: "end",
|
|
1922
1948
|
side: "top",
|
|
1923
|
-
className: "mly-w-max mly-rounded-
|
|
1949
|
+
className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
|
|
1924
1950
|
sideOffset: 8,
|
|
1925
1951
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
1926
1952
|
children: /* @__PURE__ */ jsx24(
|
|
@@ -1932,23 +1958,68 @@ function LinkInputPopover(props) {
|
|
|
1932
1958
|
if (!input) {
|
|
1933
1959
|
return;
|
|
1934
1960
|
}
|
|
1935
|
-
|
|
1961
|
+
let value = normalizeProtocol(input.value);
|
|
1962
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
1936
1963
|
setIsOpen(false);
|
|
1937
1964
|
},
|
|
1938
1965
|
children: /* @__PURE__ */ jsxs9("label", { className: "relative", children: [
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
"
|
|
1966
|
+
/* @__PURE__ */ jsxs9("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
1967
|
+
/* @__PURE__ */ jsxs9("div", { className: "mly-relative", children: [
|
|
1968
|
+
/* @__PURE__ */ jsxs9(
|
|
1969
|
+
"select",
|
|
1970
|
+
{
|
|
1971
|
+
className: "hover:text-accent-foreground mly-peer mly-inline-flex mly-h-full mly-appearance-none mly-items-center mly-rounded-none mly-rounded-s-lg mly-border mly-border-gray-300 mly-bg-gray-50 mly-pe-8 mly-ps-3 mly-text-sm mly-text-gray-700 mly-transition-shadow hover:mly-bg-gray-100 focus:mly-z-10 focus-visible:mly-outline-none disabled:mly-pointer-events-none disabled:mly-cursor-not-allowed disabled:mly-opacity-50",
|
|
1972
|
+
"aria-label": "Protocol",
|
|
1973
|
+
value: protocol,
|
|
1974
|
+
onChange: (e) => {
|
|
1975
|
+
var _a;
|
|
1976
|
+
const protocol2 = e.target.value;
|
|
1977
|
+
setProtocol(protocol2);
|
|
1978
|
+
const newValue = normalizeProtocol(
|
|
1979
|
+
((_a = linkInputRef.current) == null ? void 0 : _a.value) || "",
|
|
1980
|
+
protocol2
|
|
1981
|
+
);
|
|
1982
|
+
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
1983
|
+
},
|
|
1984
|
+
children: [
|
|
1985
|
+
/* @__PURE__ */ jsx24("option", { value: "https://", children: "https://" }),
|
|
1986
|
+
/* @__PURE__ */ jsx24("option", { value: "http://", children: "http://" })
|
|
1987
|
+
]
|
|
1988
|
+
}
|
|
1989
|
+
),
|
|
1990
|
+
/* @__PURE__ */ jsx24("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-9 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ jsx24(
|
|
1991
|
+
ChevronDownIcon2,
|
|
1992
|
+
{
|
|
1993
|
+
size: 16,
|
|
1994
|
+
strokeWidth: 2,
|
|
1995
|
+
"aria-hidden": "true",
|
|
1996
|
+
role: "img"
|
|
1997
|
+
}
|
|
1998
|
+
) })
|
|
1999
|
+
] }),
|
|
2000
|
+
/* @__PURE__ */ jsx24(
|
|
2001
|
+
"input",
|
|
2002
|
+
{
|
|
2003
|
+
value: defaultUrlWithoutProtocol,
|
|
2004
|
+
onChange: (e) => {
|
|
2005
|
+
let value = normalizeProtocol(e.target.value);
|
|
2006
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
2007
|
+
},
|
|
2008
|
+
ref: linkInputRef,
|
|
2009
|
+
type: "text",
|
|
2010
|
+
className: "-mly-ms-px mly-block mly-h-8 mly-w-52 mly-rounded-lg mly-rounded-s-none mly-border mly-border-gray-300 mly-px-2 mly-py-1.5 mly-pr-6 mly-text-sm mly-shadow-sm mly-outline-none placeholder:mly-text-gray-400",
|
|
2011
|
+
placeholder: "maily.to/"
|
|
2012
|
+
}
|
|
2013
|
+
)
|
|
2014
|
+
] }),
|
|
2015
|
+
/* @__PURE__ */ jsx24("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-1.5 mly-flex mly-items-center", children: /* @__PURE__ */ jsx24(
|
|
2016
|
+
CornerDownLeft3,
|
|
1941
2017
|
{
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
},
|
|
1946
|
-
ref: linkInputRef,
|
|
1947
|
-
type: "url",
|
|
1948
|
-
className: "mly-h-7 mly-w-52 mly-rounded-md mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
2018
|
+
className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray",
|
|
2019
|
+
"aria-hidden": "true",
|
|
2020
|
+
role: "img"
|
|
1949
2021
|
}
|
|
1950
|
-
)
|
|
1951
|
-
/* @__PURE__ */ jsx24("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ jsx24(CornerDownLeft3, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
2022
|
+
) })
|
|
1952
2023
|
] })
|
|
1953
2024
|
}
|
|
1954
2025
|
)
|
|
@@ -2308,6 +2379,7 @@ var MAX_WIDTH = 600;
|
|
|
2308
2379
|
function ImageView(props) {
|
|
2309
2380
|
const { node, updateAttributes: updateAttributes2, selected } = props;
|
|
2310
2381
|
const [status, setStatus] = useState7("idle");
|
|
2382
|
+
const wrapperRef = useRef7(null);
|
|
2311
2383
|
const imgRef = useRef7(null);
|
|
2312
2384
|
const [resizingStyle, setResizingStyle] = useState7();
|
|
2313
2385
|
const handleMouseDown = useEvent(
|
|
@@ -2382,6 +2454,21 @@ function ImageView(props) {
|
|
|
2382
2454
|
img.src = src;
|
|
2383
2455
|
img.onload = () => {
|
|
2384
2456
|
setStatus("loaded");
|
|
2457
|
+
const { naturalWidth, naturalHeight } = img;
|
|
2458
|
+
const wrapper = wrapperRef == null ? void 0 : wrapperRef.current;
|
|
2459
|
+
if (!wrapper || width !== "auto" || !naturalWidth) {
|
|
2460
|
+
return;
|
|
2461
|
+
}
|
|
2462
|
+
const wrapperWidth = wrapper.offsetWidth;
|
|
2463
|
+
const aspectRatio = naturalWidth / naturalHeight;
|
|
2464
|
+
const calculatedHeight = Math.min(
|
|
2465
|
+
wrapperWidth / aspectRatio,
|
|
2466
|
+
naturalHeight
|
|
2467
|
+
);
|
|
2468
|
+
updateAttributes2({
|
|
2469
|
+
width: Math.min(wrapperWidth, naturalWidth),
|
|
2470
|
+
height: Math.min(calculatedHeight, naturalHeight)
|
|
2471
|
+
});
|
|
2385
2472
|
};
|
|
2386
2473
|
img.onerror = () => {
|
|
2387
2474
|
setStatus("error");
|
|
@@ -2412,6 +2499,7 @@ function ImageView(props) {
|
|
|
2412
2499
|
left: { marginRight: "auto" },
|
|
2413
2500
|
right: { marginLeft: "auto" }
|
|
2414
2501
|
}[alignment] || {}),
|
|
2502
|
+
ref: wrapperRef,
|
|
2415
2503
|
children: [
|
|
2416
2504
|
!hasImageSrc && /* @__PURE__ */ jsx26(ImageStatusLabel, { status: "idle" }),
|
|
2417
2505
|
hasImageSrc && status === "loading" && /* @__PURE__ */ jsx26(ImageStatusLabel, { status: "loading" }),
|
|
@@ -2791,126 +2879,16 @@ function ImageBubbleMenu(props) {
|
|
|
2791
2879
|
}
|
|
2792
2880
|
|
|
2793
2881
|
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2794
|
-
import { BubbleMenu as BubbleMenu4 } from "@tiptap/react";
|
|
2882
|
+
import { BubbleMenu as BubbleMenu4, findChildren as findChildren2 } from "@tiptap/react";
|
|
2883
|
+
import { ChevronUp as ChevronUp2, Trash as Trash3 } from "lucide-react";
|
|
2795
2884
|
import { useCallback as useCallback5 } from "react";
|
|
2796
2885
|
import { sticky as sticky4 } from "tippy.js";
|
|
2797
2886
|
|
|
2798
|
-
// src/editor/components/section-menu/use-section-state.tsx
|
|
2799
|
-
import { useEditorState as useEditorState4 } from "@tiptap/react";
|
|
2800
|
-
import deepEql4 from "fast-deep-equal";
|
|
2801
|
-
var useSectionState = (editor) => {
|
|
2802
|
-
const states = useEditorState4({
|
|
2803
|
-
editor,
|
|
2804
|
-
selector: (ctx) => {
|
|
2805
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2806
|
-
return {
|
|
2807
|
-
currentAlignment: ((_a = ctx.editor.getAttributes("section")) == null ? void 0 : _a.align) || "left",
|
|
2808
|
-
currentBorderRadius: Number((_b = ctx.editor.getAttributes("section")) == null ? void 0 : _b.borderRadius) || 0,
|
|
2809
|
-
currentBackgroundColor: ((_c = ctx.editor.getAttributes("section")) == null ? void 0 : _c.backgroundColor) || DEFAULT_SECTION_BACKGROUND_COLOR,
|
|
2810
|
-
currentBorderColor: ((_d = ctx.editor.getAttributes("section")) == null ? void 0 : _d.borderColor) || DEFAULT_SECTION_BORDER_COLOR,
|
|
2811
|
-
currentBorderWidth: Number((_e = ctx.editor.getAttributes("section")) == null ? void 0 : _e.borderWidth) || 0,
|
|
2812
|
-
currentMarginTop: Number((_f = ctx.editor.getAttributes("section")) == null ? void 0 : _f.marginTop) || 0,
|
|
2813
|
-
currentMarginRight: Number((_g = ctx.editor.getAttributes("section")) == null ? void 0 : _g.marginRight) || 0,
|
|
2814
|
-
currentMarginBottom: Number((_h = ctx.editor.getAttributes("section")) == null ? void 0 : _h.marginBottom) || 0,
|
|
2815
|
-
currentMarginLeft: Number((_i = ctx.editor.getAttributes("section")) == null ? void 0 : _i.marginLeft) || 0,
|
|
2816
|
-
currentPaddingTop: Number((_j = ctx.editor.getAttributes("section")) == null ? void 0 : _j.paddingTop) || 0,
|
|
2817
|
-
currentPaddingRight: Number((_k = ctx.editor.getAttributes("section")) == null ? void 0 : _k.paddingRight) || 0,
|
|
2818
|
-
currentPaddingBottom: Number((_l = ctx.editor.getAttributes("section")) == null ? void 0 : _l.paddingBottom) || 0,
|
|
2819
|
-
currentPaddingLeft: Number((_m = ctx.editor.getAttributes("section")) == null ? void 0 : _m.paddingLeft) || 0,
|
|
2820
|
-
isColumnsActive: ctx.editor.isActive("columns"),
|
|
2821
|
-
currentShowIfKey: ((_n = ctx.editor.getAttributes("section")) == null ? void 0 : _n.showIfKey) || ""
|
|
2822
|
-
};
|
|
2823
|
-
},
|
|
2824
|
-
equalityFn: deepEql4
|
|
2825
|
-
});
|
|
2826
|
-
return states;
|
|
2827
|
-
};
|
|
2828
|
-
|
|
2829
|
-
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2830
|
-
import {
|
|
2831
|
-
ChevronUp as ChevronUp2,
|
|
2832
|
-
Trash as Trash3
|
|
2833
|
-
} from "lucide-react";
|
|
2834
|
-
|
|
2835
|
-
// src/editor/components/ui/color-picker.tsx
|
|
2836
|
-
import { HexColorPicker, HexColorInput } from "react-colorful";
|
|
2837
|
-
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2838
|
-
function ColorPicker(props) {
|
|
2839
|
-
const {
|
|
2840
|
-
color,
|
|
2841
|
-
onColorChange,
|
|
2842
|
-
borderColor,
|
|
2843
|
-
backgroundColor,
|
|
2844
|
-
tooltip,
|
|
2845
|
-
className,
|
|
2846
|
-
children
|
|
2847
|
-
} = props;
|
|
2848
|
-
const handleColorChange = (color2) => {
|
|
2849
|
-
queueMicrotask(() => {
|
|
2850
|
-
onColorChange(color2);
|
|
2851
|
-
});
|
|
2852
|
-
};
|
|
2853
|
-
const popoverButton = /* @__PURE__ */ jsx29(PopoverTrigger, { asChild: true, children: children || /* @__PURE__ */ jsx29(
|
|
2854
|
-
BaseButton,
|
|
2855
|
-
{
|
|
2856
|
-
variant: "ghost",
|
|
2857
|
-
className: "!mly-size-7 mly-shrink-0",
|
|
2858
|
-
size: "sm",
|
|
2859
|
-
type: "button",
|
|
2860
|
-
children: /* @__PURE__ */ jsx29(
|
|
2861
|
-
"div",
|
|
2862
|
-
{
|
|
2863
|
-
className: cn(
|
|
2864
|
-
"mly-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
|
|
2865
|
-
className
|
|
2866
|
-
),
|
|
2867
|
-
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
2868
|
-
backgroundColor: backgroundColor || "transparent"
|
|
2869
|
-
})
|
|
2870
|
-
}
|
|
2871
|
-
)
|
|
2872
|
-
}
|
|
2873
|
-
) });
|
|
2874
|
-
return /* @__PURE__ */ jsxs14(Popover, { children: [
|
|
2875
|
-
tooltip ? /* @__PURE__ */ jsxs14(Tooltip, { children: [
|
|
2876
|
-
/* @__PURE__ */ jsx29(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
2877
|
-
/* @__PURE__ */ jsx29(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
2878
|
-
] }) : popoverButton,
|
|
2879
|
-
/* @__PURE__ */ jsx29(
|
|
2880
|
-
PopoverContent,
|
|
2881
|
-
{
|
|
2882
|
-
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
2883
|
-
sideOffset: 8,
|
|
2884
|
-
children: /* @__PURE__ */ jsxs14("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
2885
|
-
/* @__PURE__ */ jsx29(
|
|
2886
|
-
HexColorPicker,
|
|
2887
|
-
{
|
|
2888
|
-
color,
|
|
2889
|
-
onChange: handleColorChange,
|
|
2890
|
-
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
2891
|
-
}
|
|
2892
|
-
),
|
|
2893
|
-
/* @__PURE__ */ jsx29(
|
|
2894
|
-
HexColorInput,
|
|
2895
|
-
{
|
|
2896
|
-
alpha: true,
|
|
2897
|
-
color,
|
|
2898
|
-
onChange: handleColorChange,
|
|
2899
|
-
className: "mly-mt-4 mly-w-full mly-min-w-0 mly-rounded-lg mly-border mly-px-2 mly-py-1.5 mly-text-sm mly-uppercase focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
|
|
2900
|
-
prefixed: true
|
|
2901
|
-
}
|
|
2902
|
-
)
|
|
2903
|
-
] })
|
|
2904
|
-
}
|
|
2905
|
-
)
|
|
2906
|
-
] });
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
2887
|
// src/editor/components/icons/border-color.tsx
|
|
2910
|
-
import { jsx as
|
|
2888
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2911
2889
|
function BorderColor(props) {
|
|
2912
2890
|
const _a = props, { topBarClassName } = _a, rest = __objRest(_a, ["topBarClassName"]);
|
|
2913
|
-
return /* @__PURE__ */
|
|
2891
|
+
return /* @__PURE__ */ jsxs14(
|
|
2914
2892
|
"svg",
|
|
2915
2893
|
__spreadProps(__spreadValues({
|
|
2916
2894
|
width: 11,
|
|
@@ -2920,8 +2898,8 @@ function BorderColor(props) {
|
|
|
2920
2898
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2921
2899
|
}, rest), {
|
|
2922
2900
|
children: [
|
|
2923
|
-
/* @__PURE__ */
|
|
2924
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ jsx29("path", { d: "M0 11H10.6667", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
2902
|
+
/* @__PURE__ */ jsx29(
|
|
2925
2903
|
"path",
|
|
2926
2904
|
{
|
|
2927
2905
|
d: "M0.666504 9V6.33333C0.666504 3.38781 3.05432 1 5.99984 1H10.6665",
|
|
@@ -2935,9 +2913,9 @@ function BorderColor(props) {
|
|
|
2935
2913
|
}
|
|
2936
2914
|
|
|
2937
2915
|
// src/editor/components/icons/margin-icon.tsx
|
|
2938
|
-
import { jsx as
|
|
2916
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2939
2917
|
function MarginIcon(props) {
|
|
2940
|
-
return /* @__PURE__ */
|
|
2918
|
+
return /* @__PURE__ */ jsx30(
|
|
2941
2919
|
"svg",
|
|
2942
2920
|
__spreadProps(__spreadValues({
|
|
2943
2921
|
width: 12,
|
|
@@ -2946,7 +2924,7 @@ function MarginIcon(props) {
|
|
|
2946
2924
|
fill: "none",
|
|
2947
2925
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2948
2926
|
}, props), {
|
|
2949
|
-
children: /* @__PURE__ */
|
|
2927
|
+
children: /* @__PURE__ */ jsx30(
|
|
2950
2928
|
"path",
|
|
2951
2929
|
{
|
|
2952
2930
|
d: "M10.5 10.499V1.49902M1.5 10.499V1.49902M4.5 5.99902C4.5 5.53308 4.5 5.30011 4.57612 5.11634C4.67761 4.87131 4.87229 4.67664 5.11732 4.57514C5.30109 4.49902 5.53406 4.49902 6 4.49902C6.46594 4.49902 6.69891 4.49902 6.88268 4.57514C7.12771 4.67664 7.32239 4.87131 7.42388 5.11634C7.5 5.30011 7.5 5.53308 7.5 5.99902C7.5 6.46496 7.5 6.69794 7.42388 6.88171C7.32239 7.12673 7.12771 7.32141 6.88268 7.4229C6.69891 7.49902 6.46594 7.49902 6 7.49902C5.53406 7.49902 5.30109 7.49902 5.11732 7.4229C4.87229 7.32141 4.67761 7.12673 4.57612 6.88171C4.5 6.69794 4.5 6.46496 4.5 5.99902Z",
|
|
@@ -2960,9 +2938,9 @@ function MarginIcon(props) {
|
|
|
2960
2938
|
}
|
|
2961
2939
|
|
|
2962
2940
|
// src/editor/components/icons/padding-icon.tsx
|
|
2963
|
-
import { jsx as
|
|
2941
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2964
2942
|
function PaddingIcon(props) {
|
|
2965
|
-
return /* @__PURE__ */
|
|
2943
|
+
return /* @__PURE__ */ jsx31(
|
|
2966
2944
|
"svg",
|
|
2967
2945
|
__spreadProps(__spreadValues({
|
|
2968
2946
|
width: 10,
|
|
@@ -2971,7 +2949,7 @@ function PaddingIcon(props) {
|
|
|
2971
2949
|
fill: "none",
|
|
2972
2950
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2973
2951
|
}, props), {
|
|
2974
|
-
children: /* @__PURE__ */
|
|
2952
|
+
children: /* @__PURE__ */ jsx31(
|
|
2975
2953
|
"path",
|
|
2976
2954
|
{
|
|
2977
2955
|
d: "M9.50244 0.501526L9.10244 0.501526C8.54239 0.501526 8.26236 0.501526 8.04845 0.610519C7.86029 0.706392 7.70731 0.859373 7.61144 1.04754C7.50244 1.26145 7.50244 1.54147 7.50244 2.10153V7.90153C7.50244 8.46158 7.50244 8.74161 7.61144 8.95552C7.70731 9.14368 7.86029 9.29666 8.04845 9.39253C8.26236 9.50153 8.54239 9.50153 9.10244 9.50153H9.50244M0.502441 0.501527L0.902441 0.501527C1.46249 0.501527 1.74252 0.501527 1.95643 0.61052C2.14459 0.706393 2.29757 0.859374 2.39345 1.04754C2.50244 1.26145 2.50244 1.54147 2.50244 2.10153L2.50244 7.90153C2.50244 8.46158 2.50244 8.74161 2.39345 8.95552C2.29757 9.14368 2.14459 9.29666 1.95643 9.39253C1.74252 9.50153 1.46249 9.50153 0.902442 9.50153H0.502442M4.99994 7.99903V1.99903",
|
|
@@ -2984,6 +2962,111 @@ function PaddingIcon(props) {
|
|
|
2984
2962
|
);
|
|
2985
2963
|
}
|
|
2986
2964
|
|
|
2965
|
+
// src/editor/components/ui/color-picker.tsx
|
|
2966
|
+
import { HexColorPicker, HexColorInput } from "react-colorful";
|
|
2967
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2968
|
+
function ColorPicker(props) {
|
|
2969
|
+
const {
|
|
2970
|
+
color,
|
|
2971
|
+
onColorChange,
|
|
2972
|
+
borderColor,
|
|
2973
|
+
backgroundColor,
|
|
2974
|
+
tooltip,
|
|
2975
|
+
className,
|
|
2976
|
+
children
|
|
2977
|
+
} = props;
|
|
2978
|
+
const handleColorChange = (color2) => {
|
|
2979
|
+
queueMicrotask(() => {
|
|
2980
|
+
onColorChange(color2);
|
|
2981
|
+
});
|
|
2982
|
+
};
|
|
2983
|
+
const popoverButton = /* @__PURE__ */ jsx32(PopoverTrigger, { asChild: true, children: children || /* @__PURE__ */ jsx32(
|
|
2984
|
+
BaseButton,
|
|
2985
|
+
{
|
|
2986
|
+
variant: "ghost",
|
|
2987
|
+
className: "!mly-size-7 mly-shrink-0",
|
|
2988
|
+
size: "sm",
|
|
2989
|
+
type: "button",
|
|
2990
|
+
children: /* @__PURE__ */ jsx32(
|
|
2991
|
+
"div",
|
|
2992
|
+
{
|
|
2993
|
+
className: cn(
|
|
2994
|
+
"mly-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
|
|
2995
|
+
className
|
|
2996
|
+
),
|
|
2997
|
+
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
2998
|
+
backgroundColor: backgroundColor || "transparent"
|
|
2999
|
+
})
|
|
3000
|
+
}
|
|
3001
|
+
)
|
|
3002
|
+
}
|
|
3003
|
+
) });
|
|
3004
|
+
return /* @__PURE__ */ jsxs15(Popover, { children: [
|
|
3005
|
+
tooltip ? /* @__PURE__ */ jsxs15(Tooltip, { children: [
|
|
3006
|
+
/* @__PURE__ */ jsx32(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
3007
|
+
/* @__PURE__ */ jsx32(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
3008
|
+
] }) : popoverButton,
|
|
3009
|
+
/* @__PURE__ */ jsx32(
|
|
3010
|
+
PopoverContent,
|
|
3011
|
+
{
|
|
3012
|
+
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
3013
|
+
sideOffset: 8,
|
|
3014
|
+
children: /* @__PURE__ */ jsxs15("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
3015
|
+
/* @__PURE__ */ jsx32(
|
|
3016
|
+
HexColorPicker,
|
|
3017
|
+
{
|
|
3018
|
+
color,
|
|
3019
|
+
onChange: handleColorChange,
|
|
3020
|
+
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
3021
|
+
}
|
|
3022
|
+
),
|
|
3023
|
+
/* @__PURE__ */ jsx32(
|
|
3024
|
+
HexColorInput,
|
|
3025
|
+
{
|
|
3026
|
+
alpha: true,
|
|
3027
|
+
color,
|
|
3028
|
+
onChange: handleColorChange,
|
|
3029
|
+
className: "mly-mt-4 mly-w-full mly-min-w-0 mly-rounded-lg mly-border mly-px-2 mly-py-1.5 mly-text-sm mly-uppercase focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
|
|
3030
|
+
prefixed: true
|
|
3031
|
+
}
|
|
3032
|
+
)
|
|
3033
|
+
] })
|
|
3034
|
+
}
|
|
3035
|
+
)
|
|
3036
|
+
] });
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
// src/editor/components/section-menu/use-section-state.tsx
|
|
3040
|
+
import { useEditorState as useEditorState4 } from "@tiptap/react";
|
|
3041
|
+
import deepEql4 from "fast-deep-equal";
|
|
3042
|
+
var useSectionState = (editor) => {
|
|
3043
|
+
const states = useEditorState4({
|
|
3044
|
+
editor,
|
|
3045
|
+
selector: (ctx) => {
|
|
3046
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
3047
|
+
return {
|
|
3048
|
+
currentAlignment: ((_a = ctx.editor.getAttributes("section")) == null ? void 0 : _a.align) || "left",
|
|
3049
|
+
currentBorderRadius: Number((_b = ctx.editor.getAttributes("section")) == null ? void 0 : _b.borderRadius) || 0,
|
|
3050
|
+
currentBackgroundColor: ((_c = ctx.editor.getAttributes("section")) == null ? void 0 : _c.backgroundColor) || DEFAULT_SECTION_BACKGROUND_COLOR,
|
|
3051
|
+
currentBorderColor: ((_d = ctx.editor.getAttributes("section")) == null ? void 0 : _d.borderColor) || DEFAULT_SECTION_BORDER_COLOR,
|
|
3052
|
+
currentBorderWidth: Number((_e = ctx.editor.getAttributes("section")) == null ? void 0 : _e.borderWidth) || 0,
|
|
3053
|
+
currentMarginTop: Number((_f = ctx.editor.getAttributes("section")) == null ? void 0 : _f.marginTop) || 0,
|
|
3054
|
+
currentMarginRight: Number((_g = ctx.editor.getAttributes("section")) == null ? void 0 : _g.marginRight) || 0,
|
|
3055
|
+
currentMarginBottom: Number((_h = ctx.editor.getAttributes("section")) == null ? void 0 : _h.marginBottom) || 0,
|
|
3056
|
+
currentMarginLeft: Number((_i = ctx.editor.getAttributes("section")) == null ? void 0 : _i.marginLeft) || 0,
|
|
3057
|
+
currentPaddingTop: Number((_j = ctx.editor.getAttributes("section")) == null ? void 0 : _j.paddingTop) || 0,
|
|
3058
|
+
currentPaddingRight: Number((_k = ctx.editor.getAttributes("section")) == null ? void 0 : _k.paddingRight) || 0,
|
|
3059
|
+
currentPaddingBottom: Number((_l = ctx.editor.getAttributes("section")) == null ? void 0 : _l.paddingBottom) || 0,
|
|
3060
|
+
currentPaddingLeft: Number((_m = ctx.editor.getAttributes("section")) == null ? void 0 : _m.paddingLeft) || 0,
|
|
3061
|
+
isColumnsActive: ctx.editor.isActive("columns"),
|
|
3062
|
+
currentShowIfKey: ((_n = ctx.editor.getAttributes("section")) == null ? void 0 : _n.showIfKey) || ""
|
|
3063
|
+
};
|
|
3064
|
+
},
|
|
3065
|
+
equalityFn: deepEql4
|
|
3066
|
+
});
|
|
3067
|
+
return states;
|
|
3068
|
+
};
|
|
3069
|
+
|
|
2987
3070
|
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2988
3071
|
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2989
3072
|
function SectionBubbleMenu(props) {
|
|
@@ -2998,7 +3081,13 @@ function SectionBubbleMenu(props) {
|
|
|
2998
3081
|
}, [editor]);
|
|
2999
3082
|
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
3000
3083
|
shouldShow: ({ editor: editor2 }) => {
|
|
3001
|
-
|
|
3084
|
+
var _a;
|
|
3085
|
+
const activeSectionNode = getClosestNodeByName(editor2, "section");
|
|
3086
|
+
const forNodeChildren = activeSectionNode ? (_a = findChildren2(activeSectionNode == null ? void 0 : activeSectionNode.node, (node) => {
|
|
3087
|
+
return node.type.name === "for";
|
|
3088
|
+
})) == null ? void 0 : _a[0] : null;
|
|
3089
|
+
const hasActiveForNodeChildren = forNodeChildren && editor2.isActive("for");
|
|
3090
|
+
if (isTextSelected(editor2) || hasActiveForNodeChildren) {
|
|
3002
3091
|
return false;
|
|
3003
3092
|
}
|
|
3004
3093
|
return editor2.isActive("section");
|
|
@@ -3211,7 +3300,7 @@ function SectionBubbleMenu(props) {
|
|
|
3211
3300
|
state.isColumnsActive && /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
3212
3301
|
/* @__PURE__ */ jsx33(Divider, {}),
|
|
3213
3302
|
/* @__PURE__ */ jsxs16(Popover, { children: [
|
|
3214
|
-
/* @__PURE__ */ jsxs16(PopoverTrigger, { className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm
|
|
3303
|
+
/* @__PURE__ */ jsxs16(PopoverTrigger, { className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray", children: [
|
|
3215
3304
|
"Column",
|
|
3216
3305
|
/* @__PURE__ */ jsx33(ChevronUp2, { className: "mly-h-3 mly-w-3" })
|
|
3217
3306
|
] }),
|
|
@@ -4467,31 +4556,262 @@ var ImageExtension = TiptapImage2.extend({
|
|
|
4467
4556
|
}
|
|
4468
4557
|
});
|
|
4469
4558
|
|
|
4470
|
-
// src/editor/
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
HorizontalRule.name,
|
|
4474
|
-
Image2.name,
|
|
4475
|
-
Spacer.name,
|
|
4476
|
-
ImageExtension.name,
|
|
4477
|
-
VariableExtension.name,
|
|
4478
|
-
LinkCardExtension.name,
|
|
4479
|
-
LogoExtension.name,
|
|
4480
|
-
ButtonExtension.name
|
|
4481
|
-
];
|
|
4482
|
-
return customNodes.some((type) => editor.isActive(type));
|
|
4483
|
-
};
|
|
4559
|
+
// src/editor/nodes/for/for.ts
|
|
4560
|
+
import { mergeAttributes as mergeAttributes7, Node as Node8 } from "@tiptap/core";
|
|
4561
|
+
import { ReactNodeViewRenderer as ReactNodeViewRenderer6 } from "@tiptap/react";
|
|
4484
4562
|
|
|
4485
|
-
// src/editor/
|
|
4486
|
-
import {
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4563
|
+
// src/editor/nodes/for/for-view.tsx
|
|
4564
|
+
import { NodeViewWrapper as NodeViewWrapper6, NodeViewContent } from "@tiptap/react";
|
|
4565
|
+
import { Repeat2 as Repeat22 } from "lucide-react";
|
|
4566
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4567
|
+
function ForView(props) {
|
|
4568
|
+
const { editor, getPos } = props;
|
|
4569
|
+
return /* @__PURE__ */ jsxs21(
|
|
4570
|
+
NodeViewWrapper6,
|
|
4571
|
+
{
|
|
4572
|
+
draggable: "true",
|
|
4573
|
+
"data-drag-handle": "",
|
|
4574
|
+
"data-type": "for",
|
|
4575
|
+
className: "mly-relative",
|
|
4576
|
+
children: [
|
|
4577
|
+
/* @__PURE__ */ jsx40(NodeViewContent, { className: "is-editable" }),
|
|
4578
|
+
/* @__PURE__ */ jsxs21(
|
|
4579
|
+
"div",
|
|
4580
|
+
{
|
|
4581
|
+
role: "button",
|
|
4582
|
+
"data-repeat-indicator": "",
|
|
4583
|
+
className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-translate-x-full mly-cursor-pointer mly-flex-col mly-items-center mly-gap-1 mly-opacity-60",
|
|
4584
|
+
contentEditable: false,
|
|
4585
|
+
onClick: () => {
|
|
4586
|
+
editor.commands.setNodeSelection(getPos());
|
|
4587
|
+
},
|
|
4588
|
+
children: [
|
|
4589
|
+
/* @__PURE__ */ jsx40(Repeat22, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
|
|
4590
|
+
/* @__PURE__ */ jsx40("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
|
|
4591
|
+
]
|
|
4592
|
+
}
|
|
4593
|
+
)
|
|
4594
|
+
]
|
|
4595
|
+
}
|
|
4596
|
+
);
|
|
4597
|
+
}
|
|
4598
|
+
|
|
4599
|
+
// src/editor/nodes/for/for.ts
|
|
4600
|
+
var ForExtension = Node8.create({
|
|
4601
|
+
name: "for",
|
|
4602
|
+
group: "block",
|
|
4603
|
+
content: "(block|columns)+",
|
|
4604
|
+
draggable: true,
|
|
4605
|
+
isolating: true,
|
|
4606
|
+
addAttributes() {
|
|
4607
|
+
return {
|
|
4608
|
+
each: {
|
|
4609
|
+
default: "items",
|
|
4610
|
+
parseHTML: (element) => {
|
|
4611
|
+
return element.getAttribute("each") || "";
|
|
4612
|
+
},
|
|
4613
|
+
renderHTML: (attributes) => {
|
|
4614
|
+
if (!attributes.each) {
|
|
4615
|
+
return {};
|
|
4616
|
+
}
|
|
4617
|
+
return {
|
|
4618
|
+
each: attributes.each
|
|
4619
|
+
};
|
|
4620
|
+
}
|
|
4621
|
+
},
|
|
4622
|
+
isUpdatingKey: {
|
|
4623
|
+
default: false
|
|
4624
|
+
},
|
|
4625
|
+
showIfKey: {
|
|
4626
|
+
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4627
|
+
parseHTML: (element) => {
|
|
4628
|
+
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4629
|
+
},
|
|
4630
|
+
renderHTML(attributes) {
|
|
4631
|
+
if (!attributes.showIfKey) {
|
|
4632
|
+
return {};
|
|
4633
|
+
}
|
|
4634
|
+
return {
|
|
4635
|
+
"data-show-if-key": attributes.showIfKey
|
|
4636
|
+
};
|
|
4637
|
+
}
|
|
4638
|
+
}
|
|
4639
|
+
};
|
|
4640
|
+
},
|
|
4641
|
+
parseHTML() {
|
|
4642
|
+
return [
|
|
4643
|
+
{
|
|
4644
|
+
tag: `div[data-type="${this.name}"]`
|
|
4645
|
+
}
|
|
4646
|
+
];
|
|
4647
|
+
},
|
|
4648
|
+
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4649
|
+
return [
|
|
4650
|
+
"div",
|
|
4651
|
+
mergeAttributes7(HTMLAttributes2, {
|
|
4652
|
+
"data-type": this.name
|
|
4653
|
+
}),
|
|
4654
|
+
0
|
|
4655
|
+
];
|
|
4656
|
+
},
|
|
4657
|
+
addCommands() {
|
|
4658
|
+
return {
|
|
4659
|
+
setFor: () => ({ commands }) => {
|
|
4660
|
+
return commands.insertContent({
|
|
4661
|
+
type: this.name,
|
|
4662
|
+
attrs: {},
|
|
4663
|
+
content: [
|
|
4664
|
+
{
|
|
4665
|
+
type: "paragraph"
|
|
4666
|
+
}
|
|
4667
|
+
]
|
|
4668
|
+
});
|
|
4669
|
+
},
|
|
4670
|
+
updateFor: (attrs) => updateAttributes(this.name, attrs)
|
|
4671
|
+
};
|
|
4672
|
+
},
|
|
4673
|
+
addNodeView() {
|
|
4674
|
+
return ReactNodeViewRenderer6(ForView, {
|
|
4675
|
+
contentDOMElementTag: "div"
|
|
4676
|
+
});
|
|
4677
|
+
}
|
|
4678
|
+
});
|
|
4679
|
+
|
|
4680
|
+
// src/editor/nodes/columns/columns.ts
|
|
4681
|
+
import { mergeAttributes as mergeAttributes8 } from "@tiptap/core";
|
|
4682
|
+
import { Node as Node9 } from "@tiptap/core";
|
|
4683
|
+
import { v4 as uuid3 } from "uuid";
|
|
4684
|
+
var DEFAULT_COLUMNS_GAP = 8;
|
|
4685
|
+
var ColumnsExtension = Node9.create({
|
|
4686
|
+
name: "columns",
|
|
4687
|
+
group: "columns",
|
|
4688
|
+
content: "column+",
|
|
4689
|
+
defining: true,
|
|
4690
|
+
isolating: true,
|
|
4691
|
+
addAttributes() {
|
|
4692
|
+
return {
|
|
4693
|
+
showIfKey: {
|
|
4694
|
+
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4695
|
+
parseHTML: (element) => {
|
|
4696
|
+
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4697
|
+
},
|
|
4698
|
+
renderHTML(attributes) {
|
|
4699
|
+
if (!attributes.showIfKey) {
|
|
4700
|
+
return {};
|
|
4701
|
+
}
|
|
4702
|
+
return {
|
|
4703
|
+
"data-show-if-key": attributes.showIfKey
|
|
4704
|
+
};
|
|
4705
|
+
}
|
|
4706
|
+
},
|
|
4707
|
+
gap: {
|
|
4708
|
+
default: DEFAULT_COLUMNS_GAP,
|
|
4709
|
+
parseHTML: (element) => {
|
|
4710
|
+
return Number(element.style.gap) || DEFAULT_COLUMNS_GAP;
|
|
4711
|
+
},
|
|
4712
|
+
renderHTML(attributes) {
|
|
4713
|
+
if (!attributes.gap) {
|
|
4714
|
+
return {};
|
|
4715
|
+
}
|
|
4716
|
+
return {
|
|
4717
|
+
style: `gap: ${attributes.gap}px`
|
|
4718
|
+
};
|
|
4719
|
+
}
|
|
4720
|
+
}
|
|
4721
|
+
};
|
|
4722
|
+
},
|
|
4723
|
+
addCommands() {
|
|
4724
|
+
return {
|
|
4725
|
+
setColumns: () => ({ commands }) => {
|
|
4726
|
+
return commands.insertContent({
|
|
4727
|
+
type: this.name,
|
|
4728
|
+
attrs: {},
|
|
4729
|
+
content: [
|
|
4730
|
+
{
|
|
4731
|
+
type: "column",
|
|
4732
|
+
attrs: {
|
|
4733
|
+
columnId: uuid3()
|
|
4734
|
+
},
|
|
4735
|
+
content: [
|
|
4736
|
+
{
|
|
4737
|
+
type: "paragraph"
|
|
4738
|
+
}
|
|
4739
|
+
]
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
type: "column",
|
|
4743
|
+
attrs: {
|
|
4744
|
+
columnId: uuid3()
|
|
4745
|
+
},
|
|
4746
|
+
content: [
|
|
4747
|
+
{
|
|
4748
|
+
type: "paragraph"
|
|
4749
|
+
}
|
|
4750
|
+
]
|
|
4751
|
+
}
|
|
4752
|
+
]
|
|
4753
|
+
});
|
|
4754
|
+
},
|
|
4755
|
+
updateColumns: (attrs) => updateAttributes(this.name, attrs)
|
|
4756
|
+
};
|
|
4757
|
+
},
|
|
4758
|
+
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4759
|
+
return [
|
|
4760
|
+
"div",
|
|
4761
|
+
mergeAttributes8(HTMLAttributes2, {
|
|
4762
|
+
"data-type": "columns"
|
|
4763
|
+
}),
|
|
4764
|
+
0
|
|
4765
|
+
];
|
|
4766
|
+
},
|
|
4767
|
+
parseHTML() {
|
|
4768
|
+
return [
|
|
4769
|
+
{
|
|
4770
|
+
tag: 'div[data-type="columns"]'
|
|
4771
|
+
}
|
|
4772
|
+
];
|
|
4773
|
+
},
|
|
4774
|
+
addKeyboardShortcuts() {
|
|
4775
|
+
return {
|
|
4776
|
+
Tab: () => {
|
|
4777
|
+
return goToColumn(this.editor, "next");
|
|
4778
|
+
},
|
|
4779
|
+
"Shift-Tab": () => {
|
|
4780
|
+
return goToColumn(this.editor, "previous");
|
|
4781
|
+
}
|
|
4782
|
+
};
|
|
4783
|
+
}
|
|
4784
|
+
});
|
|
4785
|
+
|
|
4786
|
+
// src/editor/utils/is-custom-node-selected.ts
|
|
4787
|
+
var isCustomNodeSelected = (editor, node) => {
|
|
4788
|
+
const customNodes = [
|
|
4789
|
+
HorizontalRule.name,
|
|
4790
|
+
Image2.name,
|
|
4791
|
+
Spacer.name,
|
|
4792
|
+
ImageExtension.name,
|
|
4793
|
+
VariableExtension.name,
|
|
4794
|
+
LinkCardExtension.name,
|
|
4795
|
+
LogoExtension.name,
|
|
4796
|
+
ButtonExtension.name,
|
|
4797
|
+
ForExtension.name,
|
|
4798
|
+
ColumnsExtension.name,
|
|
4799
|
+
ColumnExtension.name,
|
|
4800
|
+
SectionExtension.name
|
|
4801
|
+
];
|
|
4802
|
+
return customNodes.some((type) => editor.isActive(type));
|
|
4803
|
+
};
|
|
4804
|
+
|
|
4805
|
+
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
4806
|
+
import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4807
|
+
function TextBubbleMenu(props) {
|
|
4808
|
+
var _a;
|
|
4809
|
+
const { editor, appendTo } = props;
|
|
4810
|
+
if (!editor) {
|
|
4811
|
+
return null;
|
|
4812
|
+
}
|
|
4813
|
+
const items = [
|
|
4814
|
+
{
|
|
4495
4815
|
name: "bold",
|
|
4496
4816
|
isActive: () => editor == null ? void 0 : editor.isActive("bold"),
|
|
4497
4817
|
command: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
@@ -4564,13 +4884,13 @@ function TextBubbleMenu(props) {
|
|
|
4564
4884
|
}
|
|
4565
4885
|
});
|
|
4566
4886
|
const state = useTextMenuState(editor);
|
|
4567
|
-
return /* @__PURE__ */
|
|
4887
|
+
return /* @__PURE__ */ jsx41(
|
|
4568
4888
|
BubbleMenu6,
|
|
4569
4889
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4570
4890
|
className: "mly-flex mly-gap-1 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
4571
|
-
children: /* @__PURE__ */
|
|
4572
|
-
items.map((item, index) => /* @__PURE__ */
|
|
4573
|
-
/* @__PURE__ */
|
|
4891
|
+
children: /* @__PURE__ */ jsxs22(TooltipProvider, { children: [
|
|
4892
|
+
items.map((item, index) => /* @__PURE__ */ jsx41(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
4893
|
+
/* @__PURE__ */ jsx41(
|
|
4574
4894
|
AlignmentSwitch,
|
|
4575
4895
|
{
|
|
4576
4896
|
alignment: state.textAlign,
|
|
@@ -4579,8 +4899,8 @@ function TextBubbleMenu(props) {
|
|
|
4579
4899
|
}
|
|
4580
4900
|
}
|
|
4581
4901
|
),
|
|
4582
|
-
!state.isListActive && /* @__PURE__ */
|
|
4583
|
-
/* @__PURE__ */
|
|
4902
|
+
!state.isListActive && /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
4903
|
+
/* @__PURE__ */ jsx41(
|
|
4584
4904
|
BubbleMenuButton,
|
|
4585
4905
|
{
|
|
4586
4906
|
icon: List2,
|
|
@@ -4590,7 +4910,7 @@ function TextBubbleMenu(props) {
|
|
|
4590
4910
|
tooltip: "Bullet List"
|
|
4591
4911
|
}
|
|
4592
4912
|
),
|
|
4593
|
-
/* @__PURE__ */
|
|
4913
|
+
/* @__PURE__ */ jsx41(
|
|
4594
4914
|
BubbleMenuButton,
|
|
4595
4915
|
{
|
|
4596
4916
|
icon: ListOrdered2,
|
|
@@ -4601,7 +4921,7 @@ function TextBubbleMenu(props) {
|
|
|
4601
4921
|
}
|
|
4602
4922
|
)
|
|
4603
4923
|
] }),
|
|
4604
|
-
/* @__PURE__ */
|
|
4924
|
+
/* @__PURE__ */ jsx41(
|
|
4605
4925
|
LinkInputPopover,
|
|
4606
4926
|
{
|
|
4607
4927
|
defaultValue: (_a = state == null ? void 0 : state.linkUrl) != null ? _a : "",
|
|
@@ -4615,8 +4935,8 @@ function TextBubbleMenu(props) {
|
|
|
4615
4935
|
tooltip: "External URL"
|
|
4616
4936
|
}
|
|
4617
4937
|
),
|
|
4618
|
-
/* @__PURE__ */
|
|
4619
|
-
/* @__PURE__ */
|
|
4938
|
+
/* @__PURE__ */ jsx41(Divider, {}),
|
|
4939
|
+
/* @__PURE__ */ jsx41(
|
|
4620
4940
|
ColorPicker,
|
|
4621
4941
|
{
|
|
4622
4942
|
color: state.currentTextColor,
|
|
@@ -4624,16 +4944,16 @@ function TextBubbleMenu(props) {
|
|
|
4624
4944
|
editor == null ? void 0 : editor.chain().setColor(color).run();
|
|
4625
4945
|
},
|
|
4626
4946
|
tooltip: "Text Color",
|
|
4627
|
-
children: /* @__PURE__ */
|
|
4947
|
+
children: /* @__PURE__ */ jsx41(
|
|
4628
4948
|
BaseButton,
|
|
4629
4949
|
{
|
|
4630
4950
|
variant: "ghost",
|
|
4631
4951
|
size: "sm",
|
|
4632
4952
|
type: "button",
|
|
4633
4953
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
4634
|
-
children: /* @__PURE__ */
|
|
4635
|
-
/* @__PURE__ */
|
|
4636
|
-
/* @__PURE__ */
|
|
4954
|
+
children: /* @__PURE__ */ jsxs22("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
4955
|
+
/* @__PURE__ */ jsx41("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
4956
|
+
/* @__PURE__ */ jsx41(
|
|
4637
4957
|
"div",
|
|
4638
4958
|
{
|
|
4639
4959
|
className: "mly-h-[2px] mly-w-3",
|
|
@@ -4666,8 +4986,8 @@ import Focus from "@tiptap/extension-focus";
|
|
|
4666
4986
|
import Dropcursor from "@tiptap/extension-dropcursor";
|
|
4667
4987
|
|
|
4668
4988
|
// src/editor/nodes/footer.ts
|
|
4669
|
-
import { mergeAttributes as
|
|
4670
|
-
var Footer =
|
|
4989
|
+
import { mergeAttributes as mergeAttributes9, Node as Node10 } from "@tiptap/core";
|
|
4990
|
+
var Footer = Node10.create({
|
|
4671
4991
|
name: "footer",
|
|
4672
4992
|
group: "block",
|
|
4673
4993
|
content: "inline*",
|
|
@@ -4697,7 +5017,7 @@ var Footer = Node8.create({
|
|
|
4697
5017
|
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4698
5018
|
return [
|
|
4699
5019
|
"small",
|
|
4700
|
-
|
|
5020
|
+
mergeAttributes9(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
4701
5021
|
class: "footer mly-block mly-text-[13px] mly-text-slate-500"
|
|
4702
5022
|
}),
|
|
4703
5023
|
0
|
|
@@ -4705,237 +5025,23 @@ var Footer = Node8.create({
|
|
|
4705
5025
|
}
|
|
4706
5026
|
});
|
|
4707
5027
|
|
|
4708
|
-
// src/editor/nodes/columns/columns.ts
|
|
4709
|
-
import { mergeAttributes as mergeAttributes8 } from "@tiptap/core";
|
|
4710
|
-
import { Node as Node9 } from "@tiptap/core";
|
|
4711
|
-
import { v4 as uuid3 } from "uuid";
|
|
4712
|
-
var DEFAULT_COLUMNS_GAP = 8;
|
|
4713
|
-
var Columns = Node9.create({
|
|
4714
|
-
name: "columns",
|
|
4715
|
-
group: "columns",
|
|
4716
|
-
content: "column+",
|
|
4717
|
-
defining: true,
|
|
4718
|
-
isolating: true,
|
|
4719
|
-
addAttributes() {
|
|
4720
|
-
return {
|
|
4721
|
-
showIfKey: {
|
|
4722
|
-
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4723
|
-
parseHTML: (element) => {
|
|
4724
|
-
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4725
|
-
},
|
|
4726
|
-
renderHTML(attributes) {
|
|
4727
|
-
if (!attributes.showIfKey) {
|
|
4728
|
-
return {};
|
|
4729
|
-
}
|
|
4730
|
-
return {
|
|
4731
|
-
"data-show-if-key": attributes.showIfKey
|
|
4732
|
-
};
|
|
4733
|
-
}
|
|
4734
|
-
},
|
|
4735
|
-
gap: {
|
|
4736
|
-
default: DEFAULT_COLUMNS_GAP,
|
|
4737
|
-
parseHTML: (element) => {
|
|
4738
|
-
return Number(element.style.gap) || DEFAULT_COLUMNS_GAP;
|
|
4739
|
-
},
|
|
4740
|
-
renderHTML(attributes) {
|
|
4741
|
-
if (!attributes.gap) {
|
|
4742
|
-
return {};
|
|
4743
|
-
}
|
|
4744
|
-
return {
|
|
4745
|
-
style: `gap: ${attributes.gap}px`
|
|
4746
|
-
};
|
|
4747
|
-
}
|
|
4748
|
-
}
|
|
4749
|
-
};
|
|
4750
|
-
},
|
|
4751
|
-
addCommands() {
|
|
4752
|
-
return {
|
|
4753
|
-
setColumns: () => ({ commands }) => {
|
|
4754
|
-
return commands.insertContent({
|
|
4755
|
-
type: this.name,
|
|
4756
|
-
attrs: {},
|
|
4757
|
-
content: [
|
|
4758
|
-
{
|
|
4759
|
-
type: "column",
|
|
4760
|
-
attrs: {
|
|
4761
|
-
columnId: uuid3()
|
|
4762
|
-
},
|
|
4763
|
-
content: [
|
|
4764
|
-
{
|
|
4765
|
-
type: "paragraph"
|
|
4766
|
-
}
|
|
4767
|
-
]
|
|
4768
|
-
},
|
|
4769
|
-
{
|
|
4770
|
-
type: "column",
|
|
4771
|
-
attrs: {
|
|
4772
|
-
columnId: uuid3()
|
|
4773
|
-
},
|
|
4774
|
-
content: [
|
|
4775
|
-
{
|
|
4776
|
-
type: "paragraph"
|
|
4777
|
-
}
|
|
4778
|
-
]
|
|
4779
|
-
}
|
|
4780
|
-
]
|
|
4781
|
-
});
|
|
4782
|
-
},
|
|
4783
|
-
updateColumns: (attrs) => updateAttributes(this.name, attrs)
|
|
4784
|
-
};
|
|
4785
|
-
},
|
|
4786
|
-
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4787
|
-
return [
|
|
4788
|
-
"div",
|
|
4789
|
-
mergeAttributes8(HTMLAttributes2, {
|
|
4790
|
-
"data-type": "columns"
|
|
4791
|
-
}),
|
|
4792
|
-
0
|
|
4793
|
-
];
|
|
4794
|
-
},
|
|
4795
|
-
parseHTML() {
|
|
4796
|
-
return [
|
|
4797
|
-
{
|
|
4798
|
-
tag: 'div[data-type="columns"]'
|
|
4799
|
-
}
|
|
4800
|
-
];
|
|
4801
|
-
},
|
|
4802
|
-
addKeyboardShortcuts() {
|
|
4803
|
-
return {
|
|
4804
|
-
Tab: () => {
|
|
4805
|
-
return goToColumn(this.editor, "next");
|
|
4806
|
-
},
|
|
4807
|
-
"Shift-Tab": () => {
|
|
4808
|
-
return goToColumn(this.editor, "previous");
|
|
4809
|
-
}
|
|
4810
|
-
};
|
|
4811
|
-
}
|
|
4812
|
-
});
|
|
4813
|
-
|
|
4814
|
-
// src/editor/nodes/for/for.ts
|
|
4815
|
-
import { mergeAttributes as mergeAttributes9, Node as Node10 } from "@tiptap/core";
|
|
4816
|
-
import { ReactNodeViewRenderer as ReactNodeViewRenderer6 } from "@tiptap/react";
|
|
4817
|
-
|
|
4818
|
-
// src/editor/nodes/for/for-view.tsx
|
|
4819
|
-
import { NodeViewWrapper as NodeViewWrapper6, NodeViewContent } from "@tiptap/react";
|
|
4820
|
-
import { Repeat2 as Repeat22 } from "lucide-react";
|
|
4821
|
-
import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4822
|
-
function ForView(_) {
|
|
4823
|
-
return /* @__PURE__ */ jsxs22(
|
|
4824
|
-
NodeViewWrapper6,
|
|
4825
|
-
{
|
|
4826
|
-
draggable: "true",
|
|
4827
|
-
"data-drag-handle": "",
|
|
4828
|
-
"data-type": "for",
|
|
4829
|
-
className: "mly-relative",
|
|
4830
|
-
children: [
|
|
4831
|
-
/* @__PURE__ */ jsx41(NodeViewContent, { className: "is-editable" }),
|
|
4832
|
-
/* @__PURE__ */ jsxs22(
|
|
4833
|
-
"div",
|
|
4834
|
-
{
|
|
4835
|
-
"data-repeat-indicator": "",
|
|
4836
|
-
className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-translate-x-full mly-flex-col mly-items-center mly-gap-1 mly-opacity-60",
|
|
4837
|
-
contentEditable: false,
|
|
4838
|
-
children: [
|
|
4839
|
-
/* @__PURE__ */ jsx41(Repeat22, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
|
|
4840
|
-
/* @__PURE__ */ jsx41("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
|
|
4841
|
-
]
|
|
4842
|
-
}
|
|
4843
|
-
)
|
|
4844
|
-
]
|
|
4845
|
-
}
|
|
4846
|
-
);
|
|
4847
|
-
}
|
|
4848
|
-
|
|
4849
|
-
// src/editor/nodes/for/for.ts
|
|
4850
|
-
var ForExtension = Node10.create({
|
|
4851
|
-
name: "for",
|
|
4852
|
-
group: "block",
|
|
4853
|
-
content: "(block|columns)+",
|
|
4854
|
-
draggable: true,
|
|
4855
|
-
isolating: true,
|
|
4856
|
-
addAttributes() {
|
|
4857
|
-
return {
|
|
4858
|
-
each: {
|
|
4859
|
-
default: "items",
|
|
4860
|
-
parseHTML: (element) => {
|
|
4861
|
-
return element.getAttribute("each") || "";
|
|
4862
|
-
},
|
|
4863
|
-
renderHTML: (attributes) => {
|
|
4864
|
-
if (!attributes.each) {
|
|
4865
|
-
return {};
|
|
4866
|
-
}
|
|
4867
|
-
return {
|
|
4868
|
-
each: attributes.each
|
|
4869
|
-
};
|
|
4870
|
-
}
|
|
4871
|
-
},
|
|
4872
|
-
isUpdatingKey: {
|
|
4873
|
-
default: false
|
|
4874
|
-
},
|
|
4875
|
-
showIfKey: {
|
|
4876
|
-
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4877
|
-
parseHTML: (element) => {
|
|
4878
|
-
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4879
|
-
},
|
|
4880
|
-
renderHTML(attributes) {
|
|
4881
|
-
if (!attributes.showIfKey) {
|
|
4882
|
-
return {};
|
|
4883
|
-
}
|
|
4884
|
-
return {
|
|
4885
|
-
"data-show-if-key": attributes.showIfKey
|
|
4886
|
-
};
|
|
4887
|
-
}
|
|
4888
|
-
}
|
|
4889
|
-
};
|
|
4890
|
-
},
|
|
4891
|
-
parseHTML() {
|
|
4892
|
-
return [
|
|
4893
|
-
{
|
|
4894
|
-
tag: `div[data-type="${this.name}"]`
|
|
4895
|
-
}
|
|
4896
|
-
];
|
|
4897
|
-
},
|
|
4898
|
-
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4899
|
-
return [
|
|
4900
|
-
"div",
|
|
4901
|
-
mergeAttributes9(HTMLAttributes2, {
|
|
4902
|
-
"data-type": this.name
|
|
4903
|
-
}),
|
|
4904
|
-
0
|
|
4905
|
-
];
|
|
4906
|
-
},
|
|
4907
|
-
addCommands() {
|
|
4908
|
-
return {
|
|
4909
|
-
setFor: () => ({ commands }) => {
|
|
4910
|
-
return commands.insertContent({
|
|
4911
|
-
type: this.name,
|
|
4912
|
-
attrs: {},
|
|
4913
|
-
content: [
|
|
4914
|
-
{
|
|
4915
|
-
type: "paragraph"
|
|
4916
|
-
}
|
|
4917
|
-
]
|
|
4918
|
-
});
|
|
4919
|
-
},
|
|
4920
|
-
updateFor: (attrs) => updateAttributes(this.name, attrs)
|
|
4921
|
-
};
|
|
4922
|
-
},
|
|
4923
|
-
addNodeView() {
|
|
4924
|
-
return ReactNodeViewRenderer6(ForView, {
|
|
4925
|
-
contentDOMElementTag: "div"
|
|
4926
|
-
});
|
|
4927
|
-
}
|
|
4928
|
-
});
|
|
4929
|
-
|
|
4930
5028
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
4931
5029
|
import { ReactRenderer } from "@tiptap/react";
|
|
4932
5030
|
import { ArrowDown, ArrowUp, Braces as Braces4, CornerDownLeft as CornerDownLeft4 } from "lucide-react";
|
|
4933
|
-
import {
|
|
5031
|
+
import {
|
|
5032
|
+
forwardRef as forwardRef6,
|
|
5033
|
+
useEffect as useEffect5,
|
|
5034
|
+
useImperativeHandle,
|
|
5035
|
+
useState as useState9,
|
|
5036
|
+
useRef as useRef8
|
|
5037
|
+
} from "react";
|
|
4934
5038
|
import tippy from "tippy.js";
|
|
4935
5039
|
import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4936
5040
|
var VariableList = forwardRef6((props, ref) => {
|
|
4937
|
-
|
|
5041
|
+
const { items = [] } = props;
|
|
4938
5042
|
const [selectedIndex, setSelectedIndex] = useState9(0);
|
|
5043
|
+
const scrollContainerRef = useRef8(null);
|
|
5044
|
+
const itemRefs = useRef8([]);
|
|
4939
5045
|
const selectItem = (index) => {
|
|
4940
5046
|
const item = props.items[index];
|
|
4941
5047
|
if (!item) {
|
|
@@ -4943,19 +5049,41 @@ var VariableList = forwardRef6((props, ref) => {
|
|
|
4943
5049
|
}
|
|
4944
5050
|
props.command({ id: item });
|
|
4945
5051
|
};
|
|
5052
|
+
const scrollSelectedIntoView = (index) => {
|
|
5053
|
+
const container = scrollContainerRef.current;
|
|
5054
|
+
const selectedItem = itemRefs.current[index];
|
|
5055
|
+
if (!container || !selectedItem) {
|
|
5056
|
+
return;
|
|
5057
|
+
}
|
|
5058
|
+
const containerRect = container.getBoundingClientRect();
|
|
5059
|
+
const itemRect = selectedItem.getBoundingClientRect();
|
|
5060
|
+
const padding = 4;
|
|
5061
|
+
if (itemRect.bottom > containerRect.bottom) {
|
|
5062
|
+
container.scrollTop += itemRect.bottom - containerRect.bottom + padding;
|
|
5063
|
+
} else if (itemRect.top < containerRect.top) {
|
|
5064
|
+
container.scrollTop += itemRect.top - containerRect.top - padding;
|
|
5065
|
+
}
|
|
5066
|
+
};
|
|
4946
5067
|
useEffect5(() => {
|
|
4947
5068
|
setSelectedIndex(0);
|
|
5069
|
+
if (scrollContainerRef.current) {
|
|
5070
|
+
scrollContainerRef.current.scrollTop = 0;
|
|
5071
|
+
}
|
|
5072
|
+
itemRefs.current = props.items.map(() => null);
|
|
4948
5073
|
}, [props.items]);
|
|
5074
|
+
useEffect5(() => {
|
|
5075
|
+
scrollSelectedIntoView(selectedIndex);
|
|
5076
|
+
}, [selectedIndex]);
|
|
4949
5077
|
useImperativeHandle(ref, () => ({
|
|
4950
5078
|
onKeyDown: ({ event }) => {
|
|
4951
5079
|
if (event.key === "ArrowUp") {
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
);
|
|
5080
|
+
event.preventDefault();
|
|
5081
|
+
setSelectedIndex((selectedIndex + items.length - 1) % items.length);
|
|
4955
5082
|
return true;
|
|
4956
5083
|
}
|
|
4957
5084
|
if (event.key === "ArrowDown") {
|
|
4958
|
-
|
|
5085
|
+
event.preventDefault();
|
|
5086
|
+
setSelectedIndex((selectedIndex + 1) % items.length);
|
|
4959
5087
|
return true;
|
|
4960
5088
|
}
|
|
4961
5089
|
if (event.key === "Enter") {
|
|
@@ -4965,26 +5093,34 @@ var VariableList = forwardRef6((props, ref) => {
|
|
|
4965
5093
|
return false;
|
|
4966
5094
|
}
|
|
4967
5095
|
}));
|
|
4968
|
-
return /* @__PURE__ */ jsxs23("div", { className: "mly-z-50 mly-
|
|
5096
|
+
return /* @__PURE__ */ jsxs23("div", { className: "mly-z-50 mly-w-64 mly-rounded-lg mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
|
|
4969
5097
|
/* @__PURE__ */ jsxs23("div", { className: "mly-flex mly-items-center mly-justify-between mly-gap-2 mly-border-b mly-border-gray-200 mly-bg-soft-gray/40 mly-px-1 mly-py-1.5 mly-text-gray-500", children: [
|
|
4970
5098
|
/* @__PURE__ */ jsx42("span", { className: "mly-text-xs mly-uppercase", children: "Variables" }),
|
|
4971
5099
|
/* @__PURE__ */ jsx42(VariableIcon, { children: /* @__PURE__ */ jsx42(Braces4, { className: "mly-size-3 mly-stroke-[2.5]" }) })
|
|
4972
5100
|
] }),
|
|
4973
|
-
/* @__PURE__ */ jsx42(
|
|
4974
|
-
"
|
|
5101
|
+
/* @__PURE__ */ jsx42(
|
|
5102
|
+
"div",
|
|
4975
5103
|
{
|
|
4976
|
-
|
|
4977
|
-
className:
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5104
|
+
ref: scrollContainerRef,
|
|
5105
|
+
className: "mly-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
|
|
5106
|
+
children: /* @__PURE__ */ jsx42("div", { className: "mly-flex mly-flex-col mly-gap-0.5 mly-p-1", children: (items == null ? void 0 : items.length) ? items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs23(
|
|
5107
|
+
"button",
|
|
5108
|
+
{
|
|
5109
|
+
ref: (el) => itemRefs.current[index] = el,
|
|
5110
|
+
onClick: () => selectItem(index),
|
|
5111
|
+
className: cn(
|
|
5112
|
+
"mly-flex mly-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-font-mono mly-text-sm mly-text-gray-900 hover:mly-bg-soft-gray",
|
|
5113
|
+
index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
|
|
5114
|
+
),
|
|
5115
|
+
children: [
|
|
5116
|
+
/* @__PURE__ */ jsx42(Braces4, { className: "mly-size-3 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
5117
|
+
item
|
|
5118
|
+
]
|
|
5119
|
+
},
|
|
5120
|
+
index
|
|
5121
|
+
)) : /* @__PURE__ */ jsx42("div", { className: "mly-flex mly-h-7 mly-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-font-mono mly-text-[13px] mly-text-gray-900 hover:mly-bg-soft-gray", children: "No result" }) })
|
|
5122
|
+
}
|
|
5123
|
+
),
|
|
4988
5124
|
/* @__PURE__ */ jsxs23("div", { className: "mly-flex mly-items-center mly-justify-between mly-gap-2 mly-border-t mly-border-gray-200 mly-px-1 mly-py-1.5 mly-text-gray-500", children: [
|
|
4989
5125
|
/* @__PURE__ */ jsxs23("div", { className: "mly-flex mly-items-center mly-gap-1", children: [
|
|
4990
5126
|
/* @__PURE__ */ jsx42(VariableIcon, { children: /* @__PURE__ */ jsx42(ArrowDown, { className: "mly-size-3 mly-stroke-[2.5]" }) }),
|
|
@@ -4995,6 +5131,7 @@ var VariableList = forwardRef6((props, ref) => {
|
|
|
4995
5131
|
] })
|
|
4996
5132
|
] });
|
|
4997
5133
|
});
|
|
5134
|
+
VariableList.displayName = "VariableList";
|
|
4998
5135
|
function VariableIcon(props) {
|
|
4999
5136
|
const { className, children } = props;
|
|
5000
5137
|
return /* @__PURE__ */ jsx42(
|
|
@@ -5025,7 +5162,7 @@ function getVariableSuggestions(variables = [], char = DEFAULT_TRIGGER_SUGGESTIO
|
|
|
5025
5162
|
if (query.length > 0 && !filteredVariableKeys.includes(query)) {
|
|
5026
5163
|
combinedKeys.push(query);
|
|
5027
5164
|
}
|
|
5028
|
-
return combinedKeys
|
|
5165
|
+
return combinedKeys;
|
|
5029
5166
|
},
|
|
5030
5167
|
render: () => {
|
|
5031
5168
|
let component;
|
|
@@ -5126,7 +5263,7 @@ import {
|
|
|
5126
5263
|
useCallback as useCallback6,
|
|
5127
5264
|
useEffect as useEffect6,
|
|
5128
5265
|
useLayoutEffect as useLayoutEffect2,
|
|
5129
|
-
useRef as
|
|
5266
|
+
useRef as useRef9,
|
|
5130
5267
|
useState as useState10
|
|
5131
5268
|
} from "react";
|
|
5132
5269
|
import tippy2 from "tippy.js";
|
|
@@ -5172,7 +5309,7 @@ function CommandList(props) {
|
|
|
5172
5309
|
useEffect6(() => {
|
|
5173
5310
|
setSelectedIndex(0);
|
|
5174
5311
|
}, [items]);
|
|
5175
|
-
const commandListContainer =
|
|
5312
|
+
const commandListContainer = useRef9(null);
|
|
5176
5313
|
useLayoutEffect2(() => {
|
|
5177
5314
|
const container = commandListContainer == null ? void 0 : commandListContainer.current;
|
|
5178
5315
|
const item = container == null ? void 0 : container.children[selectedIndex];
|
|
@@ -5292,8 +5429,8 @@ function extensions(props) {
|
|
|
5292
5429
|
Document.extend({
|
|
5293
5430
|
content: "(block|columns)+"
|
|
5294
5431
|
}),
|
|
5295
|
-
|
|
5296
|
-
|
|
5432
|
+
ColumnsExtension,
|
|
5433
|
+
ColumnExtension,
|
|
5297
5434
|
StarterKit.configure({
|
|
5298
5435
|
heading: {
|
|
5299
5436
|
levels: [1, 2, 3]
|
|
@@ -5401,7 +5538,7 @@ function Editor8(props) {
|
|
|
5401
5538
|
]
|
|
5402
5539
|
};
|
|
5403
5540
|
}
|
|
5404
|
-
const menuContainerRef =
|
|
5541
|
+
const menuContainerRef = useRef10(null);
|
|
5405
5542
|
const editor = useEditor({
|
|
5406
5543
|
editorProps: {
|
|
5407
5544
|
attributes: {
|