@cntrl-site/components 1.0.12-alpha.2 → 1.0.12-alpha.22
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/Form/Form.d.ts +3 -1
- package/dist/Components/Form/FormComponent.d.ts +5 -17
- package/dist/Components/Grid/Grid.d.ts +24 -7
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -1
- package/dist/Components/List/List.d.ts +19 -12
- package/dist/Components/Marquee/Marquee.d.ts +8 -3
- package/dist/Components/Marquee/MarqueeComponent.d.ts +2 -1
- package/dist/Components/OnelinerForm/OnelinerForm.d.ts +2 -1
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGrid.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingle.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +2 -1
- package/dist/Components/utils/textStylesToCss.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4713 -3575
- package/dist/index.mjs +10589 -8748
- package/dist/types/Component.d.ts +7 -4
- package/dist/types/SchemaV1.d.ts +6 -1
- package/package.json +1 -1
- package/dist/Components/utils/getMainFontBaseOnSystem.d.ts +0 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentSchemaV1 } from './SchemaV1';
|
|
3
|
+
export type Breakpoint = 'd' | 't' | 'm';
|
|
4
|
+
export type ComponentSize = {
|
|
5
|
+
width?: number | string;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
};
|
|
8
|
+
export type ComponentDefaultSize = Partial<Record<Breakpoint, ComponentSize>>;
|
|
3
9
|
export type Component = {
|
|
4
10
|
element: (props: any) => React.ReactElement;
|
|
5
11
|
id: string;
|
|
@@ -7,10 +13,7 @@ export type Component = {
|
|
|
7
13
|
category?: string;
|
|
8
14
|
version?: number;
|
|
9
15
|
layoutMode?: 'freeform' | 'structured';
|
|
10
|
-
defaultSize?:
|
|
11
|
-
width?: number | string;
|
|
12
|
-
height?: number | string;
|
|
13
|
-
}>;
|
|
16
|
+
defaultSize?: ComponentDefaultSize;
|
|
14
17
|
schema: any;
|
|
15
18
|
preview?: {
|
|
16
19
|
type: 'image' | 'video';
|
package/dist/types/SchemaV1.d.ts
CHANGED
|
@@ -40,7 +40,12 @@ export type LayoutPaletteBookmark = {
|
|
|
40
40
|
type: 'palette-bookmark';
|
|
41
41
|
items: string[];
|
|
42
42
|
};
|
|
43
|
-
export type
|
|
43
|
+
export type LayoutTab = {
|
|
44
|
+
type: 'tab';
|
|
45
|
+
id?: string;
|
|
46
|
+
tabs: Record<string, LayoutItem[]>;
|
|
47
|
+
};
|
|
48
|
+
export type LayoutItem = string | LayoutRow | LayoutGroup | LayoutSwitcher | LayoutPaletteBookmark | LayoutTab;
|
|
44
49
|
export type SchemaDisplayRule = {
|
|
45
50
|
if: {
|
|
46
51
|
name: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getFontBasedOnSystem(): string;
|