@frontify/fondue 12.0.0-beta.176 → 12.0.0-beta.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/RichTextEditor/EditorPositioningWrapper/index.es.js +1 -1
- package/dist/components/RichTextEditor/EditorPositioningWrapper/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/types.d.ts +1 -1
- package/dist/components/RichTextEditor/types.es.js +1 -1
- package/dist/components/RichTextEditor/types.es.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ const s = {
|
|
|
18
18
|
}
|
|
19
19
|
}, P = (o, e) => {
|
|
20
20
|
const t = s[o].PlateWrapperClassNames;
|
|
21
|
-
return a([t, e && "tw-border tw-border-line tw-rounded"]);
|
|
21
|
+
return a([t, e && "tw-border tw-border-line-strong tw-rounded"]);
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
s as EditorPositioningWrapper,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../src/components/RichTextEditor/EditorPositioningWrapper/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { EditorPositioningWrapperProps, Position } from './types';\nimport {\n ToolbarWrapperPositioningBottom,\n ToolbarWrapperPositioningFloating,\n ToolbarWrapperPositioningTop,\n} from './ToolbarWrapper';\nimport { merge } from '@utilities/merge';\n\nexport { Position } from './types';\nexport const EditorPositioningWrapper: EditorPositioningWrapperProps = {\n [Position.BOTTOM]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full tw-flex tw-flex-col',\n ToolbarWrapper: ToolbarWrapperPositioningBottom,\n },\n [Position.FLOATING]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full',\n ToolbarWrapper: ToolbarWrapperPositioningFloating,\n },\n [Position.TOP]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full tw-flex tw-flex-col-reverse',\n ToolbarWrapper: ToolbarWrapperPositioningTop,\n },\n};\n\nexport const getEditorWrapperClassNames = (position: Position, border: boolean) => {\n const toolbarPositioningClasses = EditorPositioningWrapper[position].PlateWrapperClassNames;\n\n return merge([toolbarPositioningClasses, border && 'tw-border tw-border-line tw-rounded']);\n};\n"],"names":["EditorPositioningWrapper","Position","ToolbarWrapperPositioningBottom","ToolbarWrapperPositioningFloating","ToolbarWrapperPositioningTop","getEditorWrapperClassNames","position","border","toolbarPositioningClasses","merge"],"mappings":";;;;;AAWO,MAAMA,IAA0D;AAAA,EACnE,CAACC,EAAS,MAAM,GAAG;AAAA,IACf,wBAAwB;AAAA,IACxB,gBAAgBC;AAAA,EACpB;AAAA,EACA,CAACD,EAAS,QAAQ,GAAG;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgBE;AAAA,EACpB;AAAA,EACA,CAACF,EAAS,GAAG,GAAG;AAAA,IACZ,wBAAwB;AAAA,IACxB,gBAAgBG;AAAA,EACpB;AACJ,GAEaC,IAA6B,CAACC,GAAoBC,MAAoB;AACzE,QAAAC,IAA4BR,EAAyBM,CAAQ,EAAE;AAErE,SAAOG,EAAM,CAACD,GAA2BD,KAAU,
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../src/components/RichTextEditor/EditorPositioningWrapper/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { EditorPositioningWrapperProps, Position } from './types';\nimport {\n ToolbarWrapperPositioningBottom,\n ToolbarWrapperPositioningFloating,\n ToolbarWrapperPositioningTop,\n} from './ToolbarWrapper';\nimport { merge } from '@utilities/merge';\n\nexport { Position } from './types';\nexport const EditorPositioningWrapper: EditorPositioningWrapperProps = {\n [Position.BOTTOM]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full tw-flex tw-flex-col',\n ToolbarWrapper: ToolbarWrapperPositioningBottom,\n },\n [Position.FLOATING]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full',\n ToolbarWrapper: ToolbarWrapperPositioningFloating,\n },\n [Position.TOP]: {\n PlateWrapperClassNames: 'tw-relative tw-w-full tw-flex tw-flex-col-reverse',\n ToolbarWrapper: ToolbarWrapperPositioningTop,\n },\n};\n\nexport const getEditorWrapperClassNames = (position: Position, border: boolean) => {\n const toolbarPositioningClasses = EditorPositioningWrapper[position].PlateWrapperClassNames;\n\n return merge([toolbarPositioningClasses, border && 'tw-border tw-border-line-strong tw-rounded']);\n};\n"],"names":["EditorPositioningWrapper","Position","ToolbarWrapperPositioningBottom","ToolbarWrapperPositioningFloating","ToolbarWrapperPositioningTop","getEditorWrapperClassNames","position","border","toolbarPositioningClasses","merge"],"mappings":";;;;;AAWO,MAAMA,IAA0D;AAAA,EACnE,CAACC,EAAS,MAAM,GAAG;AAAA,IACf,wBAAwB;AAAA,IACxB,gBAAgBC;AAAA,EACpB;AAAA,EACA,CAACD,EAAS,QAAQ,GAAG;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgBE;AAAA,EACpB;AAAA,EACA,CAACF,EAAS,GAAG,GAAG;AAAA,IACZ,wBAAwB;AAAA,IACxB,gBAAgBG;AAAA,EACpB;AACJ,GAEaC,IAA6B,CAACC,GAAoBC,MAAoB;AACzE,QAAAC,IAA4BR,EAAyBM,CAAQ,EAAE;AAErE,SAAOG,EAAM,CAACD,GAA2BD,KAAU,4CAA4C,CAAC;AACpG;"}
|
|
@@ -14,7 +14,7 @@ const N = {
|
|
|
14
14
|
[E.ELEMENT_IMAGE_TITLE]: "imageTitle"
|
|
15
15
|
/* IMAGE_TITLE */
|
|
16
16
|
};
|
|
17
|
-
var t = /* @__PURE__ */ ((T) => (T.None = "tw-p-0", T.Small = "tw-p-2", T.Medium = "tw-p-
|
|
17
|
+
var t = /* @__PURE__ */ ((T) => (T.None = "tw-p-0", T.Small = "tw-p-2", T.Medium = "tw-p-5", T.Large = "tw-p-6", T.XLarge = "tw-p-8", T))(t || {});
|
|
18
18
|
export {
|
|
19
19
|
t as PaddingSizes,
|
|
20
20
|
N as TextStylesToDesignTokenMap
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.es.js","sources":["../../../src/components/RichTextEditor/types.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { CSSProperties } from 'react';\nimport { TNode } from '@udecode/plate';\nimport { ButtonStyles, TextStyles } from './Plugins/TextStylePlugin/TextStyles';\n\nexport const enum DesignTokenNames {\n HEADING1 = 'heading1',\n HEADING2 = 'heading2',\n HEADING3 = 'heading3',\n HEADING4 = 'heading4',\n CUSTOM1 = 'custom1',\n CUSTOM2 = 'custom2',\n CUSTOM3 = 'custom3',\n QUOTE = 'quote',\n LINK = 'link',\n PARAGRAPH = 'p',\n IMAGE_CAPTION = 'imageCaption',\n IMAGE_TITLE = 'imageTitle',\n}\n\nexport const TextStylesToDesignTokenMap = {\n [TextStyles.ELEMENT_HEADING1]: DesignTokenNames.HEADING1,\n [TextStyles.ELEMENT_HEADING2]: DesignTokenNames.HEADING2,\n [TextStyles.ELEMENT_HEADING3]: DesignTokenNames.HEADING3,\n [TextStyles.ELEMENT_HEADING4]: DesignTokenNames.HEADING3,\n [TextStyles.ELEMENT_CUSTOM1]: DesignTokenNames.CUSTOM1,\n [TextStyles.ELEMENT_CUSTOM2]: DesignTokenNames.CUSTOM2,\n [TextStyles.ELEMENT_CUSTOM3]: DesignTokenNames.CUSTOM3,\n [TextStyles.ELEMENT_QUOTE]: DesignTokenNames.QUOTE,\n [TextStyles.ELEMENT_LINK]: DesignTokenNames.LINK,\n [TextStyles.ELEMENT_PARAGRAPH]: DesignTokenNames.PARAGRAPH,\n [TextStyles.ELEMENT_IMAGE_CAPTION]: DesignTokenNames.IMAGE_CAPTION,\n [TextStyles.ELEMENT_IMAGE_TITLE]: DesignTokenNames.IMAGE_TITLE,\n};\n\nexport type DesignTokens = Partial<Record<DesignTokenNames, CSSProperties>> &\n Partial<Record<ButtonStyles, CSSProperties & { hover?: CSSProperties }>>;\n\nexport enum PaddingSizes {\n None = 'tw-p-0',\n Small = 'tw-p-2',\n Medium = 'tw-p-
|
|
1
|
+
{"version":3,"file":"types.es.js","sources":["../../../src/components/RichTextEditor/types.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { CSSProperties } from 'react';\nimport { TNode } from '@udecode/plate';\nimport { ButtonStyles, TextStyles } from './Plugins/TextStylePlugin/TextStyles';\n\nexport const enum DesignTokenNames {\n HEADING1 = 'heading1',\n HEADING2 = 'heading2',\n HEADING3 = 'heading3',\n HEADING4 = 'heading4',\n CUSTOM1 = 'custom1',\n CUSTOM2 = 'custom2',\n CUSTOM3 = 'custom3',\n QUOTE = 'quote',\n LINK = 'link',\n PARAGRAPH = 'p',\n IMAGE_CAPTION = 'imageCaption',\n IMAGE_TITLE = 'imageTitle',\n}\n\nexport const TextStylesToDesignTokenMap = {\n [TextStyles.ELEMENT_HEADING1]: DesignTokenNames.HEADING1,\n [TextStyles.ELEMENT_HEADING2]: DesignTokenNames.HEADING2,\n [TextStyles.ELEMENT_HEADING3]: DesignTokenNames.HEADING3,\n [TextStyles.ELEMENT_HEADING4]: DesignTokenNames.HEADING3,\n [TextStyles.ELEMENT_CUSTOM1]: DesignTokenNames.CUSTOM1,\n [TextStyles.ELEMENT_CUSTOM2]: DesignTokenNames.CUSTOM2,\n [TextStyles.ELEMENT_CUSTOM3]: DesignTokenNames.CUSTOM3,\n [TextStyles.ELEMENT_QUOTE]: DesignTokenNames.QUOTE,\n [TextStyles.ELEMENT_LINK]: DesignTokenNames.LINK,\n [TextStyles.ELEMENT_PARAGRAPH]: DesignTokenNames.PARAGRAPH,\n [TextStyles.ELEMENT_IMAGE_CAPTION]: DesignTokenNames.IMAGE_CAPTION,\n [TextStyles.ELEMENT_IMAGE_TITLE]: DesignTokenNames.IMAGE_TITLE,\n};\n\nexport type DesignTokens = Partial<Record<DesignTokenNames, CSSProperties>> &\n Partial<Record<ButtonStyles, CSSProperties & { hover?: CSSProperties }>>;\n\nexport enum PaddingSizes {\n None = 'tw-p-0',\n Small = 'tw-p-2',\n Medium = 'tw-p-5',\n Large = 'tw-p-6',\n XLarge = 'tw-p-8',\n}\n\nexport type TreeOfNodes = TNode[];\n"],"names":["TextStylesToDesignTokenMap","TextStyles","PaddingSizes"],"mappings":";AAqBO,MAAMA,IAA6B;AAAA,EACtC,CAACC,EAAW,gBAAgB,GAAG;AAAA,EAC/B,CAACA,EAAW,gBAAgB,GAAG;AAAA,EAC/B,CAACA,EAAW,gBAAgB,GAAG;AAAA,EAC/B,CAACA,EAAW,gBAAgB,GAAG;AAAA,EAC/B,CAACA,EAAW,eAAe,GAAG;AAAA,EAC9B,CAACA,EAAW,eAAe,GAAG;AAAA,EAC9B,CAACA,EAAW,eAAe,GAAG;AAAA,EAC9B,CAACA,EAAW,aAAa,GAAG;AAAA,EAC5B,CAACA,EAAW,YAAY,GAAG;AAAA,EAC3B,CAACA,EAAW,iBAAiB,GAAG;AAAA,EAChC,CAACA,EAAW,qBAAqB,GAAG;AAAA,EACpC,CAACA,EAAW,mBAAmB,GAAG;AAAA;AACtC;AAKY,IAAAC,sBAAAA,OACRA,EAAA,OAAO,UACPA,EAAA,QAAQ,UACRA,EAAA,SAAS,UACTA,EAAA,QAAQ,UACRA,EAAA,SAAS,UALDA,IAAAA,KAAA,CAAA,CAAA;"}
|