@spothero/ui 14.3.2 → 14.3.4-beta.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/CHANGELOG.md +11 -0
- package/CHANGELOG.tmp +2 -2
- package/package.json +1 -1
- package/styles/v2/components/Checkbox/Checkbox.stories.js +28 -3
- package/styles/v2/components/ImageCarousel/ImageCarousel.jsx +1 -1
- 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.cjs.js.map +1 -1
- package/v2/index-unbundled.esm.js +147 -147
- package/v2/index-unbundled.esm.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# 14.3.4-beta.0 - 04/11/2022
|
|
2
|
+
|
|
3
|
+
## Miscellaneous Updates
|
|
4
|
+
* [[016347f](https://github.com/spothero/fe-ui/commit/016347f)] - `fix:` Use relative path for Button inorder to fix build issue in consumer (Gru Singh)
|
|
5
|
+
|
|
6
|
+
# 14.3.3 - 04/07/2022
|
|
7
|
+
|
|
8
|
+
## Miscellaneous Updates
|
|
9
|
+
* [[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)
|
|
10
|
+
* `refactor:` Add controls to checkbox stories
|
|
11
|
+
|
|
1
12
|
# 14.3.2 - 04/07/2022
|
|
2
13
|
|
|
3
14
|
## Miscellaneous Updates
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# 14.3.
|
|
1
|
+
# 14.3.4-beta.0 - 04/11/2022
|
|
2
2
|
|
|
3
3
|
## Miscellaneous Updates
|
|
4
|
-
* [[
|
|
4
|
+
* [[016347f](https://github.com/spothero/fe-ui/commit/016347f)] - `fix:` Use relative path for Button inorder to fix build issue in consumer (Gru Singh)
|
|
5
5
|
|
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
|
+
};
|
|
@@ -4,7 +4,7 @@ import {Box} from '@chakra-ui/react';
|
|
|
4
4
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
5
5
|
import IconChevronLeft from '@spothero/icons/chevron-left';
|
|
6
6
|
import IconChevronRight from '@spothero/icons/chevron-right';
|
|
7
|
-
import Button from '
|
|
7
|
+
import {Button} from '../Button';
|
|
8
8
|
|
|
9
9
|
const ImageCarousel = ({images, width, height, ...props}) => {
|
|
10
10
|
const imgWidth = width ? `${width}rem` : '100%';
|