vueless 0.0.379 → 0.0.380

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.379",
3
+ "version": "0.0.380",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -45,16 +45,12 @@ export default {
45
45
  const DefaultTemplate = (args) => ({
46
46
  components: { UDataList, UIcon, URow, UButton },
47
47
  setup() {
48
- function onDragSort(value) {
49
- this.list = value;
50
- }
51
-
52
48
  const slots = getSlotNames(UDataList.__name);
53
49
 
54
- return { args, slots, onDragSort };
50
+ return { args, slots };
55
51
  },
56
52
  template: `
57
- <UDataList v-bind="args" @dragSort="onDragSort">
53
+ <UDataList v-bind="args">
58
54
  ${args.slotTemplate || getSlotsFragment()}
59
55
  </UDataList>
60
56
  `,
@@ -54,7 +54,6 @@
54
54
  ref="dropdownListRef"
55
55
  :size="size"
56
56
  :options="options"
57
- :value-key="valueKey"
58
57
  :label-key="labelKey"
59
58
  v-bind="dropdownListAttrs"
60
59
  :data-test="`${dataTest}-list`"
@@ -105,14 +104,6 @@ const props = defineProps({
105
104
  default: getDefault(defaultConfig, UDropdownBadge).labelKey,
106
105
  },
107
106
 
108
- /**
109
- * Value key in the item object of options.
110
- */
111
- valueKey: {
112
- type: String,
113
- default: getDefault(defaultConfig, UDropdownBadge).valueKey,
114
- },
115
-
116
107
  /**
117
108
  * Badge variant.
118
109
  * @values primary, secondary, thirdary
@@ -13,11 +13,7 @@ export default {
13
13
  component: UDropdownBadge,
14
14
  args: {
15
15
  label: "Dropdown",
16
- options: [
17
- { label: "option 1", id: "1" },
18
- { label: "option 2", id: "2" },
19
- { label: "option 3", id: "3" },
20
- ],
16
+ options: [{ label: "option 1" }, { label: "option 2" }, { label: "option 3" }],
21
17
  },
22
18
  argTypes: {
23
19
  ...getArgTypes(UDropdownBadge.__name),
@@ -55,7 +55,6 @@
55
55
  ref="dropdownListRef"
56
56
  :size="size"
57
57
  :options="options"
58
- :value-key="valueKey"
59
58
  :label-key="labelKey"
60
59
  v-bind="dropdownListAttrs"
61
60
  :data-test="`${dataTest}-list`"
@@ -107,14 +106,6 @@ const props = defineProps({
107
106
  default: getDefault(defaultConfig, UDropdownButton).labelKey,
108
107
  },
109
108
 
110
- /**
111
- * Value key in the item object of options.
112
- */
113
- valueKey: {
114
- type: String,
115
- default: getDefault(defaultConfig, UDropdownButton).valueKey,
116
- },
117
-
118
109
  /**
119
110
  * Button variant.
120
111
  * @values primary, secondary, thirdary
@@ -14,11 +14,7 @@ export default {
14
14
  component: UDropdownButton,
15
15
  args: {
16
16
  label: "Dropdown",
17
- options: [
18
- { label: "option 1", id: "1" },
19
- { label: "option 2", id: "2" },
20
- { label: "option 3", id: "3" },
21
- ],
17
+ options: [{ label: "option 1" }, { label: "option 2" }, { label: "option 3" }],
22
18
  },
23
19
  argTypes: {
24
20
  ...getArgTypes(UDropdownButton.__name),
@@ -58,7 +58,6 @@
58
58
  ref="dropdownListRef"
59
59
  :size="size"
60
60
  :options="options"
61
- :value-key="valueKey"
62
61
  :label-key="labelKey"
63
62
  :data-test="`${dataTest}-list`"
64
63
  v-bind="dropdownListAttrs"
@@ -110,14 +109,6 @@ const props = defineProps({
110
109
  default: getDefault(defaultConfig, UDropdownLink).labelKey,
111
110
  },
112
111
 
113
- /**
114
- * Value key in the item object of options.
115
- */
116
- valueKey: {
117
- type: String,
118
- default: getDefault(defaultConfig, UDropdownLink).valueKey,
119
- },
120
-
121
112
  /**
122
113
  * Link color.
123
114
  * @values brand, grayscale, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, white
@@ -16,7 +16,7 @@ export default /*tw*/ {
16
16
  variants: {
17
17
  error: {
18
18
  true: `
19
- border-red-300
19
+ border-red-300 bg-red-50
20
20
  hover:border-red-400 hover:focus-within:border-red-500
21
21
  focus-within:border-red-500 focus-within:ring-red-700/15
22
22
  `,
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.379",
4
+ "version": "0.0.380",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -3108,15 +3108,6 @@
3108
3108
  },
3109
3109
  "default": "label"
3110
3110
  },
3111
- {
3112
- "name": "valueKey",
3113
- "description": "Value key in the item object of options.",
3114
- "value": {
3115
- "kind": "expression",
3116
- "type": "string"
3117
- },
3118
- "default": "id"
3119
- },
3120
3111
  {
3121
3112
  "name": "variant",
3122
3113
  "description": "Badge variant.",
@@ -3297,15 +3288,6 @@
3297
3288
  },
3298
3289
  "default": "label"
3299
3290
  },
3300
- {
3301
- "name": "valueKey",
3302
- "description": "Value key in the item object of options.",
3303
- "value": {
3304
- "kind": "expression",
3305
- "type": "string"
3306
- },
3307
- "default": "id"
3308
- },
3309
3291
  {
3310
3292
  "name": "variant",
3311
3293
  "description": "Button variant.",
@@ -3510,15 +3492,6 @@
3510
3492
  },
3511
3493
  "default": "label"
3512
3494
  },
3513
- {
3514
- "name": "valueKey",
3515
- "description": "Value key in the item object of options.",
3516
- "value": {
3517
- "kind": "expression",
3518
- "type": "string"
3519
- },
3520
- "default": "id"
3521
- },
3522
3495
  {
3523
3496
  "name": "color",
3524
3497
  "description": "Link color.",