vueless 0.0.385 → 0.0.386

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.385",
3
+ "version": "0.0.386",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -17,12 +17,12 @@
17
17
  <slot
18
18
  v-else
19
19
  name="placeholder"
20
- :icon-name="placeholderIcon"
20
+ :icon-name="placeholderIcon || config.defaults.placeholderIcon"
21
21
  :icon-color="componentColor"
22
22
  :icon-size="size"
23
23
  >
24
24
  <UIcon
25
- :name="placeholderIcon"
25
+ :name="placeholderIcon || config.defaults.placeholderIcon"
26
26
  :color="componentColor"
27
27
  :size="size"
28
28
  v-bind="placeholderIconAttrs"
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  },
55
55
 
56
56
  /**
57
- * Avatar label (user name, nickname, etc.).
57
+ * Avatar label (username, nickname, etc.).
58
58
  */
59
59
  label: {
60
60
  type: String,
@@ -62,7 +62,7 @@ const props = defineProps({
62
62
  },
63
63
 
64
64
  /**
65
- * Avatar icon placeholder.
65
+ * Avatar placeholder icon.
66
66
  */
67
67
  placeholderIcon: {
68
68
  type: String,
@@ -23,19 +23,19 @@ defineOptions({ inheritAttrs: false });
23
23
 
24
24
  const props = defineProps({
25
25
  /**
26
- * Icon SVG data source (svg as a vue component).
26
+ * Icon name.
27
27
  */
28
- src: {
29
- type: [String, Object],
28
+ name: {
29
+ type: String,
30
30
  default: "",
31
31
  },
32
32
 
33
33
  /**
34
- * Name of the icon.
34
+ * Icon source (svg as a vue component).
35
35
  */
36
- name: {
37
- type: String,
38
- default: "",
36
+ src: {
37
+ type: Object,
38
+ default: () => {},
39
39
  },
40
40
 
41
41
  /**
@@ -66,7 +66,7 @@ const props = defineProps({
66
66
  },
67
67
 
68
68
  /**
69
- * Add interactive states to the icon (hover, clicked).
69
+ * Make the icon interactive (cursor pointer, etc.).
70
70
  */
71
71
  interactive: {
72
72
  type: Boolean,
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.385",
4
+ "version": "0.0.386",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -339,7 +339,7 @@
339
339
  },
340
340
  {
341
341
  "name": "label",
342
- "description": "Avatar label (user name, nickname, etc.).",
342
+ "description": "Avatar label (username, nickname, etc.).",
343
343
  "value": {
344
344
  "kind": "expression",
345
345
  "type": "string"
@@ -348,7 +348,7 @@
348
348
  },
349
349
  {
350
350
  "name": "placeholderIcon",
351
- "description": "Avatar icon placeholder.",
351
+ "description": "Avatar placeholder icon.",
352
352
  "value": {
353
353
  "kind": "expression",
354
354
  "type": "string"
@@ -4253,22 +4253,22 @@
4253
4253
  "description": "",
4254
4254
  "attributes": [
4255
4255
  {
4256
- "name": "src",
4257
- "description": "Icon SVG data source (svg as a vue component).",
4256
+ "name": "name",
4257
+ "description": "Icon name.",
4258
4258
  "value": {
4259
4259
  "kind": "expression",
4260
- "type": "string|object"
4260
+ "type": "string"
4261
4261
  },
4262
4262
  "default": "\"\""
4263
4263
  },
4264
4264
  {
4265
- "name": "name",
4266
- "description": "Name of the icon.",
4265
+ "name": "src",
4266
+ "description": "Icon source (svg as a vue component).",
4267
4267
  "value": {
4268
4268
  "kind": "expression",
4269
- "type": "string"
4269
+ "type": "object"
4270
4270
  },
4271
- "default": "\"\""
4271
+ "default": "() => {}"
4272
4272
  },
4273
4273
  {
4274
4274
  "name": "color",
@@ -4299,7 +4299,7 @@
4299
4299
  },
4300
4300
  {
4301
4301
  "name": "interactive",
4302
- "description": "Add interactive states to the icon (hover, clicked).",
4302
+ "description": "Make the icon interactive (cursor pointer, etc.).",
4303
4303
  "value": {
4304
4304
  "kind": "expression",
4305
4305
  "type": "boolean"