@spothero/ui 14.3.2-beta.0 → 14.3.3
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/CHANGELOG.md +8 -2
- package/CHANGELOG.tmp +3 -2
- package/package.json +1 -1
- package/styles/v2/components/Checkbox/Checkbox.stories.js +28 -3
- package/v1/index-bundled.cjs.js +1 -1
- package/v1/index-bundled.cjs.js.map +1 -1
- package/v1/index-bundled.esm.js +1 -1
- package/v1/index-bundled.esm.js.map +1 -1
- package/v1/index-unbundled.cjs.js +35 -35
- package/v1/index-unbundled.esm.js +35 -35
- package/v2/index-bundled.cjs.js +1 -1
- package/v2/index-bundled.cjs.js.map +1 -1
- package/v2/index-bundled.esm.js +3 -3
- package/v2/index-bundled.esm.js.map +1 -1
- package/v2/index-unbundled.cjs.js +147 -147
- package/v2/index-unbundled.esm.js +147 -147
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
# 14.3.
|
|
1
|
+
# 14.3.3 - 04/07/2022
|
|
2
2
|
|
|
3
3
|
## Miscellaneous Updates
|
|
4
|
-
* [[
|
|
4
|
+
* [[8511f03](https://github.com/spothero/fe-ui/commit/8511f03)] - `refactor:` Add controls to checkbox stories ([#279](https://github.com/spothero/fe-ui/pull/279)) (annaliarosed)
|
|
5
|
+
* `refactor:` Add controls to checkbox stories
|
|
6
|
+
|
|
7
|
+
# 14.3.2 - 04/07/2022
|
|
8
|
+
|
|
9
|
+
## Miscellaneous Updates
|
|
10
|
+
* [[2588e13](https://github.com/spothero/fe-ui/commit/2588e13)] - `fix:` Revert commit 346683 feat: Use dynamic import for Image Carousel ([#278](https://github.com/spothero/fe-ui/pull/278)) (Gru Singh)
|
|
5
11
|
|
|
6
12
|
# 14.3.1 - 04/07/2022
|
|
7
13
|
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
# 14.3.
|
|
1
|
+
# 14.3.3 - 04/07/2022
|
|
2
2
|
|
|
3
3
|
## Miscellaneous Updates
|
|
4
|
-
* [[
|
|
4
|
+
* [[8511f03](https://github.com/spothero/fe-ui/commit/8511f03)] - `refactor:` Add controls to checkbox stories ([#279](https://github.com/spothero/fe-ui/pull/279)) (annaliarosed)
|
|
5
|
+
* `refactor:` Add controls to checkbox stories
|
|
5
6
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
|
|
3
4
|
import Component from './Checkbox';
|
|
4
5
|
|
|
5
6
|
export default {
|
|
6
7
|
title: 'v2/Checkbox',
|
|
8
|
+
component: Component,
|
|
7
9
|
parameters: {
|
|
8
10
|
removeBaseHtmlClass: true,
|
|
9
11
|
},
|
|
10
12
|
};
|
|
11
13
|
|
|
12
|
-
const CheckboxTemplate =
|
|
13
|
-
return <Component
|
|
14
|
+
const CheckboxTemplate = props => {
|
|
15
|
+
return <Component {...props} />;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
CheckboxTemplate.propTypes = {
|
|
18
|
+
CheckboxTemplate.propTypes = {
|
|
19
|
+
isChecked: PropTypes.bool,
|
|
20
|
+
isDisabled: PropTypes.bool,
|
|
21
|
+
isIndeterminate: PropTypes.bool,
|
|
22
|
+
defaultIsChecked: PropTypes.bool,
|
|
23
|
+
size: PropTypes.string,
|
|
24
|
+
children: PropTypes.node,
|
|
25
|
+
};
|
|
17
26
|
|
|
18
27
|
export const Checkbox = CheckboxTemplate.bind({});
|
|
28
|
+
|
|
29
|
+
Checkbox.argTypes = {
|
|
30
|
+
size: {
|
|
31
|
+
options: ['sm', 'md', 'lg'],
|
|
32
|
+
control: {type: 'select'},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
Checkbox.args = {
|
|
37
|
+
defaultIsChecked: true,
|
|
38
|
+
isChecked: true,
|
|
39
|
+
isDisabled: false,
|
|
40
|
+
isIndeterminate: false,
|
|
41
|
+
size: 'md',
|
|
42
|
+
children: 'R U Cool',
|
|
43
|
+
};
|