@palmyit/elements 0.1.3 → 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 (80) hide show
  1. package/README.md +2 -2
  2. package/dist/definitions.d.ts +54 -0
  3. package/dist/definitions.js +1743 -0
  4. package/dist/elements/button/definition.d.ts +38 -0
  5. package/dist/elements/button/template.d.ts +2 -0
  6. package/dist/elements/checkbox/definition.d.ts +10 -0
  7. package/dist/elements/checkbox/template.d.ts +2 -0
  8. package/dist/elements/container/definition.d.ts +39 -0
  9. package/dist/elements/container/template.d.ts +2 -0
  10. package/dist/elements/divider/definition.d.ts +10 -0
  11. package/dist/elements/divider/template.d.ts +2 -0
  12. package/dist/elements/icon/definition.d.ts +18 -0
  13. package/dist/elements/icon/template.d.ts +2 -0
  14. package/dist/elements/image/definition.d.ts +33 -0
  15. package/dist/elements/image/template.d.ts +2 -0
  16. package/dist/elements/list/definition.d.ts +11 -0
  17. package/dist/elements/list/template.d.ts +2 -0
  18. package/dist/elements/page/definition.d.ts +22 -0
  19. package/dist/elements/page/template.d.ts +2 -0
  20. package/dist/elements/radio/definition.d.ts +13 -0
  21. package/dist/elements/radio/template.d.ts +2 -0
  22. package/dist/elements/rich-text/definition.d.ts +8 -0
  23. package/dist/elements/rich-text/richTextMarks.d.ts +4 -0
  24. package/dist/elements/rich-text/richTextOptions.d.ts +2 -0
  25. package/dist/elements/rich-text/template.d.ts +2 -0
  26. package/dist/elements/section/definition.d.ts +39 -0
  27. package/dist/elements/section/template.d.ts +2 -0
  28. package/dist/elements/select/definition.d.ts +13 -0
  29. package/dist/elements/select/template.d.ts +2 -0
  30. package/dist/elements/table/definition.d.ts +20 -0
  31. package/dist/elements/table/template.d.ts +2 -0
  32. package/dist/elements/text/definition.d.ts +46 -0
  33. package/dist/elements/text/template.d.ts +2 -0
  34. package/dist/elements/text-area/definition.d.ts +10 -0
  35. package/dist/elements/text-area/template.d.ts +2 -0
  36. package/dist/elements/text-field/definition.d.ts +10 -0
  37. package/dist/elements/text-field/template.d.ts +2 -0
  38. package/dist/elements/video/definition.d.ts +10 -0
  39. package/dist/elements/video/template.d.ts +2 -0
  40. package/dist/manifest.json +3 -3
  41. package/dist/plmt-elements.css +2 -1
  42. package/dist/plmt-elements.js +0 -115
  43. package/dist/registry.d.ts +9 -0
  44. package/dist/render/renderHtml.d.ts +5 -0
  45. package/dist/render/styleToClasses.d.ts +35 -0
  46. package/dist/render/styleToVars.d.ts +2 -0
  47. package/dist/render/styleTokens.d.ts +57 -0
  48. package/dist/render/tags.d.ts +42 -0
  49. package/dist/render/toDom.d.ts +3 -0
  50. package/dist/render/types.d.ts +20 -0
  51. package/dist/schema/Fields/BackgroundField/backgroundValue.d.ts +16 -0
  52. package/dist/schema/Fields/ColorField/color-value.d.ts +6 -0
  53. package/dist/schema/Fields/ColorField/index.d.ts +1 -0
  54. package/dist/schema/Fields/FontStyleField.d.ts +2 -0
  55. package/dist/schema/Fields/IconPicker/iconCatalog.d.ts +3 -0
  56. package/dist/schema/addressSchema.d.ts +3 -0
  57. package/dist/schema/backgroundStyleDefinitions.d.ts +10 -0
  58. package/dist/schema/device/deviceStyle.d.ts +13 -0
  59. package/dist/schema/device/devices.d.ts +21 -0
  60. package/dist/schema/deviceSettings.d.ts +13 -0
  61. package/dist/schema/deviceVisibility.d.ts +19 -0
  62. package/dist/schema/elementConfiguration.d.ts +38 -0
  63. package/dist/schema/elementRegistry.d.ts +40 -0
  64. package/dist/schema/elementStyleDefinitions.d.ts +24 -0
  65. package/dist/schema/elementTemplates.d.ts +26 -0
  66. package/dist/schema/layoutChildren.d.ts +2 -0
  67. package/dist/schema/layoutElementConfiguration.d.ts +17 -0
  68. package/dist/schema/linkSettings.d.ts +26 -0
  69. package/dist/schema/style/backgroundStyle.d.ts +5 -0
  70. package/dist/schema/style/elementStyle.d.ts +62 -0
  71. package/dist/schema/style/page-styles.d.ts +3 -0
  72. package/dist/schema/styleItems.d.ts +53 -0
  73. package/dist/schema/styleTokensSchema.d.ts +274 -0
  74. package/dist/schema/textItems.d.ts +10 -0
  75. package/dist/styleToClasses-CZSWp6Ez.js +683 -0
  76. package/dist/templates/elementSpec.d.ts +10 -0
  77. package/dist/templates/helpers.d.ts +17 -0
  78. package/dist/templates.d.ts +13 -0
  79. package/dist/templates.js +349 -0
  80. package/package.json +31 -5
@@ -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;
@@ -0,0 +1,33 @@
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
+ /** Every key stays unset until the user edits it, so the image keeps its natural size and no frame. */
8
+ export type ImageStyle = Partial<BackgroundStyle & Record<ImageLengthKey, string> & {
9
+ borderWidth: string;
10
+ borderStyle: BorderLineStyle;
11
+ borderColor: StyleColor;
12
+ }>;
13
+ export type PImageDocumentProps = LinkSettings & {
14
+ id: string;
15
+ src: string;
16
+ alt: string;
17
+ style: ImageStyle;
18
+ };
19
+ export declare const defaultImageProps: {
20
+ href: string;
21
+ target: import('../../schema/linkSettings').LinkTarget;
22
+ description: string;
23
+ src: string;
24
+ alt: string;
25
+ style: ImageStyle;
26
+ };
27
+ export declare const IMAGE_PREFIX = "--palmyit-image";
28
+ export declare const pImageDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
29
+ id: string;
30
+ src: string;
31
+ alt: string;
32
+ style: ImageStyle;
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,4 @@
1
+ export declare const textColors: readonly ["primary-500", "secondary-500", "accent-500", "error-500", "neutral-900"];
2
+ export declare const textHighlights: readonly ["accent-100", "secondary-100", "warning-100", "success-100"];
3
+ export declare const lineHeights: readonly ["1", "1.4", "1.8", "2"];
4
+ export declare function isFontFamily(value: unknown): value is string;
@@ -0,0 +1,2 @@
1
+ export declare function normalizeRichText(html: string): string;
2
+ export declare function richTextToPlainText(html: string): string;
@@ -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;
@@ -0,0 +1,20 @@
1
+ import { TextItem } from '../../schema/textItems';
2
+ export type TableRow = {
3
+ cells: string[];
4
+ };
5
+ export type PTableDocumentProps = {
6
+ id: string;
7
+ headers: TextItem[];
8
+ rows: TableRow[];
9
+ };
10
+ export declare const defaultTableProps: {
11
+ headers: {
12
+ text: string;
13
+ }[];
14
+ rows: {
15
+ cells: string[];
16
+ }[];
17
+ };
18
+ /** Pads or trims every row to one cell per column. */
19
+ export declare function fitRowsToHeaders(columnCount: number, rows: readonly TableRow[]): TableRow[];
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;
@@ -0,0 +1,46 @@
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
+ export declare const TEXT_DECORATIONS: readonly ["none", "underline", "overline", "line-through"];
6
+ export declare const TEXT_ALIGNS: readonly ["left", "center", "right", "justify"];
7
+ export declare const TEXT_TRANSFORMS: readonly ["none", "capitalize", "uppercase", "lowercase"];
8
+ export declare const FONT_WEIGHTS: readonly ["100", "200", "300", "400", "500", "600", "700", "800", "900"];
9
+ export type TextDecoration = (typeof TEXT_DECORATIONS)[number];
10
+ export type TextAlign = (typeof TEXT_ALIGNS)[number];
11
+ export type TextTransform = (typeof TEXT_TRANSFORMS)[number];
12
+ export type FontWeight = (typeof FONT_WEIGHTS)[number];
13
+ /** Every key stays unset until the user edits it, so the text keeps the page typography. */
14
+ export type TextStyle = Partial<{
15
+ textFont: string;
16
+ fontStyle: FontStyle;
17
+ textSize: string | number;
18
+ textColor: StyleColor;
19
+ lineHeight: string;
20
+ letterSpacing: string;
21
+ wordSpacing: string;
22
+ textDecoration: TextDecoration;
23
+ textAlign: TextAlign;
24
+ textTransform: TextTransform;
25
+ fontWeight: FontWeight;
26
+ }>;
27
+ export type PTextDocumentProps = LinkSettings & {
28
+ id: string;
29
+ text: string;
30
+ style: TextStyle;
31
+ };
32
+ export declare const defaultTextProps: {
33
+ style: TextStyle;
34
+ href: string;
35
+ target: import('../../schema/linkSettings').LinkTarget;
36
+ description: string;
37
+ text: string;
38
+ };
39
+ export declare const TEXT_PREFIX = "--palmyit-text";
40
+ /** The Text style keys, written under `prefix` so each element keeps its own variables. */
41
+ export declare function textStyleDefinitions(prefix: string): StyleDefinition[];
42
+ export declare const pTextDefinition: import('../../definitions').ElementConfiguration<LinkSettings & {
43
+ id: string;
44
+ text: string;
45
+ style: TextStyle;
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.3",
2
+ "version": "0.1.8",
3
3
  "files": {
4
- "plmt-elements.js": "sha384-xAOAhF/C23uI4I1e/PDqoE/3tBlgo8UnGIAZwl5Es97UFdIU7+SAmrOz+FTesabI",
5
- "plmt-elements.css": "sha384-kGxdhMm1y5wip6vjhJMcCHnXbW+AH+tCFppuxHVfc2yuJtOQQ3wMr2nBVYHqGMK4"
4
+ "plmt-elements.css": "sha384-KM9nI6Gjc1a3aqbRKmio0SKC5z1llJMvd/v0vewdr/5RFP4fQ/l59KzbBHvGnW7D",
5
+ "plmt-elements.js": "sha384-OLBgp1GsljhM2TJ+sbHjaiH9txEUvgdDTAzHv2P24donTt6/529l+9Ua0vFImLlb"
6
6
  }
7
7
  }