| 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 |
|