windly-ui 1.0.2 → 1.0.3

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 (100) hide show
  1. package/{ui-library/dist → dist}/module.json +2 -2
  2. package/dist/module.mjs +26 -0
  3. package/dist/runtime/components/Accordion.d.vue.ts +39 -0
  4. package/dist/runtime/components/Accordion.vue +92 -0
  5. package/dist/runtime/components/Accordion.vue.d.ts +39 -0
  6. package/dist/runtime/components/Avatar.d.vue.ts +141 -0
  7. package/dist/runtime/components/Avatar.vue +72 -0
  8. package/dist/runtime/components/Avatar.vue.d.ts +141 -0
  9. package/dist/runtime/components/Badge.d.vue.ts +133 -0
  10. package/dist/runtime/components/Badge.vue +99 -0
  11. package/dist/runtime/components/Badge.vue.d.ts +133 -0
  12. package/dist/runtime/components/Breadcrumbs.d.vue.ts +83 -0
  13. package/dist/runtime/components/Breadcrumbs.vue +116 -0
  14. package/dist/runtime/components/Breadcrumbs.vue.d.ts +83 -0
  15. package/dist/runtime/components/Button.d.vue.ts +199 -0
  16. package/dist/runtime/components/Button.vue +125 -0
  17. package/dist/runtime/components/Button.vue.d.ts +199 -0
  18. package/dist/runtime/components/Card.d.vue.ts +83 -0
  19. package/dist/runtime/components/Card.vue +71 -0
  20. package/dist/runtime/components/Card.vue.d.ts +83 -0
  21. package/dist/runtime/components/Checkbox.d.vue.ts +190 -0
  22. package/dist/runtime/components/Checkbox.vue +125 -0
  23. package/dist/runtime/components/Checkbox.vue.d.ts +190 -0
  24. package/dist/runtime/components/CodeBlock.d.vue.ts +16 -0
  25. package/dist/runtime/components/CodeBlock.vue +75 -0
  26. package/dist/runtime/components/CodeBlock.vue.d.ts +16 -0
  27. package/dist/runtime/components/ColorPicker.d.vue.ts +91 -0
  28. package/dist/runtime/components/ColorPicker.vue +244 -0
  29. package/dist/runtime/components/ColorPicker.vue.d.ts +91 -0
  30. package/dist/runtime/components/Date.d.vue.ts +137 -0
  31. package/dist/runtime/components/Date.vue +201 -0
  32. package/dist/runtime/components/Date.vue.d.ts +137 -0
  33. package/dist/runtime/components/Dialog.d.vue.ts +103 -0
  34. package/dist/runtime/components/Dialog.vue +152 -0
  35. package/dist/runtime/components/Dialog.vue.d.ts +103 -0
  36. package/dist/runtime/components/Divider.d.vue.ts +51 -0
  37. package/dist/runtime/components/Divider.vue +52 -0
  38. package/dist/runtime/components/Divider.vue.d.ts +51 -0
  39. package/dist/runtime/components/Drawer.d.vue.ts +30 -0
  40. package/dist/runtime/components/Drawer.vue +43 -0
  41. package/dist/runtime/components/Drawer.vue.d.ts +30 -0
  42. package/dist/runtime/components/Dropdown.d.vue.ts +34 -0
  43. package/dist/runtime/components/Dropdown.vue +127 -0
  44. package/dist/runtime/components/Dropdown.vue.d.ts +34 -0
  45. package/dist/runtime/components/FileUploader.d.vue.ts +58 -0
  46. package/dist/runtime/components/FileUploader.vue +202 -0
  47. package/dist/runtime/components/FileUploader.vue.d.ts +58 -0
  48. package/dist/runtime/components/Icon.d.vue.ts +41 -0
  49. package/dist/runtime/components/Icon.vue +66 -0
  50. package/dist/runtime/components/Icon.vue.d.ts +41 -0
  51. package/dist/runtime/components/Image.d.vue.ts +77 -0
  52. package/dist/runtime/components/Image.vue +61 -0
  53. package/dist/runtime/components/Image.vue.d.ts +77 -0
  54. package/dist/runtime/components/Input.d.vue.ts +66 -0
  55. package/dist/runtime/components/Input.vue +233 -0
  56. package/dist/runtime/components/Input.vue.d.ts +66 -0
  57. package/dist/runtime/components/Radio.d.vue.ts +41 -0
  58. package/dist/runtime/components/Radio.vue +222 -0
  59. package/dist/runtime/components/Radio.vue.d.ts +41 -0
  60. package/dist/runtime/components/ScrollArea.d.vue.ts +79 -0
  61. package/dist/runtime/components/ScrollArea.vue +36 -0
  62. package/dist/runtime/components/ScrollArea.vue.d.ts +79 -0
  63. package/dist/runtime/components/Select.d.vue.ts +43 -0
  64. package/dist/runtime/components/Select.vue +200 -0
  65. package/dist/runtime/components/Select.vue.d.ts +43 -0
  66. package/dist/runtime/components/Stepper.d.vue.ts +46 -0
  67. package/dist/runtime/components/Stepper.vue +218 -0
  68. package/dist/runtime/components/Stepper.vue.d.ts +46 -0
  69. package/dist/runtime/components/TabPanel.d.vue.ts +17 -0
  70. package/dist/runtime/components/TabPanel.vue +21 -0
  71. package/dist/runtime/components/TabPanel.vue.d.ts +17 -0
  72. package/dist/runtime/components/Table.d.vue.ts +40 -0
  73. package/dist/runtime/components/Table.vue +92 -0
  74. package/dist/runtime/components/Table.vue.d.ts +40 -0
  75. package/dist/runtime/components/Tabs.d.vue.ts +20 -0
  76. package/dist/runtime/components/Tabs.vue +62 -0
  77. package/dist/runtime/components/Tabs.vue.d.ts +20 -0
  78. package/dist/runtime/components/Textarea.d.vue.ts +208 -0
  79. package/dist/runtime/components/Textarea.vue +185 -0
  80. package/dist/runtime/components/Textarea.vue.d.ts +208 -0
  81. package/dist/runtime/components/Toggle.d.vue.ts +36 -0
  82. package/dist/runtime/components/Toggle.vue +173 -0
  83. package/dist/runtime/components/Toggle.vue.d.ts +36 -0
  84. package/dist/runtime/components/Tooltip.d.vue.ts +63 -0
  85. package/dist/runtime/components/Tooltip.vue +144 -0
  86. package/dist/runtime/components/Tooltip.vue.d.ts +63 -0
  87. package/dist/runtime/components/uiProps.d.ts +38 -0
  88. package/dist/runtime/components/uiProps.js +11 -0
  89. package/dist/runtime/components/useUiClasses.d.ts +43 -0
  90. package/dist/runtime/components/useUiClasses.js +124 -0
  91. package/dist/runtime/composables/plugin.d.ts +2 -0
  92. package/dist/runtime/composables/plugin.js +3 -0
  93. package/dist/runtime/tailwind-color.d.ts +2 -0
  94. package/dist/runtime/tailwind-color.js +5859 -0
  95. package/package.json +12 -46
  96. package/LICENSE +0 -21
  97. package/README.md +0 -232
  98. package/ui-library/dist/module.mjs +0 -22
  99. /package/{ui-library/dist → dist}/module.d.mts +0 -0
  100. /package/{ui-library/dist → dist}/types.d.mts +0 -0
@@ -0,0 +1,137 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: (StringConstructor | ArrayConstructor)[];
4
+ default: string;
5
+ };
6
+ multiDate: BooleanConstructor;
7
+ rangeDate: BooleanConstructor;
8
+ disabledDates: {
9
+ type: () => string[];
10
+ default: () => never[];
11
+ };
12
+ format: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ showHeader: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ backgroundColor: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ bordered: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ borderRadius: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ acceptedValues: string[];
32
+ };
33
+ flat: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ color: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ textColor: {
42
+ readonly type: StringConstructor;
43
+ readonly default: "";
44
+ };
45
+ contentClass: {
46
+ readonly type: StringConstructor;
47
+ readonly default: "";
48
+ };
49
+ contentStyle: {
50
+ readonly type: StringConstructor;
51
+ readonly default: "";
52
+ };
53
+ disable: {
54
+ readonly type: BooleanConstructor;
55
+ readonly default: false;
56
+ };
57
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ "update:modelValue": (...args: any[]) => void;
59
+ change: (...args: any[]) => void;
60
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
+ modelValue: {
62
+ type: (StringConstructor | ArrayConstructor)[];
63
+ default: string;
64
+ };
65
+ multiDate: BooleanConstructor;
66
+ rangeDate: BooleanConstructor;
67
+ disabledDates: {
68
+ type: () => string[];
69
+ default: () => never[];
70
+ };
71
+ format: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ showHeader: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ backgroundColor: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ bordered: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ borderRadius: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ acceptedValues: string[];
91
+ };
92
+ flat: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ color: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ textColor: {
101
+ readonly type: StringConstructor;
102
+ readonly default: "";
103
+ };
104
+ contentClass: {
105
+ readonly type: StringConstructor;
106
+ readonly default: "";
107
+ };
108
+ contentStyle: {
109
+ readonly type: StringConstructor;
110
+ readonly default: "";
111
+ };
112
+ disable: {
113
+ readonly type: BooleanConstructor;
114
+ readonly default: false;
115
+ };
116
+ }>> & Readonly<{
117
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
118
+ onChange?: ((...args: any[]) => any) | undefined;
119
+ }>, {
120
+ modelValue: string | unknown[];
121
+ contentClass: string;
122
+ contentStyle: string;
123
+ textColor: string;
124
+ disable: boolean;
125
+ color: string;
126
+ backgroundColor: string;
127
+ flat: boolean;
128
+ bordered: boolean;
129
+ borderRadius: string;
130
+ multiDate: boolean;
131
+ rangeDate: boolean;
132
+ disabledDates: string[];
133
+ format: string;
134
+ showHeader: boolean;
135
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
+ declare const _default: typeof __VLS_export;
137
+ export default _default;
@@ -0,0 +1,103 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ isOpen: {
9
+ type: BooleanConstructor;
10
+ required: true;
11
+ };
12
+ title: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ message: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ confirmBtnText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ cancelBtnText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ showConfirmBtn: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ showCloseIcon: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ persistent: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ position: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ validator: (val: unknown) => any;
44
+ };
45
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ "update:isOpen": (...args: any[]) => void;
47
+ confirm: (...args: any[]) => void;
48
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
+ isOpen: {
50
+ type: BooleanConstructor;
51
+ required: true;
52
+ };
53
+ title: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ message: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ confirmBtnText: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ cancelBtnText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ showConfirmBtn: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ showCloseIcon: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ persistent: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ position: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ validator: (val: unknown) => any;
85
+ };
86
+ }>> & Readonly<{
87
+ "onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
88
+ onConfirm?: ((...args: any[]) => any) | undefined;
89
+ }>, {
90
+ title: string;
91
+ position: string;
92
+ message: string;
93
+ confirmBtnText: string;
94
+ cancelBtnText: string;
95
+ showConfirmBtn: boolean;
96
+ showCloseIcon: boolean;
97
+ persistent: boolean;
98
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
+ type __VLS_Slots = {
100
+ title?: ((props: {}) => any) | undefined;
101
+ } & {
102
+ message?: ((props: {}) => any) | undefined;
103
+ };
@@ -0,0 +1,152 @@
1
+ <template>
2
+ <transition name="fade">
3
+ <div
4
+ v-if="isOpen"
5
+ class="fixed inset-0 z-50 flex bg-black bg-opacity-60"
6
+ role="dialog"
7
+ aria-modal="true"
8
+ @click.self="handleOutsideClick"
9
+ :class="positionClasses"
10
+ >
11
+ <div class="bg-white rounded-lg shadow-lg w-96 p-6">
12
+ <!-- Header -->
13
+ <div class="flex justify-between items-center mb-4">
14
+ <slot name="title">
15
+ <h3 class="text-lg font-semibold">
16
+ {{ title }}
17
+ </h3>
18
+ </slot>
19
+
20
+ <button
21
+ v-if="showCloseIcon"
22
+ @click="close"
23
+ class="text-gray-500 hover:text-gray-700"
24
+ aria-label="Close modal"
25
+ >
26
+ <span class="material-icons">close</span>
27
+ </button>
28
+ </div>
29
+
30
+ <!-- Message -->
31
+ <slot name="message">
32
+ <p class="text-gray-600 mb-6">
33
+ {{ message }}
34
+ </p>
35
+ </slot>
36
+
37
+ <!-- Actions -->
38
+ <div class="flex justify-end">
39
+ <button
40
+ @click="close"
41
+ class="mr-2 px-4 py-2 bg-gray-200 text-gray-700 rounded-lg transition hover:bg-gray-300"
42
+ >
43
+ {{ cancelBtnText }}
44
+ </button>
45
+
46
+ <button
47
+ v-if="showConfirmBtn"
48
+ @click="handleConfirm"
49
+ class="px-4 py-2 bg-blue-500 text-white rounded-lg transition hover:bg-blue-600"
50
+ >
51
+ {{ confirmBtnText }}
52
+ </button>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </transition>
57
+ </template>
58
+
59
+ <script setup>
60
+ import { computed, watch, onBeforeUnmount } from "vue";
61
+ import { useRouter } from "vue-router";
62
+ const props = defineProps({
63
+ isOpen: {
64
+ type: Boolean,
65
+ required: true
66
+ },
67
+ title: {
68
+ type: String,
69
+ default: "Modal Title"
70
+ },
71
+ message: {
72
+ type: String,
73
+ default: ""
74
+ },
75
+ confirmBtnText: {
76
+ type: String,
77
+ default: "Confirm"
78
+ },
79
+ cancelBtnText: {
80
+ type: String,
81
+ default: "Cancel"
82
+ },
83
+ showConfirmBtn: {
84
+ type: Boolean,
85
+ default: false
86
+ },
87
+ showCloseIcon: {
88
+ type: Boolean,
89
+ default: false
90
+ },
91
+ persistent: {
92
+ type: Boolean,
93
+ default: false
94
+ },
95
+ position: {
96
+ type: String,
97
+ default: "center",
98
+ validator: (val) => ["center", "top", "bottom", "left", "right"].includes(val)
99
+ }
100
+ });
101
+ const emit = defineEmits(["update:isOpen", "confirm"]);
102
+ const router = useRouter();
103
+ const close = () => emit("update:isOpen", false);
104
+ const handleConfirm = () => {
105
+ emit("confirm");
106
+ close();
107
+ };
108
+ const handleOutsideClick = () => {
109
+ if (!props.persistent) close();
110
+ };
111
+ const handleEscKey = (event) => {
112
+ if (event.key === "Escape" && !props.persistent) {
113
+ close();
114
+ }
115
+ };
116
+ const positionClasses = computed(() => {
117
+ switch (props.position) {
118
+ case "top":
119
+ return "items-start justify-center p-6";
120
+ case "bottom":
121
+ return "items-end justify-center p-6";
122
+ case "left":
123
+ return "items-center justify-start p-6";
124
+ case "right":
125
+ return "items-center justify-end p-6";
126
+ default:
127
+ return "items-center justify-center p-6";
128
+ }
129
+ });
130
+ watch(
131
+ () => props.isOpen,
132
+ (open) => {
133
+ if (open) {
134
+ document.addEventListener("keydown", handleEscKey);
135
+ } else {
136
+ document.removeEventListener("keydown", handleEscKey);
137
+ }
138
+ }
139
+ );
140
+ const removeGuard = router.beforeEach((to, from, next) => {
141
+ if (props.isOpen && !props.persistent) close();
142
+ next();
143
+ });
144
+ onBeforeUnmount(() => {
145
+ document.removeEventListener("keydown", handleEscKey);
146
+ removeGuard?.();
147
+ });
148
+ </script>
149
+
150
+ <style scoped>
151
+ .fade-enter-active{animation:fadeInScale .3s ease forwards}.fade-leave-active{transition:opacity .3s ease,transform .3s ease}@keyframes fadeInScale{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.fade-leave-to{opacity:0;transform:scale(.9)}
152
+ </style>
@@ -0,0 +1,103 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ isOpen: {
9
+ type: BooleanConstructor;
10
+ required: true;
11
+ };
12
+ title: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ message: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ confirmBtnText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ cancelBtnText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ showConfirmBtn: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ showCloseIcon: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ persistent: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ position: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ validator: (val: unknown) => any;
44
+ };
45
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ "update:isOpen": (...args: any[]) => void;
47
+ confirm: (...args: any[]) => void;
48
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
+ isOpen: {
50
+ type: BooleanConstructor;
51
+ required: true;
52
+ };
53
+ title: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ message: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ confirmBtnText: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ cancelBtnText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ showConfirmBtn: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ showCloseIcon: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ persistent: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ position: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ validator: (val: unknown) => any;
85
+ };
86
+ }>> & Readonly<{
87
+ "onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
88
+ onConfirm?: ((...args: any[]) => any) | undefined;
89
+ }>, {
90
+ title: string;
91
+ position: string;
92
+ message: string;
93
+ confirmBtnText: string;
94
+ cancelBtnText: string;
95
+ showConfirmBtn: boolean;
96
+ showCloseIcon: boolean;
97
+ persistent: boolean;
98
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
+ type __VLS_Slots = {
100
+ title?: ((props: {}) => any) | undefined;
101
+ } & {
102
+ message?: ((props: {}) => any) | undefined;
103
+ };
@@ -0,0 +1,51 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ color: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ vertical: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ inset: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ thickness: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ color: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ type: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ vertical: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ inset: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ thickness: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ type: string;
45
+ color: string;
46
+ vertical: boolean;
47
+ inset: boolean;
48
+ thickness: string;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
@@ -0,0 +1,52 @@
1
+ <script setup>
2
+ defineOptions({
3
+ inheritAttrs: false
4
+ });
5
+ import { computed } from "vue";
6
+ const props = defineProps({
7
+ color: {
8
+ type: String,
9
+ default: "gray-300"
10
+ },
11
+ type: {
12
+ type: String,
13
+ default: "solid"
14
+ },
15
+ vertical: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ inset: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ thickness: {
24
+ type: String,
25
+ default: "1px"
26
+ }
27
+ });
28
+ const isHex = (val) => val.startsWith("#");
29
+ const dividerStyle = computed(() => {
30
+ const style = {};
31
+ if (isHex(props.color)) {
32
+ style.borderColor = props.color;
33
+ }
34
+ style.borderWidth = props.thickness;
35
+ return style;
36
+ });
37
+ const dividerClass = computed(() => [
38
+ props.vertical ? "h-full border-l" : "w-full border-t",
39
+ props.type === "dashed" ? "border-dashed" : "",
40
+ props.type === "dotted" ? "border-dotted" : "",
41
+ props.inset ? "mx-4" : "",
42
+ !isHex(props.color) ? `border-${props.color}` : ""
43
+ ]);
44
+ </script>
45
+
46
+ <template>
47
+ <div
48
+ :class="dividerClass"
49
+ :style="dividerStyle"
50
+ v-bind="$attrs"
51
+ />
52
+ </template>
@@ -0,0 +1,51 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ color: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ vertical: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ inset: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ thickness: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ color: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ type: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ vertical: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ inset: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ thickness: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ type: string;
45
+ color: string;
46
+ vertical: boolean;
47
+ inset: boolean;
48
+ thickness: string;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
+ declare const _default: typeof __VLS_export;
51
+ export default _default;
@@ -0,0 +1,30 @@
1
+ type DrawerDirection = 'left' | 'right';
2
+ interface Props {
3
+ isOpen: boolean;
4
+ direction?: DrawerDirection;
5
+ background?: string;
6
+ width?: string;
7
+ padding?: string;
8
+ }
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ close: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
+ onClose?: (() => any) | undefined;
17
+ }>, {
18
+ width: string;
19
+ background: string;
20
+ direction: DrawerDirection;
21
+ padding: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };