@palmyit/elements 0.1.7 → 0.1.8

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 (70) hide show
  1. package/dist/definitions.d.ts +23 -20
  2. package/dist/definitions.js +692 -686
  3. package/dist/elements/button/definition.d.ts +38 -0
  4. package/dist/elements/button/template.d.ts +2 -0
  5. package/dist/elements/checkbox/definition.d.ts +10 -0
  6. package/dist/elements/checkbox/template.d.ts +2 -0
  7. package/dist/elements/container/definition.d.ts +39 -0
  8. package/dist/elements/container/template.d.ts +2 -0
  9. package/dist/elements/divider/definition.d.ts +10 -0
  10. package/dist/elements/divider/template.d.ts +2 -0
  11. package/dist/elements/icon/definition.d.ts +18 -0
  12. package/dist/elements/icon/template.d.ts +2 -0
  13. package/dist/{schema/PImage/pImage.definition.d.ts → elements/image/definition.d.ts} +8 -8
  14. package/dist/elements/image/template.d.ts +2 -0
  15. package/dist/elements/list/definition.d.ts +11 -0
  16. package/dist/elements/list/template.d.ts +2 -0
  17. package/dist/elements/page/definition.d.ts +22 -0
  18. package/dist/elements/page/template.d.ts +2 -0
  19. package/dist/elements/radio/definition.d.ts +13 -0
  20. package/dist/elements/radio/template.d.ts +2 -0
  21. package/dist/elements/rich-text/definition.d.ts +8 -0
  22. package/dist/elements/rich-text/template.d.ts +2 -0
  23. package/dist/elements/section/definition.d.ts +39 -0
  24. package/dist/elements/section/template.d.ts +2 -0
  25. package/dist/elements/select/definition.d.ts +13 -0
  26. package/dist/elements/select/template.d.ts +2 -0
  27. package/dist/{schema/PTable/pTable.definition.d.ts → elements/table/definition.d.ts} +2 -2
  28. package/dist/elements/table/template.d.ts +2 -0
  29. package/dist/{schema/PText/pText.definition.d.ts → elements/text/definition.d.ts} +9 -9
  30. package/dist/elements/text/template.d.ts +2 -0
  31. package/dist/elements/text-area/definition.d.ts +10 -0
  32. package/dist/elements/text-area/template.d.ts +2 -0
  33. package/dist/elements/text-field/definition.d.ts +10 -0
  34. package/dist/elements/text-field/template.d.ts +2 -0
  35. package/dist/elements/video/definition.d.ts +10 -0
  36. package/dist/elements/video/template.d.ts +2 -0
  37. package/dist/manifest.json +2 -2
  38. package/dist/plmt-elements.css +2 -1
  39. package/dist/render/styleToClasses.d.ts +35 -0
  40. package/dist/render/styleTokens.d.ts +57 -0
  41. package/dist/render/types.d.ts +6 -0
  42. package/dist/schema/Fields/BackgroundField/backgroundValue.d.ts +4 -3
  43. package/dist/schema/backgroundStyleDefinitions.d.ts +1 -6
  44. package/dist/schema/elementRegistry.d.ts +14 -14
  45. package/dist/schema/elementStyleDefinitions.d.ts +1 -1
  46. package/dist/schema/style/elementStyle.d.ts +2 -2
  47. package/dist/schema/style/page-styles.d.ts +2 -2
  48. package/dist/schema/styleTokensSchema.d.ts +274 -0
  49. package/dist/styleToClasses-CZSWp6Ez.js +683 -0
  50. package/dist/templates/elementSpec.d.ts +2 -7
  51. package/dist/templates/helpers.d.ts +9 -1
  52. package/dist/templates.d.ts +3 -1
  53. package/dist/templates.js +252 -172
  54. package/package.json +3 -1
  55. package/dist/schema/PButton/pButton.definition.d.ts +0 -38
  56. package/dist/schema/PCheckbox/pCheckbox.definition.d.ts +0 -10
  57. package/dist/schema/PContainer/pContainer.definition.d.ts +0 -39
  58. package/dist/schema/PDivider/pDivider.definition.d.ts +0 -10
  59. package/dist/schema/PIcon/pIcon.definition.d.ts +0 -18
  60. package/dist/schema/PList/pList.definition.d.ts +0 -11
  61. package/dist/schema/PPage/pPage.definition.d.ts +0 -22
  62. package/dist/schema/PRadio/pRadio.definition.d.ts +0 -13
  63. package/dist/schema/PRichText/pRichText.definition.d.ts +0 -8
  64. package/dist/schema/PSection/pSection.definition.d.ts +0 -39
  65. package/dist/schema/PSelect/pSelect.definition.d.ts +0 -13
  66. package/dist/schema/PTextArea/pTextArea.definition.d.ts +0 -10
  67. package/dist/schema/PTextField/pTextField.definition.d.ts +0 -10
  68. package/dist/schema/PVideo/pVideo.definition.d.ts +0 -10
  69. /package/dist/{schema/PRichText → elements/rich-text}/richTextMarks.d.ts +0 -0
  70. /package/dist/{schema/PRichText → elements/rich-text}/richTextOptions.d.ts +0 -0
@@ -0,0 +1,38 @@
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
+ name: string;
29
+ startIcon: string;
30
+ endIcon: string;
31
+ };
32
+ export declare const pButtonDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
33
+ id: string;
34
+ name: string;
35
+ startIcon: string;
36
+ endIcon: string;
37
+ style: ButtonStyle;
38
+ } & 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,18 @@
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ export type PIconDocumentProps = LinkSettings & {
3
+ id: string;
4
+ icon: string;
5
+ label: string;
6
+ };
7
+ export declare const defaultIconProps: {
8
+ href: string;
9
+ target: import('../../schema/linkSettings').LinkTarget;
10
+ description: string;
11
+ icon: string;
12
+ label: string;
13
+ };
14
+ export declare const pIconDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
15
+ id: string;
16
+ icon: string;
17
+ label: string;
18
+ } & 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;
@@ -1,14 +1,14 @@
1
- import { LinkSettings } from '../linkSettings';
2
- import { BorderLineStyle } from '../style/elementStyle';
3
- import { BackgroundStyle } from '../Fields/BackgroundField/backgroundValue';
4
- import { ColorValue } from '../Fields/ColorField/color-value';
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
5
  export declare const IMAGE_LENGTH_KEYS: ("width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft")[];
6
6
  export type ImageLengthKey = (typeof IMAGE_LENGTH_KEYS)[number];
7
7
  /** Every key stays unset until the user edits it, so the image keeps its natural size and no frame. */
8
8
  export type ImageStyle = Partial<BackgroundStyle & Record<ImageLengthKey, string> & {
9
9
  borderWidth: string;
10
10
  borderStyle: BorderLineStyle;
11
- borderColor: ColorValue;
11
+ borderColor: StyleColor;
12
12
  }>;
13
13
  export type PImageDocumentProps = LinkSettings & {
14
14
  id: string;
@@ -18,16 +18,16 @@ export type PImageDocumentProps = LinkSettings & {
18
18
  };
19
19
  export declare const defaultImageProps: {
20
20
  href: string;
21
- target: import('../linkSettings').LinkTarget;
21
+ target: import('../../schema/linkSettings').LinkTarget;
22
22
  description: string;
23
23
  src: string;
24
24
  alt: string;
25
25
  style: ImageStyle;
26
26
  };
27
27
  export declare const IMAGE_PREFIX = "--palmyit-image";
28
- export declare const pImageDefinition: import('../elementConfiguration').ElementConfiguration<LinkSettings & {
28
+ export declare const pImageDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
29
29
  id: string;
30
30
  src: string;
31
31
  alt: string;
32
32
  style: ImageStyle;
33
- } & Partial<import('../deviceVisibility').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
33
+ } & 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 imageTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,11 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ export type PListDocumentProps = {
3
+ id: string;
4
+ items: TextItem[];
5
+ };
6
+ export declare const defaultListProps: {
7
+ items: {
8
+ text: string;
9
+ }[];
10
+ };
11
+ 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,22 @@
1
+ import { StyleColor, TextSizeToken } from '../../render/styleTokens';
2
+ export type PPageRootProps = {
3
+ pageId: string;
4
+ url: string;
5
+ title: string;
6
+ backgroundColor: StyleColor;
7
+ textColor: StyleColor;
8
+ textSize: TextSizeToken | number | string;
9
+ };
10
+ export declare const defaultPageStyle: {
11
+ backgroundColor: {
12
+ name: "white";
13
+ opacity: 100;
14
+ };
15
+ textColor: {
16
+ name: "slate-900";
17
+ opacity: 100;
18
+ };
19
+ textSize: "sm";
20
+ };
21
+ export declare const pageStyleKeys: readonly string[];
22
+ 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;
@@ -1,4 +1,4 @@
1
- import { TextItem } from '../textItems';
1
+ import { TextItem } from '../../schema/textItems';
2
2
  export type TableRow = {
3
3
  cells: string[];
4
4
  };
@@ -17,4 +17,4 @@ export declare const defaultTableProps: {
17
17
  };
18
18
  /** Pads or trims every row to one cell per column. */
19
19
  export declare function fitRowsToHeaders(columnCount: number, rows: readonly TableRow[]): TableRow[];
20
- export declare const pTableDefinition: import('../elementConfiguration').ElementConfiguration<PTableDocumentProps & Partial<import('../deviceVisibility').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
20
+ export declare const pTableDefinition: import('../../definitions').ElementConfiguration<PTableDocumentProps & 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 tableTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -1,7 +1,7 @@
1
- import { LinkSettings } from '../linkSettings';
2
- import { StyleDefinition } from '../styleItems';
3
- import { ColorValue } from '../Fields/ColorField/color-value';
4
- import { FontStyle } from '../Fields/FontStyleField';
1
+ import { LinkSettings } from '../../schema/linkSettings';
2
+ import { StyleDefinition } from '../../schema/styleItems';
3
+ import { StyleColor } from '../../render/styleTokens';
4
+ import { FontStyle } from '../../schema/Fields/FontStyleField';
5
5
  export declare const TEXT_DECORATIONS: readonly ["none", "underline", "overline", "line-through"];
6
6
  export declare const TEXT_ALIGNS: readonly ["left", "center", "right", "justify"];
7
7
  export declare const TEXT_TRANSFORMS: readonly ["none", "capitalize", "uppercase", "lowercase"];
@@ -14,8 +14,8 @@ export type FontWeight = (typeof FONT_WEIGHTS)[number];
14
14
  export type TextStyle = Partial<{
15
15
  textFont: string;
16
16
  fontStyle: FontStyle;
17
- textSize: string;
18
- textColor: ColorValue;
17
+ textSize: string | number;
18
+ textColor: StyleColor;
19
19
  lineHeight: string;
20
20
  letterSpacing: string;
21
21
  wordSpacing: string;
@@ -32,15 +32,15 @@ export type PTextDocumentProps = LinkSettings & {
32
32
  export declare const defaultTextProps: {
33
33
  style: TextStyle;
34
34
  href: string;
35
- target: import('../linkSettings').LinkTarget;
35
+ target: import('../../schema/linkSettings').LinkTarget;
36
36
  description: string;
37
37
  text: string;
38
38
  };
39
39
  export declare const TEXT_PREFIX = "--palmyit-text";
40
40
  /** The Text style keys, written under `prefix` so each element keeps its own variables. */
41
41
  export declare function textStyleDefinitions(prefix: string): StyleDefinition[];
42
- export declare const pTextDefinition: import('../elementConfiguration').ElementConfiguration<LinkSettings & {
42
+ export declare const pTextDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
43
43
  id: string;
44
44
  text: string;
45
45
  style: TextStyle;
46
- } & Partial<import('../deviceVisibility').DeviceVisibility> & Partial<Record<"tabletStyle" | "mobileStyle" | "tabletLandscapeStyle" | "mobileLandscapeStyle", Partial<Record<string, unknown>>>>>;
46
+ } & 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 textTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,10 @@
1
+ export type PTextAreaDocumentProps = {
2
+ id: string;
3
+ label: string;
4
+ placeholder: string;
5
+ };
6
+ export declare const defaultTextAreaProps: {
7
+ label: string;
8
+ placeholder: string;
9
+ };
10
+ export declare const pTextAreaDefinition: import('../../definitions').ElementConfiguration<PTextAreaDocumentProps & 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 textAreaTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,10 @@
1
+ export type PTextFieldDocumentProps = {
2
+ id: string;
3
+ label: string;
4
+ placeholder: string;
5
+ };
6
+ export declare const defaultTextFieldProps: {
7
+ label: string;
8
+ placeholder: string;
9
+ };
10
+ export declare const pTextFieldDefinition: import('../../definitions').ElementConfiguration<PTextFieldDocumentProps & 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 textFieldTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -0,0 +1,10 @@
1
+ export type PVideoDocumentProps = {
2
+ id: string;
3
+ src: string;
4
+ title: string;
5
+ };
6
+ export declare const defaultVideoProps: {
7
+ src: string;
8
+ title: string;
9
+ };
10
+ export declare const pVideoDefinition: import('../../definitions').ElementConfiguration<PVideoDocumentProps & 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 videoTemplate(node: ShortcodeNode, _options?: ElementSpecOptions): ElementSpec | null;
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.1.7",
2
+ "version": "0.1.8",
3
3
  "files": {
4
- "plmt-elements.css": "sha384-eJlb3M+bTfPog3lcAyGeMHgK0eguPsEl8jq4rkLdqnd39Zfe/p6iJLHNqP4Y+J/w",
4
+ "plmt-elements.css": "sha384-KM9nI6Gjc1a3aqbRKmio0SKC5z1llJMvd/v0vewdr/5RFP4fQ/l59KzbBHvGnW7D",
5
5
  "plmt-elements.js": "sha384-OLBgp1GsljhM2TJ+sbHjaiH9txEUvgdDTAzHv2P24donTt6/529l+9Ua0vFImLlb"
6
6
  }
7
7
  }