@bobbykim/manguito-theme 0.7.0 → 0.9.0

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 (45) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/index.d.ts +13 -0
  3. package/index.js +31 -0
  4. package/index.js.map +1 -0
  5. package/lib/collapse/Collapse.vue.d.ts +46 -0
  6. package/lib/collapse/index.types.d.ts +3 -0
  7. package/lib/collapse/index.types.js +2 -0
  8. package/lib/collapse/index.types.js.map +1 -0
  9. package/lib/composables/index.d.ts +1 -0
  10. package/lib/composables/index.js +2 -0
  11. package/lib/composables/index.js.map +1 -0
  12. package/lib/composables/observeVisible.d.ts +1 -0
  13. package/lib/composables/observeVisible.js +25 -0
  14. package/lib/composables/observeVisible.js.map +1 -0
  15. package/lib/directives/index.d.ts +6 -0
  16. package/lib/directives/index.js +216 -0
  17. package/lib/directives/index.js.map +1 -0
  18. package/lib/directives/index.ts +0 -1
  19. package/lib/directives/index.types.d.ts +14 -0
  20. package/lib/directives/index.types.js +2 -0
  21. package/lib/directives/index.types.js.map +1 -0
  22. package/lib/dropdown/DropdownContainer.vue.d.ts +19 -0
  23. package/lib/dropdown/DropdownContent.vue.d.ts +23 -0
  24. package/lib/dropdown/index.types.d.ts +4 -0
  25. package/lib/dropdown/index.types.js +2 -0
  26. package/lib/dropdown/index.types.js.map +1 -0
  27. package/lib/modal/Modal.vue.d.ts +112 -0
  28. package/lib/nav/HamburgerMenu.vue +1 -1
  29. package/lib/nav/HamburgerMenu.vue.d.ts +44 -0
  30. package/lib/sidebar/Sidebar.vue.d.ts +121 -0
  31. package/lib/tooltip/index.d.ts +62 -0
  32. package/lib/tooltip/index.js +72 -0
  33. package/lib/tooltip/index.js.map +1 -0
  34. package/package.json +5 -2
  35. package/theme/index.d.ts +94 -0
  36. package/theme/index.js +634 -0
  37. package/theme/index.js.map +1 -0
  38. package/theme/theme.d.ts +88 -0
  39. package/theme/theme.js +832 -0
  40. package/theme/theme.js.map +1 -0
  41. package/theme/theme.types.d.ts +21 -0
  42. package/theme/theme.types.js +2 -0
  43. package/theme/theme.types.js.map +1 -0
  44. package/tsconfig.json +8 -3
  45. package/tsconfig.vue.json +9 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [0.9.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/manguito-theme@0.8.0...@bobbykim/manguito-theme@0.9.0) (2023-12-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **components:** target version update ([fe78575](https://github.com/bobbykim89/manguito-component-library/commit/fe78575f5e82bb854333672c3853956e9e930044))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.8.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/manguito-theme@0.7.0...@bobbykim/manguito-theme@0.8.0) (2023-12-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * prerelease run build ([f7a852c](https://github.com/bobbykim89/manguito-component-library/commit/f7a852c9bf12b77481bf5d2f1602e50367d834f8))
23
+ * **tsconfig.json,tsconfig.vue.json:** update tsconfig ([0f21861](https://github.com/bobbykim89/manguito-component-library/commit/0f2186167342314f5d218e789a68c03cf6faa8ff))
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import type { ClassType, InputType } from './theme/index.js';
2
+ import DropdownContainer from './lib/dropdown/DropdownContainer.vue';
3
+ import DropdownContent from './lib/dropdown/DropdownContent.vue';
4
+ import Collapse from './lib/collapse/Collapse.vue';
5
+ import Sidebar from './lib/sidebar/Sidebar.vue';
6
+ import Modal from './lib/modal/Modal.vue';
7
+ import HamburgerMenu from './lib/nav/HamburgerMenu.vue';
8
+ declare const generateClass: (type: ClassType, value: InputType) => string;
9
+ export default generateClass;
10
+ export { DropdownContainer, DropdownContent, Collapse, HamburgerMenu, Sidebar, Modal, };
11
+ export * from './lib/directives';
12
+ export * from './theme/theme.types';
13
+ export * from './lib/collapse/index.types';
package/index.js ADDED
@@ -0,0 +1,31 @@
1
+ import GenerateMCLClass, { colorType, textType, borderWidthType, scaleType, } from './theme';
2
+ // base components
3
+ import DropdownContainer from './lib/dropdown/DropdownContainer.vue';
4
+ import DropdownContent from './lib/dropdown/DropdownContent.vue';
5
+ import Collapse from './lib/collapse/Collapse.vue';
6
+ import Sidebar from './lib/sidebar/Sidebar.vue';
7
+ import Modal from './lib/modal/Modal.vue';
8
+ import HamburgerMenu from './lib/nav/HamburgerMenu.vue';
9
+ const generateClass = (type, value) => {
10
+ const mclGenerate = new GenerateMCLClass(type, value);
11
+ if (colorType.includes(type)) {
12
+ return mclGenerate.generateColorClass();
13
+ }
14
+ if (textType.includes(type)) {
15
+ return mclGenerate.generateTextClass();
16
+ }
17
+ if (borderWidthType.includes(type)) {
18
+ return mclGenerate.generateBorderWidthClass();
19
+ }
20
+ if (scaleType.includes(type)) {
21
+ return mclGenerate.generateScaleClass();
22
+ }
23
+ // return spacing type if all of above is false
24
+ return mclGenerate.generateSpacingClass();
25
+ };
26
+ export default generateClass;
27
+ export { DropdownContainer, DropdownContent, Collapse, HamburgerMenu, Sidebar, Modal, };
28
+ export * from './lib/directives';
29
+ export * from './theme/theme.types';
30
+ export * from './lib/collapse/index.types';
31
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,EAAE,EACvB,SAAS,EACT,QAAQ,EACR,eAAe,EACf,SAAS,GACV,MAAM,SAAS,CAAA;AAEhB,kBAAkB;AAClB,OAAO,iBAAiB,MAAM,sCAAsC,CAAA;AACpE,OAAO,eAAe,MAAM,oCAAoC,CAAA;AAChE,OAAO,QAAQ,MAAM,6BAA6B,CAAA;AAClD,OAAO,OAAO,MAAM,2BAA2B,CAAA;AAC/C,OAAO,KAAK,MAAM,uBAAuB,CAAA;AAEzC,OAAO,aAAa,MAAM,6BAA6B,CAAA;AAEvD,MAAM,aAAa,GAAG,CAAC,IAAe,EAAE,KAAgB,EAAU,EAAE;IAClE,MAAM,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACrD,IAAyB,SAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACnD,OAAO,WAAW,CAAC,kBAAkB,EAAE,CAAA;KACxC;IACD,IAAyB,QAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAClD,OAAO,WAAW,CAAC,iBAAiB,EAAE,CAAA;KACvC;IACD,IAAyB,eAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACzD,OAAO,WAAW,CAAC,wBAAwB,EAAE,CAAA;KAC9C;IACD,IAAyB,SAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACnD,OAAO,WAAW,CAAC,kBAAkB,EAAE,CAAA;KACxC;IACD,+CAA+C;IAC/C,OAAO,WAAW,CAAC,oBAAoB,EAAE,CAAA;AAC3C,CAAC,CAAA;AAED,eAAe,aAAa,CAAA;AAE5B,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,aAAa,EACb,OAAO,EACP,KAAK,GACN,CAAA;AACD,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,46 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ visible: {
3
+ type: import("vue").PropType<boolean>;
4
+ default: boolean;
5
+ };
6
+ accordion: {
7
+ type: import("vue").PropType<string>;
8
+ };
9
+ className: {
10
+ type: import("vue").PropType<string>;
11
+ default: string;
12
+ };
13
+ }, {
14
+ toggle: () => void;
15
+ close: () => void;
16
+ open: () => void;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ open: (...args: any[]) => void;
19
+ close: (...args: any[]) => void;
20
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ visible: {
22
+ type: import("vue").PropType<boolean>;
23
+ default: boolean;
24
+ };
25
+ accordion: {
26
+ type: import("vue").PropType<string>;
27
+ };
28
+ className: {
29
+ type: import("vue").PropType<string>;
30
+ default: string;
31
+ };
32
+ }>> & {
33
+ onOpen?: ((...args: any[]) => any) | undefined;
34
+ onClose?: ((...args: any[]) => any) | undefined;
35
+ }, {
36
+ visible: boolean;
37
+ className: string;
38
+ }, {}>, {
39
+ default?(_: {}): any;
40
+ }>;
41
+ export default _default;
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,3 @@
1
+ export interface CollapseEvent {
2
+ visible: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.types.js","sourceRoot":"","sources":["index.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './observeVisible';
@@ -0,0 +1,2 @@
1
+ export * from './observeVisible';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ export declare const observeVisibleAttr: (fn: (...args: any[]) => void) => MutationObserver;
@@ -0,0 +1,25 @@
1
+ export const observeVisibleAttr = (fn) => {
2
+ const observer = new MutationObserver((mutations) => {
3
+ let changed = false;
4
+ for (let i = 0; i < mutations.length && !changed; i++) {
5
+ const mutation = mutations[i];
6
+ const mutationType = mutation.type;
7
+ const mutationAttribute = mutation.attributeName;
8
+ const mutationTarget = mutation.target;
9
+ if (mutationType === 'attributes') {
10
+ changed = true;
11
+ }
12
+ else if (mutationAttribute === 'visible') {
13
+ changed = true;
14
+ }
15
+ if (changed) {
16
+ const visibleAttr = mutationTarget.getAttribute('visible') === 'true'
17
+ ? true
18
+ : false;
19
+ fn(visibleAttr);
20
+ }
21
+ }
22
+ });
23
+ return observer;
24
+ };
25
+ //# sourceMappingURL=observeVisible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observeVisible.js","sourceRoot":"","sources":["observeVisible.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAA4B,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE;QAClD,IAAI,OAAO,GAAG,KAAK,CAAA;QACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;YACrD,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YAC7B,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAA;YAClC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAA;YAChD,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAA;YACtC,IAAI,YAAY,KAAK,YAAY,EAAE;gBACjC,OAAO,GAAG,IAAI,CAAA;aACf;iBAAM,IAAI,iBAAiB,KAAK,SAAS,EAAE;gBAC1C,OAAO,GAAG,IAAI,CAAA;aACf;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,WAAW,GACd,cAA8B,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,MAAM;oBAChE,CAAC,CAAC,IAAI;oBACN,CAAC,CAAC,KAAK,CAAA;gBACX,EAAE,CAAC,WAAW,CAAC,CAAA;aAChB;SACF;IACH,CAAC,CAAC,CAAA;IACF,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Directive } from 'vue';
2
+ import type { TooltipElementType, TooltipValueType } from './index.types';
3
+ export declare const vClickOutside: Directive;
4
+ export declare const vToggle: Directive;
5
+ export declare const vCollapse: Directive;
6
+ export declare const vTooltip: Directive<TooltipElementType, TooltipValueType>;
@@ -0,0 +1,216 @@
1
+ import { render, createVNode } from 'vue';
2
+ import tooltip from '../tooltip';
3
+ export const vClickOutside = {
4
+ mounted(el, binding) {
5
+ el.__ClickOutsideHandler = (event) => {
6
+ if (!(el === event.target || el.contains(event.target))) {
7
+ binding.value(event);
8
+ }
9
+ };
10
+ document.body.addEventListener('click', el.__ClickOutsideHandler);
11
+ },
12
+ unmounted(el) {
13
+ document.body.removeEventListener('click', el.__ClickOutsideHandler);
14
+ },
15
+ };
16
+ export const vToggle = {
17
+ mounted(el, binding) {
18
+ el.__ClickToggleHandler = (e) => {
19
+ const eTarget = e.target;
20
+ let target;
21
+ if (eTarget.tagName === 'A') {
22
+ const targetId = eTarget.getAttribute('href');
23
+ const formattedTargetId = targetId?.charAt(0) === '#' ? targetId.substring(1) : targetId;
24
+ target = document.getElementById(formattedTargetId);
25
+ }
26
+ else {
27
+ target = document.getElementById(binding.arg);
28
+ }
29
+ if (!target) {
30
+ return;
31
+ }
32
+ if (target.hasAttribute('visible') === false) {
33
+ return;
34
+ }
35
+ const targetAttr = target.getAttribute('visible');
36
+ const attrAfterToggle = targetAttr === 'true' ? 'false' : 'true';
37
+ target.setAttribute('visible', attrAfterToggle);
38
+ return;
39
+ };
40
+ el.addEventListener('click', el.__ClickToggleHandler);
41
+ },
42
+ unmounted(el) {
43
+ el.removeEventListener('click', el.__ClickToggleHandler);
44
+ },
45
+ };
46
+ export const vCollapse = {
47
+ mounted(el, binding) {
48
+ // el.__HandleToggler = (event: Event): void => {
49
+ // const eTarget = event.target as HTMLElement
50
+ // let target: HTMLElement
51
+ // if (eTarget.tagName === 'A') {
52
+ // const targetId = eTarget.getAttribute('href')
53
+ // const formattedTargetId =
54
+ // targetId?.charAt(0) === '#' ? targetId.substring(1) : targetId
55
+ // target = document.getElementById(formattedTargetId as string)!
56
+ // } else {
57
+ // target = document.getElementById(binding.arg as string) as HTMLElement
58
+ // }
59
+ // if (!target.hasAttribute('accordion')) {
60
+ // // run when it is not accordion component case
61
+ // target.click()
62
+ // return
63
+ // }
64
+ // const accordionName = target.getAttribute('accordion')
65
+ // const accordionList: NodeListOf<HTMLElement> = document.querySelectorAll(
66
+ // `button[accordion="${accordionName}"]`
67
+ // )
68
+ // // loop through each accordion items and handle reaction for each case
69
+ // for (let i = 0; i < accordionList.length; i++) {
70
+ // const isVisible = accordionList[i].getAttribute('visible')
71
+ // if (accordionList[i].id !== target.id && isVisible === 'true') {
72
+ // accordionList[i].click()
73
+ // }
74
+ // if (accordionList[i].id === target.id) {
75
+ // accordionList[i].click()
76
+ // }
77
+ // }
78
+ // }
79
+ el.__HandleToggler = (event) => {
80
+ const eTarget = event.target;
81
+ let target;
82
+ if (eTarget.tagName === 'A') {
83
+ const targetId = eTarget.getAttribute('href');
84
+ const formattedTargetId = targetId?.charAt(0) === '#' ? targetId.substring(1) : targetId;
85
+ target = document.getElementById(formattedTargetId);
86
+ }
87
+ else {
88
+ target = document.getElementById(binding.arg);
89
+ }
90
+ if (!target) {
91
+ return;
92
+ }
93
+ if (target.hasAttribute('visible') === false) {
94
+ return;
95
+ }
96
+ if (!target.hasAttribute('accordion')) {
97
+ // run when it is not accordion component case
98
+ const targetAttr = target.getAttribute('visible');
99
+ const attrAfterToggle = targetAttr === 'true' ? 'false' : 'true';
100
+ target.setAttribute('visible', attrAfterToggle);
101
+ // target.click()
102
+ return;
103
+ }
104
+ const accordionName = target.getAttribute('accordion');
105
+ const accordionList = document.querySelectorAll(`div[accordion="${accordionName}"]`);
106
+ // loop through each accordion items and handle reaction for each case
107
+ for (let i = 0; i < accordionList.length; i++) {
108
+ const isVisible = accordionList[i].getAttribute('visible');
109
+ if (accordionList[i].id !== target.id && isVisible === 'true') {
110
+ accordionList[i].setAttribute('visible', 'false');
111
+ // accordionList[i].click()
112
+ }
113
+ if (accordionList[i].id === target.id) {
114
+ const targetAttr = target.getAttribute('visible');
115
+ const attrAfterToggle = targetAttr === 'true' ? 'false' : 'true';
116
+ target.setAttribute('visible', attrAfterToggle);
117
+ // accordionList[i].click()
118
+ }
119
+ }
120
+ };
121
+ el.addEventListener('click', el.__HandleToggler);
122
+ },
123
+ unmounted(el) {
124
+ el.removeEventListener('click', el.__HandleToggler);
125
+ },
126
+ };
127
+ export const vTooltip = {
128
+ mounted(el, binding) {
129
+ el.__HandleTooltip = (el, binding) => {
130
+ // parent element class
131
+ el.classList.add('relative', 'group', 'overflow-visible');
132
+ // handle tooltip text
133
+ let tooltipText;
134
+ if (el.hasAttribute('title')) {
135
+ tooltipText = el.getAttribute('title');
136
+ }
137
+ if (!el.hasAttribute('title') &&
138
+ typeof binding.value !== 'undefined' &&
139
+ typeof binding.value === 'string') {
140
+ tooltipText = binding.value;
141
+ }
142
+ if (!el.hasAttribute('title') &&
143
+ typeof binding.value !== 'undefined' &&
144
+ typeof binding.value !== 'string' &&
145
+ typeof binding.value.title === 'string') {
146
+ tooltipText = binding.value.title;
147
+ }
148
+ // handle tooltip color
149
+ let tooltipColor;
150
+ if (el.hasAttribute('color')) {
151
+ tooltipColor = el.getAttribute('color');
152
+ }
153
+ if (!el.hasAttribute('color') &&
154
+ typeof binding.value !== 'undefined' &&
155
+ typeof binding.value !== 'string' &&
156
+ typeof binding.value.color === 'string') {
157
+ tooltipColor = binding.value.color;
158
+ }
159
+ // handle tooltip text color
160
+ let tooltipTextColor;
161
+ if (el.hasAttribute('text-color')) {
162
+ tooltipTextColor = el.getAttribute('text-color');
163
+ }
164
+ if (!el.hasAttribute('text-color') &&
165
+ typeof binding.value !== 'undefined' &&
166
+ typeof binding.value !== 'string' &&
167
+ typeof binding.value.textColor === 'string') {
168
+ tooltipTextColor = binding.value.textColor;
169
+ }
170
+ // handle tooltip width
171
+ let tooltipWidth;
172
+ if (el.hasAttribute('width')) {
173
+ tooltipWidth = el.getAttribute('width');
174
+ }
175
+ if (!el.hasAttribute('width') &&
176
+ typeof binding.value !== 'undefined' &&
177
+ typeof binding.value !== 'string' &&
178
+ typeof binding.value.width === ('number' || 'string')) {
179
+ tooltipWidth = binding.value.width;
180
+ }
181
+ // handle custom class names
182
+ let tooltipClassName;
183
+ if (typeof binding.value !== 'undefined' &&
184
+ typeof binding.value !== 'string' &&
185
+ typeof binding.value.className === 'string') {
186
+ tooltipClassName = binding.value.className;
187
+ }
188
+ let tooltipDirection;
189
+ const modifierArray = Object.keys(binding.modifiers);
190
+ // handle direction
191
+ if (modifierArray.length > 0) {
192
+ tooltipDirection = modifierArray[0];
193
+ }
194
+ const vnode = createVNode(tooltip, {
195
+ direction: tooltipDirection,
196
+ title: tooltipText,
197
+ color: tooltipColor,
198
+ textColor: tooltipTextColor,
199
+ width: tooltipWidth,
200
+ customClass: tooltipClassName,
201
+ });
202
+ render(vnode, el);
203
+ };
204
+ el.__UnmountTooltip = (el) => {
205
+ render(null, el);
206
+ };
207
+ el.__HandleTooltip(el, binding);
208
+ },
209
+ updated(el, binding) {
210
+ el.__HandleTooltip(el, binding);
211
+ },
212
+ unmounted(el) {
213
+ el.__UnmountTooltip(el);
214
+ },
215
+ };
216
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEzE,OAAO,OAAO,MAAM,YAAY,CAAA;AAGhC,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,OAAO,CAAC,EAAE,EAAE,OAAO;QACjB,EAAE,CAAC,qBAAqB,GAAG,CAAC,KAAY,EAAE,EAAE;YAC1C,IAAI,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE;gBACvD,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e,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IACjC,CAAC;IACD,SAAS,CAAC,EAAE;QACV,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAA;IACzB,CAAC;CACF,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { Directive, DirectiveBinding, h, render, createVNode } from 'vue'
2
- import generateClass from '../..'
3
2
  import type { Direction } from '../..'
4
3
  import tooltip from '../tooltip'
5
4
  import type { TooltipElementType, TooltipValueType } from './index.types'
@@ -0,0 +1,14 @@
1
+ import type { ColorPalette } from '../..';
2
+ export interface TooltipElementType extends HTMLElement {
3
+ __HandleTooltip: Function;
4
+ __UnmountTooltip: Function;
5
+ }
6
+ interface TooltipValueObjectType {
7
+ title?: string;
8
+ color?: ColorPalette;
9
+ textColor?: ColorPalette;
10
+ width?: number | string;
11
+ className?: string;
12
+ }
13
+ export type TooltipValueType = TooltipValueObjectType | string;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.types.js","sourceRoot":"","sources":["index.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ toggle: (...args: any[]) => void;
3
+ "click-outside": (...args: any[]) => void;
4
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
5
+ onToggle?: ((...args: any[]) => any) | undefined;
6
+ "onClick-outside"?: ((...args: any[]) => any) | undefined;
7
+ }, {}, {}>, {
8
+ toggler?(_: {
9
+ toggle: (e: Event) => void;
10
+ dropdownState: boolean;
11
+ }): any;
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,23 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ className: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ className: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ }>>, {
12
+ className: string;
13
+ }, {}>, {
14
+ default?(_: {
15
+ itemClick: () => void;
16
+ }): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,4 @@
1
+ export type InjectType = {
2
+ active: boolean;
3
+ buttonHeight: number;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.types.js","sourceRoot":"","sources":["index.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,112 @@
1
+ import { ColorPalette, VerticalAlignment } from '../../';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ visible: {
4
+ type: import("vue").PropType<boolean>;
5
+ default: boolean;
6
+ };
7
+ className: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ title: {
12
+ type: import("vue").PropType<string>;
13
+ };
14
+ titleColor: {
15
+ type: import("vue").PropType<ColorPalette>;
16
+ default: string;
17
+ };
18
+ noBackdrop: {
19
+ type: import("vue").PropType<boolean>;
20
+ default: boolean;
21
+ };
22
+ noHeader: {
23
+ type: import("vue").PropType<boolean>;
24
+ default: boolean;
25
+ };
26
+ color: {
27
+ type: import("vue").PropType<ColorPalette>;
28
+ default: string;
29
+ };
30
+ backdropColor: {
31
+ type: import("vue").PropType<ColorPalette>;
32
+ default: string;
33
+ };
34
+ placement: {
35
+ type: import("vue").PropType<VerticalAlignment>;
36
+ default: string;
37
+ };
38
+ }, {
39
+ toggle: () => void;
40
+ close: () => void;
41
+ open: () => void;
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ open: (...args: any[]) => void;
44
+ close: (...args: any[]) => void;
45
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
+ visible: {
47
+ type: import("vue").PropType<boolean>;
48
+ default: boolean;
49
+ };
50
+ className: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ title: {
55
+ type: import("vue").PropType<string>;
56
+ };
57
+ titleColor: {
58
+ type: import("vue").PropType<ColorPalette>;
59
+ default: string;
60
+ };
61
+ noBackdrop: {
62
+ type: import("vue").PropType<boolean>;
63
+ default: boolean;
64
+ };
65
+ noHeader: {
66
+ type: import("vue").PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ color: {
70
+ type: import("vue").PropType<ColorPalette>;
71
+ default: string;
72
+ };
73
+ backdropColor: {
74
+ type: import("vue").PropType<ColorPalette>;
75
+ default: string;
76
+ };
77
+ placement: {
78
+ type: import("vue").PropType<VerticalAlignment>;
79
+ default: string;
80
+ };
81
+ }>> & {
82
+ onOpen?: ((...args: any[]) => any) | undefined;
83
+ onClose?: ((...args: any[]) => any) | undefined;
84
+ }, {
85
+ visible: boolean;
86
+ className: string;
87
+ titleColor: ColorPalette;
88
+ noBackdrop: boolean;
89
+ noHeader: boolean;
90
+ color: ColorPalette;
91
+ backdropColor: ColorPalette;
92
+ placement: VerticalAlignment;
93
+ }, {}>, {
94
+ header?(_: {
95
+ close: () => void;
96
+ status: true;
97
+ }): any;
98
+ body?(_: {
99
+ close: () => void;
100
+ status: true;
101
+ }): any;
102
+ footer?(_: {
103
+ close: () => void;
104
+ status: true;
105
+ }): any;
106
+ }>;
107
+ export default _default;
108
+ type __VLS_WithTemplateSlots<T, S> = T & {
109
+ new (): {
110
+ $slots: S;
111
+ };
112
+ };
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
- import type { ColorPalette } from '@bobbykim/manguito-theme'
3
+ import type { ColorPalette } from '../../'
4
4
  import generateClass from '../../index'
5
5
 
6
6
  const props = withDefaults(