@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 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.2 - 04/07/2022
1
+ # 14.3.4-beta.0 - 04/11/2022
2
2
 
3
3
  ## Miscellaneous Updates
4
- * [[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)
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "14.3.2",
3
+ "version": "14.3.4-beta.0",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "v2/index-bundled.cjs.js",
6
6
  "module": "v2/index.js",
@@ -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>R U Cool</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 'v2/components/Button/Button';
7
+ import {Button} from '../Button';
8
8
 
9
9
  const ImageCarousel = ({images, width, height, ...props}) => {
10
10
  const imgWidth = width ? `${width}rem` : '100%';