@phis/ui 0.4.14 → 0.4.16
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 +0 -1
- package/components/cms/phi-cms-layout-renderer.js +2 -1
- package/components/cms/phi-cms-root-layout.js +1 -1
- package/components/layouts/clients/phi-split-card-layout-client.js +6 -2
- package/components/regions/clients/cms-region-container-client.d.ts +3 -1
- package/components/regions/clients/cms-region-container-client.js +2 -1
- package/components/regions/phi-cms-region-container.d.ts +3 -1
- package/components/regions/phi-cms-region-container.js +3 -2
- package/components/regions/phi-cms-region-shell.d.ts +16 -1
- package/components/regions/phi-cms-region-shell.js +40 -11
- package/components/regions/phi-cms-region-static.d.ts +3 -1
- package/components/regions/phi-cms-region-static.js +2 -1
- package/components/regions/presets/phi-area-shell-preset-nodes.js +3 -2
- package/components/root/phi-antd-registry.d.ts +15 -0
- package/components/root/phi-antd-registry.js +29 -0
- package/components/root/phi-root-layout.js +2 -2
- package/components/shell/phi-shell-sider-drawer.d.ts +1 -1
- package/components/shell/phi-shell-sider-drawer.js +1 -1
- package/components/widgets/config/text-case-vocabulary.d.ts +33 -0
- package/components/widgets/config/text-case-vocabulary.js +29 -0
- package/components/widgets/label-types/inspector.d.ts +1 -1
- package/components/widgets/shared/card-body-client.js +2 -1
- package/components/widgets/shared/eyebrow-style.d.ts +9 -0
- package/components/widgets/shared/eyebrow-style.js +9 -0
- package/components/widgets/shared/markdown-body-client.d.ts +7 -3
- package/components/widgets/shared/markdown-body-client.js +26 -11
- package/helpers/renderable-block-defaults.js +1 -0
- package/helpers/renderable-block-serialization.js +7 -1
- package/package.json +3 -4
- package/plugins/runtime/phi-slot-child-viewport-effects-observer.js +13 -0
- package/plugins/runtime-modules/builder/clients/region-inspector.js +6 -5
- package/plugins/runtime-modules/builder/page-meta-form.js +11 -0
- package/plugins/runtime-modules/core/widgets/entry-list/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +6 -0
- package/plugins/runtime-modules/core/widgets/markdown/config.js +2 -0
- package/plugins/runtime-modules/core/widgets/markdown/plugin.js +7 -2
- package/plugins/runtime-modules/core/widgets/markdown/server.js +7 -1
- package/plugins/runtime-modules/core/widgets/quick-links/client.js +11 -8
- package/plugins/runtime-modules/core/widgets/simple-text/client.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/simple-text/client.js +3 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +30 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +15 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +15 -1
- package/styles/layout.css +33 -0
- package/styles/root.css +2 -0
- package/styles/shell.css +41 -18
- package/types/core-widget-placements.d.ts +7 -0
- package/types/renderable-block.d.ts +5 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PhiBulletListEntry, PhiBulletListStyle } from "../components/widgets/shared/bullet-list-vocabulary";
|
|
2
2
|
import type { PhiMarkdownImageAspectRatio } from "../components/widgets/shared/markdown-image-vocabulary";
|
|
3
3
|
import type { PhiMarkdownFoldSections } from "../components/widgets/shared/markdown-sections";
|
|
4
|
+
import type { PhiLetterSpacingStep, PhiTextTransform } from "../components/widgets/config/text-case-vocabulary";
|
|
4
5
|
import type { PhiRenderableBlockBase } from "./renderable-block";
|
|
5
6
|
import type { PhiTextSource } from "../helpers/text-source";
|
|
6
7
|
import type { PhiRuntimeConditionExpression } from "./runtime-condition";
|
|
@@ -48,6 +49,8 @@ export type PhiMarkdownTextAlign = "start" | "center" | "end" | "justify";
|
|
|
48
49
|
/** Which edge the text's pictures stand at, with the words flowing past them; logical like the align. */
|
|
49
50
|
export type PhiMarkdownImageFloat = "start" | "end";
|
|
50
51
|
export type PhiMarkdownWidgetPlacement = PhiWidgetPlacementBase & {
|
|
52
|
+
/** A section's label above the text, drawn as a Card's eyebrow; translated like the text. */
|
|
53
|
+
eyebrow?: string;
|
|
51
54
|
sourceMode?: "inline" | "url";
|
|
52
55
|
markdown?: string;
|
|
53
56
|
sourceUrl?: string;
|
|
@@ -80,6 +83,10 @@ export type PhiSimpleTextWidgetPlacement = PhiWidgetPlacementBase & {
|
|
|
80
83
|
newTab?: boolean;
|
|
81
84
|
tone?: PhiTextTone;
|
|
82
85
|
marks?: PhiSimpleTextMark[];
|
|
86
|
+
/** Capitals for a label; absent, as written. */
|
|
87
|
+
textTransform?: PhiTextTransform;
|
|
88
|
+
/** A spacing step for a label in capitals; absent, normal. */
|
|
89
|
+
letterSpacing?: PhiLetterSpacingStep;
|
|
83
90
|
disabled?: boolean;
|
|
84
91
|
/** `"preset"` while the words are a Preset's (`helpers/text-source.ts`). */
|
|
85
92
|
textSource?: PhiTextSource;
|
|
@@ -83,6 +83,11 @@ export type PhiRenderableBlockViewportEffect = {
|
|
|
83
83
|
rangeEnd?: PhiRenderableBlockViewportEffectRangePoint | number | null;
|
|
84
84
|
easing?: PhiRenderableBlockTransitionEasing | null;
|
|
85
85
|
clamp?: boolean | null;
|
|
86
|
+
/**
|
|
87
|
+
* How far the eye stands from a turn about `x` or `y`, in pixels: smaller is deeper. Without it such a
|
|
88
|
+
* turn only foreshortens flat. `0` turns it off; `z` and the other properties ignore it.
|
|
89
|
+
*/
|
|
90
|
+
perspectivePx?: number | null;
|
|
86
91
|
};
|
|
87
92
|
export type PhiRenderableBlockEffects = {
|
|
88
93
|
opacity?: number | null;
|