@tak-ps/vue-tabler 3.55.2 → 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,10 @@
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
+
13
17
  ### v3.55.2
14
18
 
15
19
  - :bug: Switch to `setup` for IconButton
@@ -10,10 +10,14 @@
10
10
  </template>
11
11
  <template v-else>
12
12
  <TablerIconButton
13
- icon='IconTrash'
14
13
  title='Delete'
15
14
  @click.stop.prevent='modal = true'
16
- />
15
+ >
16
+ <IconTrash
17
+ :size='32'
18
+ :stroke='1'
19
+ />
20
+ </tablericonbutton>
17
21
  </template>
18
22
 
19
23
  <TablerModal v-if='modal'>
@@ -1,40 +1,21 @@
1
1
  <template>
2
- <div
3
- tabindex='0'
4
- role='button'
5
- v-tooltip='title'
6
- class='cursor-pointer hover-button rounded'
7
- >
8
- <IconButton
9
- :title='title'
10
- :size='size'
11
- :stroke='stroke'
12
- />
13
- </div>
2
+ <div
3
+ v-tooltip='title'
4
+ tabindex='0'
5
+ role='button'
6
+ class='cursor-pointer hover-button rounded'
7
+ >
8
+ <slot />
9
+ </div>
14
10
  </template>
15
11
 
16
12
  <script setup>
17
- import { defineAsyncComponent, defineProps } from 'vue'
18
- import * as Icons from '@tabler/icons-vue';
13
+ import { defineProps } from 'vue'
19
14
 
20
- const props = defineProps({
21
- icon: {
22
- type: String,
23
- required: true
24
- },
15
+ defineProps({
25
16
  title: {
26
17
  type: String,
27
18
  required: true
28
19
  },
29
- size: {
30
- type: Number,
31
- default: 32
32
- },
33
- stroke: {
34
- type: Number,
35
- default: 1
36
- }
37
20
  })
38
-
39
- const IconButton = Icons[props.icon];
40
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.2",
4
+ "version": "3.55.3",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",