vueless 0.0.557 → 0.0.558

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/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.557",
4
+ "version": "0.0.558",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -7081,24 +7081,25 @@
7081
7081
  "attributes": [
7082
7082
  {
7083
7083
  "name": "label",
7084
+ "required": false,
7084
7085
  "description": "Label text.",
7085
7086
  "value": {
7086
7087
  "kind": "expression",
7087
7088
  "type": "string"
7088
- },
7089
- "default": "\"\""
7089
+ }
7090
7090
  },
7091
7091
  {
7092
7092
  "name": "description",
7093
+ "required": false,
7093
7094
  "description": "Label description.",
7094
7095
  "value": {
7095
7096
  "kind": "expression",
7096
7097
  "type": "string"
7097
- },
7098
- "default": "\"\""
7098
+ }
7099
7099
  },
7100
7100
  {
7101
7101
  "name": "error",
7102
+ "required": false,
7102
7103
  "description": "Label error message.",
7103
7104
  "value": {
7104
7105
  "kind": "expression",
@@ -7108,6 +7109,7 @@
7108
7109
  },
7109
7110
  {
7110
7111
  "name": "align",
7112
+ "required": false,
7111
7113
  "description": "Label align.",
7112
7114
  "enum": [
7113
7115
  "top",
@@ -7118,12 +7120,13 @@
7118
7120
  ],
7119
7121
  "value": {
7120
7122
  "kind": "expression",
7121
- "type": "string"
7123
+ "type": "union"
7122
7124
  },
7123
7125
  "default": "top"
7124
7126
  },
7125
7127
  {
7126
7128
  "name": "size",
7129
+ "required": false,
7127
7130
  "description": "Label size.",
7128
7131
  "enum": [
7129
7132
  "sm",
@@ -7132,12 +7135,13 @@
7132
7135
  ],
7133
7136
  "value": {
7134
7137
  "kind": "expression",
7135
- "type": "string"
7138
+ "type": "union"
7136
7139
  },
7137
7140
  "default": "md"
7138
7141
  },
7139
7142
  {
7140
7143
  "name": "disabled",
7144
+ "required": false,
7141
7145
  "description": "Make label disabled.",
7142
7146
  "value": {
7143
7147
  "kind": "expression",
@@ -7147,6 +7151,7 @@
7147
7151
  },
7148
7152
  {
7149
7153
  "name": "centred",
7154
+ "required": false,
7150
7155
  "description": "Centre label horizontally.",
7151
7156
  "value": {
7152
7157
  "kind": "expression",
@@ -7156,24 +7161,25 @@
7156
7161
  },
7157
7162
  {
7158
7163
  "name": "for",
7164
+ "required": false,
7159
7165
  "description": "Set input id for label `for` attribute.",
7160
7166
  "value": {
7161
7167
  "kind": "expression",
7162
7168
  "type": "string"
7163
- },
7164
- "default": "\"\""
7169
+ }
7165
7170
  },
7166
7171
  {
7167
7172
  "name": "config",
7173
+ "required": false,
7168
7174
  "description": "Component config object.",
7169
7175
  "value": {
7170
7176
  "kind": "expression",
7171
- "type": "object"
7172
- },
7173
- "default": "{}"
7177
+ "type": "Config"
7178
+ }
7174
7179
  },
7175
7180
  {
7176
7181
  "name": "dataTest",
7182
+ "required": false,
7177
7183
  "description": "Data-test attribute for automated testing.",
7178
7184
  "value": {
7179
7185
  "kind": "expression",
@@ -10172,6 +10178,7 @@
10172
10178
  "attributes": [
10173
10179
  {
10174
10180
  "name": "modelValue",
10181
+ "required": false,
10175
10182
  "description": "Switch value.",
10176
10183
  "value": {
10177
10184
  "kind": "expression",
@@ -10181,6 +10188,7 @@
10181
10188
  },
10182
10189
  {
10183
10190
  "name": "labelAlign",
10191
+ "required": false,
10184
10192
  "description": "Label alignment.",
10185
10193
  "enum": [
10186
10194
  "top",
@@ -10189,30 +10197,31 @@
10189
10197
  ],
10190
10198
  "value": {
10191
10199
  "kind": "expression",
10192
- "type": "string"
10200
+ "type": "union"
10193
10201
  },
10194
10202
  "default": "right"
10195
10203
  },
10196
10204
  {
10197
10205
  "name": "label",
10206
+ "required": false,
10198
10207
  "description": "Switch label.",
10199
10208
  "value": {
10200
10209
  "kind": "expression",
10201
10210
  "type": "string"
10202
- },
10203
- "default": "\"\""
10211
+ }
10204
10212
  },
10205
10213
  {
10206
10214
  "name": "description",
10215
+ "required": false,
10207
10216
  "description": "Switch description.",
10208
10217
  "value": {
10209
10218
  "kind": "expression",
10210
10219
  "type": "string"
10211
- },
10212
- "default": "\"\""
10220
+ }
10213
10221
  },
10214
10222
  {
10215
10223
  "name": "size",
10224
+ "required": false,
10216
10225
  "description": "Switch size.",
10217
10226
  "enum": [
10218
10227
  "sm",
@@ -10221,17 +10230,16 @@
10221
10230
  ],
10222
10231
  "value": {
10223
10232
  "kind": "expression",
10224
- "type": "string"
10233
+ "type": "union"
10225
10234
  },
10226
10235
  "default": "md"
10227
10236
  },
10228
10237
  {
10229
10238
  "name": "color",
10239
+ "required": false,
10230
10240
  "description": "Switch color.",
10231
10241
  "enum": [
10232
- "brand",
10233
10242
  "grayscale",
10234
- "gray",
10235
10243
  "red",
10236
10244
  "orange",
10237
10245
  "amber",
@@ -10249,16 +10257,19 @@
10249
10257
  "fuchsia",
10250
10258
  "pink",
10251
10259
  "rose",
10252
- "white"
10260
+ "gray",
10261
+ "white",
10262
+ "brand"
10253
10263
  ],
10254
10264
  "value": {
10255
10265
  "kind": "expression",
10256
- "type": "string"
10266
+ "type": "union"
10257
10267
  },
10258
10268
  "default": "brand"
10259
10269
  },
10260
10270
  {
10261
10271
  "name": "toggleIcon",
10272
+ "required": false,
10262
10273
  "description": "Show toggle icons inside the circle.",
10263
10274
  "value": {
10264
10275
  "kind": "expression",
@@ -10268,6 +10279,7 @@
10268
10279
  },
10269
10280
  {
10270
10281
  "name": "toggleLabel",
10282
+ "required": false,
10271
10283
  "description": "Show toggle labels (on / off).",
10272
10284
  "value": {
10273
10285
  "kind": "expression",
@@ -10277,6 +10289,7 @@
10277
10289
  },
10278
10290
  {
10279
10291
  "name": "disabled",
10292
+ "required": false,
10280
10293
  "description": "Set switch disabled.",
10281
10294
  "value": {
10282
10295
  "kind": "expression",
@@ -10286,24 +10299,26 @@
10286
10299
  },
10287
10300
  {
10288
10301
  "name": "id",
10302
+ "required": false,
10289
10303
  "description": "Unique element id.",
10290
10304
  "value": {
10291
10305
  "kind": "expression",
10292
10306
  "type": "string"
10293
- },
10294
- "default": "\"\""
10307
+ }
10295
10308
  },
10296
10309
  {
10297
10310
  "name": "config",
10311
+ "required": false,
10298
10312
  "description": "Component config object.",
10299
10313
  "value": {
10300
10314
  "kind": "expression",
10301
- "type": "object"
10315
+ "type": "Config"
10302
10316
  },
10303
- "default": "{}"
10317
+ "default": "() => ({})"
10304
10318
  },
10305
10319
  {
10306
10320
  "name": "dataTest",
10321
+ "required": false,
10307
10322
  "description": "Data-test attribute for automated testing.",
10308
10323
  "value": {
10309
10324
  "kind": "expression",
@@ -11016,6 +11031,7 @@
11016
11031
  "attributes": [
11017
11032
  {
11018
11033
  "name": "size",
11034
+ "required": false,
11019
11035
  "description": "Set input size.",
11020
11036
  "enum": [
11021
11037
  "sm",
@@ -11024,12 +11040,13 @@
11024
11040
  ],
11025
11041
  "value": {
11026
11042
  "kind": "expression",
11027
- "type": "string"
11043
+ "type": "union"
11028
11044
  },
11029
11045
  "default": "md"
11030
11046
  },
11031
11047
  {
11032
11048
  "name": "modelValue",
11049
+ "required": false,
11033
11050
  "description": "Set component value.",
11034
11051
  "value": {
11035
11052
  "kind": "expression",
@@ -11039,24 +11056,25 @@
11039
11056
  },
11040
11057
  {
11041
11058
  "name": "placeholder",
11059
+ "required": false,
11042
11060
  "description": "Set component placeholder.",
11043
11061
  "value": {
11044
11062
  "kind": "expression",
11045
11063
  "type": "string"
11046
- },
11047
- "default": "\"\""
11064
+ }
11048
11065
  },
11049
11066
  {
11050
11067
  "name": "label",
11068
+ "required": false,
11051
11069
  "description": "Set input label.",
11052
11070
  "value": {
11053
11071
  "kind": "expression",
11054
11072
  "type": "string"
11055
- },
11056
- "default": "\"\""
11073
+ }
11057
11074
  },
11058
11075
  {
11059
11076
  "name": "labelAlign",
11077
+ "required": false,
11060
11078
  "description": "Label placement.",
11061
11079
  "enum": [
11062
11080
  "top",
@@ -11067,21 +11085,22 @@
11067
11085
  ],
11068
11086
  "value": {
11069
11087
  "kind": "expression",
11070
- "type": "string"
11088
+ "type": "union"
11071
11089
  },
11072
11090
  "default": "topInside"
11073
11091
  },
11074
11092
  {
11075
11093
  "name": "description",
11094
+ "required": false,
11076
11095
  "description": "Set description for component.",
11077
11096
  "value": {
11078
11097
  "kind": "expression",
11079
11098
  "type": "string"
11080
- },
11081
- "default": "\"\""
11099
+ }
11082
11100
  },
11083
11101
  {
11084
11102
  "name": "resizable",
11103
+ "required": false,
11085
11104
  "description": "Allow resizing of the textarea.",
11086
11105
  "value": {
11087
11106
  "kind": "expression",
@@ -11091,6 +11110,7 @@
11091
11110
  },
11092
11111
  {
11093
11112
  "name": "readonly",
11113
+ "required": false,
11094
11114
  "description": "Make textarea read only.",
11095
11115
  "value": {
11096
11116
  "kind": "expression",
@@ -11100,6 +11120,7 @@
11100
11120
  },
11101
11121
  {
11102
11122
  "name": "disabled",
11123
+ "required": false,
11103
11124
  "description": "Make input disabled.",
11104
11125
  "value": {
11105
11126
  "kind": "expression",
@@ -11109,6 +11130,7 @@
11109
11130
  },
11110
11131
  {
11111
11132
  "name": "inputmode",
11133
+ "required": false,
11112
11134
  "description": "Set proper keyboard on mobile devices.",
11113
11135
  "enum": [
11114
11136
  "text",
@@ -11122,12 +11144,13 @@
11122
11144
  ],
11123
11145
  "value": {
11124
11146
  "kind": "expression",
11125
- "type": "string"
11147
+ "type": "union"
11126
11148
  },
11127
11149
  "default": "text"
11128
11150
  },
11129
11151
  {
11130
11152
  "name": "noAutocomplete",
11153
+ "required": false,
11131
11154
  "description": "Disable browsers autocomplete.",
11132
11155
  "value": {
11133
11156
  "kind": "expression",
@@ -11137,42 +11160,48 @@
11137
11160
  },
11138
11161
  {
11139
11162
  "name": "error",
11163
+ "required": false,
11140
11164
  "description": "Set error message.",
11141
11165
  "value": {
11142
11166
  "kind": "expression",
11143
11167
  "type": "string"
11144
- },
11145
- "default": "\"\""
11168
+ }
11146
11169
  },
11147
11170
  {
11148
11171
  "name": "rows",
11172
+ "required": false,
11149
11173
  "description": "Set number of visible rows.",
11174
+ "enum": [
11175
+ "string",
11176
+ "number"
11177
+ ],
11150
11178
  "value": {
11151
11179
  "kind": "expression",
11152
- "type": "string|number"
11180
+ "type": "union"
11153
11181
  },
11154
11182
  "default": "3"
11155
11183
  },
11156
11184
  {
11157
11185
  "name": "id",
11186
+ "required": false,
11158
11187
  "description": "Unique element id.",
11159
11188
  "value": {
11160
11189
  "kind": "expression",
11161
11190
  "type": "string"
11162
- },
11163
- "default": "\"\""
11191
+ }
11164
11192
  },
11165
11193
  {
11166
11194
  "name": "config",
11195
+ "required": false,
11167
11196
  "description": "Component config object.",
11168
11197
  "value": {
11169
11198
  "kind": "expression",
11170
- "type": "object"
11171
- },
11172
- "default": "{}"
11199
+ "type": "Config"
11200
+ }
11173
11201
  },
11174
11202
  {
11175
11203
  "name": "dataTest",
11204
+ "required": false,
11176
11205
  "description": "Data-test attribute for automated testing.",
11177
11206
  "value": {
11178
11207
  "kind": "expression",
@@ -1,14 +0,0 @@
1
- import { computed } from "vue";
2
- import useUI from "../composables/useUI.ts";
3
-
4
- import defaultConfig from "./config.js";
5
-
6
- export default function useAttrs(props) {
7
- const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
8
-
9
- const mutatedProps = computed(() => ({
10
- error: Boolean(props.error),
11
- }));
12
-
13
- return { config, ...getKeysAttrs(mutatedProps) };
14
- }
@@ -1,14 +0,0 @@
1
- import { computed } from "vue";
2
- import useUI from "../composables/useUI.ts";
3
-
4
- import defaultConfig from "./config.js";
5
-
6
- export default function useAttrs(props, { checked }) {
7
- const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
8
-
9
- const mutatedProps = computed(() => ({
10
- checked: Boolean(checked.value),
11
- }));
12
-
13
- return { config, ...getKeysAttrs(mutatedProps) };
14
- }
@@ -1,31 +0,0 @@
1
- import { cva } from "../utils/ui.ts";
2
-
3
- export default class VariantService {
4
- static get(config) {
5
- const { wrapper, circle, toggleLabel } = config;
6
-
7
- const wrapperVariants = cva({
8
- base: wrapper.base,
9
- variants: wrapper.variants,
10
- compoundVariants: wrapper.compoundVariants,
11
- });
12
-
13
- const circleVariants = cva({
14
- base: circle.base,
15
- variants: circle.variants,
16
- compoundVariants: circle.compoundVariants,
17
- });
18
-
19
- const toggleLabelVariants = cva({
20
- base: toggleLabel.base,
21
- variants: toggleLabel.variants,
22
- compoundVariants: toggleLabel.compoundVariants,
23
- });
24
-
25
- return {
26
- wrapperVariants,
27
- circleVariants,
28
- toggleLabelVariants,
29
- };
30
- }
31
- }
@@ -1,15 +0,0 @@
1
- import { computed } from "vue";
2
- import useUI from "../composables/useUI.ts";
3
-
4
- import defaultConfig from "./config.js";
5
-
6
- export default function useAttrs(props) {
7
- const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
8
-
9
- const mutatedProps = computed(() => ({
10
- error: Boolean(props.error),
11
- label: Boolean(props.label),
12
- }));
13
-
14
- return { config, ...getKeysAttrs(mutatedProps) };
15
- }
File without changes
File without changes
File without changes
File without changes
File without changes