@cntrl-site/components 1.0.12-alpha.20 → 1.0.12-alpha.23
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/dist/Components/Grid/Grid.d.ts +10 -10
- package/dist/Components/List/List.d.ts +5 -4
- package/dist/Components/List/ListComponent.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +675 -367
- package/dist/index.mjs +4241 -3911
- package/dist/types/Component.d.ts +8 -4
- package/package.json +1 -1
- package/dist/Components/utils/getMainFontBaseOnSystem.d.ts +0 -1
|
@@ -19,26 +19,26 @@ type GridLayoutConfig = {
|
|
|
19
19
|
lockedParam?: 'wrapperWidth' | 'entryWidth' | 'horizontalGap' | null;
|
|
20
20
|
};
|
|
21
21
|
type GridSettings = {
|
|
22
|
-
type: '
|
|
22
|
+
type: 'a' | 'b' | 'c';
|
|
23
23
|
gridLayout: GridLayoutConfig;
|
|
24
24
|
textBoxWidth: number;
|
|
25
25
|
verticalGap: number;
|
|
26
26
|
entriesCount: number;
|
|
27
|
-
lightbox: '
|
|
27
|
+
lightbox: 'on' | 'off';
|
|
28
28
|
imageDisplay: {
|
|
29
|
-
display: '
|
|
29
|
+
display: 'fit' | 'cover';
|
|
30
30
|
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
31
31
|
reversed: boolean;
|
|
32
32
|
};
|
|
33
|
-
lightboxImageDisplay?: '
|
|
34
|
-
display?: '
|
|
33
|
+
lightboxImageDisplay?: 'fit' | 'cover' | {
|
|
34
|
+
display?: 'fit' | 'cover';
|
|
35
35
|
};
|
|
36
|
-
slider: '
|
|
36
|
+
slider: 'on' | 'off';
|
|
37
37
|
sliderTiming: number;
|
|
38
|
-
direction: '
|
|
39
|
-
transition: '
|
|
40
|
-
showText: '
|
|
41
|
-
alignEntries: '
|
|
38
|
+
direction: 'horizontal' | 'vertical' | 'random';
|
|
39
|
+
transition: 'fade' | 'slide';
|
|
40
|
+
showText: 'always' | 'on hover';
|
|
41
|
+
alignEntries: 'on' | 'off';
|
|
42
42
|
titleMarginTop: number;
|
|
43
43
|
subtitleMarginTop: number;
|
|
44
44
|
titleColor: string;
|
|
@@ -65,11 +65,11 @@ type ListColumnTextStyleOverrides = {
|
|
|
65
65
|
export type ListColumnVerticalAlignKey = `${ListColumnPrefix}VerticalAlign`;
|
|
66
66
|
export type ListSettings = {
|
|
67
67
|
columns: number;
|
|
68
|
-
type: '
|
|
68
|
+
type: 'a' | 'b';
|
|
69
69
|
wrapperWidth: number;
|
|
70
70
|
entriesCount: number;
|
|
71
71
|
cellMinHeight: number;
|
|
72
|
-
imageOnHover: '
|
|
72
|
+
imageOnHover: 'on' | 'off';
|
|
73
73
|
imageSize?: {
|
|
74
74
|
min: number;
|
|
75
75
|
max: number;
|
|
@@ -80,8 +80,8 @@ export type ListSettings = {
|
|
|
80
80
|
showCut: number;
|
|
81
81
|
cutCellMinHeight: number;
|
|
82
82
|
cutLabel: string;
|
|
83
|
-
entryHoverEffect: '
|
|
84
|
-
entryHoverShowOption: '
|
|
83
|
+
entryHoverEffect: 'none' | 'default' | 'blinds' | 'reveal';
|
|
84
|
+
entryHoverShowOption: 'always' | 'link only';
|
|
85
85
|
rowPaddingTop: number;
|
|
86
86
|
rowPaddingBottom: number;
|
|
87
87
|
rowPaddingTopB: number;
|
|
@@ -167,6 +167,7 @@ export declare function resolveListColumnPadding(columnWidth: number, paddingLef
|
|
|
167
167
|
};
|
|
168
168
|
export declare function getEffectiveListColumnWidths(columns: number, wrapperWidth: number, storedWidths: Record<ColumnWidthKey, number>): number[];
|
|
169
169
|
export declare function resolveListColumnWidths(columns: number, wrapperWidth: number, storedWidths: Record<ColumnWidthKey, number>): number[];
|
|
170
|
+
export declare function applyListColumnCountChange(nextSettings: ListSettings, prevSettings: ListSettings): ListSettings;
|
|
170
171
|
export declare function applyListSettingsChange(nextSettings: ListSettings, prevSettings: ListSettings, options?: {
|
|
171
172
|
designWidth?: number;
|
|
172
173
|
}): ListSettings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { List } from './List';
|
|
1
|
+
import { List, applyListColumnCountChange } from './List';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
3
|
export declare const ListComponent: {
|
|
4
4
|
element: typeof List;
|
|
@@ -6,6 +6,7 @@ export declare const ListComponent: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
category: string;
|
|
8
8
|
layoutMode: "structured";
|
|
9
|
+
normalizeLayoutSettingsUpdate: typeof applyListColumnCountChange;
|
|
9
10
|
preview: {
|
|
10
11
|
type: "image";
|
|
11
12
|
url: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type Component, isSchemaV1 } from './types/Component';
|
|
1
|
+
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
2
2
|
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|