@tak-ps/vue-tabler 3.55.1 → 3.55.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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.55.3
14
+
15
+ - :bug: Dynamic loading causes vite to load all in production mode
16
+
17
+ ### v3.55.2
18
+
19
+ - :bug: Switch to `setup` for IconButton
20
+
13
21
  ### v3.55.1
14
22
 
15
23
  - :bug: Fix async import dep
@@ -10,9 +10,14 @@
10
10
  </template>
11
11
  <template v-else>
12
12
  <TablerIconButton
13
- :icon='IconTrash'
13
+ title='Delete'
14
14
  @click.stop.prevent='modal = true'
15
- />
15
+ >
16
+ <IconTrash
17
+ :size='32'
18
+ :stroke='1'
19
+ />
20
+ </tablericonbutton>
16
21
  </template>
17
22
 
18
23
  <TablerModal v-if='modal'>
@@ -66,6 +71,7 @@ export default {
66
71
  components: {
67
72
  IconTrash,
68
73
  TablerLoading,
74
+ TablerIconButton,
69
75
  TablerModal
70
76
  },
71
77
  props: {
@@ -1,41 +1,21 @@
1
1
  <template>
2
- <component
3
- :is='IconButton'
4
- :title='title'
5
- :size='size'
6
- :stroke='stroke'
7
- tabindex='0'
8
- role='button'
9
- v-tooltip='title'
10
- class='cursor-pointer hover-button rounded'
11
- />
2
+ <div
3
+ v-tooltip='title'
4
+ tabindex='0'
5
+ role='button'
6
+ class='cursor-pointer hover-button rounded'
7
+ >
8
+ <slot />
9
+ </div>
12
10
  </template>
13
11
 
14
- <script>
15
- import { defineAsyncComponent } from 'vue'
12
+ <script setup>
13
+ import { defineProps } from 'vue'
16
14
 
17
- export default {
18
- name: 'TablerIconButton',
19
- props: {
20
- icon: {
21
- type: String,
22
- required: true
23
- },
24
- title: {
25
- type: String,
26
- required: true
27
- },
28
- size: {
29
- type: Number,
30
- default: 32
31
- },
32
- stroke: {
33
- type: Number,
34
- default: 5
35
- }
15
+ defineProps({
16
+ title: {
17
+ type: String,
18
+ required: true
36
19
  },
37
- components: {
38
- IconButton: defineAsyncComponent(() => import(`@tabler/icons-vue/dist/esm/icons/${this.icon}.mjs`))
39
- }
40
- }
20
+ })
41
21
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.55.1",
4
+ "version": "3.55.3",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",