@cntrl-site/components 1.0.6 → 1.0.7-1
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 -25
- package/dist/Components/Grid/Grid.d.ts +51 -0
- package/dist/Components/Grid/GridComponent.d.ts +38 -0
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -25
- package/dist/index.js +1897 -1270
- package/dist/index.mjs +4830 -3324
- package/dist/types/TextElementStyles.d.ts +24 -0
- package/package.json +85 -85
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type TextElementStyles = {
|
|
2
|
+
fontSettings: {
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
fontWeight: number;
|
|
5
|
+
fontStyle: string;
|
|
6
|
+
};
|
|
7
|
+
widthSettings: {
|
|
8
|
+
width: number;
|
|
9
|
+
sizing: 'auto' | 'manual';
|
|
10
|
+
};
|
|
11
|
+
letterSpacing: number;
|
|
12
|
+
textAlign: 'left' | 'center' | 'right';
|
|
13
|
+
wordSpacing: number;
|
|
14
|
+
fontSizeLineHeight: {
|
|
15
|
+
fontSize: number;
|
|
16
|
+
lineHeight: number;
|
|
17
|
+
};
|
|
18
|
+
textAppearance: {
|
|
19
|
+
textTransform: 'none' | 'uppercase' | 'lowercase';
|
|
20
|
+
textDecoration: 'none' | 'underline';
|
|
21
|
+
fontVariant: 'normal' | 'small-caps';
|
|
22
|
+
};
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
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.7-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
|
+
"./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
|
+
}
|