@justeattakeaway/pie-checkbox 0.7.0 → 0.7.1
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/custom-elements.json +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/react.d.ts +2 -2
- package/package.json +3 -3
- package/src/defs.ts +5 -4
package/custom-elements.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": {
|
|
27
27
|
"text": "DefaultProps"
|
|
28
28
|
},
|
|
29
|
-
"default": "{\n // a default value for the html <input type=\"checkbox\" /> value attribute.\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value\n value: 'on',\n
|
|
29
|
+
"default": "{\n // a default value for the html <input type=\"checkbox\" /> value attribute.\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value\n value: 'on',\n disabled: false,\n defaultChecked: false,\n checked: false,\n indeterminate: false,\n required: false,\n status: 'default',\n}"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"exports": [
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
import type { CSSResult } from 'lit';
|
|
3
3
|
import type { FormControlInterface } from '@justeattakeaway/pie-webc-core';
|
|
4
4
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
@@ -60,7 +60,7 @@ export declare interface CheckboxProps {
|
|
|
60
60
|
status?: typeof statusTypes[number];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export declare type DefaultProps =
|
|
63
|
+
export declare type DefaultProps = ComponentDefaultProps<CheckboxProps, keyof Omit<CheckboxProps, 'label' | 'name' | 'aria' | 'assistiveText'>>;
|
|
64
64
|
|
|
65
65
|
export declare const defaultProps: DefaultProps;
|
|
66
66
|
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,11 @@ const A = `*,*:after,*:before{box-sizing:inherit}@keyframes checkboxCheck{0%{wid
|
|
|
9
9
|
// a default value for the html <input type="checkbox" /> value attribute.
|
|
10
10
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value
|
|
11
11
|
value: "on",
|
|
12
|
-
|
|
12
|
+
disabled: !1,
|
|
13
13
|
defaultChecked: !1,
|
|
14
|
-
indeterminate: !1,
|
|
15
14
|
checked: !1,
|
|
15
|
+
indeterminate: !1,
|
|
16
|
+
required: !1,
|
|
16
17
|
status: "default"
|
|
17
18
|
};
|
|
18
19
|
var P = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, o = (b, e, d, i) => {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
import type { CSSResult } from 'lit';
|
|
3
3
|
import type { FormControlInterface } from '@justeattakeaway/pie-webc-core';
|
|
4
4
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
@@ -61,7 +61,7 @@ export declare interface CheckboxProps {
|
|
|
61
61
|
status?: typeof statusTypes[number];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export declare type DefaultProps =
|
|
64
|
+
export declare type DefaultProps = ComponentDefaultProps<CheckboxProps, keyof Omit<CheckboxProps, 'label' | 'name' | 'aria' | 'assistiveText'>>;
|
|
65
65
|
|
|
66
66
|
export declare const defaultProps: DefaultProps;
|
|
67
67
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-checkbox",
|
|
3
3
|
"description": "PIE Design System Checkbox built using Web Components",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@justeattakeaway/pie-assistive-text": "0.5.
|
|
44
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
43
|
+
"@justeattakeaway/pie-assistive-text": "0.5.1",
|
|
44
|
+
"@justeattakeaway/pie-webc-core": "0.24.0"
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
47
|
"extends": "../../../package.json"
|
package/src/defs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
|
|
3
3
|
export const statusTypes = ['default', 'success', 'error'] as const;
|
|
4
4
|
|
|
@@ -64,15 +64,16 @@ export interface CheckboxProps {
|
|
|
64
64
|
status?: typeof statusTypes[number];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export type DefaultProps =
|
|
67
|
+
export type DefaultProps = ComponentDefaultProps<CheckboxProps, keyof Omit<CheckboxProps, 'label' | 'name' | 'aria' | 'assistiveText'>>;
|
|
68
68
|
|
|
69
69
|
export const defaultProps: DefaultProps = {
|
|
70
70
|
// a default value for the html <input type="checkbox" /> value attribute.
|
|
71
71
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value
|
|
72
72
|
value: 'on',
|
|
73
|
-
|
|
73
|
+
disabled: false,
|
|
74
74
|
defaultChecked: false,
|
|
75
|
-
indeterminate: false,
|
|
76
75
|
checked: false,
|
|
76
|
+
indeterminate: false,
|
|
77
|
+
required: false,
|
|
77
78
|
status: 'default',
|
|
78
79
|
};
|