@rocketui/vue 0.2.80 → 0.3.0-alpha.2

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 (165) hide show
  1. package/README.md +47 -1
  2. package/dist/rocket-ui-vue.d.ts +3414 -0
  3. package/dist/rocket-ui-vue.js +847 -747
  4. package/dist/rocket-ui-vue.umd.cjs +10 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +9 -2
  7. package/dist/src/components/Accordion/Accordion.stories.d.ts +0 -116
  8. package/dist/src/components/Accordion/Accordion.stories.d.ts.map +0 -1
  9. package/dist/src/components/Accordion/RAccordion.vue.d.ts +0 -70
  10. package/dist/src/components/Accordion/RAccordion.vue.d.ts.map +0 -1
  11. package/dist/src/components/Accordion/accordion.spec.d.ts +0 -2
  12. package/dist/src/components/Accordion/accordion.spec.d.ts.map +0 -1
  13. package/dist/src/components/Alert/Alert.stories.d.ts +0 -461
  14. package/dist/src/components/Alert/Alert.stories.d.ts.map +0 -1
  15. package/dist/src/components/Alert/RAlert.vue.d.ts +0 -109
  16. package/dist/src/components/Alert/RAlert.vue.d.ts.map +0 -1
  17. package/dist/src/components/Alert/alert.spec.d.ts +0 -2
  18. package/dist/src/components/Alert/alert.spec.d.ts.map +0 -1
  19. package/dist/src/components/Avatar/Avatar.stories.d.ts +0 -68
  20. package/dist/src/components/Avatar/Avatar.stories.d.ts.map +0 -1
  21. package/dist/src/components/Avatar/RAvatar.vue.d.ts +0 -92
  22. package/dist/src/components/Avatar/RAvatar.vue.d.ts.map +0 -1
  23. package/dist/src/components/Avatar/avatar.spec.d.ts +0 -2
  24. package/dist/src/components/Avatar/avatar.spec.d.ts.map +0 -1
  25. package/dist/src/components/Badge/Badge.stories.d.ts +0 -281
  26. package/dist/src/components/Badge/Badge.stories.d.ts.map +0 -1
  27. package/dist/src/components/Badge/RBadge.vue.d.ts +0 -143
  28. package/dist/src/components/Badge/RBadge.vue.d.ts.map +0 -1
  29. package/dist/src/components/Badge/badge.spec.d.ts +0 -2
  30. package/dist/src/components/Badge/badge.spec.d.ts.map +0 -1
  31. package/dist/src/components/Box/Box.stories.d.ts +0 -167
  32. package/dist/src/components/Box/Box.stories.d.ts.map +0 -1
  33. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -111
  34. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  35. package/dist/src/components/Breadcrumb/RBreadcrumb.vue.d.ts +0 -50
  36. package/dist/src/components/Breadcrumb/RBreadcrumb.vue.d.ts.map +0 -1
  37. package/dist/src/components/Button/Button.spec.d.ts +0 -2
  38. package/dist/src/components/Button/Button.spec.d.ts.map +0 -1
  39. package/dist/src/components/Button/Button.stories.d.ts +0 -553
  40. package/dist/src/components/Button/Button.stories.d.ts.map +0 -1
  41. package/dist/src/components/Button/RButton.vue.d.ts +0 -155
  42. package/dist/src/components/Button/RButton.vue.d.ts.map +0 -1
  43. package/dist/src/components/Checkbox/Checkbox.stories.d.ts +0 -88
  44. package/dist/src/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  45. package/dist/src/components/Checkbox/RCheckbox.vue.d.ts +0 -120
  46. package/dist/src/components/Checkbox/RCheckbox.vue.d.ts.map +0 -1
  47. package/dist/src/components/Checkbox/checkbox.spec.d.ts +0 -2
  48. package/dist/src/components/Checkbox/checkbox.spec.d.ts.map +0 -1
  49. package/dist/src/components/Chips/Chip.stories.d.ts +0 -547
  50. package/dist/src/components/Chips/Chip.stories.d.ts.map +0 -1
  51. package/dist/src/components/Chips/RChip.vue.d.ts +0 -132
  52. package/dist/src/components/Chips/RChip.vue.d.ts.map +0 -1
  53. package/dist/src/components/Chips/chip.spec.d.ts +0 -2
  54. package/dist/src/components/Chips/chip.spec.d.ts.map +0 -1
  55. package/dist/src/components/Dropdown/Dropdown.stories.d.ts +0 -690
  56. package/dist/src/components/Dropdown/Dropdown.stories.d.ts.map +0 -1
  57. package/dist/src/components/Dropdown/RDropdown.vue.d.ts +0 -418
  58. package/dist/src/components/Dropdown/RDropdown.vue.d.ts.map +0 -1
  59. package/dist/src/components/Dropdown/dropdown.spec.d.ts +0 -2
  60. package/dist/src/components/Dropdown/dropdown.spec.d.ts.map +0 -1
  61. package/dist/src/components/Icon/Icon.stories.d.ts +0 -39
  62. package/dist/src/components/Icon/Icon.stories.d.ts.map +0 -1
  63. package/dist/src/components/Icon/RIcon.vue.d.ts +0 -59
  64. package/dist/src/components/Icon/RIcon.vue.d.ts.map +0 -1
  65. package/dist/src/components/Icon/icon.spec.d.ts +0 -2
  66. package/dist/src/components/Icon/icon.spec.d.ts.map +0 -1
  67. package/dist/src/components/ItemGroup/ItemGroup.stories.d.ts +0 -215
  68. package/dist/src/components/ItemGroup/ItemGroup.stories.d.ts.map +0 -1
  69. package/dist/src/components/ItemGroup/RItem.vue.d.ts +0 -65
  70. package/dist/src/components/ItemGroup/RItem.vue.d.ts.map +0 -1
  71. package/dist/src/components/ItemGroup/RItemGroup.vue.d.ts +0 -123
  72. package/dist/src/components/ItemGroup/RItemGroup.vue.d.ts.map +0 -1
  73. package/dist/src/components/ItemGroup/itemgroup.spec.d.ts +0 -2
  74. package/dist/src/components/ItemGroup/itemgroup.spec.d.ts.map +0 -1
  75. package/dist/src/components/Label/Label.stories.d.ts +0 -133
  76. package/dist/src/components/Label/Label.stories.d.ts.map +0 -1
  77. package/dist/src/components/Label/RLabel.vue.d.ts +0 -68
  78. package/dist/src/components/Label/RLabel.vue.d.ts.map +0 -1
  79. package/dist/src/components/Modal/Modal.stories.d.ts +0 -343
  80. package/dist/src/components/Modal/Modal.stories.d.ts.map +0 -1
  81. package/dist/src/components/Modal/RModal.vue.d.ts +0 -183
  82. package/dist/src/components/Modal/RModal.vue.d.ts.map +0 -1
  83. package/dist/src/components/Modal/modal.spec.d.ts +0 -2
  84. package/dist/src/components/Modal/modal.spec.d.ts.map +0 -1
  85. package/dist/src/components/Pagination/Pagination.stories.d.ts +0 -243
  86. package/dist/src/components/Pagination/Pagination.stories.d.ts.map +0 -1
  87. package/dist/src/components/Pagination/RPagination.vue.d.ts +0 -110
  88. package/dist/src/components/Pagination/RPagination.vue.d.ts.map +0 -1
  89. package/dist/src/components/Pagination/pagination.spec.d.ts +0 -2
  90. package/dist/src/components/Pagination/pagination.spec.d.ts.map +0 -1
  91. package/dist/src/components/ProgressBar/Progressbar.stories.d.ts +0 -30
  92. package/dist/src/components/ProgressBar/Progressbar.stories.d.ts.map +0 -1
  93. package/dist/src/components/ProgressBar/RProgressbar.vue.d.ts +0 -34
  94. package/dist/src/components/ProgressBar/RProgressbar.vue.d.ts.map +0 -1
  95. package/dist/src/components/ProgressBar/progressbar.spec.d.ts +0 -2
  96. package/dist/src/components/ProgressBar/progressbar.spec.d.ts.map +0 -1
  97. package/dist/src/components/Radio/RRadio.vue.d.ts +0 -66
  98. package/dist/src/components/Radio/RRadio.vue.d.ts.map +0 -1
  99. package/dist/src/components/Radio/Radio.stories.d.ts +0 -100
  100. package/dist/src/components/Radio/Radio.stories.d.ts.map +0 -1
  101. package/dist/src/components/Shared/Enums.d.ts +0 -2
  102. package/dist/src/components/Shared/Enums.d.ts.map +0 -1
  103. package/dist/src/components/Sidebar/RSidebar.vue.d.ts +0 -53
  104. package/dist/src/components/Sidebar/RSidebar.vue.d.ts.map +0 -1
  105. package/dist/src/components/Sidebar/Sidebar.stories.d.ts +0 -163
  106. package/dist/src/components/Sidebar/Sidebar.stories.d.ts.map +0 -1
  107. package/dist/src/components/Sidebar/sidebar.spec.d.ts +0 -2
  108. package/dist/src/components/Sidebar/sidebar.spec.d.ts.map +0 -1
  109. package/dist/src/components/Snackbar/RSnackbar.vue.d.ts +0 -113
  110. package/dist/src/components/Snackbar/RSnackbar.vue.d.ts.map +0 -1
  111. package/dist/src/components/Snackbar/Snackbar.stories.d.ts +0 -224
  112. package/dist/src/components/Snackbar/Snackbar.stories.d.ts.map +0 -1
  113. package/dist/src/components/Snackbar/snackbar.spec.d.ts +0 -2
  114. package/dist/src/components/Snackbar/snackbar.spec.d.ts.map +0 -1
  115. package/dist/src/components/Switch/RSwitch.vue.d.ts +0 -135
  116. package/dist/src/components/Switch/RSwitch.vue.d.ts.map +0 -1
  117. package/dist/src/components/Switch/Switch.stories.d.ts +0 -102
  118. package/dist/src/components/Switch/Switch.stories.d.ts.map +0 -1
  119. package/dist/src/components/Switch/switch.spec.d.ts +0 -2
  120. package/dist/src/components/Switch/switch.spec.d.ts.map +0 -1
  121. package/dist/src/components/TabItem/RTabItem.vue.d.ts +0 -155
  122. package/dist/src/components/TabItem/RTabItem.vue.d.ts.map +0 -1
  123. package/dist/src/components/TabItem/TabItem.spec.d.ts +0 -2
  124. package/dist/src/components/TabItem/TabItem.spec.d.ts.map +0 -1
  125. package/dist/src/components/TabItem/TabItem.stories.d.ts +0 -290
  126. package/dist/src/components/TabItem/TabItem.stories.d.ts.map +0 -1
  127. package/dist/src/components/TabItem/common.d.ts +0 -7
  128. package/dist/src/components/TabItem/common.d.ts.map +0 -1
  129. package/dist/src/components/Tabs/RTabs.vue.d.ts +0 -95
  130. package/dist/src/components/Tabs/RTabs.vue.d.ts.map +0 -1
  131. package/dist/src/components/Tabs/Tabs.spec.d.ts +0 -2
  132. package/dist/src/components/Tabs/Tabs.spec.d.ts.map +0 -1
  133. package/dist/src/components/Tabs/Tabs.stories.d.ts +0 -181
  134. package/dist/src/components/Tabs/Tabs.stories.d.ts.map +0 -1
  135. package/dist/src/components/Tabs/types.d.ts +0 -11
  136. package/dist/src/components/Tabs/types.d.ts.map +0 -1
  137. package/dist/src/components/TextArea/RTextArea.vue.d.ts +0 -120
  138. package/dist/src/components/TextArea/RTextArea.vue.d.ts.map +0 -1
  139. package/dist/src/components/TextArea/TextArea.stories.d.ts +0 -89
  140. package/dist/src/components/TextArea/TextArea.stories.d.ts.map +0 -1
  141. package/dist/src/components/TextArea/textarea.spec.d.ts +0 -2
  142. package/dist/src/components/TextArea/textarea.spec.d.ts.map +0 -1
  143. package/dist/src/components/Textfield/RTextfield.vue.d.ts +0 -249
  144. package/dist/src/components/Textfield/RTextfield.vue.d.ts.map +0 -1
  145. package/dist/src/components/Textfield/Textfield.stories.d.ts +0 -459
  146. package/dist/src/components/Textfield/Textfield.stories.d.ts.map +0 -1
  147. package/dist/src/components/Textfield/textfield.spec.d.ts +0 -2
  148. package/dist/src/components/Textfield/textfield.spec.d.ts.map +0 -1
  149. package/dist/src/components/Tooltip/RTooltip.vue.d.ts +0 -264
  150. package/dist/src/components/Tooltip/RTooltip.vue.d.ts.map +0 -1
  151. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +0 -482
  152. package/dist/src/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
  153. package/dist/src/components/Tooltip/popper.d.ts +0 -29
  154. package/dist/src/components/Tooltip/popper.d.ts.map +0 -1
  155. package/dist/src/components/Tooltip/tooltip.spec.d.ts +0 -2
  156. package/dist/src/components/Tooltip/tooltip.spec.d.ts.map +0 -1
  157. package/dist/src/directives/index.d.ts +0 -5
  158. package/dist/src/directives/index.d.ts.map +0 -1
  159. package/dist/src/lib/main.d.ts +0 -26
  160. package/dist/src/lib/main.d.ts.map +0 -1
  161. package/dist/src/main.d.ts +0 -1
  162. package/dist/src/main.d.ts.map +0 -1
  163. package/dist/src/shims.d.ts +0 -9
  164. package/dist/src/utils/helpers.d.ts +0 -2
  165. package/dist/src/utils/helpers.d.ts.map +0 -1
@@ -1,92 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- export interface IProps {
3
- /**
4
- * Type of the Avatar
5
- * @type 'image' | 'text'
6
- * @default 'image'
7
- * @example
8
- * <Avatar type="text" />
9
- */
10
- type?: 'image' | 'text';
11
- /**
12
- * Source of the Avatar
13
- * @type string
14
- * @default ''
15
- * @example
16
- * <Avatar src="https://source.unsplash.com/random" />
17
- */
18
- src?: string;
19
- /**
20
- * Alt of the Avatar
21
- * @type string
22
- * @default 'Avatar'
23
- * @example
24
- * <Avatar alt="Avatar" />
25
- */
26
- alt?: string;
27
- /**
28
- * Size of the Avatar
29
- * @type 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'
30
- * @default '2xl'
31
- * @example
32
- * <Avatar size="xs" />
33
- */
34
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
35
- /**
36
- * Show online status
37
- * @type boolean
38
- * @default false
39
- * @example
40
- * <Avatar online />
41
- */
42
- online?: boolean;
43
- /**
44
- * Text to show when type is text
45
- * @type string
46
- * @default ''
47
- * @example
48
- * <Avatar type="text" text="John Doe" />
49
- */
50
- text?: string;
51
- }
52
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
53
- type: string;
54
- size: string;
55
- src: string;
56
- alt: string;
57
- online: boolean;
58
- text: string;
59
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
60
- type: string;
61
- size: string;
62
- src: string;
63
- alt: string;
64
- online: boolean;
65
- text: string;
66
- }>>>, {
67
- size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
68
- type: "image" | "text";
69
- text: string;
70
- src: string;
71
- alt: string;
72
- online: boolean;
73
- }, {}>;
74
- export default _default;
75
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
76
- declare type __VLS_TypePropsToRuntimeProps<T> = {
77
- [K in keyof T]-?: {} extends Pick<T, K> ? {
78
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
79
- } : {
80
- type: PropType<T[K]>;
81
- required: true;
82
- };
83
- };
84
- declare type __VLS_WithDefaults<P, D> = {
85
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
86
- default: D[K];
87
- }> : P[K];
88
- };
89
- declare type __VLS_Prettify<T> = {
90
- [K in keyof T]: T[K];
91
- } & {};
92
- //# sourceMappingURL=RAvatar.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RAvatar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/RAvatar.vue"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAGrB,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAEvB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAA;IAEvD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;;;;;;;;;;;;;;;;;;;;;;;AA4ID,wBAMG;AACH,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=avatar.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/avatar.spec.ts"],"names":[],"mappings":""}
@@ -1,281 +0,0 @@
1
- import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
- import type { Meta, StoryObj } from '@storybook/vue3';
3
- declare const BadgeStory: Meta<{
4
- new (...args: any[]): {
5
- $: ComponentInternalInstance;
6
- $data: {};
7
- $props: Partial<{
8
- class: string | string[];
9
- variant: "primary" | "success" | "error" | "warning" | "neutral";
10
- hover: boolean;
11
- placement: "bottom" | "left" | "right";
12
- content: string;
13
- overlap: boolean;
14
- outside: boolean;
15
- animation: boolean;
16
- contentClass: string | string[];
17
- wrapperClass: string | string[];
18
- }> & Omit<{
19
- readonly class: string | string[];
20
- readonly variant: "primary" | "success" | "error" | "warning" | "neutral";
21
- readonly hover: boolean;
22
- readonly placement: "bottom" | "left" | "right";
23
- readonly content: string;
24
- readonly overlap: boolean;
25
- readonly outside: boolean;
26
- readonly animation: boolean;
27
- readonly contentClass: string | string[];
28
- readonly wrapperClass: string | string[];
29
- onClick?: ((...args: any[]) => any) | undefined;
30
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
31
- class: {
32
- type: PropType<string | string[]>;
33
- default: string;
34
- };
35
- variant: {
36
- type: PropType<"primary" | "success" | "error" | "warning" | "neutral">;
37
- default: string;
38
- };
39
- hover: {
40
- type: PropType<boolean>;
41
- default: boolean;
42
- };
43
- placement: {
44
- type: PropType<"bottom" | "left" | "right">;
45
- default: string;
46
- };
47
- content: {
48
- type: PropType<string>;
49
- default: string;
50
- };
51
- overlap: {
52
- type: PropType<boolean>;
53
- default: boolean;
54
- };
55
- outside: {
56
- type: PropType<boolean>;
57
- default: boolean;
58
- };
59
- animation: {
60
- type: PropType<boolean>;
61
- default: boolean;
62
- };
63
- contentClass: {
64
- type: PropType<string | string[]>;
65
- default: string;
66
- };
67
- wrapperClass: {
68
- type: PropType<string | string[]>;
69
- default: string;
70
- };
71
- }>> & {
72
- onClick?: ((...args: any[]) => any) | undefined;
73
- }, "class" | "variant" | "hover" | "placement" | "content" | "overlap" | "outside" | "animation" | "contentClass" | "wrapperClass">;
74
- $attrs: {
75
- [x: string]: unknown;
76
- };
77
- $refs: {
78
- [x: string]: unknown;
79
- };
80
- $slots: Readonly<{
81
- [name: string]: Slot<any> | undefined;
82
- }>;
83
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
84
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
85
- $emit: (event: "click", ...args: any[]) => void;
86
- $el: any;
87
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
88
- class: {
89
- type: PropType<string | string[]>;
90
- default: string;
91
- };
92
- variant: {
93
- type: PropType<"primary" | "success" | "error" | "warning" | "neutral">;
94
- default: string;
95
- };
96
- hover: {
97
- type: PropType<boolean>;
98
- default: boolean;
99
- };
100
- placement: {
101
- type: PropType<"bottom" | "left" | "right">;
102
- default: string;
103
- };
104
- content: {
105
- type: PropType<string>;
106
- default: string;
107
- };
108
- overlap: {
109
- type: PropType<boolean>;
110
- default: boolean;
111
- };
112
- outside: {
113
- type: PropType<boolean>;
114
- default: boolean;
115
- };
116
- animation: {
117
- type: PropType<boolean>;
118
- default: boolean;
119
- };
120
- contentClass: {
121
- type: PropType<string | string[]>;
122
- default: string;
123
- };
124
- wrapperClass: {
125
- type: PropType<string | string[]>;
126
- default: string;
127
- };
128
- }>> & {
129
- onClick?: ((...args: any[]) => any) | undefined;
130
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
131
- click: (...args: any[]) => void;
132
- }, string, {
133
- class: string | string[];
134
- variant: "primary" | "success" | "error" | "warning" | "neutral";
135
- hover: boolean;
136
- placement: "bottom" | "left" | "right";
137
- content: string;
138
- overlap: boolean;
139
- outside: boolean;
140
- animation: boolean;
141
- contentClass: string | string[];
142
- wrapperClass: string | string[];
143
- }, {}, string, {}> & {
144
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
145
- created?: ((() => void) | (() => void)[]) | undefined;
146
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
147
- mounted?: ((() => void) | (() => void)[]) | undefined;
148
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
149
- updated?: ((() => void) | (() => void)[]) | undefined;
150
- activated?: ((() => void) | (() => void)[]) | undefined;
151
- deactivated?: ((() => void) | (() => void)[]) | undefined;
152
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
153
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
154
- destroyed?: ((() => void) | (() => void)[]) | undefined;
155
- unmounted?: ((() => void) | (() => void)[]) | undefined;
156
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
157
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
158
- 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;
159
- };
160
- $forceUpdate: () => void;
161
- $nextTick: typeof nextTick;
162
- $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;
163
- } & Readonly<ExtractPropTypes<{
164
- class: {
165
- type: PropType<string | string[]>;
166
- default: string;
167
- };
168
- variant: {
169
- type: PropType<"primary" | "success" | "error" | "warning" | "neutral">;
170
- default: string;
171
- };
172
- hover: {
173
- type: PropType<boolean>;
174
- default: boolean;
175
- };
176
- placement: {
177
- type: PropType<"bottom" | "left" | "right">;
178
- default: string;
179
- };
180
- content: {
181
- type: PropType<string>;
182
- default: string;
183
- };
184
- overlap: {
185
- type: PropType<boolean>;
186
- default: boolean;
187
- };
188
- outside: {
189
- type: PropType<boolean>;
190
- default: boolean;
191
- };
192
- animation: {
193
- type: PropType<boolean>;
194
- default: boolean;
195
- };
196
- contentClass: {
197
- type: PropType<string | string[]>;
198
- default: string;
199
- };
200
- wrapperClass: {
201
- type: PropType<string | string[]>;
202
- default: string;
203
- };
204
- }>> & {
205
- onClick?: ((...args: any[]) => any) | undefined;
206
- } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
207
- __isFragment?: undefined;
208
- __isTeleport?: undefined;
209
- __isSuspense?: undefined;
210
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
211
- class: {
212
- type: PropType<string | string[]>;
213
- default: string;
214
- };
215
- variant: {
216
- type: PropType<"primary" | "success" | "error" | "warning" | "neutral">;
217
- default: string;
218
- };
219
- hover: {
220
- type: PropType<boolean>;
221
- default: boolean;
222
- };
223
- placement: {
224
- type: PropType<"bottom" | "left" | "right">;
225
- default: string;
226
- };
227
- content: {
228
- type: PropType<string>;
229
- default: string;
230
- };
231
- overlap: {
232
- type: PropType<boolean>;
233
- default: boolean;
234
- };
235
- outside: {
236
- type: PropType<boolean>;
237
- default: boolean;
238
- };
239
- animation: {
240
- type: PropType<boolean>;
241
- default: boolean;
242
- };
243
- contentClass: {
244
- type: PropType<string | string[]>;
245
- default: string;
246
- };
247
- wrapperClass: {
248
- type: PropType<string | string[]>;
249
- default: string;
250
- };
251
- }>> & {
252
- onClick?: ((...args: any[]) => any) | undefined;
253
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
254
- click: (...args: any[]) => void;
255
- }, string, {
256
- class: string | string[];
257
- variant: "primary" | "success" | "error" | "warning" | "neutral";
258
- hover: boolean;
259
- placement: "bottom" | "left" | "right";
260
- content: string;
261
- overlap: boolean;
262
- outside: boolean;
263
- animation: boolean;
264
- contentClass: string | string[];
265
- wrapperClass: string | string[];
266
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
267
- $slots: {
268
- default?(_: {}): any;
269
- };
270
- })>;
271
- export default BadgeStory;
272
- declare type Story = StoryObj<typeof BadgeStory>;
273
- export declare const Overview: Story;
274
- export declare const Hover: Story;
275
- export declare const Bottom: Story;
276
- export declare const Left: Story;
277
- export declare const Overlap: Story;
278
- export declare const Outside: Story;
279
- export declare const WithAnimation: Story;
280
- export declare const WithCustomContent: Story;
281
- //# sourceMappingURL=Badge.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AA8BrD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBO,CAAA;AAEvB,eAAe,UAAU,CAAA;AAEzB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAExC,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAA"}
@@ -1,143 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- export interface BadgeProps {
3
- /**
4
- * Variant of the Badge
5
- * @type { 'primary' | 'success' | 'warning' | 'error' | 'neutral' }
6
- * @default 'primary'
7
- * @example
8
- * <Badge variant="primary" />
9
- */
10
- variant?: 'primary' | 'success' | 'warning' | 'error' | 'neutral';
11
- /**
12
- * Placement of the Badge
13
- * @type { 'right' | 'bottom' | 'left' }
14
- * @default 'right'
15
- * @example
16
- * <Badge placement="right" />
17
- */
18
- placement?: 'right' | 'bottom' | 'left';
19
- /**
20
- * Overlap the Badge
21
- * @type { boolean }
22
- * @default false
23
- * @example
24
- * <Badge overlap />
25
- */
26
- overlap?: boolean;
27
- /**
28
- * Show the Badge on hover
29
- * @type { boolean }
30
- * @default false
31
- * @example
32
- * <Badge hover />
33
- */
34
- hover?: boolean;
35
- /**
36
- * Show the Badge outside
37
- * @type { boolean }
38
- * @default false
39
- * @example
40
- * <Badge outside />
41
- */
42
- outside?: boolean;
43
- /**
44
- * Show the Badge animation
45
- * @type { boolean }
46
- * @default false
47
- * @example
48
- * <Badge animation />
49
- */
50
- animation?: boolean;
51
- /**
52
- * Class of the Badge
53
- * @type { string | string[] }
54
- * @example
55
- * <Badge class="text-red-500" />
56
- */
57
- class?: string | string[];
58
- /**
59
- * Content of the Badge
60
- * @type { string }
61
- * @example
62
- * <Badge content="99+" />
63
- */
64
- content?: string;
65
- /**
66
- * Class of the content of the Badge
67
- * @type { string | string[] }
68
- * @example
69
- * <Badge contentClass="text-red-500" />
70
- */
71
- contentClass?: string | string[];
72
- /**
73
- * Wrapper class of the Badge
74
- * @type { string | string[] }
75
- * @example
76
- * <Badge wrapperClass="text-red-500" />
77
- */
78
- wrapperClass?: string | string[];
79
- }
80
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
81
- variant: string;
82
- placement: string;
83
- overlap: boolean;
84
- hover: boolean;
85
- content: string;
86
- outside: boolean;
87
- animation: boolean;
88
- class: string;
89
- contentClass: string;
90
- wrapperClass: string;
91
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
92
- click: (...args: any[]) => void;
93
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
94
- variant: string;
95
- placement: string;
96
- overlap: boolean;
97
- hover: boolean;
98
- content: string;
99
- outside: boolean;
100
- animation: boolean;
101
- class: string;
102
- contentClass: string;
103
- wrapperClass: string;
104
- }>>> & {
105
- onClick?: ((...args: any[]) => any) | undefined;
106
- }, {
107
- class: string | string[];
108
- variant: "primary" | "success" | "error" | "warning" | "neutral";
109
- hover: boolean;
110
- placement: "bottom" | "left" | "right";
111
- content: string;
112
- overlap: boolean;
113
- outside: boolean;
114
- animation: boolean;
115
- contentClass: string | string[];
116
- wrapperClass: string | string[];
117
- }, {}>, {
118
- default?(_: {}): any;
119
- }>;
120
- export default _default;
121
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
122
- declare type __VLS_TypePropsToRuntimeProps<T> = {
123
- [K in keyof T]-?: {} extends Pick<T, K> ? {
124
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
125
- } : {
126
- type: PropType<T[K]>;
127
- required: true;
128
- };
129
- };
130
- declare type __VLS_WithDefaults<P, D> = {
131
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
132
- default: D[K];
133
- }> : P[K];
134
- };
135
- declare type __VLS_Prettify<T> = {
136
- [K in keyof T]: T[K];
137
- } & {};
138
- declare type __VLS_WithTemplateSlots<T, S> = T & {
139
- new (): {
140
- $slots: S;
141
- };
142
- };
143
- //# sourceMappingURL=RBadge.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/RBadge.vue"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAGpB,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAEjE;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAEvC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEhC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0HD,wBAAwG;AACxG,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=badge.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/badge.spec.ts"],"names":[],"mappings":""}