@cntrl-site/components 1.0.11-alpha.6 → 1.0.11-alpha.8

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.
@@ -4,7 +4,7 @@ export type SchemaDisplay = {
4
4
  [key: string]: unknown;
5
5
  };
6
6
  export type SchemaProperty = {
7
- type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'fields' | readonly ['string', 'null'];
7
+ type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'fields' | readonly ['string', 'null'] | 'grid-layout';
8
8
  scope?: PropertyScope;
9
9
  title?: string;
10
10
  message?: string;
@@ -15,6 +15,7 @@ export type SchemaProperty = {
15
15
  properties?: Record<string, SchemaProperty>;
16
16
  layout?: LayoutItem[];
17
17
  items?: SchemaProperty;
18
+ gridParams?: SchemaProperty;
18
19
  default?: unknown;
19
20
  min?: number;
20
21
  max?: number;
@@ -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.11-alpha.6",
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.11-alpha.8",
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,43 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- export type MarqueeItem = {
3
- image?: {
4
- url?: string;
5
- name?: string;
6
- };
7
- text?: any[];
8
- link?: string;
9
- };
10
- export type MarqueeSettings = {
11
- speed: number;
12
- direction: 'left' | 'right';
13
- pauseOnHover: 'on' | 'off';
14
- hoverEffect: 'off' | 'brightness' | 'grayscale' | 'saturate';
15
- gap: number;
16
- imageMaxWidth: number;
17
- imageMaxHeight: number;
18
- imageFit?: 'cover' | 'contain';
19
- textFontFamily?: string;
20
- textFontSettings?: {
21
- fontWeight?: number;
22
- fontStyle?: string;
23
- };
24
- textFontSize?: number;
25
- textLineHeight?: number;
26
- textLetterSpacing?: number;
27
- textWordSpacing?: number;
28
- textTextAppearance?: {
29
- textTransform?: string;
30
- textDecoration?: string;
31
- fontVariant?: string;
32
- };
33
- textColor?: string;
34
- textMarginTop?: number;
35
- };
36
- type MarqueeProps = {
37
- settings: MarqueeSettings;
38
- content?: MarqueeItem[];
39
- isEditor?: boolean;
40
- isPreviewMode?: boolean;
41
- } & CommonComponentProps;
42
- export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
43
- export {};
@@ -1,40 +0,0 @@
1
- import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
- export declare const MarqueeComponent: {
3
- element: ({ settings, content, isEditor, isPreviewMode }: {
4
- settings: import('./Marquee').MarqueeSettings;
5
- content?: import('./Marquee').MarqueeItem[];
6
- isEditor?: boolean;
7
- isPreviewMode?: boolean;
8
- } & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
9
- id: string;
10
- name: string;
11
- category: string;
12
- version: number;
13
- defaultSize: {
14
- width: string;
15
- height: number;
16
- };
17
- preview: {
18
- type: "image";
19
- url: string;
20
- };
21
- schema: ComponentSchemaV1;
22
- sourceCode: string;
23
- assetsPaths: {
24
- content: {
25
- path: string;
26
- placeholderEnabled: boolean;
27
- }[];
28
- parameters: never[];
29
- };
30
- fontSettingsPaths: {
31
- content: never[];
32
- parameters: ({
33
- path: string;
34
- placeholderEnabled: boolean;
35
- } | {
36
- path: string;
37
- placeholderEnabled?: undefined;
38
- })[];
39
- };
40
- };