@umbraco-ui/uui-checkbox 0.0.19 → 0.2.0

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-checkbox?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-checkbox)
4
4
 
5
+ ### See it in action
6
+
7
+ Preview the component on [Storybook](https://uui.umbraco.com/?path=/story/uui-checkbox)
8
+
5
9
  ## Installation
6
10
 
7
11
  ### ES imports
@@ -51,18 +51,20 @@
51
51
  {
52
52
  "name": "required-message",
53
53
  "description": "Required validation message.",
54
- "type": "boolean"
54
+ "type": "string",
55
+ "default": "\"This field is required\""
55
56
  },
56
57
  {
57
58
  "name": "error",
58
59
  "description": "Apply custom error on this input.",
59
60
  "type": "boolean",
60
- "default": "\"false\""
61
+ "default": "false"
61
62
  },
62
63
  {
63
64
  "name": "error-message",
64
65
  "description": "Custom error message.",
65
- "type": "boolean"
66
+ "type": "string",
67
+ "default": "\"This field is invalid\""
66
68
  },
67
69
  {
68
70
  "name": "label",
@@ -135,20 +137,26 @@
135
137
  "name": "requiredMessage",
136
138
  "attribute": "required-message",
137
139
  "description": "Required validation message.",
138
- "type": "boolean"
140
+ "type": "string",
141
+ "default": "\"This field is required\""
139
142
  },
140
143
  {
141
144
  "name": "error",
142
145
  "attribute": "error",
143
146
  "description": "Apply custom error on this input.",
144
147
  "type": "boolean",
145
- "default": "\"false\""
148
+ "default": "false"
146
149
  },
147
150
  {
148
151
  "name": "errorMessage",
149
152
  "attribute": "error-message",
150
153
  "description": "Custom error message.",
151
- "type": "boolean"
154
+ "type": "string",
155
+ "default": "\"This field is invalid\""
156
+ },
157
+ {
158
+ "name": "validity",
159
+ "type": "ValidityState"
152
160
  },
153
161
  {
154
162
  "name": "validationMessage"
@@ -169,7 +177,7 @@
169
177
  "slots": [
170
178
  {
171
179
  "name": "",
172
- "description": "to overwrite displayed label content"
180
+ "description": "Override the default label"
173
181
  }
174
182
  ],
175
183
  "cssProperties": [
@@ -3,7 +3,6 @@ import { UUIBooleanInputElement } from '@umbraco-ui/uui-boolean-input/lib';
3
3
  * Umbraco checkbox, toggles between checked and uncheck
4
4
  * @element uui-checkbox
5
5
  * @fires UUIBooleanInputEvent#change - fires when the element is begin checked by a user action
6
- * @slot to overwrite displayed label content
7
6
  * @cssprop --uui-checkbox-size - To set the size of the checkbox.
8
7
  * @extends UUIBooleanInputElement
9
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-checkbox",
3
- "version": "0.0.19",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -33,8 +33,9 @@
33
33
  "custom-elements.json"
34
34
  ],
35
35
  "dependencies": {
36
- "@umbraco-ui/uui-base": "0.0.17",
37
- "@umbraco-ui/uui-boolean-input": "0.0.3"
36
+ "@umbraco-ui/uui-base": "0.2.0",
37
+ "@umbraco-ui/uui-boolean-input": "0.2.0",
38
+ "@umbraco-ui/uui-icon-registry-essential": "0.2.0"
38
39
  },
39
40
  "scripts": {
40
41
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -45,5 +46,5 @@
45
46
  "access": "public"
46
47
  },
47
48
  "homepage": "https://uui.umbraco.com/?path=/story/uui-checkbox",
48
- "gitHead": "3b7c6cf892e89054b2980b19d8c2f8bead2752e8"
49
+ "gitHead": "5494b55e03c9fb3ba8f160e693d3ce59c02d21cd"
49
50
  }