@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.
- package/README.md +2 -0
- package/dist/definitions.d.ts +34 -25
- package/dist/definitions.js +1681 -868
- package/dist/elements/article/definition.d.ts +43 -0
- package/dist/elements/article/template.d.ts +12 -0
- package/dist/elements/button/definition.d.ts +39 -0
- package/dist/elements/button/template.d.ts +2 -0
- package/dist/elements/checkbox/definition.d.ts +10 -0
- package/dist/elements/checkbox/template.d.ts +2 -0
- package/dist/elements/container/definition.d.ts +39 -0
- package/dist/elements/container/template.d.ts +2 -0
- package/dist/elements/divider/definition.d.ts +10 -0
- package/dist/elements/divider/template.d.ts +2 -0
- package/dist/elements/footer/definition.d.ts +35 -0
- package/dist/elements/footer/template.d.ts +2 -0
- package/dist/elements/heading/definition.d.ts +29 -0
- package/dist/elements/heading/template.d.ts +2 -0
- package/dist/elements/icon/definition.d.ts +29 -0
- package/dist/elements/icon/template.d.ts +2 -0
- package/dist/elements/image/definition.d.ts +80 -0
- package/dist/elements/image/template.d.ts +32 -0
- package/dist/elements/list/definition.d.ts +13 -0
- package/dist/elements/list/template.d.ts +2 -0
- package/dist/elements/nav/definition.d.ts +39 -0
- package/dist/elements/nav/template.d.ts +17 -0
- package/dist/elements/page/definition.d.ts +62 -0
- package/dist/elements/page/template.d.ts +2 -0
- package/dist/elements/radio/definition.d.ts +13 -0
- package/dist/elements/radio/template.d.ts +2 -0
- package/dist/elements/rich-text/definition.d.ts +8 -0
- package/dist/elements/rich-text/template.d.ts +2 -0
- package/dist/elements/section/definition.d.ts +39 -0
- package/dist/elements/section/template.d.ts +2 -0
- package/dist/elements/select/definition.d.ts +13 -0
- package/dist/elements/select/template.d.ts +2 -0
- package/dist/{schema/PTable/pTable.definition.d.ts → elements/table/definition.d.ts} +4 -2
- package/dist/elements/table/template.d.ts +2 -0
- package/dist/{schema/PText/pText.definition.d.ts → elements/text/definition.d.ts} +11 -10
- package/dist/elements/text/template.d.ts +2 -0
- package/dist/elements/text-area/definition.d.ts +10 -0
- package/dist/elements/text-area/template.d.ts +2 -0
- package/dist/elements/text-field/definition.d.ts +10 -0
- package/dist/elements/text-field/template.d.ts +2 -0
- package/dist/elements/video/definition.d.ts +49 -0
- package/dist/elements/video/template.d.ts +8 -0
- package/dist/elements/video/youtube.d.ts +4 -0
- package/dist/manifest.json +2 -2
- package/dist/plmt-elements.css +2 -1
- package/dist/render/renderHtml.d.ts +1 -1
- package/dist/render/styleToClasses.d.ts +34 -0
- package/dist/render/styleToVars.d.ts +2 -0
- package/dist/render/styleTokens.d.ts +67 -0
- package/dist/render/tags.d.ts +9 -1
- package/dist/render/types.d.ts +10 -0
- package/dist/schema/Fields/BackgroundField/backgroundValue.d.ts +4 -3
- package/dist/schema/Fields/ColorField/colorText.d.ts +3 -0
- package/dist/schema/Fields/IconPicker/iconCatalog.d.ts +5 -1
- package/dist/schema/addressSchema.d.ts +2 -0
- package/dist/schema/backgroundStyleDefinitions.d.ts +1 -6
- package/dist/schema/device/devices.d.ts +8 -0
- package/dist/schema/deviceSettings.d.ts +1 -1
- package/dist/schema/elementCategories.d.ts +29 -0
- package/dist/schema/elementConfiguration.d.ts +1 -1
- package/dist/schema/elementRegistry.d.ts +38 -14
- package/dist/schema/elementStyleDefinitions.d.ts +7 -15
- package/dist/schema/elementTemplates.d.ts +3 -2
- package/dist/schema/linkSettings.d.ts +19 -2
- package/dist/schema/style/elementStyle.d.ts +3 -3
- package/dist/schema/style/page-styles.d.ts +2 -2
- package/dist/schema/styleItems.d.ts +18 -0
- package/dist/schema/styleTokensSchema.d.ts +290 -0
- package/dist/tags.json +5 -1
- package/dist/templates/brands/brandSpec.d.ts +5 -0
- package/dist/templates/elementSpec.d.ts +3 -8
- package/dist/templates/head.d.ts +43 -0
- package/dist/templates/helpers.d.ts +9 -1
- package/dist/templates/heroicons/heroiconSpec.d.ts +6 -0
- package/dist/templates.d.ts +6 -1
- package/dist/templates.js +1428 -234
- package/dist/youtube-BDsE1Bz3.js +910 -0
- package/package.json +5 -3
- package/dist/schema/PButton/pButton.definition.d.ts +0 -38
- package/dist/schema/PCheckbox/pCheckbox.definition.d.ts +0 -10
- package/dist/schema/PContainer/pContainer.definition.d.ts +0 -39
- package/dist/schema/PDivider/pDivider.definition.d.ts +0 -10
- package/dist/schema/PIcon/pIcon.definition.d.ts +0 -18
- package/dist/schema/PImage/pImage.definition.d.ts +0 -33
- package/dist/schema/PList/pList.definition.d.ts +0 -11
- package/dist/schema/PPage/pPage.definition.d.ts +0 -22
- package/dist/schema/PRadio/pRadio.definition.d.ts +0 -13
- package/dist/schema/PRichText/pRichText.definition.d.ts +0 -8
- package/dist/schema/PSection/pSection.definition.d.ts +0 -39
- package/dist/schema/PSelect/pSelect.definition.d.ts +0 -13
- package/dist/schema/PTextArea/pTextArea.definition.d.ts +0 -10
- package/dist/schema/PTextField/pTextField.definition.d.ts +0 -10
- package/dist/schema/PVideo/pVideo.definition.d.ts +0 -10
- /package/dist/{schema/PRichText → elements/rich-text}/richTextMarks.d.ts +0 -0
- /package/dist/{schema/PRichText → elements/rich-text}/richTextOptions.d.ts +0 -0
package/README.md
CHANGED
|
@@ -10,4 +10,6 @@ yarn build
|
|
|
10
10
|
|
|
11
11
|
Published publicly to npmjs. Pages load the CSS from jsDelivr (see [docs/README.md](docs/README.md)).
|
|
12
12
|
|
|
13
|
+
To add or update an element, see [docs/authoring-elements.md](docs/authoring-elements.md).
|
|
14
|
+
|
|
13
15
|
A push to `main` runs `.github/workflows/deploy-to-npmjs.yml`. Each commit bumps the patch version in `package.json`.
|
package/dist/definitions.d.ts
CHANGED
|
@@ -5,47 +5,56 @@
|
|
|
5
5
|
export type { ElementType, DocumentAttributes, ElementHistory, ElementConfiguration, RegisteredElementConfiguration, } from './schema/elementConfiguration';
|
|
6
6
|
export { elementIdSchema, defineElement } from './schema/elementConfiguration';
|
|
7
7
|
export { elementRegistry, isElementType } from './schema/elementRegistry';
|
|
8
|
+
export { elementCategories, hiddenFromDrawer, type ElementCategory, } from './schema/elementCategories';
|
|
8
9
|
export type { ElementTemplate, TemplateContentItem, ApplyTemplateResult } from './schema/elementTemplates';
|
|
9
10
|
export { applyElementTemplate } from './schema/elementTemplates';
|
|
10
11
|
export type { StyleDefinition, StyleItem } from './schema/styleItems';
|
|
11
|
-
export { styleItemsSchema, styleOverrideItemsSchema, styleLabels, toStyleItems, toStyleOverrideItems, } from './schema/styleItems';
|
|
12
|
+
export { documentStyleAttribute, documentStyleSchema, documentStyleOverrideSchema, styleItemsSchema, styleOverrideItemsSchema, styleLabels, toDocumentStyle, toDocumentStyleOverride, toStyleItems, toStyleOverrideItems, } from './schema/styleItems';
|
|
12
13
|
export { withDeviceSettings, type DeviceStyleOverrides, } from './schema/deviceSettings';
|
|
13
14
|
export { VISIBILITY_PROP_BY_DEVICE, LANDSCAPE_VISIBILITY_PROP_BY_DEVICE, VISIBILITY_PROPS, DEVICE_CHOICES, visibilityProp, isShownOn, shownDeviceCount, type DeviceVisibility, type DeviceVisibilityProp, type DeviceChoice, } from './schema/deviceVisibility';
|
|
14
15
|
export { defineLayoutElement } from './schema/layoutElementConfiguration';
|
|
15
16
|
export { layoutChildren } from './schema/layoutChildren';
|
|
16
17
|
export { textItemsSchema, toTextItems, type TextItem } from './schema/textItems';
|
|
17
|
-
export { defaultPageStyle, pageStyleKeys } from './
|
|
18
|
-
export { addressSchema } from './schema/addressSchema';
|
|
18
|
+
export { defaultPageStyle, defaultPageSeo, defaultPageTheme, pageStyleKeys, PAGE_DIRS, PAGE_TEXT_SIZES, CONTENT_WIDTHS, RADIUS_STYLES, LINK_UNDERLINES, type PageDir, type PageTextSize, type ContentWidth, type RadiusStyle, type LinkUnderline, } from './elements/page/definition';
|
|
19
|
+
export { addressSchema, linkAddressSchema } from './schema/addressSchema';
|
|
19
20
|
export { backgroundStyleDefinitions, colorValue } from './schema/backgroundStyleDefinitions';
|
|
20
21
|
export { elementStyleDefinitions, elementStyleSchema, lengthKeys, lengthValue, type LengthKey, } from './schema/elementStyleDefinitions';
|
|
21
|
-
export { defaultLinkSettings, linkHistoryLabels, linkSettingsShape, toLinkAttributes, type LinkSettings, } from './schema/linkSettings';
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
22
|
+
export { defaultLinkSettings, linkHistoryLabels, linkSettingsShape, linkRelAttribute, toLinkAttributes, LINK_RELS, type LinkSettings, type LinkRel, } from './schema/linkSettings';
|
|
23
|
+
export { pArticleDefinition, defaultArticleProps, ARTICLE_LAYOUTS, ARTICLE_EXCERPT_LINES, type ArticleLayout, type ArticleExcerptLines, type PArticleDocumentProps, } from './elements/article/definition';
|
|
24
|
+
export { pButtonDefinition, defaultButtonProps, type ButtonStyle, type PButtonDocumentProps, } from './elements/button/definition';
|
|
25
|
+
export { pCheckboxDefinition, defaultCheckboxProps } from './elements/checkbox/definition';
|
|
26
|
+
export { pContainerDefinition, defaultContainerStyle } from './elements/container/definition';
|
|
27
|
+
export { pNavDefinition, defaultNavProps, NAV_POSITIONS, NAV_ALIGNMENTS, NAV_MOBILE_MENUS, NAV_COLLAPSE_AT, NAV_HEIGHTS, type NavPosition, type NavAlignment, type NavMobileMenu, type NavCollapseAt, type NavHeight, type NavItem, type NavCta, type PNavDocumentProps, } from './elements/nav/definition';
|
|
28
|
+
export { pFooterDefinition, defaultFooterProps, defaultFooterStyle, type FooterLinkItem, type FooterLinkGroup, type FooterSocialLink, type PFooterDocumentProps, } from './elements/footer/definition';
|
|
29
|
+
export { pDividerDefinition, defaultDividerProps, type DividerSize } from './elements/divider/definition';
|
|
30
|
+
export { pIconDefinition, defaultIconProps, iconSizes, iconShapes, type IconSize, type IconShape, type PIconDocumentProps, } from './elements/icon/definition';
|
|
31
|
+
export { pImageDefinition, defaultImageProps, IMAGE_LENGTH_KEYS, IMAGE_PREFIX, IMAGE_ASPECT_RATIOS, IMAGE_OBJECT_FITS, IMAGE_OBJECT_POSITIONS, IMAGE_SHADOWS, IMAGE_CAPTION_ALIGNS, type ImageStyle, type ImageLengthKey, type ImageAspectRatio, type ImageObjectFit, type ImageObjectPosition, type ImageShadow, type ImageCaptionAlign, type PImageDocumentProps, } from './elements/image/definition';
|
|
32
|
+
export { pListDefinition, defaultListProps } from './elements/list/definition';
|
|
33
|
+
export { pPageDefinition, type PPageRootProps } from './elements/page/definition';
|
|
34
|
+
export { pRadioDefinition, defaultRadioProps } from './elements/radio/definition';
|
|
35
|
+
export { pRichTextDefinition, defaultRichTextProps } from './elements/rich-text/definition';
|
|
36
|
+
export { isFontFamily } from './elements/rich-text/richTextMarks';
|
|
37
|
+
export { normalizeRichText, richTextToPlainText } from './elements/rich-text/richTextOptions';
|
|
38
|
+
export { pSectionDefinition, defaultSectionStyle } from './elements/section/definition';
|
|
39
|
+
export { pSelectDefinition, defaultSelectProps } from './elements/select/definition';
|
|
40
|
+
export { pTableDefinition, defaultTableProps, fitRowsToHeaders, type TableRow } from './elements/table/definition';
|
|
41
|
+
export { pTextDefinition, defaultTextProps, textStyleDefinitions, TEXT_PREFIX, TEXT_DECORATIONS, TEXT_ALIGNS, TEXT_TRANSFORMS, FONT_WEIGHTS, type TextStyle, type PTextDocumentProps, type TextDecoration, type TextAlign, type TextTransform, type FontWeight, } from './elements/text/definition';
|
|
42
|
+
export { pHeadingDefinition, defaultHeadingProps, HEADING_LEVELS, HEADING_PREFIX, type HeadingLevel, type PHeadingDocumentProps, } from './elements/heading/definition';
|
|
43
|
+
export { pTextAreaDefinition, defaultTextAreaProps } from './elements/text-area/definition';
|
|
44
|
+
export { pTextFieldDefinition, defaultTextFieldProps } from './elements/text-field/definition';
|
|
45
|
+
export { pVideoDefinition, defaultVideoProps, VIDEO_SOURCES, VIDEO_PRELOADS, VIDEO_ASPECT_RATIOS, type VideoSource, type VideoPreload, type VideoAspectRatio, type VideoCaptionTrack, type PVideoDocumentProps, } from './elements/video/definition';
|
|
46
|
+
export { parseYoutubeId, youtubeEmbedUrl, youtubeThumbnailUrl, } from './elements/video/youtube';
|
|
41
47
|
export type { ColorValue } from './schema/Fields/ColorField/color-value';
|
|
42
48
|
export { toHexAlpha, fromHexAlpha } from './schema/Fields/ColorField/color-value';
|
|
49
|
+
export type { StyleColor, PaletteColor, SpacingToken, TextSizeToken, ColorName, } from './render/styleTokens';
|
|
50
|
+
export { SPACING_TOKENS, TEXT_SIZE_TOKENS, COLOR_NAMES, OPACITY_STEPS, toSpacingToken, toTextSizeToken, toPaletteColor, isPaletteColor, } from './render/styleTokens';
|
|
51
|
+
export { styleToClasses, unresolvedStyleForVars, pageTokensToVarValues } from './render/styleToClasses';
|
|
43
52
|
export type { BackgroundStyle } from './schema/Fields/BackgroundField/backgroundValue';
|
|
44
53
|
export { isSafeGradientArgs, gradientToCss } from './schema/Fields/BackgroundField/backgroundValue';
|
|
45
54
|
export { FONT_STYLES, type FontStyle } from './schema/Fields/FontStyleField';
|
|
46
|
-
export { NO_ICON,
|
|
55
|
+
export { NO_ICON, HEROICON_NAMES, isHeroiconName, labelForIcon, type HeroiconName, } from './schema/Fields/IconPicker/iconCatalog';
|
|
47
56
|
export { BORDER_LINE_STYLES, FLEX_DIRECTIONS, FLEX_WRAPS, FLEX_JUSTIFY_CONTENTS, FLEX_ALIGN_ITEMS, FLEX_ALIGN_CONTENTS, defaultElementStyle, LENGTH_PATTERN, sanitizeLength, sanitizeAutoAsZero, sanitizeMaxLength, sanitizeBorderWidth, elementStyleToCssVariables, type BorderLineStyle, type FlexDirection, type FlexWrap, type FlexJustifyContent, type FlexAlignItems, type FlexAlignContent, type ElementLayout, type ElementOverflow, type GridColumnCount, type ElementStyleKind, type ElementStyle, } from './schema/style/elementStyle';
|
|
48
57
|
export { backgroundStyleToCssVariables } from './schema/style/backgroundStyle';
|
|
49
58
|
export { colorValueToCss, textSizeToCss } from './schema/style/page-styles';
|
|
50
|
-
export { builderDevices, builderViewports, deviceForWidth, orientationForWidth, type DeviceName, type Orientation, type ViewportSize, type BuilderDevice, } from './schema/device/devices';
|
|
59
|
+
export { builderDevices, builderViewports, deviceMediaQueries, deviceForWidth, orientationForWidth, type DeviceName, type Orientation, type ViewportSize, type BuilderDevice, } from './schema/device/devices';
|
|
51
60
|
export { deviceStyleProp, deviceOverride, changedStyle, resolveDeviceStyle, type DeviceStyleProp, type DeviceStyles, } from './schema/device/deviceStyle';
|