@ramong26/xp-components 1.0.9 → 1.0.13
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/README.md +20 -20
- package/dist/index.cjs.js +522 -2
- package/dist/index.css +1164 -1
- package/dist/index.d.cts +122 -2
- package/dist/index.d.ts +122 -2
- package/dist/index.mjs +508 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,129 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
declare function App(): react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
|
-
type Variant = 'default' | 'secondary';
|
|
6
|
+
type Variant$2 = 'default' | 'secondary';
|
|
7
7
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
variant?: Variant$2;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
|
|
12
|
+
type Button$1_ButtonProps = ButtonProps;
|
|
13
|
+
declare namespace Button$1 {
|
|
14
|
+
export { type Button$1_ButtonProps as ButtonProps, type Variant$2 as Variant, Button as default };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface CarouselItem {
|
|
18
|
+
title?: string;
|
|
19
|
+
text?: string;
|
|
20
|
+
image?: string;
|
|
21
|
+
imageStyle?: React.CSSProperties;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
items: CarouselItem[];
|
|
26
|
+
autoPlay?: boolean;
|
|
27
|
+
interval?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const Carousel: React.FC<CarouselProps>;
|
|
30
|
+
|
|
31
|
+
type Carousel$1_CarouselItem = CarouselItem;
|
|
32
|
+
type Carousel$1_CarouselProps = CarouselProps;
|
|
33
|
+
declare namespace Carousel$1 {
|
|
34
|
+
export { type Carousel$1_CarouselItem as CarouselItem, type Carousel$1_CarouselProps as CarouselProps, Carousel as default };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
38
|
+
label: string;
|
|
39
|
+
}
|
|
40
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
41
|
+
|
|
42
|
+
type Checkbox$1_CheckboxProps = CheckboxProps;
|
|
43
|
+
declare namespace Checkbox$1 {
|
|
44
|
+
export { type Checkbox$1_CheckboxProps as CheckboxProps, Checkbox as default };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
+
onRemove?: () => void;
|
|
49
|
+
selected?: boolean;
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
}
|
|
52
|
+
declare const Chips: React.FC<ChipsProps>;
|
|
53
|
+
|
|
54
|
+
type Chips$1_ChipsProps = ChipsProps;
|
|
55
|
+
declare namespace Chips$1 {
|
|
56
|
+
export { type Chips$1_ChipsProps as ChipsProps, Chips as default };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type Variant$1 = 'default' | 'title';
|
|
60
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
61
|
+
label?: string;
|
|
62
|
+
variant?: Variant$1;
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|
|
65
|
+
declare const Input: React.FC<InputProps>;
|
|
66
|
+
|
|
67
|
+
type Input$1_InputProps = InputProps;
|
|
68
|
+
declare namespace Input$1 {
|
|
69
|
+
export { type Input$1_InputProps as InputProps, type Variant$1 as Variant, Input as default };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
73
|
+
label: string;
|
|
74
|
+
options: Array<{
|
|
75
|
+
label: string;
|
|
76
|
+
value: string | number;
|
|
77
|
+
}>;
|
|
78
|
+
value?: string | number;
|
|
79
|
+
onChange?: (value: string | number) => void;
|
|
80
|
+
}
|
|
81
|
+
declare const Select: React.FC<SelectProps>;
|
|
82
|
+
|
|
83
|
+
type Select$1_SelectProps = SelectProps;
|
|
84
|
+
declare namespace Select$1 {
|
|
85
|
+
export { type Select$1_SelectProps as SelectProps, Select as default };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface SliderProps {
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
step?: number;
|
|
92
|
+
value?: number;
|
|
93
|
+
onChange?: (value: number) => void;
|
|
94
|
+
showValue?: boolean;
|
|
95
|
+
}
|
|
96
|
+
declare const Slider: React.FC<SliderProps>;
|
|
97
|
+
|
|
98
|
+
type Slider$1_SliderProps = SliderProps;
|
|
99
|
+
declare namespace Slider$1 {
|
|
100
|
+
export { type Slider$1_SliderProps as SliderProps, Slider as default };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface SwitchProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
104
|
+
label?: string;
|
|
105
|
+
}
|
|
106
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
107
|
+
|
|
108
|
+
type Switch$1_SwitchProps = SwitchProps;
|
|
109
|
+
declare namespace Switch$1 {
|
|
110
|
+
export { type Switch$1_SwitchProps as SwitchProps, Switch as default };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type Variant = 'default' | 'success' | 'warning' | 'error' | 'outline';
|
|
114
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
115
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
116
|
variant?: Variant;
|
|
117
|
+
size?: Size;
|
|
118
|
+
icon?: React.ReactNode;
|
|
119
|
+
closable?: boolean;
|
|
120
|
+
onClose?: () => void;
|
|
121
|
+
}
|
|
122
|
+
declare const Tag: React.FC<TagProps>;
|
|
123
|
+
|
|
124
|
+
type Tag$1_Size = Size;
|
|
125
|
+
type Tag$1_TagProps = TagProps;
|
|
126
|
+
type Tag$1_Variant = Variant;
|
|
127
|
+
declare namespace Tag$1 {
|
|
128
|
+
export { type Tag$1_Size as Size, type Tag$1_TagProps as TagProps, type Tag$1_Variant as Variant, Tag as default };
|
|
9
129
|
}
|
|
10
130
|
|
|
11
|
-
export { App,
|
|
131
|
+
export { App, Button$1 as Button, Carousel$1 as Carousel, Checkbox$1 as Checkbox, Chips$1 as Chips, Input$1 as Input, Select$1 as Select, Slider$1 as Slider, Switch$1 as Switch, Tag$1 as Tag };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,129 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
declare function App(): react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
|
-
type Variant = 'default' | 'secondary';
|
|
6
|
+
type Variant$2 = 'default' | 'secondary';
|
|
7
7
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
variant?: Variant$2;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
|
|
12
|
+
type Button$1_ButtonProps = ButtonProps;
|
|
13
|
+
declare namespace Button$1 {
|
|
14
|
+
export { type Button$1_ButtonProps as ButtonProps, type Variant$2 as Variant, Button as default };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface CarouselItem {
|
|
18
|
+
title?: string;
|
|
19
|
+
text?: string;
|
|
20
|
+
image?: string;
|
|
21
|
+
imageStyle?: React.CSSProperties;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
items: CarouselItem[];
|
|
26
|
+
autoPlay?: boolean;
|
|
27
|
+
interval?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const Carousel: React.FC<CarouselProps>;
|
|
30
|
+
|
|
31
|
+
type Carousel$1_CarouselItem = CarouselItem;
|
|
32
|
+
type Carousel$1_CarouselProps = CarouselProps;
|
|
33
|
+
declare namespace Carousel$1 {
|
|
34
|
+
export { type Carousel$1_CarouselItem as CarouselItem, type Carousel$1_CarouselProps as CarouselProps, Carousel as default };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
38
|
+
label: string;
|
|
39
|
+
}
|
|
40
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
41
|
+
|
|
42
|
+
type Checkbox$1_CheckboxProps = CheckboxProps;
|
|
43
|
+
declare namespace Checkbox$1 {
|
|
44
|
+
export { type Checkbox$1_CheckboxProps as CheckboxProps, Checkbox as default };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
+
onRemove?: () => void;
|
|
49
|
+
selected?: boolean;
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
}
|
|
52
|
+
declare const Chips: React.FC<ChipsProps>;
|
|
53
|
+
|
|
54
|
+
type Chips$1_ChipsProps = ChipsProps;
|
|
55
|
+
declare namespace Chips$1 {
|
|
56
|
+
export { type Chips$1_ChipsProps as ChipsProps, Chips as default };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type Variant$1 = 'default' | 'title';
|
|
60
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
61
|
+
label?: string;
|
|
62
|
+
variant?: Variant$1;
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|
|
65
|
+
declare const Input: React.FC<InputProps>;
|
|
66
|
+
|
|
67
|
+
type Input$1_InputProps = InputProps;
|
|
68
|
+
declare namespace Input$1 {
|
|
69
|
+
export { type Input$1_InputProps as InputProps, type Variant$1 as Variant, Input as default };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
73
|
+
label: string;
|
|
74
|
+
options: Array<{
|
|
75
|
+
label: string;
|
|
76
|
+
value: string | number;
|
|
77
|
+
}>;
|
|
78
|
+
value?: string | number;
|
|
79
|
+
onChange?: (value: string | number) => void;
|
|
80
|
+
}
|
|
81
|
+
declare const Select: React.FC<SelectProps>;
|
|
82
|
+
|
|
83
|
+
type Select$1_SelectProps = SelectProps;
|
|
84
|
+
declare namespace Select$1 {
|
|
85
|
+
export { type Select$1_SelectProps as SelectProps, Select as default };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface SliderProps {
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
step?: number;
|
|
92
|
+
value?: number;
|
|
93
|
+
onChange?: (value: number) => void;
|
|
94
|
+
showValue?: boolean;
|
|
95
|
+
}
|
|
96
|
+
declare const Slider: React.FC<SliderProps>;
|
|
97
|
+
|
|
98
|
+
type Slider$1_SliderProps = SliderProps;
|
|
99
|
+
declare namespace Slider$1 {
|
|
100
|
+
export { type Slider$1_SliderProps as SliderProps, Slider as default };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface SwitchProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
104
|
+
label?: string;
|
|
105
|
+
}
|
|
106
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
107
|
+
|
|
108
|
+
type Switch$1_SwitchProps = SwitchProps;
|
|
109
|
+
declare namespace Switch$1 {
|
|
110
|
+
export { type Switch$1_SwitchProps as SwitchProps, Switch as default };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type Variant = 'default' | 'success' | 'warning' | 'error' | 'outline';
|
|
114
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
115
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
116
|
variant?: Variant;
|
|
117
|
+
size?: Size;
|
|
118
|
+
icon?: React.ReactNode;
|
|
119
|
+
closable?: boolean;
|
|
120
|
+
onClose?: () => void;
|
|
121
|
+
}
|
|
122
|
+
declare const Tag: React.FC<TagProps>;
|
|
123
|
+
|
|
124
|
+
type Tag$1_Size = Size;
|
|
125
|
+
type Tag$1_TagProps = TagProps;
|
|
126
|
+
type Tag$1_Variant = Variant;
|
|
127
|
+
declare namespace Tag$1 {
|
|
128
|
+
export { type Tag$1_Size as Size, type Tag$1_TagProps as TagProps, type Tag$1_Variant as Variant, Tag as default };
|
|
9
129
|
}
|
|
10
130
|
|
|
11
|
-
export { App,
|
|
131
|
+
export { App, Button$1 as Button, Carousel$1 as Carousel, Checkbox$1 as Checkbox, Chips$1 as Chips, Input$1 as Input, Select$1 as Select, Slider$1 as Slider, Switch$1 as Switch, Tag$1 as Tag };
|