vueless 0.0.259 → 0.0.260

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.259",
3
+ "version": "0.0.260",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -16,12 +16,6 @@ export default /*tw*/ {
16
16
  focus-within:border-brand-500 focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-brand-700/15
17
17
  `,
18
18
  variants: {
19
- disabled: {
20
- true: `
21
- text-gray-900 border-gray-100 bg-gray-100 opacity-100 cursor-default
22
- hover:border-gray-100
23
- `,
24
- },
25
19
  error: {
26
20
  true: `
27
21
  border-red-300
@@ -29,16 +23,17 @@ export default /*tw*/ {
29
23
  focus-within:border-red-500 focus-within:ring-red-700/15
30
24
  `,
31
25
  },
26
+ disabled: {
27
+ true: "pointer-events-none",
28
+ },
32
29
  },
33
30
  },
34
31
  input: {
35
32
  base: `
36
33
  block w-full py-2 px-3 font-normal leading-none text-gray-900 bg-white
37
- border-none rounded-dynamic transition
34
+ border-none rounded-dynamic transition focus:ring-0
38
35
  placeholder:font-normal placeholder-gray-400
39
- focus:ring-0 disabled:opacity-50
40
- disabled:cursor-not-allowed disabled:text-gray-900 disabled:border-gray-100
41
- read-only:ring-0 read-only:border-gray-300
36
+ disabled:text-gray-700 disabled:bg-gray-100
42
37
  `,
43
38
  variants: {
44
39
  size: {
@@ -10,6 +10,7 @@ export default /*tw*/ {
10
10
  labelAlign: "topInside",
11
11
  debounce: 300,
12
12
  disabled: false,
13
+ readonly: false,
13
14
  searchButton: false,
14
15
  },
15
16
  };
@@ -5,6 +5,7 @@
5
5
  v-model="search"
6
6
  :size="size"
7
7
  :disabled="disabled"
8
+ :readonly="readonly"
8
9
  :label-align="labelAlign"
9
10
  :label="label"
10
11
  :error="error"
@@ -158,6 +159,14 @@ const props = defineProps({
158
159
  default: "",
159
160
  },
160
161
 
162
+ /**
163
+ * Set input read-only.
164
+ */
165
+ readonly: {
166
+ type: Boolean,
167
+ default: UIService.get(defaultConfig, UInputSearch).default.readonly,
168
+ },
169
+
161
170
  /**
162
171
  * Set input disabled.
163
172
  */
@@ -4,10 +4,9 @@ export default /*tw*/ {
4
4
  rightSlot: "flex items-center justify-center h-full w-11 absolute right-0",
5
5
  textareaWrapper: {
6
6
  base: `
7
- px-3 py-2 rounded-dynamic border border-gray-300 cursor-text bg-white transition
8
- hover:border-gray-400 hover:focus-within:border-gray-500
9
- focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-gray-700/15
10
- focus-within:border-gray-500 focus-within:outline-none
7
+ px-3 py-2 bg-white transition
8
+ rounded-dynamic border border-gray-300 hover:border-gray-400 hover:focus-within:border-gray-500 focus-within:border-gray-500
9
+ focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-gray-700/15 focus-within:outline-none
11
10
  `,
12
11
  variants: {
13
12
  error: {
@@ -18,10 +17,7 @@ export default /*tw*/ {
18
17
  `,
19
18
  },
20
19
  disabled: {
21
- true: "cursor-not-allowed border-none focus-within:ring-0 bg-gray-100",
22
- },
23
- readonly: {
24
- true: "ring-0 border-gray-300 focus-within:ring-0 focus-within:border-brand-300",
20
+ true: "pointer-events-none bg-gray-100",
25
21
  },
26
22
  },
27
23
  compoundVariants: [
@@ -32,10 +28,9 @@ export default /*tw*/ {
32
28
  },
33
29
  textarea: {
34
30
  base: `
35
- placeholder:font-normal placeholder:text-gray-400 shadow-none w-full
36
- disabled:cursor-not-allowed font-normal text-gray-900 resize-none block
37
- border-none focus:border-none focus:outline-none focus:ring-0 p-0
38
- bg-transparent
31
+ p-0 block w-full bg-transparent border-none font-normal text-gray-900
32
+ placeholder:font-normal placeholder:text-gray-400
33
+ focus:border-none focus:outline-none focus:ring-0
39
34
  `,
40
35
  variants: {
41
36
  size: {
@@ -46,7 +41,7 @@ export default /*tw*/ {
46
41
  },
47
42
  },
48
43
  defaultVariants: {
49
- rows: "2",
44
+ rows: "3",
50
45
  size: "md",
51
46
  type: "text",
52
47
  inputmode: "text",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.259",
4
+ "version": "0.0.260",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -4930,6 +4930,15 @@
4930
4930
  },
4931
4931
  "default": "\"\""
4932
4932
  },
4933
+ {
4934
+ "name": "readonly",
4935
+ "description": "Set input read-only.",
4936
+ "value": {
4937
+ "kind": "expression",
4938
+ "type": "boolean"
4939
+ },
4940
+ "default": "false"
4941
+ },
4933
4942
  {
4934
4943
  "name": "disabled",
4935
4944
  "description": "Set input disabled.",
@@ -7951,7 +7960,7 @@
7951
7960
  "kind": "expression",
7952
7961
  "type": "string"
7953
7962
  },
7954
- "default": "2"
7963
+ "default": "3"
7955
7964
  },
7956
7965
  {
7957
7966
  "name": "id",