PluginProbe
Tableberg – Simple Gutenberg Table Block / 0.0.2
Tableberg – Simple Gutenberg Table Block v0.0.2
1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.5.8 All 41 releases
tableberg / src / components / types.ts

types.ts in Tableberg – Simple Gutenberg Table Block 0.0.2, at src/components/types.ts

42 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { IconType } from "@wordpress/components";
2 import { ReactElement } from "react";
3
4 export interface BorderControlPropTypes {
5 borderLabel?: string;
6 attrBorderKey?: string;
7 borderRadiusLabel?: string;
8 attrBorderRadiusKey?: string;
9 showBorder?: boolean;
10 showBorderRadius?: boolean;
11 showDefaultBorder?: boolean;
12 showDefaultBorderRadius?: boolean;
13 }
14 export interface ToggleGroupControlPropTypes {
15 label: string;
16 options: Array<OptionObject>; // Use the defined OptionObject interface
17 attributeKey: string;
18 isBlock?: boolean;
19 isAdaptiveWidth?: boolean;
20 isDeselectable?: boolean;
21 }
22
23 export interface OptionObject {
24 value: string;
25 icon: ReactElement; // You can specify the type for the icon property as needed
26 label: string;
27 }
28 export interface SpacingPropTypes {
29 label: string;
30 attrKey: string;
31 showByDefault?: boolean;
32 }
33 export interface ColorSettingsWithGradientPropTypes {
34 label: string;
35 attrBackgroundKey: string;
36 attrGradientKey: string;
37 }
38 export interface ColorSettingsPropTypes {
39 label: string;
40 attrKey: string;
41 }
42