@palmyit/elements 0.1.7 → 0.1.19

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.
Files changed (98) hide show
  1. package/README.md +2 -0
  2. package/dist/definitions.d.ts +34 -25
  3. package/dist/definitions.js +1681 -868
  4. package/dist/elements/article/definition.d.ts +43 -0
  5. package/dist/elements/article/template.d.ts +12 -0
  6. package/dist/elements/button/definition.d.ts +39 -0
  7. package/dist/elements/button/template.d.ts +2 -0
  8. package/dist/elements/checkbox/definition.d.ts +10 -0
  9. package/dist/elements/checkbox/template.d.ts +2 -0
  10. package/dist/elements/container/definition.d.ts +39 -0
  11. package/dist/elements/container/template.d.ts +2 -0
  12. package/dist/elements/divider/definition.d.ts +10 -0
  13. package/dist/elements/divider/template.d.ts +2 -0
  14. package/dist/elements/footer/definition.d.ts +35 -0
  15. package/dist/elements/footer/template.d.ts +2 -0
  16. package/dist/elements/heading/definition.d.ts +29 -0
  17. package/dist/elements/heading/template.d.ts +2 -0
  18. package/dist/elements/icon/definition.d.ts +29 -0
  19. package/dist/elements/icon/template.d.ts +2 -0
  20. package/dist/elements/image/definition.d.ts +80 -0
  21. package/dist/elements/image/template.d.ts +32 -0
  22. package/dist/elements/list/definition.d.ts +13 -0
  23. package/dist/elements/list/template.d.ts +2 -0
  24. package/dist/elements/nav/definition.d.ts +39 -0
  25. package/dist/elements/nav/template.d.ts +17 -0
  26. package/dist/elements/page/definition.d.ts +62 -0
  27. package/dist/elements/page/template.d.ts +2 -0
  28. package/dist/elements/radio/definition.d.ts +13 -0
  29. package/dist/elements/radio/template.d.ts +2 -0
  30. package/dist/elements/rich-text/definition.d.ts +8 -0
  31. package/dist/elements/rich-text/template.d.ts +2 -0
  32. package/dist/elements/section/definition.d.ts +39 -0
  33. package/dist/elements/section/template.d.ts +2 -0
  34. package/dist/elements/select/definition.d.ts +13 -0
  35. package/dist/elements/select/template.d.ts +2 -0
  36. package/dist/{schema/PTable/pTable.definition.d.ts → elements/table/definition.d.ts} +4 -2
  37. package/dist/elements/table/template.d.ts +2 -0
  38. package/dist/{schema/PText/pText.definition.d.ts → elements/text/definition.d.ts} +11 -10
  39. package/dist/elements/text/template.d.ts +2 -0
  40. package/dist/elements/text-area/definition.d.ts +10 -0
  41. package/dist/elements/text-area/template.d.ts +2 -0
  42. package/dist/elements/text-field/definition.d.ts +10 -0
  43. package/dist/elements/text-field/template.d.ts +2 -0
  44. package/dist/elements/video/definition.d.ts +49 -0
  45. package/dist/elements/video/template.d.ts +8 -0
  46. package/dist/elements/video/youtube.d.ts +4 -0
  47. package/dist/manifest.json +2 -2
  48. package/dist/plmt-elements.css +2 -1
  49. package/dist/render/renderHtml.d.ts +1 -1
  50. package/dist/render/styleToClasses.d.ts +34 -0
  51. package/dist/render/styleToVars.d.ts +2 -0
  52. package/dist/render/styleTokens.d.ts +67 -0
  53. package/dist/render/tags.d.ts +9 -1
  54. package/dist/render/types.d.ts +10 -0
  55. package/dist/schema/Fields/BackgroundField/backgroundValue.d.ts +4 -3
  56. package/dist/schema/Fields/ColorField/colorText.d.ts +3 -0
  57. package/dist/schema/Fields/IconPicker/iconCatalog.d.ts +5 -1
  58. package/dist/schema/addressSchema.d.ts +2 -0
  59. package/dist/schema/backgroundStyleDefinitions.d.ts +1 -6
  60. package/dist/schema/device/devices.d.ts +8 -0
  61. package/dist/schema/deviceSettings.d.ts +1 -1
  62. package/dist/schema/elementCategories.d.ts +29 -0
  63. package/dist/schema/elementConfiguration.d.ts +1 -1
  64. package/dist/schema/elementRegistry.d.ts +38 -14
  65. package/dist/schema/elementStyleDefinitions.d.ts +7 -15
  66. package/dist/schema/elementTemplates.d.ts +3 -2
  67. package/dist/schema/linkSettings.d.ts +19 -2
  68. package/dist/schema/style/elementStyle.d.ts +3 -3
  69. package/dist/schema/style/page-styles.d.ts +2 -2
  70. package/dist/schema/styleItems.d.ts +18 -0
  71. package/dist/schema/styleTokensSchema.d.ts +290 -0
  72. package/dist/tags.json +5 -1
  73. package/dist/templates/brands/brandSpec.d.ts +5 -0
  74. package/dist/templates/elementSpec.d.ts +3 -8
  75. package/dist/templates/head.d.ts +43 -0
  76. package/dist/templates/helpers.d.ts +9 -1
  77. package/dist/templates/heroicons/heroiconSpec.d.ts +6 -0
  78. package/dist/templates.d.ts +6 -1
  79. package/dist/templates.js +1428 -234
  80. package/dist/youtube-BDsE1Bz3.js +910 -0
  81. package/package.json +5 -3
  82. package/dist/schema/PButton/pButton.definition.d.ts +0 -38
  83. package/dist/schema/PCheckbox/pCheckbox.definition.d.ts +0 -10
  84. package/dist/schema/PContainer/pContainer.definition.d.ts +0 -39
  85. package/dist/schema/PDivider/pDivider.definition.d.ts +0 -10
  86. package/dist/schema/PIcon/pIcon.definition.d.ts +0 -18
  87. package/dist/schema/PImage/pImage.definition.d.ts +0 -33
  88. package/dist/schema/PList/pList.definition.d.ts +0 -11
  89. package/dist/schema/PPage/pPage.definition.d.ts +0 -22
  90. package/dist/schema/PRadio/pRadio.definition.d.ts +0 -13
  91. package/dist/schema/PRichText/pRichText.definition.d.ts +0 -8
  92. package/dist/schema/PSection/pSection.definition.d.ts +0 -39
  93. package/dist/schema/PSelect/pSelect.definition.d.ts +0 -13
  94. package/dist/schema/PTextArea/pTextArea.definition.d.ts +0 -10
  95. package/dist/schema/PTextField/pTextField.definition.d.ts +0 -10
  96. package/dist/schema/PVideo/pVideo.definition.d.ts +0 -10
  97. /package/dist/{schema/PRichText → elements/rich-text}/richTextMarks.d.ts +0 -0
  98. /package/dist/{schema/PRichText → elements/rich-text}/richTextOptions.d.ts +0 -0
@@ -0,0 +1,43 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ import { HeadingLevel } from '../heading/definition';
3
+ import { ImageAspectRatio, ImageShadow } from '../image/definition';
4
+ export declare const ARTICLE_LAYOUTS: readonly ["vertical", "horizontal"];
5
+ export type ArticleLayout = (typeof ARTICLE_LAYOUTS)[number];
6
+ export declare const ARTICLE_EXCERPT_LINES: readonly ["2", "3", "4", "none"];
7
+ export type ArticleExcerptLines = (typeof ARTICLE_EXCERPT_LINES)[number];
8
+ export type PArticleDocumentProps = {
9
+ id: string;
10
+ title: string;
11
+ titleLevel: HeadingLevel;
12
+ excerpt: string;
13
+ href: string;
14
+ linkLabel: string;
15
+ image: string;
16
+ imageAlt: string;
17
+ publishedAt: string;
18
+ author: string;
19
+ tags: TextItem[];
20
+ layout: ArticleLayout;
21
+ clickableCard: boolean;
22
+ excerptLines: ArticleExcerptLines;
23
+ imageAspect: ImageAspectRatio;
24
+ shadow: ImageShadow;
25
+ };
26
+ export declare const defaultArticleProps: {
27
+ title: string;
28
+ titleLevel: "2";
29
+ excerpt: string;
30
+ href: string;
31
+ linkLabel: string;
32
+ image: string;
33
+ imageAlt: string;
34
+ publishedAt: string;
35
+ author: string;
36
+ tags: TextItem[];
37
+ layout: "vertical";
38
+ clickableCard: boolean;
39
+ excerptLines: "3";
40
+ imageAspect: "video";
41
+ shadow: "none";
42
+ };
43
+ export declare const pArticleDefinition: import('../../definitions').ElementConfiguration<PArticleDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,12 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare const ARTICLE_LAYOUT_CLASSES: {
3
+ readonly vertical: "flex flex-col";
4
+ readonly horizontal: "flex flex-row mobile:flex-col";
5
+ };
6
+ export declare const ARTICLE_CLAMP_CLASSES: {
7
+ readonly '2': "line-clamp-2";
8
+ readonly '3': "line-clamp-3";
9
+ readonly '4': "line-clamp-4";
10
+ readonly none: "";
11
+ };
12
+ export declare function articleTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,39 @@
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ import { LengthKey } from '../../schema/elementStyleDefinitions';
3
+ import { BorderLineStyle } from '../../schema/style/elementStyle';
4
+ import { BackgroundStyle } from '../../schema/Fields/BackgroundField/backgroundValue';
5
+ import { StyleColor } from '../../render/styleTokens';
6
+ /** Every key stays unset until the user edits it, so the button keeps its theme look. */
7
+ export type ButtonStyle = Partial<BackgroundStyle & Record<LengthKey, string> & {
8
+ borderWidth: string;
9
+ borderStyle: BorderLineStyle;
10
+ borderColor: StyleColor;
11
+ textColor: StyleColor;
12
+ textFont: string;
13
+ textSize: string | number;
14
+ iconGap: string;
15
+ }>;
16
+ export type PButtonDocumentProps = LinkSettings & {
17
+ id: string;
18
+ name: string;
19
+ startIcon: string;
20
+ endIcon: string;
21
+ style: ButtonStyle;
22
+ };
23
+ export declare const defaultButtonProps: {
24
+ style: ButtonStyle;
25
+ href: string;
26
+ target: import('../../schema/linkSettings').LinkTarget;
27
+ description: string;
28
+ rel: import('../../definitions').LinkRel;
29
+ name: string;
30
+ startIcon: string;
31
+ endIcon: string;
32
+ };
33
+ export declare const pButtonDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
34
+ id: string;
35
+ name: string;
36
+ startIcon: string;
37
+ endIcon: string;
38
+ style: ButtonStyle;
39
+ } & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function buttonTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,10 @@
1
+ export type PCheckboxDocumentProps = {
2
+ id: string;
3
+ label: string;
4
+ checked: boolean;
5
+ };
6
+ export declare const defaultCheckboxProps: {
7
+ label: string;
8
+ checked: boolean;
9
+ };
10
+ export declare const pCheckboxDefinition: import('../../definitions').ElementConfiguration<PCheckboxDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function checkboxTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,39 @@
1
+ export declare const defaultContainerStyle: {
2
+ layout: import('../../definitions').ElementLayout;
3
+ gridColumns?: import('../../definitions').GridColumnCount;
4
+ flexDirection: import('../../definitions').FlexDirection;
5
+ flexWrap: import('../../definitions').FlexWrap;
6
+ justifyContent: import('../../definitions').FlexJustifyContent;
7
+ alignItems: import('../../definitions').FlexAlignItems;
8
+ alignContent: import('../../definitions').FlexAlignContent;
9
+ rowGap: string;
10
+ columnGap: string;
11
+ overflow: import('../../definitions').ElementOverflow;
12
+ overflowVertical: boolean;
13
+ overflowHorizontal: boolean;
14
+ width: string;
15
+ height: string;
16
+ minWidth: string;
17
+ minHeight: string;
18
+ maxWidth: string;
19
+ maxHeight: string;
20
+ paddingTop: string;
21
+ paddingBottom: string;
22
+ paddingLeft: string;
23
+ paddingRight: string;
24
+ marginTop: string;
25
+ marginBottom: string;
26
+ marginLeft: string;
27
+ marginRight: string;
28
+ borderRadiusTopLeft: string;
29
+ borderRadiusTopRight: string;
30
+ borderRadiusBottomRight: string;
31
+ borderRadiusBottomLeft: string;
32
+ borderWidth: string;
33
+ borderStyle: import('../../definitions').BorderLineStyle;
34
+ borderColor: import('../../definitions').StyleColor;
35
+ backgroundType: import('../../schema/Fields/BackgroundField/backgroundValue').BackgroundType;
36
+ backgroundColor: import('../../definitions').StyleColor;
37
+ backgroundGradient?: import('../../schema/Fields/BackgroundField/backgroundValue').GradientValue;
38
+ };
39
+ export declare const pContainerDefinition: import('../../definitions').ElementConfiguration<import('../../schema/layoutElementConfiguration').LayoutElementProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function containerTemplate(node: ShortcodeNode, options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,10 @@
1
+ export declare const dividerSizes: readonly ["1", "2", "3", "4"];
2
+ export type DividerSize = (typeof dividerSizes)[number];
3
+ export type PDividerDocumentProps = {
4
+ id: string;
5
+ size: DividerSize;
6
+ };
7
+ export declare const defaultDividerProps: {
8
+ size: DividerSize;
9
+ };
10
+ export declare const pDividerDefinition: import('../../definitions').ElementConfiguration<PDividerDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function dividerTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,35 @@
1
+ import { ElementStyle } from '../../schema/style/elementStyle';
2
+ import { BRAND_NETWORKS } from '../../templates/brands/brandSpec';
3
+ export type FooterLinkItem = {
4
+ label: string;
5
+ href: string;
6
+ };
7
+ export type FooterLinkGroup = {
8
+ heading: string;
9
+ items: FooterLinkItem[];
10
+ };
11
+ export type FooterSocialLink = {
12
+ network: (typeof BRAND_NETWORKS)[number];
13
+ href: string;
14
+ };
15
+ export type PFooterDocumentProps = {
16
+ id: string;
17
+ linkGroups: FooterLinkGroup[];
18
+ copyright: string;
19
+ address: string;
20
+ phone: string;
21
+ email: string;
22
+ socialLinks: FooterSocialLink[];
23
+ style: ElementStyle;
24
+ };
25
+ export declare const defaultFooterStyle: ElementStyle;
26
+ export declare const defaultFooterProps: {
27
+ linkGroups: FooterLinkGroup[];
28
+ copyright: string;
29
+ address: string;
30
+ phone: string;
31
+ email: string;
32
+ socialLinks: FooterSocialLink[];
33
+ style: ElementStyle;
34
+ };
35
+ export declare const pFooterDefinition: import('../../definitions').ElementConfiguration<PFooterDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function footerTemplate(node: ShortcodeNode, options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,29 @@
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ import { TextStyle } from '../text/definition';
3
+ export declare const HEADING_LEVELS: readonly ["1", "2", "3", "4", "5", "6"];
4
+ export type HeadingLevel = (typeof HEADING_LEVELS)[number];
5
+ export type PHeadingDocumentProps = LinkSettings & {
6
+ id: string;
7
+ text: string;
8
+ level: HeadingLevel;
9
+ anchor: string;
10
+ style: TextStyle;
11
+ };
12
+ export declare const defaultHeadingProps: {
13
+ style: TextStyle;
14
+ href: string;
15
+ target: import('../../schema/linkSettings').LinkTarget;
16
+ description: string;
17
+ rel: import('../../definitions').LinkRel;
18
+ text: string;
19
+ level: "2";
20
+ anchor: string;
21
+ };
22
+ export declare const HEADING_PREFIX = "--palmyit-heading";
23
+ export declare const pHeadingDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
24
+ id: string;
25
+ text: string;
26
+ level: HeadingLevel;
27
+ anchor: string;
28
+ style: TextStyle;
29
+ } & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function headingTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,29 @@
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ export declare const iconSizes: readonly ["small", "medium", "large"];
3
+ export type IconSize = (typeof iconSizes)[number];
4
+ export declare const iconShapes: readonly ["outline", "solid"];
5
+ export type IconShape = (typeof iconShapes)[number];
6
+ export type PIconDocumentProps = LinkSettings & {
7
+ id: string;
8
+ icon: string;
9
+ label: string;
10
+ size: IconSize;
11
+ shape: IconShape;
12
+ };
13
+ export declare const defaultIconProps: {
14
+ href: string;
15
+ target: import('../../schema/linkSettings').LinkTarget;
16
+ description: string;
17
+ rel: import('../../definitions').LinkRel;
18
+ icon: string;
19
+ label: string;
20
+ size: IconSize;
21
+ shape: IconShape;
22
+ };
23
+ export declare const pIconDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
24
+ id: string;
25
+ icon: string;
26
+ label: string;
27
+ size: IconSize;
28
+ shape: IconShape;
29
+ } & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function iconTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,80 @@
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ import { BorderLineStyle } from '../../schema/style/elementStyle';
3
+ import { BackgroundStyle } from '../../schema/Fields/BackgroundField/backgroundValue';
4
+ import { StyleColor } from '../../render/styleTokens';
5
+ export declare const IMAGE_LENGTH_KEYS: ("width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft")[];
6
+ export type ImageLengthKey = (typeof IMAGE_LENGTH_KEYS)[number];
7
+ export declare const IMAGE_ASPECT_RATIOS: readonly ["auto", "square", "video", "3/4", "4/3"];
8
+ export type ImageAspectRatio = (typeof IMAGE_ASPECT_RATIOS)[number];
9
+ export declare const IMAGE_OBJECT_FITS: readonly ["cover", "contain"];
10
+ export type ImageObjectFit = (typeof IMAGE_OBJECT_FITS)[number];
11
+ export declare const IMAGE_OBJECT_POSITIONS: readonly ["center", "top", "bottom", "left", "right", "left-top", "right-top", "left-bottom", "right-bottom"];
12
+ export type ImageObjectPosition = (typeof IMAGE_OBJECT_POSITIONS)[number];
13
+ export declare const IMAGE_SHADOWS: readonly ["none", "sm", "md", "lg", "xl"];
14
+ export type ImageShadow = (typeof IMAGE_SHADOWS)[number];
15
+ export declare const IMAGE_CAPTION_ALIGNS: readonly ["start", "center"];
16
+ export type ImageCaptionAlign = (typeof IMAGE_CAPTION_ALIGNS)[number];
17
+ /** Every key stays unset until the user edits it, so the image keeps its natural size and no frame. */
18
+ export type ImageStyle = Partial<BackgroundStyle & Record<ImageLengthKey, string> & {
19
+ borderWidth: string;
20
+ borderStyle: BorderLineStyle;
21
+ borderColor: StyleColor;
22
+ }>;
23
+ export type PImageDocumentProps = LinkSettings & {
24
+ id: string;
25
+ src: string;
26
+ alt: string;
27
+ priority: boolean;
28
+ caption: string;
29
+ decorative: boolean;
30
+ intrinsicWidth: number | null;
31
+ intrinsicHeight: number | null;
32
+ tabletSrc: string;
33
+ mobileSrc: string;
34
+ aspectRatio: ImageAspectRatio;
35
+ objectFit: ImageObjectFit | '';
36
+ objectPosition: ImageObjectPosition;
37
+ shadow: ImageShadow;
38
+ captionAlign: ImageCaptionAlign;
39
+ style: ImageStyle;
40
+ };
41
+ export declare const defaultImageProps: {
42
+ href: string;
43
+ target: import('../../schema/linkSettings').LinkTarget;
44
+ description: string;
45
+ rel: import('../../definitions').LinkRel;
46
+ src: string;
47
+ alt: string;
48
+ priority: boolean;
49
+ caption: string;
50
+ decorative: boolean;
51
+ intrinsicWidth: number | null;
52
+ intrinsicHeight: number | null;
53
+ tabletSrc: string;
54
+ mobileSrc: string;
55
+ aspectRatio: "auto";
56
+ objectFit: "";
57
+ objectPosition: "center";
58
+ shadow: "none";
59
+ captionAlign: "start";
60
+ style: ImageStyle;
61
+ };
62
+ export declare const IMAGE_PREFIX = "--palmyit-image";
63
+ export declare const pImageDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
64
+ id: string;
65
+ src: string;
66
+ alt: string;
67
+ priority: boolean;
68
+ caption: string;
69
+ decorative: boolean;
70
+ intrinsicWidth: number | null;
71
+ intrinsicHeight: number | null;
72
+ tabletSrc: string;
73
+ mobileSrc: string;
74
+ aspectRatio: ImageAspectRatio;
75
+ objectFit: ImageObjectFit | "";
76
+ objectPosition: ImageObjectPosition;
77
+ shadow: ImageShadow;
78
+ captionAlign: ImageCaptionAlign;
79
+ style: ImageStyle;
80
+ } & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,32 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ /** Literal utility maps so Tailwind `@source` finds every class. */
3
+ export declare const IMAGE_ASPECT_CLASSES: {
4
+ readonly auto: "";
5
+ readonly square: "aspect-square";
6
+ readonly video: "aspect-video";
7
+ readonly '3/4': "aspect-3/4";
8
+ readonly '4/3': "aspect-4/3";
9
+ };
10
+ export declare const IMAGE_FIT_CLASSES: {
11
+ readonly cover: "object-cover";
12
+ readonly contain: "object-contain";
13
+ };
14
+ export declare const IMAGE_POSITION_CLASSES: {
15
+ readonly center: "object-center";
16
+ readonly top: "object-top";
17
+ readonly bottom: "object-bottom";
18
+ readonly left: "object-left";
19
+ readonly right: "object-right";
20
+ readonly 'left-top': "object-left-top";
21
+ readonly 'right-top': "object-right-top";
22
+ readonly 'left-bottom': "object-left-bottom";
23
+ readonly 'right-bottom': "object-right-bottom";
24
+ };
25
+ export declare const IMAGE_SHADOW_CLASSES: {
26
+ readonly none: "";
27
+ readonly sm: "shadow-sm";
28
+ readonly md: "shadow-md";
29
+ readonly lg: "shadow-lg";
30
+ readonly xl: "shadow-xl";
31
+ };
32
+ export declare function imageTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,13 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ export type PListDocumentProps = {
3
+ id: string;
4
+ items: TextItem[];
5
+ ordered: boolean;
6
+ };
7
+ export declare const defaultListProps: {
8
+ items: {
9
+ text: string;
10
+ }[];
11
+ ordered: boolean;
12
+ };
13
+ export declare const pListDefinition: import('../../definitions').ElementConfiguration<PListDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function listTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,39 @@
1
+ import { LINK_TARGETS } from '../../schema/linkSettings';
2
+ export declare const NAV_POSITIONS: readonly ["static", "sticky", "overlay"];
3
+ export type NavPosition = (typeof NAV_POSITIONS)[number];
4
+ export declare const NAV_ALIGNMENTS: readonly ["start", "center", "end"];
5
+ export type NavAlignment = (typeof NAV_ALIGNMENTS)[number];
6
+ export declare const NAV_MOBILE_MENUS: readonly ["collapse", "scroll"];
7
+ export type NavMobileMenu = (typeof NAV_MOBILE_MENUS)[number];
8
+ export declare const NAV_COLLAPSE_AT: readonly ["tablet", "mobile"];
9
+ export type NavCollapseAt = (typeof NAV_COLLAPSE_AT)[number];
10
+ export declare const NAV_HEIGHTS: readonly ["14", "16", "20"];
11
+ export type NavHeight = (typeof NAV_HEIGHTS)[number];
12
+ export type NavItem = {
13
+ label: string;
14
+ href: string;
15
+ target: (typeof LINK_TARGETS)[number];
16
+ };
17
+ export type NavCta = {
18
+ label: string;
19
+ href: string;
20
+ };
21
+ export type PNavDocumentProps = {
22
+ id: string;
23
+ brandText: string;
24
+ brandLogo: string;
25
+ brandHref: string;
26
+ items: NavItem[];
27
+ ctaLabel: string;
28
+ ctaHref: string;
29
+ position: NavPosition;
30
+ alignment: NavAlignment;
31
+ mobileMenu: NavMobileMenu;
32
+ collapseAt: NavCollapseAt;
33
+ glass: boolean;
34
+ border: boolean;
35
+ shadow: boolean;
36
+ height: NavHeight;
37
+ };
38
+ export declare const defaultNavProps: Omit<PNavDocumentProps, 'id'>;
39
+ export declare const pNavDefinition: import('../../definitions').ElementConfiguration<PNavDocumentProps>;
@@ -0,0 +1,17 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare const NAV_POSITION_CLASSES: {
3
+ readonly static: "";
4
+ readonly sticky: "sticky top-0 z-40";
5
+ readonly overlay: "absolute inset-x-0 top-0 z-40";
6
+ };
7
+ export declare const NAV_HEIGHT_CLASSES: {
8
+ readonly '14': "h-14";
9
+ readonly '16': "h-16";
10
+ readonly '20': "h-20";
11
+ };
12
+ export declare const NAV_ALIGN_CLASSES: {
13
+ readonly start: "justify-start";
14
+ readonly center: "justify-center";
15
+ readonly end: "justify-end";
16
+ };
17
+ export declare function navTemplate(node: ShortcodeNode, options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,62 @@
1
+ import { StyleColor, TextSizeToken, LEADING_TOKENS } from '../../render/styleTokens';
2
+ export declare const PAGE_DIRS: readonly ["auto", "ltr", "rtl"];
3
+ export type PageDir = (typeof PAGE_DIRS)[number];
4
+ export declare const PAGE_TEXT_SIZES: readonly ["sm", "base", "lg"];
5
+ export type PageTextSize = (typeof PAGE_TEXT_SIZES)[number];
6
+ export declare const CONTENT_WIDTHS: readonly ["5xl", "6xl", "7xl", "full"];
7
+ export type ContentWidth = (typeof CONTENT_WIDTHS)[number];
8
+ export declare const RADIUS_STYLES: readonly ["square", "soft", "rounded"];
9
+ export type RadiusStyle = (typeof RADIUS_STYLES)[number];
10
+ export declare const LINK_UNDERLINES: readonly ["always", "hover", "never"];
11
+ export type LinkUnderline = (typeof LINK_UNDERLINES)[number];
12
+ export type PPageRootProps = {
13
+ pageId: string;
14
+ url: string;
15
+ title: string;
16
+ seoTitle: string;
17
+ description: string;
18
+ lang: string;
19
+ dir: PageDir;
20
+ shareImage: string;
21
+ hideFromSearch: boolean;
22
+ bodyFont: string;
23
+ headingFont: string;
24
+ lineHeight: (typeof LEADING_TOKENS)[number] | '';
25
+ accentColor: string;
26
+ contentWidth: ContentWidth;
27
+ radiusStyle: RadiusStyle;
28
+ linkUnderline: LinkUnderline;
29
+ backgroundColor: StyleColor;
30
+ textColor: StyleColor;
31
+ textSize: TextSizeToken | number | string;
32
+ };
33
+ export declare const defaultPageStyle: {
34
+ backgroundColor: {
35
+ name: "white";
36
+ opacity: 100;
37
+ };
38
+ textColor: {
39
+ name: "slate-900";
40
+ opacity: 100;
41
+ };
42
+ textSize: "sm";
43
+ };
44
+ export declare const defaultPageSeo: {
45
+ seoTitle: string;
46
+ description: string;
47
+ lang: string;
48
+ dir: "auto";
49
+ shareImage: string;
50
+ hideFromSearch: boolean;
51
+ };
52
+ export declare const defaultPageTheme: {
53
+ bodyFont: string;
54
+ headingFont: string;
55
+ lineHeight: "";
56
+ accentColor: string;
57
+ contentWidth: "7xl";
58
+ radiusStyle: "soft";
59
+ linkUnderline: "hover";
60
+ };
61
+ export declare const pageStyleKeys: readonly string[];
62
+ export declare const pPageDefinition: import('../../definitions').ElementConfiguration<PPageRootProps>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function pageTemplate(node: ShortcodeNode, options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,13 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ export type PRadioDocumentProps = {
3
+ id: string;
4
+ legend: string;
5
+ options: TextItem[];
6
+ };
7
+ export declare const defaultRadioProps: {
8
+ legend: string;
9
+ options: {
10
+ text: string;
11
+ }[];
12
+ };
13
+ export declare const pRadioDefinition: import('../../definitions').ElementConfiguration<PRadioDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function radioTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,8 @@
1
+ export type PRichTextDocumentProps = {
2
+ id: string;
3
+ text: string;
4
+ };
5
+ export declare const defaultRichTextProps: {
6
+ text: string;
7
+ };
8
+ export declare const pRichTextDefinition: import('../../definitions').ElementConfiguration<PRichTextDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function richTextTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,39 @@
1
+ export declare const defaultSectionStyle: {
2
+ layout: import('../../definitions').ElementLayout;
3
+ gridColumns?: import('../../definitions').GridColumnCount;
4
+ flexDirection: import('../../definitions').FlexDirection;
5
+ flexWrap: import('../../definitions').FlexWrap;
6
+ justifyContent: import('../../definitions').FlexJustifyContent;
7
+ alignItems: import('../../definitions').FlexAlignItems;
8
+ alignContent: import('../../definitions').FlexAlignContent;
9
+ rowGap: string;
10
+ columnGap: string;
11
+ overflow: import('../../definitions').ElementOverflow;
12
+ overflowVertical: boolean;
13
+ overflowHorizontal: boolean;
14
+ width: string;
15
+ height: string;
16
+ minWidth: string;
17
+ minHeight: string;
18
+ maxWidth: string;
19
+ maxHeight: string;
20
+ paddingTop: string;
21
+ paddingBottom: string;
22
+ paddingLeft: string;
23
+ paddingRight: string;
24
+ marginTop: string;
25
+ marginBottom: string;
26
+ marginLeft: string;
27
+ marginRight: string;
28
+ borderRadiusTopLeft: string;
29
+ borderRadiusTopRight: string;
30
+ borderRadiusBottomRight: string;
31
+ borderRadiusBottomLeft: string;
32
+ borderWidth: string;
33
+ borderStyle: import('../../definitions').BorderLineStyle;
34
+ borderColor: import('../../definitions').StyleColor;
35
+ backgroundType: import('../../schema/Fields/BackgroundField/backgroundValue').BackgroundType;
36
+ backgroundColor: import('../../definitions').StyleColor;
37
+ backgroundGradient?: import('../../schema/Fields/BackgroundField/backgroundValue').GradientValue;
38
+ };
39
+ export declare const pSectionDefinition: import('../../definitions').ElementConfiguration<import('../../schema/layoutElementConfiguration').LayoutElementProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function sectionTemplate(node: ShortcodeNode, options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,13 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ export type PSelectDocumentProps = {
3
+ id: string;
4
+ label: string;
5
+ options: TextItem[];
6
+ };
7
+ export declare const defaultSelectProps: {
8
+ label: string;
9
+ options: {
10
+ text: string;
11
+ }[];
12
+ };
13
+ export declare const pSelectDefinition: import('../../definitions').ElementConfiguration<PSelectDocumentProps & Partial<import('../../definitions').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
@@ -0,0 +1,2 @@
1
+ import { ElementSpec, ElementSpecOptions, ShortcodeNode } from '../../render/types';
2
+ export declare function selectTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;