@rocketui/vue 0.0.101 → 0.0.102

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.
Files changed (157) hide show
  1. package/dist/rocket-ui-vue.js +4 -2
  2. package/dist/rocket-ui-vue.umd.cjs +1 -1
  3. package/dist/src/components/Accordion/Accordion.stories.d.ts +79 -0
  4. package/dist/src/components/Accordion/Accordion.stories.d.ts.map +1 -0
  5. package/dist/src/components/Accordion/RAccordion.vue.d.ts +41 -0
  6. package/dist/src/components/Accordion/RAccordion.vue.d.ts.map +1 -0
  7. package/dist/src/components/Accordion/accordion.spec.d.ts +2 -0
  8. package/dist/src/components/Accordion/accordion.spec.d.ts.map +1 -0
  9. package/dist/src/components/Alert/Alert.stories.d.ts +455 -0
  10. package/dist/src/components/Alert/Alert.stories.d.ts.map +1 -0
  11. package/dist/src/components/Alert/RAlert.vue.d.ts +105 -0
  12. package/dist/src/components/Alert/RAlert.vue.d.ts.map +1 -0
  13. package/dist/src/components/Alert/alert.spec.d.ts +2 -0
  14. package/dist/src/components/Alert/alert.spec.d.ts.map +1 -0
  15. package/dist/src/components/Avatar/Avatar.stories.d.ts +68 -0
  16. package/dist/src/components/Avatar/Avatar.stories.d.ts.map +1 -0
  17. package/dist/src/components/Avatar/RAvatar.vue.d.ts +92 -0
  18. package/dist/src/components/Avatar/RAvatar.vue.d.ts.map +1 -0
  19. package/dist/src/components/Avatar/avatar.spec.d.ts +2 -0
  20. package/dist/src/components/Avatar/avatar.spec.d.ts.map +1 -0
  21. package/dist/src/components/Badge/Badge.stories.d.ts +220 -0
  22. package/dist/src/components/Badge/Badge.stories.d.ts.map +1 -0
  23. package/dist/src/components/Badge/RBadge.vue.d.ts +109 -0
  24. package/dist/src/components/Badge/RBadge.vue.d.ts.map +1 -0
  25. package/dist/src/components/Badge/badge.spec.d.ts +2 -0
  26. package/dist/src/components/Badge/badge.spec.d.ts.map +1 -0
  27. package/dist/src/components/Box/Box.stories.d.ts +167 -0
  28. package/dist/src/components/Box/Box.stories.d.ts.map +1 -0
  29. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts +111 -0
  30. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -0
  31. package/dist/src/components/Breadcrumb/RBreadcrumb.vue.d.ts +50 -0
  32. package/dist/src/components/Breadcrumb/RBreadcrumb.vue.d.ts.map +1 -0
  33. package/dist/src/components/Button/Button.spec.d.ts +2 -0
  34. package/dist/src/components/Button/Button.spec.d.ts.map +1 -0
  35. package/dist/src/components/Button/Button.stories.d.ts +541 -0
  36. package/dist/src/components/Button/Button.stories.d.ts.map +1 -0
  37. package/dist/src/components/Button/RButton.vue.d.ts +149 -0
  38. package/dist/src/components/Button/RButton.vue.d.ts.map +1 -0
  39. package/dist/src/components/Checkbox/Checkbox.stories.d.ts +88 -0
  40. package/dist/src/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
  41. package/dist/src/components/Checkbox/RCheckbox.vue.d.ts +120 -0
  42. package/dist/src/components/Checkbox/RCheckbox.vue.d.ts.map +1 -0
  43. package/dist/src/components/Checkbox/checkbox.spec.d.ts +2 -0
  44. package/dist/src/components/Checkbox/checkbox.spec.d.ts.map +1 -0
  45. package/dist/src/components/Chips/Chip.stories.d.ts +499 -0
  46. package/dist/src/components/Chips/Chip.stories.d.ts.map +1 -0
  47. package/dist/src/components/Chips/RChip.vue.d.ts +117 -0
  48. package/dist/src/components/Chips/RChip.vue.d.ts.map +1 -0
  49. package/dist/src/components/Chips/chip.spec.d.ts +2 -0
  50. package/dist/src/components/Chips/chip.spec.d.ts.map +1 -0
  51. package/dist/src/components/Dropdown/Dropdown.stories.d.ts +439 -0
  52. package/dist/src/components/Dropdown/Dropdown.stories.d.ts.map +1 -0
  53. package/dist/src/components/Dropdown/RDropdown.vue.d.ts +263 -0
  54. package/dist/src/components/Dropdown/RDropdown.vue.d.ts.map +1 -0
  55. package/dist/src/components/Dropdown/dropdown.spec.d.ts +2 -0
  56. package/dist/src/components/Dropdown/dropdown.spec.d.ts.map +1 -0
  57. package/dist/src/components/Icon/Icon.stories.d.ts +39 -0
  58. package/dist/src/components/Icon/Icon.stories.d.ts.map +1 -0
  59. package/dist/src/components/Icon/RIcon.vue.d.ts +59 -0
  60. package/dist/src/components/Icon/RIcon.vue.d.ts.map +1 -0
  61. package/dist/src/components/Icon/icon.spec.d.ts +2 -0
  62. package/dist/src/components/Icon/icon.spec.d.ts.map +1 -0
  63. package/dist/src/components/ItemGroup/ItemGroup.stories.d.ts +215 -0
  64. package/dist/src/components/ItemGroup/ItemGroup.stories.d.ts.map +1 -0
  65. package/dist/src/components/ItemGroup/RItem.vue.d.ts +75 -0
  66. package/dist/src/components/ItemGroup/RItem.vue.d.ts.map +1 -0
  67. package/dist/src/components/ItemGroup/RItemGroup.vue.d.ts +123 -0
  68. package/dist/src/components/ItemGroup/RItemGroup.vue.d.ts.map +1 -0
  69. package/dist/src/components/ItemGroup/itemgroup.spec.d.ts +2 -0
  70. package/dist/src/components/ItemGroup/itemgroup.spec.d.ts.map +1 -0
  71. package/dist/src/components/Label/Label.stories.d.ts +133 -0
  72. package/dist/src/components/Label/Label.stories.d.ts.map +1 -0
  73. package/dist/src/components/Label/RLabel.vue.d.ts +68 -0
  74. package/dist/src/components/Label/RLabel.vue.d.ts.map +1 -0
  75. package/dist/src/components/Modal/Modal.stories.d.ts +253 -0
  76. package/dist/src/components/Modal/Modal.stories.d.ts.map +1 -0
  77. package/dist/src/components/Modal/RModal.vue.d.ts +139 -0
  78. package/dist/src/components/Modal/RModal.vue.d.ts.map +1 -0
  79. package/dist/src/components/Modal/modal.spec.d.ts +2 -0
  80. package/dist/src/components/Modal/modal.spec.d.ts.map +1 -0
  81. package/dist/src/components/Pagination/Pagination.stories.d.ts +207 -0
  82. package/dist/src/components/Pagination/Pagination.stories.d.ts.map +1 -0
  83. package/dist/src/components/Pagination/RPagination.vue.d.ts +62 -0
  84. package/dist/src/components/Pagination/RPagination.vue.d.ts.map +1 -0
  85. package/dist/src/components/Pagination/pagination.spec.d.ts +2 -0
  86. package/dist/src/components/Pagination/pagination.spec.d.ts.map +1 -0
  87. package/dist/src/components/ProgressBar/Progressbar.stories.d.ts +30 -0
  88. package/dist/src/components/ProgressBar/Progressbar.stories.d.ts.map +1 -0
  89. package/dist/src/components/ProgressBar/RProgressbar.vue.d.ts +34 -0
  90. package/dist/src/components/ProgressBar/RProgressbar.vue.d.ts.map +1 -0
  91. package/dist/src/components/ProgressBar/progressbar.spec.d.ts +2 -0
  92. package/dist/src/components/ProgressBar/progressbar.spec.d.ts.map +1 -0
  93. package/dist/src/components/Shared/Enums.d.ts +2 -0
  94. package/dist/src/components/Shared/Enums.d.ts.map +1 -0
  95. package/dist/src/components/Sidebar/RSidebar.vue.d.ts +49 -0
  96. package/dist/src/components/Sidebar/RSidebar.vue.d.ts.map +1 -0
  97. package/dist/src/components/Sidebar/Sidebar.stories.d.ts +159 -0
  98. package/dist/src/components/Sidebar/Sidebar.stories.d.ts.map +1 -0
  99. package/dist/src/components/Sidebar/sidebar.spec.d.ts +2 -0
  100. package/dist/src/components/Sidebar/sidebar.spec.d.ts.map +1 -0
  101. package/dist/src/components/Snackbar/RSnackbar.vue.d.ts +113 -0
  102. package/dist/src/components/Snackbar/RSnackbar.vue.d.ts.map +1 -0
  103. package/dist/src/components/Snackbar/Snackbar.stories.d.ts +224 -0
  104. package/dist/src/components/Snackbar/Snackbar.stories.d.ts.map +1 -0
  105. package/dist/src/components/Snackbar/snackbar.spec.d.ts +2 -0
  106. package/dist/src/components/Snackbar/snackbar.spec.d.ts.map +1 -0
  107. package/dist/src/components/Switch/RSwitch.vue.d.ts +127 -0
  108. package/dist/src/components/Switch/RSwitch.vue.d.ts.map +1 -0
  109. package/dist/src/components/Switch/Switch.stories.d.ts +96 -0
  110. package/dist/src/components/Switch/Switch.stories.d.ts.map +1 -0
  111. package/dist/src/components/Switch/switch.spec.d.ts +2 -0
  112. package/dist/src/components/Switch/switch.spec.d.ts.map +1 -0
  113. package/dist/src/components/TabItem/RTabItem.vue.d.ts +148 -0
  114. package/dist/src/components/TabItem/RTabItem.vue.d.ts.map +1 -0
  115. package/dist/src/components/TabItem/TabItem.spec.d.ts +2 -0
  116. package/dist/src/components/TabItem/TabItem.spec.d.ts.map +1 -0
  117. package/dist/src/components/TabItem/TabItem.stories.d.ts +288 -0
  118. package/dist/src/components/TabItem/TabItem.stories.d.ts.map +1 -0
  119. package/dist/src/components/TabItem/common.d.ts +7 -0
  120. package/dist/src/components/TabItem/common.d.ts.map +1 -0
  121. package/dist/src/components/Tabs/RTabs.vue.d.ts +95 -0
  122. package/dist/src/components/Tabs/RTabs.vue.d.ts.map +1 -0
  123. package/dist/src/components/Tabs/Tabs.spec.d.ts +2 -0
  124. package/dist/src/components/Tabs/Tabs.spec.d.ts.map +1 -0
  125. package/dist/src/components/Tabs/Tabs.stories.d.ts +186 -0
  126. package/dist/src/components/Tabs/Tabs.stories.d.ts.map +1 -0
  127. package/dist/src/components/Tabs/types.d.ts +11 -0
  128. package/dist/src/components/Tabs/types.d.ts.map +1 -0
  129. package/dist/src/components/TextArea/RTextArea.vue.d.ts +120 -0
  130. package/dist/src/components/TextArea/RTextArea.vue.d.ts.map +1 -0
  131. package/dist/src/components/TextArea/TextArea.stories.d.ts +89 -0
  132. package/dist/src/components/TextArea/TextArea.stories.d.ts.map +1 -0
  133. package/dist/src/components/TextArea/textarea.spec.d.ts +2 -0
  134. package/dist/src/components/TextArea/textarea.spec.d.ts.map +1 -0
  135. package/dist/src/components/Textfield/RTextfield.vue.d.ts +226 -0
  136. package/dist/src/components/Textfield/RTextfield.vue.d.ts.map +1 -0
  137. package/dist/src/components/Textfield/Textfield.stories.d.ts +424 -0
  138. package/dist/src/components/Textfield/Textfield.stories.d.ts.map +1 -0
  139. package/dist/src/components/Textfield/textfield.spec.d.ts +2 -0
  140. package/dist/src/components/Textfield/textfield.spec.d.ts.map +1 -0
  141. package/dist/src/components/Tooltip/RTooltip.vue.d.ts +252 -0
  142. package/dist/src/components/Tooltip/RTooltip.vue.d.ts.map +1 -0
  143. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +458 -0
  144. package/dist/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  145. package/dist/src/components/Tooltip/popper.d.ts +29 -0
  146. package/dist/src/components/Tooltip/popper.d.ts.map +1 -0
  147. package/dist/src/components/Tooltip/tooltip.spec.d.ts +2 -0
  148. package/dist/src/components/Tooltip/tooltip.spec.d.ts.map +1 -0
  149. package/dist/src/directives/index.d.ts +5 -0
  150. package/dist/src/directives/index.d.ts.map +1 -0
  151. package/dist/src/lib/main.d.ts +25 -0
  152. package/dist/src/lib/main.d.ts.map +1 -0
  153. package/dist/src/main.d.ts +1 -0
  154. package/dist/src/main.d.ts.map +1 -0
  155. package/dist/src/shims.d.ts +9 -0
  156. package/package.json +1 -1
  157. package/dist/rocket-ui-vue.d.ts +0 -2890
@@ -0,0 +1,541 @@
1
+ import { V } from '@storybook/vue3/dist/render-ddbe18a8';
2
+ import { ArgsStoryFn } from '@storybook/types';
3
+ import { ButtonSize, ButtonType, ButtonColor } from './RButton.vue';
4
+ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
5
+ import { ComponentPropsAndSlots, Meta, StoryObj } from '@storybook/vue3';
6
+ declare const ButtonStory: Meta<{
7
+ new (...args: any[]): {
8
+ $: ComponentInternalInstance;
9
+ $data: {};
10
+ $props: Partial<{
11
+ height: string;
12
+ size: ButtonSize;
13
+ variant: ButtonType;
14
+ loading: boolean;
15
+ disabled: boolean;
16
+ prependIcon: string;
17
+ appendIcon: string;
18
+ icon: boolean;
19
+ block: boolean;
20
+ }> & Omit<{
21
+ readonly height: string;
22
+ readonly size: ButtonSize;
23
+ readonly variant: ButtonType;
24
+ readonly loading: boolean;
25
+ readonly disabled: boolean;
26
+ readonly prependIcon: string;
27
+ readonly appendIcon: string;
28
+ readonly icon: boolean;
29
+ readonly block: boolean;
30
+ readonly color?: ButtonColor | undefined;
31
+ onClick?: ((...args: any[]) => any) | undefined;
32
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
33
+ height: {
34
+ type: PropType<string>;
35
+ default: string;
36
+ };
37
+ size: {
38
+ type: PropType<ButtonSize>;
39
+ default: string;
40
+ };
41
+ variant: {
42
+ type: PropType<ButtonType>;
43
+ default: string;
44
+ };
45
+ color: {
46
+ type: PropType<ButtonColor>;
47
+ };
48
+ loading: {
49
+ type: PropType<boolean>;
50
+ default: boolean;
51
+ };
52
+ disabled: {
53
+ type: PropType<boolean>;
54
+ default: boolean;
55
+ };
56
+ prependIcon: {
57
+ type: PropType<string>;
58
+ default: string;
59
+ };
60
+ appendIcon: {
61
+ type: PropType<string>;
62
+ default: string;
63
+ };
64
+ icon: {
65
+ type: PropType<boolean>;
66
+ default: boolean;
67
+ };
68
+ block: {
69
+ type: PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ }>> & {
73
+ onClick?: ((...args: any[]) => any) | undefined;
74
+ }, "height" | "size" | "variant" | "loading" | "disabled" | "prependIcon" | "appendIcon" | "icon" | "block">;
75
+ $attrs: {
76
+ [x: string]: unknown;
77
+ };
78
+ $refs: {
79
+ [x: string]: unknown;
80
+ };
81
+ $slots: Readonly<{
82
+ [name: string]: Slot<any> | undefined;
83
+ }>;
84
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
85
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
86
+ $emit: (event: "click", ...args: any[]) => void;
87
+ $el: any;
88
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
89
+ height: {
90
+ type: PropType<string>;
91
+ default: string;
92
+ };
93
+ size: {
94
+ type: PropType<ButtonSize>;
95
+ default: string;
96
+ };
97
+ variant: {
98
+ type: PropType<ButtonType>;
99
+ default: string;
100
+ };
101
+ color: {
102
+ type: PropType<ButtonColor>;
103
+ };
104
+ loading: {
105
+ type: PropType<boolean>;
106
+ default: boolean;
107
+ };
108
+ disabled: {
109
+ type: PropType<boolean>;
110
+ default: boolean;
111
+ };
112
+ prependIcon: {
113
+ type: PropType<string>;
114
+ default: string;
115
+ };
116
+ appendIcon: {
117
+ type: PropType<string>;
118
+ default: string;
119
+ };
120
+ icon: {
121
+ type: PropType<boolean>;
122
+ default: boolean;
123
+ };
124
+ block: {
125
+ type: PropType<boolean>;
126
+ default: boolean;
127
+ };
128
+ }>> & {
129
+ onClick?: ((...args: any[]) => any) | undefined;
130
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
131
+ click: (...args: any[]) => void;
132
+ }, string, {
133
+ height: string;
134
+ size: ButtonSize;
135
+ variant: ButtonType;
136
+ loading: boolean;
137
+ disabled: boolean;
138
+ prependIcon: string;
139
+ appendIcon: string;
140
+ icon: boolean;
141
+ block: boolean;
142
+ }, {}, string, {}> & {
143
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
144
+ created?: ((() => void) | (() => void)[]) | undefined;
145
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
146
+ mounted?: ((() => void) | (() => void)[]) | undefined;
147
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
148
+ updated?: ((() => void) | (() => void)[]) | undefined;
149
+ activated?: ((() => void) | (() => void)[]) | undefined;
150
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
151
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
152
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
153
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
154
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
155
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
156
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
157
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
158
+ };
159
+ $forceUpdate: () => void;
160
+ $nextTick: typeof nextTick;
161
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
162
+ } & Readonly<ExtractPropTypes<{
163
+ height: {
164
+ type: PropType<string>;
165
+ default: string;
166
+ };
167
+ size: {
168
+ type: PropType<ButtonSize>;
169
+ default: string;
170
+ };
171
+ variant: {
172
+ type: PropType<ButtonType>;
173
+ default: string;
174
+ };
175
+ color: {
176
+ type: PropType<ButtonColor>;
177
+ };
178
+ loading: {
179
+ type: PropType<boolean>;
180
+ default: boolean;
181
+ };
182
+ disabled: {
183
+ type: PropType<boolean>;
184
+ default: boolean;
185
+ };
186
+ prependIcon: {
187
+ type: PropType<string>;
188
+ default: string;
189
+ };
190
+ appendIcon: {
191
+ type: PropType<string>;
192
+ default: string;
193
+ };
194
+ icon: {
195
+ type: PropType<boolean>;
196
+ default: boolean;
197
+ };
198
+ block: {
199
+ type: PropType<boolean>;
200
+ default: boolean;
201
+ };
202
+ }>> & {
203
+ onClick?: ((...args: any[]) => any) | undefined;
204
+ } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
205
+ __isFragment?: undefined;
206
+ __isTeleport?: undefined;
207
+ __isSuspense?: undefined;
208
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
209
+ height: {
210
+ type: PropType<string>;
211
+ default: string;
212
+ };
213
+ size: {
214
+ type: PropType<ButtonSize>;
215
+ default: string;
216
+ };
217
+ variant: {
218
+ type: PropType<ButtonType>;
219
+ default: string;
220
+ };
221
+ color: {
222
+ type: PropType<ButtonColor>;
223
+ };
224
+ loading: {
225
+ type: PropType<boolean>;
226
+ default: boolean;
227
+ };
228
+ disabled: {
229
+ type: PropType<boolean>;
230
+ default: boolean;
231
+ };
232
+ prependIcon: {
233
+ type: PropType<string>;
234
+ default: string;
235
+ };
236
+ appendIcon: {
237
+ type: PropType<string>;
238
+ default: string;
239
+ };
240
+ icon: {
241
+ type: PropType<boolean>;
242
+ default: boolean;
243
+ };
244
+ block: {
245
+ type: PropType<boolean>;
246
+ default: boolean;
247
+ };
248
+ }>> & {
249
+ onClick?: ((...args: any[]) => any) | undefined;
250
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
251
+ click: (...args: any[]) => void;
252
+ }, string, {
253
+ height: string;
254
+ size: ButtonSize;
255
+ variant: ButtonType;
256
+ loading: boolean;
257
+ disabled: boolean;
258
+ prependIcon: string;
259
+ appendIcon: string;
260
+ icon: boolean;
261
+ block: boolean;
262
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
263
+ $slots: {
264
+ prepend?(_: {}): any;
265
+ default?(_: {}): any;
266
+ append?(_: {}): any;
267
+ };
268
+ })>;
269
+ export default ButtonStory;
270
+ declare type Story = StoryObj<typeof ButtonStory>;
271
+ export declare const Overview: Story;
272
+ export declare const Default: Story;
273
+ export declare const Outline: Story;
274
+ export declare const Text: Story;
275
+ export declare const IconButton: Story;
276
+ export declare const CustomIcon: {
277
+ render: ArgsStoryFn<V, ComponentPropsAndSlots<{
278
+ new (...args: any[]): {
279
+ $: ComponentInternalInstance;
280
+ $data: {};
281
+ $props: Partial<{
282
+ height: string;
283
+ size: ButtonSize;
284
+ variant: ButtonType;
285
+ loading: boolean;
286
+ disabled: boolean;
287
+ prependIcon: string;
288
+ appendIcon: string;
289
+ icon: boolean;
290
+ block: boolean;
291
+ }> & Omit<{
292
+ readonly height: string;
293
+ readonly size: ButtonSize;
294
+ readonly variant: ButtonType;
295
+ readonly loading: boolean;
296
+ readonly disabled: boolean;
297
+ readonly prependIcon: string;
298
+ readonly appendIcon: string;
299
+ readonly icon: boolean;
300
+ readonly block: boolean;
301
+ readonly color?: ButtonColor | undefined;
302
+ onClick?: ((...args: any[]) => any) | undefined;
303
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
304
+ height: {
305
+ type: PropType<string>;
306
+ default: string;
307
+ };
308
+ size: {
309
+ type: PropType<ButtonSize>;
310
+ default: string;
311
+ };
312
+ variant: {
313
+ type: PropType<ButtonType>;
314
+ default: string;
315
+ };
316
+ color: {
317
+ type: PropType<ButtonColor>;
318
+ };
319
+ loading: {
320
+ type: PropType<boolean>;
321
+ default: boolean;
322
+ };
323
+ disabled: {
324
+ type: PropType<boolean>;
325
+ default: boolean;
326
+ };
327
+ prependIcon: {
328
+ type: PropType<string>;
329
+ default: string;
330
+ };
331
+ appendIcon: {
332
+ type: PropType<string>;
333
+ default: string;
334
+ };
335
+ icon: {
336
+ type: PropType<boolean>;
337
+ default: boolean;
338
+ };
339
+ block: {
340
+ type: PropType<boolean>;
341
+ default: boolean;
342
+ };
343
+ }>> & {
344
+ onClick?: ((...args: any[]) => any) | undefined;
345
+ }, "height" | "size" | "variant" | "loading" | "disabled" | "prependIcon" | "appendIcon" | "icon" | "block">;
346
+ $attrs: {
347
+ [x: string]: unknown;
348
+ };
349
+ $refs: {
350
+ [x: string]: unknown;
351
+ };
352
+ $slots: Readonly<{
353
+ [name: string]: Slot<any> | undefined;
354
+ }>;
355
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
356
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
357
+ $emit: (event: "click", ...args: any[]) => void;
358
+ $el: any;
359
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
360
+ height: {
361
+ type: PropType<string>;
362
+ default: string;
363
+ };
364
+ size: {
365
+ type: PropType<ButtonSize>;
366
+ default: string;
367
+ };
368
+ variant: {
369
+ type: PropType<ButtonType>;
370
+ default: string;
371
+ };
372
+ color: {
373
+ type: PropType<ButtonColor>;
374
+ };
375
+ loading: {
376
+ type: PropType<boolean>;
377
+ default: boolean;
378
+ };
379
+ disabled: {
380
+ type: PropType<boolean>;
381
+ default: boolean;
382
+ };
383
+ prependIcon: {
384
+ type: PropType<string>;
385
+ default: string;
386
+ };
387
+ appendIcon: {
388
+ type: PropType<string>;
389
+ default: string;
390
+ };
391
+ icon: {
392
+ type: PropType<boolean>;
393
+ default: boolean;
394
+ };
395
+ block: {
396
+ type: PropType<boolean>;
397
+ default: boolean;
398
+ };
399
+ }>> & {
400
+ onClick?: ((...args: any[]) => any) | undefined;
401
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
402
+ click: (...args: any[]) => void;
403
+ }, string, {
404
+ height: string;
405
+ size: ButtonSize;
406
+ variant: ButtonType;
407
+ loading: boolean;
408
+ disabled: boolean;
409
+ prependIcon: string;
410
+ appendIcon: string;
411
+ icon: boolean;
412
+ block: boolean;
413
+ }, {}, string, {}> & {
414
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
415
+ created?: ((() => void) | (() => void)[]) | undefined;
416
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
417
+ mounted?: ((() => void) | (() => void)[]) | undefined;
418
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
419
+ updated?: ((() => void) | (() => void)[]) | undefined;
420
+ activated?: ((() => void) | (() => void)[]) | undefined;
421
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
422
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
423
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
424
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
425
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
426
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
427
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
428
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
429
+ };
430
+ $forceUpdate: () => void;
431
+ $nextTick: typeof nextTick;
432
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
433
+ } & Readonly<ExtractPropTypes<{
434
+ height: {
435
+ type: PropType<string>;
436
+ default: string;
437
+ };
438
+ size: {
439
+ type: PropType<ButtonSize>;
440
+ default: string;
441
+ };
442
+ variant: {
443
+ type: PropType<ButtonType>;
444
+ default: string;
445
+ };
446
+ color: {
447
+ type: PropType<ButtonColor>;
448
+ };
449
+ loading: {
450
+ type: PropType<boolean>;
451
+ default: boolean;
452
+ };
453
+ disabled: {
454
+ type: PropType<boolean>;
455
+ default: boolean;
456
+ };
457
+ prependIcon: {
458
+ type: PropType<string>;
459
+ default: string;
460
+ };
461
+ appendIcon: {
462
+ type: PropType<string>;
463
+ default: string;
464
+ };
465
+ icon: {
466
+ type: PropType<boolean>;
467
+ default: boolean;
468
+ };
469
+ block: {
470
+ type: PropType<boolean>;
471
+ default: boolean;
472
+ };
473
+ }>> & {
474
+ onClick?: ((...args: any[]) => any) | undefined;
475
+ } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
476
+ __isFragment?: undefined;
477
+ __isTeleport?: undefined;
478
+ __isSuspense?: undefined;
479
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
480
+ height: {
481
+ type: PropType<string>;
482
+ default: string;
483
+ };
484
+ size: {
485
+ type: PropType<ButtonSize>;
486
+ default: string;
487
+ };
488
+ variant: {
489
+ type: PropType<ButtonType>;
490
+ default: string;
491
+ };
492
+ color: {
493
+ type: PropType<ButtonColor>;
494
+ };
495
+ loading: {
496
+ type: PropType<boolean>;
497
+ default: boolean;
498
+ };
499
+ disabled: {
500
+ type: PropType<boolean>;
501
+ default: boolean;
502
+ };
503
+ prependIcon: {
504
+ type: PropType<string>;
505
+ default: string;
506
+ };
507
+ appendIcon: {
508
+ type: PropType<string>;
509
+ default: string;
510
+ };
511
+ icon: {
512
+ type: PropType<boolean>;
513
+ default: boolean;
514
+ };
515
+ block: {
516
+ type: PropType<boolean>;
517
+ default: boolean;
518
+ };
519
+ }>> & {
520
+ onClick?: ((...args: any[]) => any) | undefined;
521
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
522
+ click: (...args: any[]) => void;
523
+ }, string, {
524
+ height: string;
525
+ size: ButtonSize;
526
+ variant: ButtonType;
527
+ loading: boolean;
528
+ disabled: boolean;
529
+ prependIcon: string;
530
+ appendIcon: string;
531
+ icon: boolean;
532
+ block: boolean;
533
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
534
+ $slots: {
535
+ prepend?(_: {}): any;
536
+ default?(_: {}): any;
537
+ append?(_: {}): any;
538
+ };
539
+ })>> | undefined;
540
+ };
541
+ //# sourceMappingURL=Button.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AA2CrD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcO,CAAA;AAExB,eAAe,WAAW,CAAA;AAE1B,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEtB,CAAA"}
@@ -0,0 +1,149 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ export declare type ButtonType = 'default' | 'text' | 'outline';
3
+ export declare type ButtonColor = 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info';
4
+ export declare type ButtonSize = 'small' | 'medium' | 'large';
5
+ export interface Props {
6
+ /**
7
+ * Variant of the Button
8
+ * @type { 'default' | 'text' | 'outline' | 'ghost'}
9
+ * @default 'default'
10
+ * @example
11
+ * <Button variant="default" />
12
+ */
13
+ variant?: ButtonType;
14
+ /**
15
+ * Color of the Button
16
+ * @type { 'primary' | 'secondary' | 'danger'}
17
+ * @default 'primary'
18
+ * @example
19
+ * <Button color="primary" />
20
+ */
21
+ color?: ButtonColor;
22
+ /**
23
+ * Loading state of the Button
24
+ * @type { boolean }
25
+ * @default false
26
+ * @example
27
+ * <Button loading />
28
+ */
29
+ loading?: boolean;
30
+ /**
31
+ * Disabled state of the Button
32
+ * @type { boolean }
33
+ * @default false
34
+ * @example
35
+ * <Button disabled />
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Prepend icon of the Button
40
+ * @type { string }
41
+ * @default ''
42
+ * @example
43
+ * <Button prependIcon="icon" />
44
+ */
45
+ prependIcon?: string;
46
+ /**
47
+ * Append icon of the Button
48
+ * @type { string }
49
+ * @default ''
50
+ * @example
51
+ * <Button appendIcon="icon" />
52
+ */
53
+ appendIcon?: string;
54
+ /**
55
+ * Only icon state of the Button
56
+ * @type { boolean }
57
+ * @default false
58
+ * @example
59
+ * <Button icon />
60
+ */
61
+ icon?: boolean;
62
+ /**
63
+ * Size of the Button
64
+ * @type { 'small' | 'medium' | 'large' }
65
+ * @default 'medium'
66
+ * @example
67
+ * <Button size="small" />
68
+ */
69
+ size?: ButtonSize;
70
+ /**
71
+ * Height of the Button
72
+ * @type { string }
73
+ * @default ''
74
+ * @example
75
+ * <Button height="40" />
76
+ */
77
+ height?: string;
78
+ /**
79
+ * Block state of the Button
80
+ * @type { boolean }
81
+ * @default false
82
+ * @example
83
+ * <Button block />
84
+ */
85
+ block?: boolean;
86
+ }
87
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
88
+ variant: string;
89
+ loading: boolean;
90
+ disabled: boolean;
91
+ prependIcon: string;
92
+ appendIcon: string;
93
+ icon: boolean;
94
+ size: string;
95
+ height: string;
96
+ block: boolean;
97
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
+ click: (...args: any[]) => void;
99
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
100
+ variant: string;
101
+ loading: boolean;
102
+ disabled: boolean;
103
+ prependIcon: string;
104
+ appendIcon: string;
105
+ icon: boolean;
106
+ size: string;
107
+ height: string;
108
+ block: boolean;
109
+ }>>> & {
110
+ onClick?: ((...args: any[]) => any) | undefined;
111
+ }, {
112
+ height: string;
113
+ size: ButtonSize;
114
+ variant: ButtonType;
115
+ loading: boolean;
116
+ disabled: boolean;
117
+ prependIcon: string;
118
+ appendIcon: string;
119
+ icon: boolean;
120
+ block: boolean;
121
+ }, {}>, {
122
+ prepend?(_: {}): any;
123
+ default?(_: {}): any;
124
+ append?(_: {}): any;
125
+ }>;
126
+ export default _default;
127
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
128
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
129
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
130
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
131
+ } : {
132
+ type: PropType<T[K]>;
133
+ required: true;
134
+ };
135
+ };
136
+ declare type __VLS_WithDefaults<P, D> = {
137
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
138
+ default: D[K];
139
+ }> : P[K];
140
+ };
141
+ declare type __VLS_Prettify<T> = {
142
+ [K in keyof T]: T[K];
143
+ } & {};
144
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
145
+ new (): {
146
+ $slots: S;
147
+ };
148
+ };
149
+ //# sourceMappingURL=RButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/RButton.vue"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAIrB,oBAAY,UAAU,GAClB,SAAS,GACT,MAAM,GACN,SAAS,CAAA;AAEb,oBAAY,WAAW,GAAK,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;AAC/F,oBAAY,UAAU,GAAK,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AACvD,MAAM,WAAW,KAAK;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,UAAU,CAAA;IAEpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6KD,wBAAwG;AAGxG,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}