@easy-editor/setters 0.1.2 → 0.1.4

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.
@@ -1,12 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface SelectOption {
3
- label: string;
4
- value: string;
5
- disabled?: boolean;
6
- }
7
- export interface SelectSetterProps extends SetterProps<string> {
8
- options?: SelectOption[];
9
- placeholder?: string;
10
- }
11
- declare const SelectSetter: (props: SelectSetterProps) => import("react").JSX.Element;
12
- export default SelectSetter;
@@ -1,10 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface SliderSetterProps extends SetterProps<number> {
3
- min?: number;
4
- max?: number;
5
- step?: number;
6
- showValue?: boolean;
7
- suffix?: string;
8
- }
9
- declare const SliderSetter: (props: SliderSetterProps) => import("react").JSX.Element;
10
- export default SliderSetter;
@@ -1,15 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface SpacingValue {
3
- top: number;
4
- right: number;
5
- bottom: number;
6
- left: number;
7
- }
8
- export interface SpacingSetterProps extends SetterProps<SpacingValue> {
9
- mode?: 'padding' | 'margin';
10
- linked?: boolean;
11
- min?: number;
12
- max?: number;
13
- }
14
- declare const SpacingSetter: (props: SpacingSetterProps) => import("react").JSX.Element;
15
- export default SpacingSetter;
@@ -1,7 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface StringSetterProps extends SetterProps<string> {
3
- placeholder?: string;
4
- suffix?: string;
5
- }
6
- declare const StringSetter: (props: StringSetterProps) => import("react").JSX.Element;
7
- export default StringSetter;
@@ -1,8 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface SwitchSetterProps extends SetterProps<boolean> {
3
- mode?: 'switch' | 'checkbox' | 'segmented';
4
- trueLabel?: string;
5
- falseLabel?: string;
6
- }
7
- declare const SwitchSetter: (props: SwitchSetterProps) => import("react").JSX.Element;
8
- export default SwitchSetter;
@@ -1,8 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface TextAreaSetterProps extends SetterProps<string> {
3
- placeholder?: string;
4
- rows?: number;
5
- maxLength?: number;
6
- }
7
- declare const TextAreaSetter: (props: TextAreaSetterProps) => import("react").JSX.Element;
8
- export default TextAreaSetter;
@@ -1,17 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- export interface UploadValue {
3
- raw: {
4
- name: string;
5
- size: number;
6
- type: string;
7
- width: number;
8
- height: number;
9
- };
10
- base64: string;
11
- }
12
- export interface UploadSetterProps extends SetterProps<UploadValue | null> {
13
- accept?: string;
14
- maxSize?: number;
15
- }
16
- declare const UploadSetter: (props: UploadSetterProps) => import("react").JSX.Element;
17
- export default UploadSetter;
@@ -1,7 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- import type { PropsWithChildren } from 'react';
3
- export interface CollapseSetterProps extends SetterProps<boolean>, PropsWithChildren {
4
- icon?: boolean;
5
- }
6
- declare const CollapseSetter: (props: CollapseSetterProps) => import("react").JSX.Element;
7
- export default CollapseSetter;
@@ -1,11 +0,0 @@
1
- import type { SetterProps } from '@easy-editor/core';
2
- import type { PropsWithChildren } from 'react';
3
- import React from 'react';
4
- export interface TabSetterProps extends SetterProps<string>, PropsWithChildren {
5
- tabs?: {
6
- label: string;
7
- value: string;
8
- }[];
9
- }
10
- declare const TabSetter: (props: TabSetterProps) => React.JSX.Element;
11
- export default TabSetter;