@rocketui/vue 0.0.9 → 0.0.11

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,159 +0,0 @@
1
- import { type HTMLAttributes, type InputHTMLAttributes, type LabelHTMLAttributes } from 'vue';
2
- export interface Props {
3
- /**
4
- * id of the checkbox
5
- * @type HTMLAttributes['id']
6
- * @default ''
7
- * @example
8
- * <Checkbox id="checkbox" />
9
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
10
- */
11
- id: HTMLAttributes['id'];
12
- /**
13
- * Input checked state
14
- * @type InputHTMLAttributes['checked']
15
- * @default false
16
- * @example
17
- * <Checkbox modelValue="true" />
18
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#checked
19
- */
20
- modelValue?: InputHTMLAttributes['checked'];
21
- /**
22
- * Input disabled state
23
- * @type InputHTMLAttributes['disabled']
24
- * @default false
25
- * @example
26
- * <Checkbox disabled="true" />
27
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#disabled
28
- */
29
- disabled?: InputHTMLAttributes['disabled'];
30
- /**
31
- * label of the checkbox
32
- * @type LabelHTMLAttributes['label']
33
- * @default ''
34
- * @example
35
- * <Checkbox label="Checkbox" />
36
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
37
- */
38
- label?: LabelHTMLAttributes['for'];
39
- /**
40
- * Hint text
41
- * @type string
42
- * @default ''
43
- * @example
44
- * <Checkbox hint="This is a hint" />
45
- */
46
- hint?: string;
47
- /**
48
- * Error message
49
- * @type string
50
- * @default ''
51
- * @example
52
- * <Checkbox errorMsg="This is an error" />
53
- */
54
- errorMsg?: string;
55
- /**
56
- * Size of the checkbox
57
- * @type 'small' | 'medium' | 'large'
58
- * @default 'medium'
59
- * @example
60
- * <Checkbox size="small" />
61
- */
62
- size?: 'small' | 'medium' | 'large';
63
- }
64
- declare const _sfc_main: import("vue").DefineComponent<{
65
- id: {
66
- type: any;
67
- required: true;
68
- default: string;
69
- };
70
- modelValue: {
71
- type: any;
72
- required: false;
73
- default: boolean;
74
- };
75
- disabled: {
76
- type: any;
77
- required: false;
78
- default: boolean;
79
- };
80
- label: {
81
- type: any;
82
- required: false;
83
- default: string;
84
- };
85
- hint: {
86
- type: StringConstructor;
87
- required: false;
88
- default: string;
89
- };
90
- errorMsg: {
91
- type: StringConstructor;
92
- required: false;
93
- default: string;
94
- };
95
- size: {
96
- type: StringConstructor;
97
- required: false;
98
- default: string;
99
- };
100
- }, {
101
- props: any;
102
- emit: (event: "update:modelValue", ...args: any[]) => void;
103
- state: {
104
- checked: InputHTMLAttributes['checked'];
105
- };
106
- classes: import("vue").ComputedRef<{
107
- [x: string]: string | boolean;
108
- switch: boolean;
109
- 'switch--disabled': boolean | "true" | "false";
110
- 'switch--error': string;
111
- }>;
112
- onChange: (e: unknown) => void;
113
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
114
- id: {
115
- type: any;
116
- required: true;
117
- default: string;
118
- };
119
- modelValue: {
120
- type: any;
121
- required: false;
122
- default: boolean;
123
- };
124
- disabled: {
125
- type: any;
126
- required: false;
127
- default: boolean;
128
- };
129
- label: {
130
- type: any;
131
- required: false;
132
- default: string;
133
- };
134
- hint: {
135
- type: StringConstructor;
136
- required: false;
137
- default: string;
138
- };
139
- errorMsg: {
140
- type: StringConstructor;
141
- required: false;
142
- default: string;
143
- };
144
- size: {
145
- type: StringConstructor;
146
- required: false;
147
- default: string;
148
- };
149
- }>> & {
150
- "onUpdate:modelValue"?: (...args: any[]) => any;
151
- }, {
152
- size: string;
153
- disabled: any;
154
- modelValue: any;
155
- label: any;
156
- hint: string;
157
- errorMsg: string;
158
- }>;
159
- export default _sfc_main;
@@ -1,220 +0,0 @@
1
- import { type HTMLAttributes, type ButtonHTMLAttributes } from 'vue';
2
- import { TabItemVariants, type TabItemVariant } from './common';
3
- export interface IProps {
4
- /**
5
- * Id of the tab item
6
- * @type string | number
7
- * @default ''
8
- * @example
9
- * <TabItem id="1" />
10
- */
11
- id: string | number;
12
- /**
13
- * Variant of the tab item
14
- * @type TabItemVariant
15
- * @default TabItemVariants.DEFAULT
16
- * @example
17
- * <TabItem variant="default" />
18
- */
19
- variant?: TabItemVariant;
20
- /**
21
- * Label of the tab item
22
- * @type string
23
- * @default ''
24
- * @example
25
- * <TabItem label="Label" />
26
- */
27
- label?: string;
28
- /**
29
- * Icon of the tab item
30
- * @type string
31
- * @default ''
32
- * @example
33
- * <TabItem icon="icon" />
34
- */
35
- icon?: string;
36
- /**
37
- * Disabled state of the tab item
38
- * @type ButtonHTMLAttributes['disabled']
39
- * @default false
40
- * @example
41
- * <TabItem disabled />
42
- */
43
- disabled?: ButtonHTMLAttributes['disabled'];
44
- /**
45
- * Active state of the tab item
46
- * @type HTMLAttributes['aria-selected']
47
- * @default false
48
- * @example
49
- * <TabItem active />
50
- */
51
- active?: HTMLAttributes['aria-selected'];
52
- /**
53
- * Model value of the tab item
54
- * @type string | number
55
- * @default ''
56
- * @example
57
- * <TabItem v-model="model" />
58
- */
59
- modelValue?: string | number;
60
- }
61
- declare const _sfc_main: import("vue").DefineComponent<{
62
- id: {
63
- type: (StringConstructor | NumberConstructor)[];
64
- required: true;
65
- };
66
- variant: {
67
- type: any;
68
- required: false;
69
- default: TabItemVariants;
70
- };
71
- label: {
72
- type: StringConstructor;
73
- required: false;
74
- default: string;
75
- };
76
- icon: {
77
- type: StringConstructor;
78
- required: false;
79
- default: string;
80
- };
81
- disabled: {
82
- type: any;
83
- required: false;
84
- default: boolean;
85
- };
86
- active: {
87
- type: any;
88
- required: false;
89
- default: boolean;
90
- };
91
- modelValue: {
92
- type: (StringConstructor | NumberConstructor)[];
93
- required: false;
94
- default: string;
95
- };
96
- }, {
97
- props: any;
98
- emit: (event: "update:modelValue", ...args: any[]) => void;
99
- classes: import("vue").ComputedRef<{
100
- [x: string]: boolean;
101
- 'tab-item': boolean;
102
- }>;
103
- onClick: (id: number | string) => void;
104
- Icon: import("vue").DefineComponent<{
105
- name: {
106
- type: StringConstructor;
107
- required: true;
108
- default: string;
109
- };
110
- kind: {
111
- type: StringConstructor;
112
- required: false;
113
- default: string;
114
- };
115
- fontSize: {
116
- type: any;
117
- required: false;
118
- default: number;
119
- };
120
- color: {
121
- type: any;
122
- required: false;
123
- default: string;
124
- };
125
- fontWeight: {
126
- type: any;
127
- required: false;
128
- default: string;
129
- };
130
- }, {
131
- props: any;
132
- styles: import("vue").ComputedRef<{
133
- fontSize: string;
134
- fontWeight: import("csstype").FontWeightProperty;
135
- color: string;
136
- display: string;
137
- alignItems: string;
138
- justifyContent: string;
139
- }>;
140
- classes: import("vue").ComputedRef<string>;
141
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
142
- name: {
143
- type: StringConstructor;
144
- required: true;
145
- default: string;
146
- };
147
- kind: {
148
- type: StringConstructor;
149
- required: false;
150
- default: string;
151
- };
152
- fontSize: {
153
- type: any;
154
- required: false;
155
- default: number;
156
- };
157
- color: {
158
- type: any;
159
- required: false;
160
- default: string;
161
- };
162
- fontWeight: {
163
- type: any;
164
- required: false;
165
- default: string;
166
- };
167
- }>>, {
168
- name: string;
169
- kind: string;
170
- fontSize: any;
171
- color: any;
172
- fontWeight: any;
173
- }>;
174
- TabItemVariants: typeof TabItemVariants;
175
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
176
- id: {
177
- type: (StringConstructor | NumberConstructor)[];
178
- required: true;
179
- };
180
- variant: {
181
- type: any;
182
- required: false;
183
- default: TabItemVariants;
184
- };
185
- label: {
186
- type: StringConstructor;
187
- required: false;
188
- default: string;
189
- };
190
- icon: {
191
- type: StringConstructor;
192
- required: false;
193
- default: string;
194
- };
195
- disabled: {
196
- type: any;
197
- required: false;
198
- default: boolean;
199
- };
200
- active: {
201
- type: any;
202
- required: false;
203
- default: boolean;
204
- };
205
- modelValue: {
206
- type: (StringConstructor | NumberConstructor)[];
207
- required: false;
208
- default: string;
209
- };
210
- }>> & {
211
- "onUpdate:modelValue"?: (...args: any[]) => any;
212
- }, {
213
- variant: any;
214
- disabled: any;
215
- modelValue: string | number;
216
- label: string;
217
- icon: string;
218
- active: any;
219
- }>;
220
- export default _sfc_main;
@@ -1,6 +0,0 @@
1
- export declare type TabItemVariant = 'default' | 'text-only' | 'icon-only';
2
- export declare enum TabItemVariants {
3
- DEFAULT = "default",
4
- TEXT_ONLY = "text-only",
5
- ICON_ONLY = "icon-only"
6
- }
@@ -1,212 +0,0 @@
1
- import type { Tab } from './types';
2
- export interface IProps {
3
- /**
4
- * Tabs of the tabs
5
- * @type Tab[]
6
- * @default []
7
- * @example
8
- * <Tabs :tabs="[]" />
9
- */
10
- tabs: Tab[];
11
- /**
12
- * Scrollable state of the tabs
13
- * @type boolean
14
- * @default false
15
- * @example
16
- * <Tabs scrollable />
17
- */
18
- scrollable?: boolean;
19
- }
20
- declare const _sfc_main: import("vue").DefineComponent<{
21
- tabs: {
22
- type: ArrayConstructor;
23
- required: true;
24
- default: () => any[];
25
- };
26
- scrollable: {
27
- type: BooleanConstructor;
28
- required: false;
29
- default: boolean;
30
- };
31
- }, {
32
- props: any;
33
- activeTab: import("vue").Ref<number>;
34
- tabsClasses: import("vue").ComputedRef<{
35
- tabs: boolean;
36
- 'tabs--scrollable': boolean;
37
- }>;
38
- TabItem: import("vue").DefineComponent<{
39
- id: {
40
- type: (StringConstructor | NumberConstructor)[];
41
- required: true;
42
- };
43
- variant: {
44
- type: any;
45
- required: false;
46
- default: import("../TabItem/common").TabItemVariants;
47
- };
48
- label: {
49
- type: StringConstructor;
50
- required: false;
51
- default: string;
52
- };
53
- icon: {
54
- type: StringConstructor;
55
- required: false;
56
- default: string;
57
- };
58
- disabled: {
59
- type: any;
60
- required: false;
61
- default: boolean;
62
- };
63
- active: {
64
- type: any;
65
- required: false;
66
- default: boolean;
67
- };
68
- modelValue: {
69
- type: (StringConstructor | NumberConstructor)[];
70
- required: false;
71
- default: string;
72
- };
73
- }, {
74
- props: any;
75
- emit: (event: "update:modelValue", ...args: any[]) => void;
76
- classes: import("vue").ComputedRef<{
77
- [x: string]: boolean;
78
- 'tab-item': boolean;
79
- }>;
80
- onClick: (id: string | number) => void;
81
- Icon: import("vue").DefineComponent<{
82
- name: {
83
- type: StringConstructor;
84
- required: true;
85
- default: string;
86
- };
87
- kind: {
88
- type: StringConstructor;
89
- required: false;
90
- default: string;
91
- };
92
- fontSize: {
93
- type: any;
94
- required: false;
95
- default: number;
96
- };
97
- color: {
98
- type: any;
99
- required: false;
100
- default: string;
101
- };
102
- fontWeight: {
103
- type: any;
104
- required: false;
105
- default: string;
106
- };
107
- }, {
108
- props: any;
109
- styles: import("vue").ComputedRef<{
110
- fontSize: string;
111
- fontWeight: import("csstype").FontWeightProperty;
112
- color: string;
113
- display: string;
114
- alignItems: string;
115
- justifyContent: string;
116
- }>;
117
- classes: import("vue").ComputedRef<string>;
118
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
119
- name: {
120
- type: StringConstructor;
121
- required: true;
122
- default: string;
123
- };
124
- kind: {
125
- type: StringConstructor;
126
- required: false;
127
- default: string;
128
- };
129
- fontSize: {
130
- type: any;
131
- required: false;
132
- default: number;
133
- };
134
- color: {
135
- type: any;
136
- required: false;
137
- default: string;
138
- };
139
- fontWeight: {
140
- type: any;
141
- required: false;
142
- default: string;
143
- };
144
- }>>, {
145
- name: string;
146
- kind: string;
147
- fontSize: any;
148
- color: any;
149
- fontWeight: any;
150
- }>;
151
- TabItemVariants: typeof import("../TabItem/common").TabItemVariants;
152
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
153
- id: {
154
- type: (StringConstructor | NumberConstructor)[];
155
- required: true;
156
- };
157
- variant: {
158
- type: any;
159
- required: false;
160
- default: import("../TabItem/common").TabItemVariants;
161
- };
162
- label: {
163
- type: StringConstructor;
164
- required: false;
165
- default: string;
166
- };
167
- icon: {
168
- type: StringConstructor;
169
- required: false;
170
- default: string;
171
- };
172
- disabled: {
173
- type: any;
174
- required: false;
175
- default: boolean;
176
- };
177
- active: {
178
- type: any;
179
- required: false;
180
- default: boolean;
181
- };
182
- modelValue: {
183
- type: (StringConstructor | NumberConstructor)[];
184
- required: false;
185
- default: string;
186
- };
187
- }>> & {
188
- "onUpdate:modelValue"?: (...args: any[]) => any;
189
- }, {
190
- variant: any;
191
- disabled: any;
192
- modelValue: string | number;
193
- label: string;
194
- icon: string;
195
- active: any;
196
- }>;
197
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
198
- tabs: {
199
- type: ArrayConstructor;
200
- required: true;
201
- default: () => any[];
202
- };
203
- scrollable: {
204
- type: BooleanConstructor;
205
- required: false;
206
- default: boolean;
207
- };
208
- }>>, {
209
- tabs: unknown[];
210
- scrollable: boolean;
211
- }>;
212
- export default _sfc_main;
@@ -1,9 +0,0 @@
1
- import type { TabItemVariant } from '../TabItem/common';
2
- export declare type Tab = {
3
- id: string | number;
4
- variant?: TabItemVariant;
5
- label?: string;
6
- icon?: string;
7
- disabled?: boolean;
8
- active?: boolean;
9
- };