@rocketui/vue 0.0.90 → 0.0.91

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 (158) hide show
  1. package/dist/rocket-ui-vue.js +144 -145
  2. package/dist/rocket-ui-vue.umd.cjs +1 -1
  3. package/dist/src/components/Accordion/Accordion.stories.d.ts +77 -0
  4. package/dist/src/components/Accordion/Accordion.stories.d.ts.map +1 -0
  5. package/dist/src/components/Accordion/RAccordion.vue.d.ts +42 -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 +431 -0
  10. package/dist/src/components/Alert/Alert.stories.d.ts.map +1 -0
  11. package/dist/src/components/Alert/RAlert.vue.d.ts +126 -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 +111 -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 +207 -0
  22. package/dist/src/components/Badge/Badge.stories.d.ts.map +1 -0
  23. package/dist/src/components/Badge/RBadge.vue.d.ts +130 -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 +158 -0
  28. package/dist/src/components/Box/Box.stories.d.ts.map +1 -0
  29. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts +108 -0
  30. package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -0
  31. package/dist/src/components/Breadcrumb/RBreadcrumb.vue.d.ts +41 -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 +506 -0
  36. package/dist/src/components/Button/Button.stories.d.ts.map +1 -0
  37. package/dist/src/components/Button/RButton.vue.d.ts +189 -0
  38. package/dist/src/components/Button/RButton.vue.d.ts.map +1 -0
  39. package/dist/src/components/Checkbox/Checkbox.stories.d.ts +86 -0
  40. package/dist/src/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
  41. package/dist/src/components/Checkbox/RCheckbox.vue.d.ts +151 -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 +467 -0
  46. package/dist/src/components/Chips/Chip.stories.d.ts.map +1 -0
  47. package/dist/src/components/Chips/RChip.vue.d.ts +141 -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 +379 -0
  52. package/dist/src/components/Dropdown/Dropdown.stories.d.ts.map +1 -0
  53. package/dist/src/components/Dropdown/RDropdown.vue.d.ts +311 -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 +62 -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 +202 -0
  64. package/dist/src/components/ItemGroup/ItemGroup.stories.d.ts.map +1 -0
  65. package/dist/src/components/ItemGroup/RItem.vue.d.ts +78 -0
  66. package/dist/src/components/ItemGroup/RItem.vue.d.ts.map +1 -0
  67. package/dist/src/components/ItemGroup/RItemGroup.vue.d.ts +148 -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 +129 -0
  72. package/dist/src/components/Label/Label.stories.d.ts.map +1 -0
  73. package/dist/src/components/Label/RLabel.vue.d.ts +75 -0
  74. package/dist/src/components/Label/RLabel.vue.d.ts.map +1 -0
  75. package/dist/src/components/Modal/Modal.stories.d.ts +236 -0
  76. package/dist/src/components/Modal/Modal.stories.d.ts.map +1 -0
  77. package/dist/src/components/Modal/RModal.vue.d.ts +188 -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 +195 -0
  82. package/dist/src/components/Pagination/Pagination.stories.d.ts.map +1 -0
  83. package/dist/src/components/Pagination/RPagination.vue.d.ts +85 -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 +31 -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 +56 -0
  96. package/dist/src/components/Sidebar/RSidebar.vue.d.ts.map +1 -0
  97. package/dist/src/components/Sidebar/Sidebar.stories.d.ts +137 -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 +139 -0
  102. package/dist/src/components/Snackbar/RSnackbar.vue.d.ts.map +1 -0
  103. package/dist/src/components/Snackbar/Snackbar.stories.d.ts +208 -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 +164 -0
  108. package/dist/src/components/Switch/RSwitch.vue.d.ts.map +1 -0
  109. package/dist/src/components/Switch/Switch.stories.d.ts +94 -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 +190 -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 +269 -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 +105 -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 +172 -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 +151 -0
  130. package/dist/src/components/TextArea/RTextArea.vue.d.ts.map +1 -0
  131. package/dist/src/components/TextArea/TextArea.stories.d.ts +87 -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 +285 -0
  136. package/dist/src/components/Textfield/RTextfield.vue.d.ts.map +1 -0
  137. package/dist/src/components/Textfield/Textfield.stories.d.ts +375 -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 +337 -0
  142. package/dist/src/components/Tooltip/RTooltip.vue.d.ts.map +1 -0
  143. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +429 -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/dist/style.css +1 -1
  157. package/package.json +1 -1
  158. package/dist/rocket-ui-vue.d.ts +0 -2002
@@ -0,0 +1,129 @@
1
+ import { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import type { Meta, StoryObj } from '@storybook/vue3';
3
+ declare const LabelStory: Meta<{
4
+ new (...args: any[]): {
5
+ $: ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ text: string | number;
9
+ id: string | undefined;
10
+ for: string | undefined;
11
+ }> & Omit<Readonly<ExtractPropTypes<{
12
+ text: {
13
+ type: PropType<string | number>;
14
+ required: true;
15
+ default: string;
16
+ };
17
+ id: {
18
+ type: PropType<string | undefined>;
19
+ required: true;
20
+ default: string;
21
+ };
22
+ for: {
23
+ type: PropType<string | undefined>;
24
+ required: true;
25
+ default: string;
26
+ };
27
+ }>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "text" | "id" | "for">;
28
+ $attrs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $refs: {
32
+ [x: string]: unknown;
33
+ };
34
+ $slots: Readonly<{
35
+ [name: string]: Slot | undefined;
36
+ }>;
37
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
38
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
39
+ $emit: (event: string, ...args: any[]) => void;
40
+ $el: any;
41
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
42
+ text: {
43
+ type: PropType<string | number>;
44
+ required: true;
45
+ default: string;
46
+ };
47
+ id: {
48
+ type: PropType<string | undefined>;
49
+ required: true;
50
+ default: string;
51
+ };
52
+ for: {
53
+ type: PropType<string | undefined>;
54
+ required: true;
55
+ default: string;
56
+ };
57
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
58
+ text: string | number;
59
+ id: string | undefined;
60
+ for: string | undefined;
61
+ }> & {
62
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
63
+ created?: ((() => void) | (() => void)[]) | undefined;
64
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
65
+ mounted?: ((() => void) | (() => void)[]) | undefined;
66
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
67
+ updated?: ((() => void) | (() => void)[]) | undefined;
68
+ activated?: ((() => void) | (() => void)[]) | undefined;
69
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
70
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
71
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
72
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
73
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
74
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
75
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
76
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
77
+ };
78
+ $forceUpdate: () => void;
79
+ $nextTick: typeof nextTick;
80
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
81
+ } & Readonly<ExtractPropTypes<{
82
+ text: {
83
+ type: PropType<string | number>;
84
+ required: true;
85
+ default: string;
86
+ };
87
+ id: {
88
+ type: PropType<string | undefined>;
89
+ required: true;
90
+ default: string;
91
+ };
92
+ for: {
93
+ type: PropType<string | undefined>;
94
+ required: true;
95
+ default: string;
96
+ };
97
+ }>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties;
98
+ __isFragment?: undefined;
99
+ __isTeleport?: undefined;
100
+ __isSuspense?: undefined;
101
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
102
+ text: {
103
+ type: PropType<string | number>;
104
+ required: true;
105
+ default: string;
106
+ };
107
+ id: {
108
+ type: PropType<string | undefined>;
109
+ required: true;
110
+ default: string;
111
+ };
112
+ for: {
113
+ type: PropType<string | undefined>;
114
+ required: true;
115
+ default: string;
116
+ };
117
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
118
+ text: string | number;
119
+ id: string | undefined;
120
+ for: string | undefined;
121
+ }> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
122
+ $slots: {
123
+ default?(_: {}): any;
124
+ };
125
+ })>;
126
+ export default LabelStory;
127
+ declare type Story = StoryObj<typeof LabelStory>;
128
+ export declare const Overview: Story;
129
+ //# sourceMappingURL=Label.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/Label.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAItD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBO,CAAC;AAExB,eAAe,UAAU,CAAC;AAE1B,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, HTMLAttributes, LabelHTMLAttributes } from 'vue';
2
+ export interface LabelProps {
3
+ /**
4
+ * id of the label
5
+ * @type HTMLAttributes['id']
6
+ * @default ''
7
+ * @example
8
+ * <Label id="label" />
9
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
10
+ */
11
+ id: HTMLAttributes['id'];
12
+ /**
13
+ * for of the label
14
+ * @type LabelHTMLAttributes['for']
15
+ * @default ''
16
+ * @example
17
+ * <Label for="label" />
18
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
19
+ */
20
+ for: LabelHTMLAttributes['for'];
21
+ /**
22
+ * text of the label
23
+ * @type string | number
24
+ * @default ''
25
+ * @example
26
+ * <Label text="Label" />
27
+ */
28
+ text: string | number;
29
+ }
30
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
31
+ text: {
32
+ type: PropType<string | number>;
33
+ required: true;
34
+ default: string;
35
+ };
36
+ id: {
37
+ type: PropType<string | undefined>;
38
+ required: true;
39
+ default: string;
40
+ };
41
+ for: {
42
+ type: PropType<string | undefined>;
43
+ required: true;
44
+ default: string;
45
+ };
46
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
47
+ text: {
48
+ type: PropType<string | number>;
49
+ required: true;
50
+ default: string;
51
+ };
52
+ id: {
53
+ type: PropType<string | undefined>;
54
+ required: true;
55
+ default: string;
56
+ };
57
+ for: {
58
+ type: PropType<string | undefined>;
59
+ required: true;
60
+ default: string;
61
+ };
62
+ }>>, {
63
+ text: string | number;
64
+ id: string | undefined;
65
+ for: string | undefined;
66
+ }>, {
67
+ default?(_: {}): any;
68
+ }>;
69
+ export default _default;
70
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
75
+ //# sourceMappingURL=RLabel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RLabel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/RLabel.vue"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAC/D,OAAO,aAAa,CAAC;AACrB,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAEzB;;;;;;;OAOG;IACH,GAAG,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAEhC;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwED,wBAA8G;AAU9G,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,236 @@
1
+ import { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import type { Meta, StoryObj } from '@storybook/vue3';
3
+ declare const ModalStory: Meta<{
4
+ new (...args: any[]): {
5
+ $: ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ title: string;
9
+ block: boolean;
10
+ modelValue: boolean;
11
+ description: string;
12
+ }> & Omit<Readonly<ExtractPropTypes<{
13
+ width: {
14
+ type: PropType<string>;
15
+ };
16
+ height: {
17
+ type: PropType<string>;
18
+ };
19
+ style: {
20
+ type: PropType<string>;
21
+ };
22
+ title: {
23
+ type: PropType<string>;
24
+ default: string;
25
+ };
26
+ class: {
27
+ type: PropType<string>;
28
+ };
29
+ icon: {
30
+ type: PropType<string>;
31
+ };
32
+ block: {
33
+ type: PropType<boolean>;
34
+ default: boolean;
35
+ };
36
+ modelValue: {
37
+ type: PropType<boolean>;
38
+ required: true;
39
+ default: boolean;
40
+ };
41
+ outsideClick: {
42
+ type: PropType<boolean>;
43
+ };
44
+ description: {
45
+ type: PropType<string>;
46
+ default: string;
47
+ };
48
+ overlayClass: {
49
+ type: PropType<string>;
50
+ };
51
+ }>> & {
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "block" | "modelValue" | "description">;
54
+ $attrs: {
55
+ [x: string]: unknown;
56
+ };
57
+ $refs: {
58
+ [x: string]: unknown;
59
+ };
60
+ $slots: Readonly<{
61
+ [name: string]: Slot | undefined;
62
+ }>;
63
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
64
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
65
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
66
+ $el: any;
67
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
68
+ width: {
69
+ type: PropType<string>;
70
+ };
71
+ height: {
72
+ type: PropType<string>;
73
+ };
74
+ style: {
75
+ type: PropType<string>;
76
+ };
77
+ title: {
78
+ type: PropType<string>;
79
+ default: string;
80
+ };
81
+ class: {
82
+ type: PropType<string>;
83
+ };
84
+ icon: {
85
+ type: PropType<string>;
86
+ };
87
+ block: {
88
+ type: PropType<boolean>;
89
+ default: boolean;
90
+ };
91
+ modelValue: {
92
+ type: PropType<boolean>;
93
+ required: true;
94
+ default: boolean;
95
+ };
96
+ outsideClick: {
97
+ type: PropType<boolean>;
98
+ };
99
+ description: {
100
+ type: PropType<string>;
101
+ default: string;
102
+ };
103
+ overlayClass: {
104
+ type: PropType<string>;
105
+ };
106
+ }>> & {
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], string, {
109
+ title: string;
110
+ block: boolean;
111
+ modelValue: boolean;
112
+ description: string;
113
+ }> & {
114
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
115
+ created?: ((() => void) | (() => void)[]) | undefined;
116
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
117
+ mounted?: ((() => void) | (() => void)[]) | undefined;
118
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
119
+ updated?: ((() => void) | (() => void)[]) | undefined;
120
+ activated?: ((() => void) | (() => void)[]) | undefined;
121
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
122
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
123
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
124
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
125
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
126
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
127
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
128
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
129
+ };
130
+ $forceUpdate: () => void;
131
+ $nextTick: typeof nextTick;
132
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
133
+ } & Readonly<ExtractPropTypes<{
134
+ width: {
135
+ type: PropType<string>;
136
+ };
137
+ height: {
138
+ type: PropType<string>;
139
+ };
140
+ style: {
141
+ type: PropType<string>;
142
+ };
143
+ title: {
144
+ type: PropType<string>;
145
+ default: string;
146
+ };
147
+ class: {
148
+ type: PropType<string>;
149
+ };
150
+ icon: {
151
+ type: PropType<string>;
152
+ };
153
+ block: {
154
+ type: PropType<boolean>;
155
+ default: boolean;
156
+ };
157
+ modelValue: {
158
+ type: PropType<boolean>;
159
+ required: true;
160
+ default: boolean;
161
+ };
162
+ outsideClick: {
163
+ type: PropType<boolean>;
164
+ };
165
+ description: {
166
+ type: PropType<string>;
167
+ default: string;
168
+ };
169
+ overlayClass: {
170
+ type: PropType<string>;
171
+ };
172
+ }>> & {
173
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
174
+ } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties;
175
+ __isFragment?: undefined;
176
+ __isTeleport?: undefined;
177
+ __isSuspense?: undefined;
178
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
179
+ width: {
180
+ type: PropType<string>;
181
+ };
182
+ height: {
183
+ type: PropType<string>;
184
+ };
185
+ style: {
186
+ type: PropType<string>;
187
+ };
188
+ title: {
189
+ type: PropType<string>;
190
+ default: string;
191
+ };
192
+ class: {
193
+ type: PropType<string>;
194
+ };
195
+ icon: {
196
+ type: PropType<string>;
197
+ };
198
+ block: {
199
+ type: PropType<boolean>;
200
+ default: boolean;
201
+ };
202
+ modelValue: {
203
+ type: PropType<boolean>;
204
+ required: true;
205
+ default: boolean;
206
+ };
207
+ outsideClick: {
208
+ type: PropType<boolean>;
209
+ };
210
+ description: {
211
+ type: PropType<string>;
212
+ default: string;
213
+ };
214
+ overlayClass: {
215
+ type: PropType<string>;
216
+ };
217
+ }>> & {
218
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
219
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
220
+ title: string;
221
+ block: boolean;
222
+ modelValue: boolean;
223
+ description: string;
224
+ }> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
225
+ $slots: {
226
+ header?(_: {}): any;
227
+ default?(_: {}): any;
228
+ actions?(_: {}): any;
229
+ };
230
+ })>;
231
+ export default ModalStory;
232
+ declare type Story = StoryObj<typeof ModalStory>;
233
+ export declare const Overview: Story;
234
+ export declare const WithActionsSlot: Story;
235
+ export declare const WithForm: Story;
236
+ //# sourceMappingURL=Modal.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAOtD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBO,CAAC;AAExB,eAAe,UAAU,CAAC;AAE1B,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,eAAe,EAAE,KAyD7B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAiCtB,CAAC"}
@@ -0,0 +1,188 @@
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ export interface ModalProps {
3
+ /**
4
+ * modelValue the modal
5
+ * @type boolean
6
+ * @default false
7
+ * @example
8
+ * <Modal :modelValue="true" />
9
+ */
10
+ modelValue: boolean;
11
+ /**
12
+ * Modal width is 100%
13
+ * @type boolean
14
+ * @default false
15
+ * @example
16
+ * <Modal block />
17
+ */
18
+ block?: boolean;
19
+ /**
20
+ * Title of the Modal
21
+ * @type string
22
+ * @default ''
23
+ * @example
24
+ * <Modal title="Modal Title" />
25
+ */
26
+ title?: string;
27
+ /**
28
+ * Description of the Modal
29
+ * @type string
30
+ * @default ''
31
+ * @example
32
+ * <Modal description="Modal Description" />
33
+ */
34
+ description?: string;
35
+ /**
36
+ * Icon of the Modal
37
+ * @type string
38
+ * @default ''
39
+ * @example
40
+ * <Modal icon="mdiMail" />
41
+ */
42
+ icon?: string;
43
+ /**
44
+ * Width of the Modal
45
+ * @type string
46
+ * @default ''
47
+ * @example
48
+ * <Modal width="500px" />
49
+ */
50
+ width?: string;
51
+ /**
52
+ * Height of the Modal
53
+ * @type string
54
+ * @default ''
55
+ * @example
56
+ * <Modal height="500px" />
57
+ */
58
+ height?: string;
59
+ /**
60
+ * Close the modal when clicking outside
61
+ * @type boolean
62
+ * @default false
63
+ * @example
64
+ * <Modal :modelValue="true" :outsideClick="true" />
65
+ */
66
+ outsideClick?: boolean;
67
+ /**
68
+ * Class of the Modal
69
+ * @type string
70
+ * @default ''
71
+ * @example
72
+ * <Modal class="my-class" />
73
+ */
74
+ class?: string;
75
+ /**
76
+ * Class of the overlay
77
+ * @type string
78
+ * @default ''
79
+ * @example
80
+ * <Modal overlayClass="my-class" />
81
+ */
82
+ overlayClass?: string;
83
+ /**
84
+ * Style of the Modal
85
+ * @type string
86
+ * @default ''
87
+ * @example
88
+ * <Modal style="color: red" />
89
+ */
90
+ style?: string;
91
+ }
92
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
93
+ width: {
94
+ type: PropType<string>;
95
+ };
96
+ height: {
97
+ type: PropType<string>;
98
+ };
99
+ style: {
100
+ type: PropType<string>;
101
+ };
102
+ title: {
103
+ type: PropType<string>;
104
+ default: string;
105
+ };
106
+ class: {
107
+ type: PropType<string>;
108
+ };
109
+ icon: {
110
+ type: PropType<string>;
111
+ };
112
+ block: {
113
+ type: PropType<boolean>;
114
+ default: boolean;
115
+ };
116
+ modelValue: {
117
+ type: PropType<boolean>;
118
+ required: true;
119
+ default: boolean;
120
+ };
121
+ outsideClick: {
122
+ type: PropType<boolean>;
123
+ };
124
+ description: {
125
+ type: PropType<string>;
126
+ default: string;
127
+ };
128
+ overlayClass: {
129
+ type: PropType<string>;
130
+ };
131
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
132
+ width: {
133
+ type: PropType<string>;
134
+ };
135
+ height: {
136
+ type: PropType<string>;
137
+ };
138
+ style: {
139
+ type: PropType<string>;
140
+ };
141
+ title: {
142
+ type: PropType<string>;
143
+ default: string;
144
+ };
145
+ class: {
146
+ type: PropType<string>;
147
+ };
148
+ icon: {
149
+ type: PropType<string>;
150
+ };
151
+ block: {
152
+ type: PropType<boolean>;
153
+ default: boolean;
154
+ };
155
+ modelValue: {
156
+ type: PropType<boolean>;
157
+ required: true;
158
+ default: boolean;
159
+ };
160
+ outsideClick: {
161
+ type: PropType<boolean>;
162
+ };
163
+ description: {
164
+ type: PropType<string>;
165
+ default: string;
166
+ };
167
+ overlayClass: {
168
+ type: PropType<string>;
169
+ };
170
+ }>> & {
171
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
172
+ }, {
173
+ title: string;
174
+ block: boolean;
175
+ modelValue: boolean;
176
+ description: string;
177
+ }>, {
178
+ header?(_: {}): any;
179
+ default?(_: {}): any;
180
+ actions?(_: {}): any;
181
+ }>;
182
+ export default _default;
183
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
184
+ new (): {
185
+ $slots: S;
186
+ };
187
+ };
188
+ //# sourceMappingURL=RModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/RModal.vue"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAC;AAGrB,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsMD,wBAA8G;AAU9G,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modal.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/modal.spec.ts"],"names":[],"mappings":""}