@cntrl-site/components 0.1.10-alpha.3 → 0.1.13
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/ControlSlider/ControlSlider.d.ts +2 -2
- package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +4 -4
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -2
- package/dist/components.css +1 -1
- package/dist/index.js +119 -1461
- package/dist/index.mjs +119 -1461
- package/package.json +68 -68
- package/dist/Components/Testimonials/Testimonials.d.ts +0 -106
- package/dist/Components/Testimonials/TestimonialsComponent.d.ts +0 -2
- package/dist/Components/Testimonials/getAlignPosition.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cntrl-site/components",
|
|
3
|
-
"version": "0.1.
|
|
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
|
-
"./style/components.css": {
|
|
19
|
-
"default": "./dist/components.css"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "jest",
|
|
24
|
-
"dev": "vite development",
|
|
25
|
-
"prebuild": "rimraf ./dist",
|
|
26
|
-
"build": "vite build",
|
|
27
|
-
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist",
|
|
31
|
-
"resources"
|
|
32
|
-
],
|
|
33
|
-
"repository": {
|
|
34
|
-
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/cntrl-site/components.git"
|
|
36
|
-
},
|
|
37
|
-
"author": "arsen@momdesign.nyc",
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/cntrl-site/components/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://github.com/cntrl-site/components#readme",
|
|
43
|
-
"directories": {
|
|
44
|
-
"lib": "dist"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@antfu/eslint-config": "^3.16.0",
|
|
48
|
-
"@splidejs/react-splide": "^0.7.12",
|
|
49
|
-
"classnames": "^2.5.1",
|
|
50
|
-
"ts-node": "^10.9.1"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@tsconfig/node16": "^1.0.3",
|
|
54
|
-
"@tsconfig/recommended": "^1.0.1",
|
|
55
|
-
"@types/node": "^18.11.7",
|
|
56
|
-
"@types/react": "^18.2.0",
|
|
57
|
-
"@types/react-dom": "^18.2.0",
|
|
58
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
59
|
-
"cross-env": "^10.1.0",
|
|
60
|
-
"react": "^18.2.0",
|
|
61
|
-
"react-dom": "^18.2.0",
|
|
62
|
-
"rimraf": "^6.0.1",
|
|
63
|
-
"sass": "^1.86.3",
|
|
64
|
-
"typescript": "^5.2.2",
|
|
65
|
-
"vite": "^6.2.5",
|
|
66
|
-
"vite-plugin-dts": "^4.5.3"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@cntrl-site/components",
|
|
3
|
+
"version": "0.1.13",
|
|
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
|
+
"./style/components.css": {
|
|
19
|
+
"default": "./dist/components.css"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "jest",
|
|
24
|
+
"dev": "vite development",
|
|
25
|
+
"prebuild": "rimraf ./dist",
|
|
26
|
+
"build": "vite build",
|
|
27
|
+
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"resources"
|
|
32
|
+
],
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/cntrl-site/components.git"
|
|
36
|
+
},
|
|
37
|
+
"author": "arsen@momdesign.nyc",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/cntrl-site/components/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/cntrl-site/components#readme",
|
|
43
|
+
"directories": {
|
|
44
|
+
"lib": "dist"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@antfu/eslint-config": "^3.16.0",
|
|
48
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
49
|
+
"classnames": "^2.5.1",
|
|
50
|
+
"ts-node": "^10.9.1"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@tsconfig/node16": "^1.0.3",
|
|
54
|
+
"@tsconfig/recommended": "^1.0.1",
|
|
55
|
+
"@types/node": "^18.11.7",
|
|
56
|
+
"@types/react": "^18.2.0",
|
|
57
|
+
"@types/react-dom": "^18.2.0",
|
|
58
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
59
|
+
"cross-env": "^10.1.0",
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"rimraf": "^6.0.1",
|
|
63
|
+
"sass": "^1.86.3",
|
|
64
|
+
"typescript": "^5.2.2",
|
|
65
|
+
"vite": "^6.2.5",
|
|
66
|
+
"vite-plugin-dts": "^4.5.3"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type TestimonialsProps = {
|
|
3
|
-
settings: TestimonialsSettings;
|
|
4
|
-
content: TestimonialsImage[];
|
|
5
|
-
styles: TestimonialsStyles;
|
|
6
|
-
isEditor?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const Testimonials: FC<TestimonialsProps>;
|
|
9
|
-
type TestimonialsImage = {
|
|
10
|
-
image?: {
|
|
11
|
-
url?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
objectFit?: 'cover' | 'contain';
|
|
14
|
-
};
|
|
15
|
-
icon?: {
|
|
16
|
-
url?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
objectFit?: 'cover' | 'contain';
|
|
19
|
-
};
|
|
20
|
-
imageCaption: any[];
|
|
21
|
-
creds: any[];
|
|
22
|
-
};
|
|
23
|
-
export type Alignment = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
24
|
-
export type Offset = {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
type TestimonialsGeneral = {
|
|
29
|
-
autoplay: 'on' | 'off';
|
|
30
|
-
inView?: number;
|
|
31
|
-
alignment: 'left' | 'center' | 'right';
|
|
32
|
-
move: 'one' | 'view';
|
|
33
|
-
speed: string;
|
|
34
|
-
direction: 'left' | 'right';
|
|
35
|
-
pause: 'hover' | 'click' | 'off';
|
|
36
|
-
};
|
|
37
|
-
type TestimonialsControls = {
|
|
38
|
-
arrowsImgUrl: string | null;
|
|
39
|
-
isActive: boolean;
|
|
40
|
-
color: string;
|
|
41
|
-
hover: string;
|
|
42
|
-
offset: Offset;
|
|
43
|
-
scale: number;
|
|
44
|
-
};
|
|
45
|
-
type TestimonialsCard = {
|
|
46
|
-
dimensions: {
|
|
47
|
-
width: number;
|
|
48
|
-
height: number;
|
|
49
|
-
};
|
|
50
|
-
gap: number;
|
|
51
|
-
corner: number;
|
|
52
|
-
borders: {
|
|
53
|
-
width: number;
|
|
54
|
-
color: string;
|
|
55
|
-
};
|
|
56
|
-
bgColor: string;
|
|
57
|
-
};
|
|
58
|
-
type TestimonialsElements = {
|
|
59
|
-
text: {
|
|
60
|
-
alignment: Alignment;
|
|
61
|
-
offset: Offset;
|
|
62
|
-
};
|
|
63
|
-
icon: {
|
|
64
|
-
alignment: Alignment;
|
|
65
|
-
offset: Offset;
|
|
66
|
-
scale: number;
|
|
67
|
-
};
|
|
68
|
-
creds: {
|
|
69
|
-
alignment: Alignment;
|
|
70
|
-
offset: Offset;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
type TestimonialsSettings = {
|
|
74
|
-
general: TestimonialsGeneral;
|
|
75
|
-
card: TestimonialsCard;
|
|
76
|
-
elements: TestimonialsElements;
|
|
77
|
-
controls: TestimonialsControls;
|
|
78
|
-
};
|
|
79
|
-
type TestimonialsStyles = {
|
|
80
|
-
caption: CaptionStyles;
|
|
81
|
-
};
|
|
82
|
-
type CaptionStyles = {
|
|
83
|
-
fontSettings: {
|
|
84
|
-
fontFamily: string;
|
|
85
|
-
fontWeight: number;
|
|
86
|
-
fontStyle: string;
|
|
87
|
-
};
|
|
88
|
-
widthSettings: {
|
|
89
|
-
width: number;
|
|
90
|
-
sizing: 'auto' | 'manual';
|
|
91
|
-
};
|
|
92
|
-
letterSpacing: number;
|
|
93
|
-
textAlign: 'left' | 'center' | 'right';
|
|
94
|
-
wordSpacing: number;
|
|
95
|
-
fontSizeLineHeight: {
|
|
96
|
-
fontSize: number;
|
|
97
|
-
lineHeight: number;
|
|
98
|
-
};
|
|
99
|
-
textAppearance: {
|
|
100
|
-
textTransform: 'none' | 'uppercase' | 'lowercase';
|
|
101
|
-
textDecoration: 'none' | 'underline';
|
|
102
|
-
fontVariant: 'normal' | 'small-caps';
|
|
103
|
-
};
|
|
104
|
-
color: string;
|
|
105
|
-
};
|
|
106
|
-
export {};
|