@cntrl-site/components 1.0.17-alpha.7 → 1.0.18
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/FAQ/FAQ.d.ts +64 -0
- package/dist/Components/FAQ/FAQComponent.d.ts +28 -0
- package/dist/Components/Marquee/Marquee.d.ts +1 -1
- package/dist/Components/helpers/PaddingControl/PaddingControl.d.ts +9 -0
- package/dist/index.js +8169 -12919
- package/dist/index.mjs +16922 -24356
- package/package.json +85 -85
- package/dist/Components/LightboxJournal/LightboxJournal.d.ts +0 -109
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +0 -44
- package/dist/Components/LightboxStrip/LightboxStrip.d.ts +0 -112
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +0 -44
- package/dist/Components/utils/animateStripScroll.d.ts +0 -8
- package/dist/Components/utils/imageFitStyles.d.ts +0 -7
- package/dist/Components/utils/useLightboxScrollLock.d.ts +0 -1
- package/dist/Components/utils/useLightboxSwipeDismiss.d.ts +0 -25
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cntrl-site/components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Custom components for control editor and public websites.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"style": "dist/components.css",
|
|
9
|
-
"sideEffects": [
|
|
10
|
-
"**/*.css"
|
|
11
|
-
],
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"import": "./dist/index.mjs",
|
|
16
|
-
"require": "./dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./utils": {
|
|
19
|
-
"types": "./dist/Components/utils/index.d.ts",
|
|
20
|
-
"import": "./dist/utils.mjs",
|
|
21
|
-
"require": "./dist/utils.js"
|
|
22
|
-
},
|
|
23
|
-
"./style/components.css": {
|
|
24
|
-
"default": "./dist/components.css"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"typesVersions": {
|
|
28
|
-
"*": {
|
|
29
|
-
"utils": [
|
|
30
|
-
"./dist/Components/utils/index.d.ts"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"test": "jest",
|
|
36
|
-
"dev": "vite development",
|
|
37
|
-
"prebuild": "rimraf ./dist",
|
|
38
|
-
"build": "vite build",
|
|
39
|
-
"build:watch": "vite build --watch",
|
|
40
|
-
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
|
41
|
-
},
|
|
42
|
-
"files": [
|
|
43
|
-
"dist",
|
|
44
|
-
"resources"
|
|
45
|
-
],
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/cntrl-site/components.git"
|
|
49
|
-
},
|
|
50
|
-
"author": "arsen@momdesign.nyc",
|
|
51
|
-
"license": "MIT",
|
|
52
|
-
"bugs": {
|
|
53
|
-
"url": "https://github.com/cntrl-site/components/issues"
|
|
54
|
-
},
|
|
55
|
-
"homepage": "https://github.com/cntrl-site/components#readme",
|
|
56
|
-
"directories": {
|
|
57
|
-
"lib": "dist"
|
|
58
|
-
},
|
|
59
|
-
"dependencies": {
|
|
60
|
-
"classnames": "^2.5.1"
|
|
61
|
-
},
|
|
62
|
-
"peerDependencies": {
|
|
63
|
-
"react": "^18.0.0",
|
|
64
|
-
"react-dom": "^18.0.0"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@antfu/eslint-config": "^3.16.0",
|
|
68
|
-
"@splidejs/react-splide": "^0.7.12",
|
|
69
|
-
"ts-node": "^10.9.1",
|
|
70
|
-
"@tsconfig/node16": "^1.0.3",
|
|
71
|
-
"@tsconfig/recommended": "^1.0.1",
|
|
72
|
-
"@types/node": "^18.11.7",
|
|
73
|
-
"@types/react": "^18.2.0",
|
|
74
|
-
"@types/react-dom": "^18.2.0",
|
|
75
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
76
|
-
"cross-env": "^10.1.0",
|
|
77
|
-
"react": "^18.2.0",
|
|
78
|
-
"react-dom": "^18.2.0",
|
|
79
|
-
"rimraf": "^6.0.1",
|
|
80
|
-
"sass": "^1.86.3",
|
|
81
|
-
"typescript": "^5.2.2",
|
|
82
|
-
"vite": "^6.2.5",
|
|
83
|
-
"vite-plugin-dts": "^4.5.3"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@cntrl-site/components",
|
|
3
|
+
"version": "1.0.18",
|
|
4
|
+
"description": "Custom components for control editor and public websites.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"style": "dist/components.css",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./utils": {
|
|
19
|
+
"types": "./dist/Components/utils/index.d.ts",
|
|
20
|
+
"import": "./dist/utils.mjs",
|
|
21
|
+
"require": "./dist/utils.js"
|
|
22
|
+
},
|
|
23
|
+
"./style/components.css": {
|
|
24
|
+
"default": "./dist/components.css"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
"*": {
|
|
29
|
+
"utils": [
|
|
30
|
+
"./dist/Components/utils/index.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"test": "jest",
|
|
36
|
+
"dev": "vite development",
|
|
37
|
+
"prebuild": "rimraf ./dist",
|
|
38
|
+
"build": "vite build",
|
|
39
|
+
"build:watch": "vite build --watch",
|
|
40
|
+
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"resources"
|
|
45
|
+
],
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/cntrl-site/components.git"
|
|
49
|
+
},
|
|
50
|
+
"author": "arsen@momdesign.nyc",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/cntrl-site/components/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/cntrl-site/components#readme",
|
|
56
|
+
"directories": {
|
|
57
|
+
"lib": "dist"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"classnames": "^2.5.1"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": "^18.0.0",
|
|
64
|
+
"react-dom": "^18.0.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@antfu/eslint-config": "^3.16.0",
|
|
68
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
69
|
+
"ts-node": "^10.9.1",
|
|
70
|
+
"@tsconfig/node16": "^1.0.3",
|
|
71
|
+
"@tsconfig/recommended": "^1.0.1",
|
|
72
|
+
"@types/node": "^18.11.7",
|
|
73
|
+
"@types/react": "^18.2.0",
|
|
74
|
+
"@types/react-dom": "^18.2.0",
|
|
75
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
76
|
+
"cross-env": "^10.1.0",
|
|
77
|
+
"react": "^18.2.0",
|
|
78
|
+
"react-dom": "^18.2.0",
|
|
79
|
+
"rimraf": "^6.0.1",
|
|
80
|
+
"sass": "^1.86.3",
|
|
81
|
+
"typescript": "^5.2.2",
|
|
82
|
+
"vite": "^6.2.5",
|
|
83
|
+
"vite-plugin-dts": "^4.5.3"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { CommonComponentProps } from '../props';
|
|
2
|
-
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
-
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
4
|
-
export type LightboxJournalImage = {
|
|
5
|
-
url: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
objectFit?: 'cover' | 'contain';
|
|
8
|
-
};
|
|
9
|
-
export type LightboxJournalItem = {
|
|
10
|
-
title1: string;
|
|
11
|
-
title2: string;
|
|
12
|
-
title3: string;
|
|
13
|
-
image: LightboxJournalImage[];
|
|
14
|
-
};
|
|
15
|
-
export declare const JOURNAL_TEXT_STYLE_PREFIXES: readonly ["title1", "title2", "title3", "count"];
|
|
16
|
-
export type JournalTextStylePrefix = typeof JOURNAL_TEXT_STYLE_PREFIXES[number];
|
|
17
|
-
export declare const JOURNAL_GLOBAL_TEXT_STYLE_KEYS: readonly ["fontFamily", "fontSettings", "fontSize", "lineHeight", "letterSpacing", "wordSpacing", "textAlign", "textAppearance"];
|
|
18
|
-
export type JournalGlobalTextStyleKey = typeof JOURNAL_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
19
|
-
export declare function getJournalTextStyleSettingKey(prefix: JournalTextStylePrefix, globalKey: JournalGlobalTextStyleKey): string;
|
|
20
|
-
export declare const JOURNAL_TEXT_STYLE_TAB_LABELS: Record<JournalTextStylePrefix, string>;
|
|
21
|
-
export declare function createJournalTextStyleTabContentItems(prefix: JournalTextStylePrefix): LayoutItem[];
|
|
22
|
-
export declare function createJournalTextStylePanelTab(): LayoutTab;
|
|
23
|
-
type LightboxJournalProps = {
|
|
24
|
-
settings: LightboxJournalSettings;
|
|
25
|
-
content?: LightboxJournalItem[];
|
|
26
|
-
isEditor?: boolean;
|
|
27
|
-
isEditMode?: boolean;
|
|
28
|
-
isPreviewMode?: boolean;
|
|
29
|
-
portalId?: string;
|
|
30
|
-
} & CommonComponentProps;
|
|
31
|
-
export declare const LightboxJournal: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, metadata }: LightboxJournalProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export type LightboxJournalSettings = {
|
|
33
|
-
cover: string | null;
|
|
34
|
-
coverFit: {
|
|
35
|
-
display: 'Fit' | 'Cover';
|
|
36
|
-
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
37
|
-
reversed: boolean;
|
|
38
|
-
};
|
|
39
|
-
type: 'A' | 'B';
|
|
40
|
-
maxWidth: number;
|
|
41
|
-
maxHeight: number;
|
|
42
|
-
backgroundColor: string;
|
|
43
|
-
imageGap?: number;
|
|
44
|
-
textTransition: 'none' | 'fade';
|
|
45
|
-
title1Width?: number;
|
|
46
|
-
title2Width?: number;
|
|
47
|
-
title3Width?: number;
|
|
48
|
-
title1MarginLeft?: number;
|
|
49
|
-
title2MarginLeft?: number;
|
|
50
|
-
title3MarginLeft?: number;
|
|
51
|
-
titleRowMarginBottom?: number;
|
|
52
|
-
titleHeaderLayout?: 'desktop' | 'mobile';
|
|
53
|
-
countCloseGap?: number;
|
|
54
|
-
title1Color: string;
|
|
55
|
-
title2Color: string;
|
|
56
|
-
title3Color: string;
|
|
57
|
-
countColor: string;
|
|
58
|
-
title1FontFamily?: string;
|
|
59
|
-
title1FontSettings?: {
|
|
60
|
-
fontWeight: number;
|
|
61
|
-
fontStyle: string;
|
|
62
|
-
};
|
|
63
|
-
title1FontSize?: number;
|
|
64
|
-
title1LineHeight?: number;
|
|
65
|
-
title1LetterSpacing?: number;
|
|
66
|
-
title1WordSpacing?: number;
|
|
67
|
-
title1TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
68
|
-
title1TextAppearance?: TextStyles['textAppearance'];
|
|
69
|
-
title2FontFamily?: string;
|
|
70
|
-
title2FontSettings?: {
|
|
71
|
-
fontWeight: number;
|
|
72
|
-
fontStyle: string;
|
|
73
|
-
};
|
|
74
|
-
title2FontSize?: number;
|
|
75
|
-
title2LineHeight?: number;
|
|
76
|
-
title2LetterSpacing?: number;
|
|
77
|
-
title2WordSpacing?: number;
|
|
78
|
-
title2TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
79
|
-
title2TextAppearance?: TextStyles['textAppearance'];
|
|
80
|
-
title3FontFamily?: string;
|
|
81
|
-
title3FontSettings?: {
|
|
82
|
-
fontWeight: number;
|
|
83
|
-
fontStyle: string;
|
|
84
|
-
};
|
|
85
|
-
title3FontSize?: number;
|
|
86
|
-
title3LineHeight?: number;
|
|
87
|
-
title3LetterSpacing?: number;
|
|
88
|
-
title3WordSpacing?: number;
|
|
89
|
-
title3TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
90
|
-
title3TextAppearance?: TextStyles['textAppearance'];
|
|
91
|
-
countFontFamily?: string;
|
|
92
|
-
countFontSettings?: {
|
|
93
|
-
fontWeight: number;
|
|
94
|
-
fontStyle: string;
|
|
95
|
-
};
|
|
96
|
-
countFontSize?: number;
|
|
97
|
-
countLineHeight?: number;
|
|
98
|
-
countLetterSpacing?: number;
|
|
99
|
-
countWordSpacing?: number;
|
|
100
|
-
countTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
101
|
-
countTextAppearance?: TextStyles['textAppearance'];
|
|
102
|
-
contentMarginTop: number;
|
|
103
|
-
iconMarginRight: number;
|
|
104
|
-
closeIcon: string | null;
|
|
105
|
-
closeIconMaxWidth: number;
|
|
106
|
-
closeIconColor: string;
|
|
107
|
-
closeIconHoverColor: string;
|
|
108
|
-
};
|
|
109
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
|
-
export declare const LightboxJournalComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, metadata }: {
|
|
4
|
-
settings: import('./LightboxJournal').LightboxJournalSettings;
|
|
5
|
-
content?: import('./LightboxJournal').LightboxJournalItem[];
|
|
6
|
-
isEditor?: boolean;
|
|
7
|
-
isEditMode?: boolean;
|
|
8
|
-
isPreviewMode?: boolean;
|
|
9
|
-
portalId?: string;
|
|
10
|
-
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
category: string;
|
|
14
|
-
version: number;
|
|
15
|
-
defaultSize: {
|
|
16
|
-
d: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
m: {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
preview: {
|
|
26
|
-
type: "image";
|
|
27
|
-
url: string;
|
|
28
|
-
};
|
|
29
|
-
schema: ComponentSchemaV1;
|
|
30
|
-
sourceCode: string;
|
|
31
|
-
assetsPaths: {
|
|
32
|
-
content: {
|
|
33
|
-
path: string;
|
|
34
|
-
placeholderEnabled: boolean;
|
|
35
|
-
}[];
|
|
36
|
-
parameters: never[];
|
|
37
|
-
};
|
|
38
|
-
fontSettingsPaths: {
|
|
39
|
-
content: never[];
|
|
40
|
-
parameters: {
|
|
41
|
-
path: string;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { CommonComponentProps } from '../props';
|
|
2
|
-
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
-
import { ImageRatioFit } from '../utils/imageFitStyles';
|
|
4
|
-
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
5
|
-
export type LightboxStripItem = {
|
|
6
|
-
image: {
|
|
7
|
-
url: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
objectFit?: 'cover' | 'contain';
|
|
10
|
-
};
|
|
11
|
-
title1?: string;
|
|
12
|
-
title2?: string;
|
|
13
|
-
title3?: string;
|
|
14
|
-
};
|
|
15
|
-
type LightboxStripLegacyItem = LightboxStripItem & {
|
|
16
|
-
text?: Array<{
|
|
17
|
-
type?: string;
|
|
18
|
-
children?: Array<{
|
|
19
|
-
text?: string;
|
|
20
|
-
}>;
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
export type SharedStripTitles = {
|
|
24
|
-
title1: string;
|
|
25
|
-
title2: string;
|
|
26
|
-
title3: string;
|
|
27
|
-
};
|
|
28
|
-
export declare function extractTitlesFromLegacyText(text: LightboxStripLegacyItem['text']): Partial<SharedStripTitles>;
|
|
29
|
-
export declare function resolveSharedStripTitles(items: LightboxStripLegacyItem[]): SharedStripTitles;
|
|
30
|
-
export type LightboxStripSettings = {
|
|
31
|
-
cover: string | null;
|
|
32
|
-
coverFit: ImageRatioFit;
|
|
33
|
-
backgroundColor: string;
|
|
34
|
-
thumbnailVisibility: 'on' | 'off';
|
|
35
|
-
thumbnailObjectFit: ImageRatioFit;
|
|
36
|
-
thumbnailTrigger: 'click' | 'hover';
|
|
37
|
-
thumbnailActive: 'outline' | 'color' | 'scale-up';
|
|
38
|
-
thumbnailActiveColor: string;
|
|
39
|
-
thumbnailGap: number;
|
|
40
|
-
thumbnailMarginBottom?: number;
|
|
41
|
-
imageGap?: number;
|
|
42
|
-
title1Width: number;
|
|
43
|
-
title2Width: number;
|
|
44
|
-
title3Width: number;
|
|
45
|
-
title1MarginLeft: number;
|
|
46
|
-
title2MarginLeft: number;
|
|
47
|
-
title3MarginLeft: number;
|
|
48
|
-
titleRowMarginBottom?: number;
|
|
49
|
-
titleHeaderLayout?: 'desktop' | 'mobile';
|
|
50
|
-
title1Color: string;
|
|
51
|
-
title2Color: string;
|
|
52
|
-
title3Color: string;
|
|
53
|
-
title1FontFamily?: string;
|
|
54
|
-
title1FontSettings?: {
|
|
55
|
-
fontWeight: number;
|
|
56
|
-
fontStyle: string;
|
|
57
|
-
};
|
|
58
|
-
title1FontSize?: number;
|
|
59
|
-
title1LineHeight?: number;
|
|
60
|
-
title1LetterSpacing?: number;
|
|
61
|
-
title1WordSpacing?: number;
|
|
62
|
-
title1TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
63
|
-
title1TextAppearance?: TextStyles['textAppearance'];
|
|
64
|
-
title2FontFamily?: string;
|
|
65
|
-
title2FontSettings?: {
|
|
66
|
-
fontWeight: number;
|
|
67
|
-
fontStyle: string;
|
|
68
|
-
};
|
|
69
|
-
title2FontSize?: number;
|
|
70
|
-
title2LineHeight?: number;
|
|
71
|
-
title2LetterSpacing?: number;
|
|
72
|
-
title2WordSpacing?: number;
|
|
73
|
-
title2TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
74
|
-
title2TextAppearance?: TextStyles['textAppearance'];
|
|
75
|
-
title3FontFamily?: string;
|
|
76
|
-
title3FontSettings?: {
|
|
77
|
-
fontWeight: number;
|
|
78
|
-
fontStyle: string;
|
|
79
|
-
};
|
|
80
|
-
title3FontSize?: number;
|
|
81
|
-
title3LineHeight?: number;
|
|
82
|
-
title3LetterSpacing?: number;
|
|
83
|
-
title3WordSpacing?: number;
|
|
84
|
-
title3TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
85
|
-
title3TextAppearance?: TextStyles['textAppearance'];
|
|
86
|
-
contentMarginTop: number;
|
|
87
|
-
iconMarginLeft: number;
|
|
88
|
-
closeIcon: string | null;
|
|
89
|
-
closeIconMaxWidth: number;
|
|
90
|
-
closeIconColor: string;
|
|
91
|
-
closeIconHoverColor: string;
|
|
92
|
-
};
|
|
93
|
-
export declare const STRIP_TEXT_STYLE_PREFIXES: readonly ["title1", "title2", "title3"];
|
|
94
|
-
export type StripTextStylePrefix = typeof STRIP_TEXT_STYLE_PREFIXES[number];
|
|
95
|
-
export declare const STRIP_GLOBAL_TEXT_STYLE_KEYS: readonly ["fontFamily", "fontSettings", "fontSize", "lineHeight", "letterSpacing", "wordSpacing", "textAlign", "textAppearance"];
|
|
96
|
-
export type StripGlobalTextStyleKey = typeof STRIP_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
97
|
-
export declare function getStripTextStyleSettingKey(prefix: StripTextStylePrefix, globalKey: StripGlobalTextStyleKey): string;
|
|
98
|
-
export declare const STRIP_TEXT_STYLE_TAB_LABELS: Record<StripTextStylePrefix, string>;
|
|
99
|
-
export declare function createStripTextStyleTabContentItems(prefix: StripTextStylePrefix): LayoutItem[];
|
|
100
|
-
export declare function createStripTextStylePanelTab(): LayoutTab;
|
|
101
|
-
export declare const STRIP_TITLE_WIDTH_KEYS: readonly ["title1Width", "title2Width", "title3Width"];
|
|
102
|
-
export type StripTitleWidthKey = typeof STRIP_TITLE_WIDTH_KEYS[number];
|
|
103
|
-
type LightboxStripProps = {
|
|
104
|
-
settings: LightboxStripSettings;
|
|
105
|
-
content?: LightboxStripItem[];
|
|
106
|
-
isEditor?: boolean;
|
|
107
|
-
isEditMode?: boolean;
|
|
108
|
-
isPreviewMode?: boolean;
|
|
109
|
-
portalId?: string;
|
|
110
|
-
} & CommonComponentProps;
|
|
111
|
-
export declare const LightboxStrip: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => import("react/jsx-runtime").JSX.Element;
|
|
112
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
|
-
export declare const LightboxStripComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: {
|
|
4
|
-
settings: import('./LightboxStrip').LightboxStripSettings;
|
|
5
|
-
content?: import('./LightboxStrip').LightboxStripItem[];
|
|
6
|
-
isEditor?: boolean;
|
|
7
|
-
isEditMode?: boolean;
|
|
8
|
-
isPreviewMode?: boolean;
|
|
9
|
-
portalId?: string;
|
|
10
|
-
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
category: string;
|
|
14
|
-
version: number;
|
|
15
|
-
defaultSize: {
|
|
16
|
-
d: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
m: {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
preview: {
|
|
26
|
-
type: "image";
|
|
27
|
-
url: string;
|
|
28
|
-
};
|
|
29
|
-
schema: ComponentSchemaV1;
|
|
30
|
-
sourceCode: string;
|
|
31
|
-
assetsPaths: {
|
|
32
|
-
content: {
|
|
33
|
-
path: string;
|
|
34
|
-
placeholderEnabled: boolean;
|
|
35
|
-
}[];
|
|
36
|
-
parameters: never[];
|
|
37
|
-
};
|
|
38
|
-
fontSettingsPaths: {
|
|
39
|
-
content: never[];
|
|
40
|
-
parameters: {
|
|
41
|
-
path: string;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type AnimateStripScrollOptions = {
|
|
2
|
-
duration: number;
|
|
3
|
-
easing: string;
|
|
4
|
-
onComplete?: () => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const getDistanceScaledDuration: (distance: number, minMs: number, maxMs: number, referenceDistance: number) => number;
|
|
7
|
-
export declare const animateStripScroll: (strip: HTMLElement, track: HTMLElement, targetLeft: number, { duration, easing, onComplete }: AnimateStripScrollOptions) => (() => void);
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type ImageRatioFit = {
|
|
2
|
-
display: 'Fit' | 'Cover';
|
|
3
|
-
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
4
|
-
reversed: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const isImageRatioCover: (fit: ImageRatioFit) => boolean;
|
|
7
|
-
export declare const getAspectRatio: (fit: ImageRatioFit) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useLightboxScrollLock: () => void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type UseLightboxSwipeDismissOptions = {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
animMs?: number;
|
|
5
|
-
isBlockedTarget?: (target: HTMLElement) => boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const useLightboxSwipeDismiss: ({ enabled, onClose, animMs, isBlockedTarget, }: UseLightboxSwipeDismissOptions) => {
|
|
8
|
-
isSwipeDragging: boolean;
|
|
9
|
-
backdropStyle: React.CSSProperties;
|
|
10
|
-
mediaAreaStyle: React.CSSProperties;
|
|
11
|
-
overlayContentStyle: import('react').CSSProperties | undefined;
|
|
12
|
-
swipeHandlers: {
|
|
13
|
-
onPointerDown: (event: React.PointerEvent<HTMLElement>) => void;
|
|
14
|
-
onPointerMove: (event: React.PointerEvent<HTMLElement>) => void;
|
|
15
|
-
onPointerUp: (event: React.PointerEvent<HTMLElement>) => void;
|
|
16
|
-
onPointerCancel: (event: React.PointerEvent<HTMLElement>) => void;
|
|
17
|
-
} | {
|
|
18
|
-
onPointerDown?: undefined;
|
|
19
|
-
onPointerMove?: undefined;
|
|
20
|
-
onPointerUp?: undefined;
|
|
21
|
-
onPointerCancel?: undefined;
|
|
22
|
-
};
|
|
23
|
-
dismissAreaStyle: import('react').CSSProperties | undefined;
|
|
24
|
-
};
|
|
25
|
-
export {};
|