vueless 0.0.5 → 0.0.7

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 (55) hide show
  1. package/.eslintrc.js +7 -0
  2. package/package.json +3 -2
  3. package/postcss.config.js +1 -1
  4. package/src/service.tailwind/index.js +2 -3
  5. package/src/service.ui/index.js +1 -1
  6. package/src/ui.button/index.vue +2 -3
  7. package/src/ui.button-link/index.vue +2 -2
  8. package/src/ui.button-toggle/index.vue +2 -2
  9. package/src/ui.button-toggle-item/index.vue +1 -1
  10. package/src/ui.container-modal/index.vue +1 -0
  11. package/src/ui.container-page/index.vue +4 -0
  12. package/src/ui.data-list/index.vue +1 -0
  13. package/src/ui.data-table/index.vue +5 -0
  14. package/src/ui.dropdown-badge/index.vue +1 -0
  15. package/src/ui.dropdown-button/index.vue +3 -3
  16. package/src/ui.dropdown-link/index.vue +1 -0
  17. package/src/ui.dropdown-list/index.vue +6 -4
  18. package/src/ui.form-calendar/index.vue +6 -1
  19. package/src/ui.form-checkbox/index.vue +3 -2
  20. package/src/ui.form-checkbox-group/index.vue +2 -0
  21. package/src/ui.form-checkbox-multi-state/index.vue +1 -0
  22. package/src/ui.form-color-picker/index.vue +3 -0
  23. package/src/ui.form-date-picker/index.vue +7 -4
  24. package/src/ui.form-date-picker-range/index.vue +19 -11
  25. package/src/ui.form-input/index.vue +3 -0
  26. package/src/ui.form-input-file/index.vue +2 -0
  27. package/src/ui.form-input-money/index.vue +3 -4
  28. package/src/ui.form-input-number/index.vue +3 -0
  29. package/src/ui.form-input-rating/index.vue +1 -0
  30. package/src/ui.form-input-search/index.vue +3 -0
  31. package/src/ui.form-radio/index.vue +2 -1
  32. package/src/ui.form-radio-card/index.vue +1 -0
  33. package/src/ui.form-radio-group/index.vue +1 -0
  34. package/src/ui.form-select/index.vue +3 -0
  35. package/src/ui.form-switch/index.vue +1 -0
  36. package/src/ui.form-textarea/index.vue +2 -2
  37. package/src/ui.image-icon/index.vue +1 -1
  38. package/src/ui.navigation-pagination/index.vue +2 -1
  39. package/src/ui.navigation-stepper/index.vue +1 -3
  40. package/src/ui.navigation-tabs/index.vue +1 -1
  41. package/src/ui.text-alert/index.vue +2 -1
  42. package/src/ui.text-empty/index.vue +1 -0
  43. package/src/ui.text-files/index.vue +1 -1
  44. package/vite.config.mjs +5 -4
  45. package/web-types.json +1 -1
  46. package/.web-types-gen/package.json +0 -3
  47. package/src/library.web-types-gen/index.js +0 -17
  48. package/src/library.web-types-gen/lib/build.js +0 -252
  49. package/src/library.web-types-gen/lib/config.js +0 -32
  50. package/src/library.web-types-gen/package.json +0 -3
  51. package/src/plugin.vite/index.js +0 -59
  52. package/src/plugin.vite/services/iconResolver.service.js +0 -291
  53. package/src/plugin.vite/services/svgLoader.service.js +0 -76
  54. package/src/plugin.vite/services/tailwindSafelist.service.js +0 -195
  55. package/src/plugin.vite/services/unpluginComponentsResolver.js +0 -172
@@ -1,172 +0,0 @@
1
- /**
2
- Custom vueless UI library resolver for "unplugin-vue-components" plugin.
3
-
4
- When new components are added, please add related to them data into an object below with a format:
5
- - key = component name;
6
- - value = component folder;
7
-
8
- Docs:
9
- https://github.com/unplugin/unplugin-vue-components?tab=readme-ov-file#importing-from-ui-libraries
10
- */
11
-
12
- export const components = {
13
- /* Buttons & Links */
14
- UButton: "ui.button",
15
- ULink: "ui.button-link",
16
- UToggle: "ui.button-toggle",
17
- UToggleItem: "ui.button-toggle-item",
18
-
19
- /* Dropdowns */
20
- UDropdownButton: "ui.dropdown-button",
21
- UDropdownBadge: "ui.dropdown-badge",
22
- UDropdownLink: "ui.dropdown-link",
23
- UDropdownItem: "ui.dropdown-item",
24
-
25
- /* Form Inputs & Controls */
26
- UInput: "ui.form-input",
27
- UInputFile: "ui.form-input-file",
28
- UInputMoney: "ui.form-input-money",
29
- UInputSearch: "ui.form-input-search",
30
- UInputNumber: "ui.form-input-number",
31
- UInputRating: "ui.form-input-rating",
32
- UTextarea: "ui.form-textarea",
33
- USelect: "ui.form-select",
34
- UMultiselect: "ui.form-select-multi",
35
- UCheckbox: "ui.form-checkbox",
36
- UCheckboxGroup: "ui.form-checkbox-group",
37
- UCheckboxMultiState: "ui.form-checkbox-multi-state",
38
- USwitch: "ui.form-switch",
39
- URadio: "ui.form-radio",
40
- URadioCard: "ui.form-radio-card",
41
- URadioGroup: "ui.form-radio-group",
42
- UCalendar: "ui.form-calendar",
43
- UDatePicker: "ui.form-date-picker",
44
- UDatePickerRange: "ui.form-date-picker-range",
45
- ULabel: "ui.form-label",
46
-
47
- /* Text & Content */
48
- UHeader: "ui.text-header",
49
- UText: "ui.text-block",
50
- UAlert: "ui.text-alert",
51
- UMoney: "ui.text-money",
52
- UFile: "ui.text-file",
53
- UFiles: "ui.text-files",
54
- UEmpty: "ui.text-empty",
55
- UBadge: "ui.text-badge",
56
-
57
- /* Containers */
58
- UDivider: "ui.container-divider",
59
- URow: "ui.container-row",
60
- UGroup: "ui.container-group",
61
- UGroups: "ui.container-groups",
62
- UAccordion: "ui.container-accordion",
63
- UCard: "ui.container-card",
64
- UModal: "ui.container-modal",
65
- UModalConfirm: "ui.container-modal-confirm",
66
- UPage: "ui.container-page",
67
-
68
- /* Images and Icons */
69
- UIcon: "ui.image-icon",
70
- ULogo: "ui.image-logo",
71
- UAvatar: "ui.image-avatar",
72
-
73
- /* Data */
74
- UTable: "ui.data-table",
75
- UTableCell: "ui.data-table-cell",
76
- UDataList: "ui.data-list",
77
-
78
- /* Navigation */
79
- UTab: "ui.navigation-tab",
80
- UTabs: "ui.navigation-tabs",
81
- UStepper: "ui.navigation-stepper",
82
- UPagination: "ui.navigation-pagination",
83
-
84
- /* Other */
85
- UDot: "ui.other-dot",
86
- ULoader: "ui.other-loader",
87
- };
88
-
89
- export default function (componentName) {
90
- const components = {
91
- /* Buttons & Links */
92
- UButton: "ui.button",
93
- ULink: "ui.button-link",
94
- UToggle: "ui.button-toggle",
95
- UToggleItem: "ui.button-toggle-item",
96
-
97
- /* Dropdowns */
98
- UDropdownButton: "ui.dropdown-button",
99
- UDropdownBadge: "ui.dropdown-badge",
100
- UDropdownLink: "ui.dropdown-link",
101
- UDropdownItem: "ui.dropdown-item",
102
- UDropdownList: "ui.dropdown-list",
103
-
104
- /* Form Inputs & Controls */
105
- UInput: "ui.form-input",
106
- UInputFile: "ui.form-input-file",
107
- UInputMoney: "ui.form-input-money",
108
- UInputSearch: "ui.form-input-search",
109
- UInputNumber: "ui.form-input-number",
110
- UInputRating: "ui.form-input-rating",
111
- UTextarea: "ui.form-textarea",
112
- USelect: "ui.form-select",
113
- UCheckbox: "ui.form-checkbox",
114
- UCheckboxGroup: "ui.form-checkbox-group",
115
- UCheckboxMultiState: "ui.form-checkbox-multi-state",
116
- USwitch: "ui.form-switch",
117
- URadio: "ui.form-radio",
118
- URadioCard: "ui.form-radio-card",
119
- URadioGroup: "ui.form-radio-group",
120
- UCalendar: "ui.form-calendar",
121
- UDatePicker: "ui.form-date-picker",
122
- UDatePickerRange: "ui.form-date-picker-range",
123
- ULabel: "ui.form-label",
124
-
125
- /* Text & Content */
126
- UHeader: "ui.text-header",
127
- UText: "ui.text-block",
128
- UAlert: "ui.text-alert",
129
- UMoney: "ui.text-money",
130
- UFile: "ui.text-file",
131
- UFiles: "ui.text-files",
132
- UEmpty: "ui.text-empty",
133
- UBadge: "ui.text-badge",
134
-
135
- /* Containers */
136
- UDivider: "ui.container-divider",
137
- URow: "ui.container-row",
138
- UGroup: "ui.container-group",
139
- UGroups: "ui.container-groups",
140
- UAccordion: "ui.container-accordion",
141
- UCard: "ui.container-card",
142
- UModal: "ui.container-modal",
143
- UModalConfirm: "ui.container-modal-confirm",
144
- UPage: "ui.container-page",
145
-
146
- /* Images and Icons */
147
- UIcon: "ui.image-icon",
148
- ULogo: "ui.image-logo",
149
- UAvatar: "ui.image-avatar",
150
-
151
- /* Data */
152
- UTable: "ui.data-table",
153
- UTableCell: "ui.data-table-cell",
154
- UDataList: "ui.data-list",
155
-
156
- /* Navigation */
157
- UTab: "ui.navigation-tab",
158
- UTabs: "ui.navigation-tabs",
159
- UStepper: "ui.navigation-stepper",
160
- UPagination: "ui.navigation-pagination",
161
-
162
- /* Other */
163
- UDot: "ui.other-dot",
164
- ULoader: "ui.other-loader",
165
- };
166
-
167
- const componentFolder = components[componentName];
168
-
169
- if (componentFolder) {
170
- return { from: `/.vueless/${componentFolder}` };
171
- }
172
- }