@thecb/components 5.9.0-beta.7 → 5.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.9.0-beta.7",
3
+ "version": "5.9.4-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -30,14 +30,14 @@
30
30
  "@babel/preset-react": "^7.0.0",
31
31
  "@babel/register": "^7.6.2",
32
32
  "@rollup/plugin-json": "^4.0.3",
33
- "@storybook/addon-a11y": "5.3.14",
34
- "@storybook/addon-actions": "^5.3.14",
35
- "@storybook/addon-console": "^1.2.1",
36
- "@storybook/addon-docs": "^5.3.19",
33
+ "@storybook/addon-a11y": "6.4.22",
34
+ "@storybook/addon-actions": "^6.4.22",
35
+ "@storybook/addon-console": "^1.2.3",
36
+ "@storybook/addon-docs": "^6.4.22",
37
37
  "@storybook/addon-knobs": "^5.3.14",
38
- "@storybook/addon-storysource": "^5.3.14",
39
- "@storybook/addon-viewport": "^5.3.14",
40
- "@storybook/react": "^5.3.14",
38
+ "@storybook/addon-storysource": "^6.4.22",
39
+ "@storybook/addon-viewport": "^6.4.22",
40
+ "@storybook/react": "^6.4.22",
41
41
  "babel-core": "^6.26.3",
42
42
  "babel-loader": "^8.1.0",
43
43
  "babel-preset-env": "^1.7.0",
@@ -52,7 +52,7 @@
52
52
  "prettier": "^1.19.1",
53
53
  "pretty-quick": "^2.0.1",
54
54
  "react-redux": "^7.2.0",
55
- "react-router-dom": "6.0.0-alpha.3",
55
+ "react-router-dom": "^6.3.0",
56
56
  "redux": "^4.0.5",
57
57
  "rollup": "^1.21.4",
58
58
  "rollup-plugin-babel": "^4.3.3",
@@ -60,15 +60,15 @@
60
60
  "rollup-plugin-json": "^4.0.0",
61
61
  "rollup-plugin-node-resolve": "^5.1.0",
62
62
  "rollup-plugin-visualizer": "^4.0.4",
63
- "storybook": "^5.3.14",
64
- "styled-components": "5.1.1",
63
+ "storybook": "^6.4.22",
64
+ "styled-components": "^5.3.5",
65
65
  "styled-theming": "^2.2.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^16.13.1",
69
69
  "react-dom": "^16.13.1",
70
- "react-router-dom": "6.0.0-alpha.3",
71
- "styled-components": "5.1.1",
70
+ "react-router-dom": "^6.3.0",
71
+ "styled-components": "^5.1.1",
72
72
  "styled-theming": "^2.2.0"
73
73
  },
74
74
  "husky": {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { withKnobs, text, radios } from "@storybook/addon-knobs";
2
+ import { text, radios } from "@storybook/addon-knobs";
3
3
  import ClusterExample from "./ClusterExample";
4
4
  import Cover from "../../Cover";
5
5
  import Center from "../../Center";
@@ -8,10 +8,9 @@ import ResizingContainer from "../ResizingContainer";
8
8
  import LayoutContentBlock from "../LayoutContentBlock";
9
9
 
10
10
  export default {
11
- title: "Layouts|Basic Layouts/Cluster",
11
+ title: "Layouts/Basic Layouts/Cluster",
12
12
  component: ClusterExample,
13
13
  decorators: [
14
- withKnobs,
15
14
  storyFn => (
16
15
  <Cover>
17
16
  <div />
@@ -59,9 +58,7 @@ export const basicCluster = () => (
59
58
  </ResizingContainer>
60
59
  );
61
60
 
62
- basicCluster.story = {
63
- name: "Resizing Nav Cluster"
64
- };
61
+ basicCluster.storyName = "Resizing Nav Cluster";
65
62
 
66
63
  export const formButtonCluster = () => (
67
64
  <FixedSizeContainer
@@ -75,9 +72,7 @@ export const formButtonCluster = () => (
75
72
  </FixedSizeContainer>
76
73
  );
77
74
 
78
- formButtonCluster.story = {
79
- name: "Form Button Cluster"
80
- };
75
+ formButtonCluster.storyName = "Form Button Cluster";
81
76
 
82
77
  export const formInputCluster = () => (
83
78
  <ResizingContainer
@@ -92,6 +87,4 @@ export const formInputCluster = () => (
92
87
  </ResizingContainer>
93
88
  );
94
89
 
95
- formInputCluster.story = {
96
- name: "Form Input Cluster"
97
- };
90
+ formInputCluster.storyName = "Form Input Cluster";
@@ -27,9 +27,7 @@ export const cover = () => (
27
27
  </Cover>
28
28
  );
29
29
 
30
- cover.story = {
31
- name: "Cover with Multiple Children"
32
- };
30
+ cover.storyName = "Cover with Multiple Children";
33
31
 
34
32
  export const coverSingleChild = () => (
35
33
  <Cover
@@ -48,6 +46,4 @@ export const coverSingleChild = () => (
48
46
  </Cover>
49
47
  );
50
48
 
51
- coverSingleChild.story = {
52
- name: "Cover with Single Child"
53
- };
49
+ coverSingleChild.storyName = "Cover with Single Child";
@@ -1,15 +1,14 @@
1
1
  import React from "react";
2
- import { withKnobs, text, radios, number } from "@storybook/addon-knobs";
2
+ import { text, radios, number } from "@storybook/addon-knobs";
3
3
  import GridExample from "./GridExample";
4
4
  import Cover from "../../Cover";
5
5
  import Center from "../../Center";
6
6
  import ResizingContainer from "../ResizingContainer";
7
7
 
8
8
  export default {
9
- title: "Layouts|Basic Layouts/Grid",
9
+ title: "Layouts/Basic Layouts/Grid",
10
10
  component: GridExample,
11
11
  decorators: [
12
- withKnobs,
13
12
  storyFn => (
14
13
  <Cover>
15
14
  <div />
@@ -39,6 +38,4 @@ export const basicGrid = () => (
39
38
  </ResizingContainer>
40
39
  );
41
40
 
42
- basicGrid.story = {
43
- name: "Grid of cards"
44
- };
41
+ basicGrid.storyName = "Grid of cards";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { withKnobs, text, radios } from "@storybook/addon-knobs";
2
+ import { text, radios } from "@storybook/addon-knobs";
3
3
  import SidebarExample from "./SidebarExample";
4
4
  //import Stack from "../../Stack";
5
5
  import Switcher from "../../Switcher";
@@ -10,10 +10,9 @@ import ResizingContainer from "../ResizingContainer";
10
10
  import LayoutContentBlock from "../LayoutContentBlock";
11
11
 
12
12
  export default {
13
- title: "Layouts|Basic Layouts/Sidebar",
13
+ title: "Layouts/Basic Layouts/Sidebar",
14
14
  component: SidebarExample,
15
15
  decorators: [
16
- withKnobs,
17
16
  storyFn => (
18
17
  <Cover>
19
18
  <div />
@@ -82,6 +81,4 @@ export const basicSidebar = () => (
82
81
  </ResizingContainer>
83
82
  );
84
83
 
85
- basicSidebar.story = {
86
- name: "Sidebar and content"
87
- };
84
+ basicSidebar.storyName = "Sidebar and content";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { withKnobs, text, number, boolean } from "@storybook/addon-knobs";
2
+ import { text, number, boolean } from "@storybook/addon-knobs";
3
3
  import StackExample from "./StackExample";
4
4
  import Cover from "../../Cover";
5
5
  import Center from "../../Center";
@@ -7,10 +7,9 @@ import FixedSizeContainer from "../FixedSizeContainer";
7
7
  import { TROUT_GREY } from "../../../../../constants/colors";
8
8
 
9
9
  export default {
10
- title: "Layouts|Basic Layouts/Stack",
10
+ title: "Layouts/Basic Layouts/Stack",
11
11
  component: StackExample,
12
12
  decorators: [
13
- withKnobs,
14
13
  storyFn => (
15
14
  <Cover>
16
15
  <div />
@@ -36,9 +35,7 @@ export const basicStack = () => (
36
35
  </FixedSizeContainer>
37
36
  );
38
37
 
39
- basicStack.story = {
40
- name: "Basic Stack"
41
- };
38
+ basicStack.storyName = "Basic Stack";
42
39
 
43
40
  export const bottomItemStack = () => (
44
41
  <FixedSizeContainer
@@ -50,9 +47,7 @@ export const bottomItemStack = () => (
50
47
  </FixedSizeContainer>
51
48
  );
52
49
 
53
- bottomItemStack.story = {
54
- name: "Bottom Item Stack"
55
- };
50
+ bottomItemStack.storyName = "Bottom Item Stack";
56
51
 
57
52
  export const splitStack = () => (
58
53
  <FixedSizeContainer
@@ -64,6 +59,4 @@ export const splitStack = () => (
64
59
  </FixedSizeContainer>
65
60
  );
66
61
 
67
- splitStack.story = {
68
- name: "Split Stack"
69
- };
62
+ splitStack.storyName = "Split Stack";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { withKnobs, text, radios, number } from "@storybook/addon-knobs";
2
+ import { text, radios, number } from "@storybook/addon-knobs";
3
3
  import SwitcherExample from "./SwitcherExample";
4
4
  import Cover from "../../Cover";
5
5
  import Center from "../../Center";
@@ -7,10 +7,9 @@ import FixedSizeContainer from "../FixedSizeContainer";
7
7
  import ResizingContainer from "../ResizingContainer";
8
8
 
9
9
  export default {
10
- title: "Layouts|Basic Layouts/Switcher",
10
+ title: "Layouts/Basic Layouts/Switcher",
11
11
  component: SwitcherExample,
12
12
  decorators: [
13
- withKnobs,
14
13
  storyFn => (
15
14
  <Cover>
16
15
  <div />
@@ -42,9 +41,7 @@ export const basicSwitcher = () => (
42
41
  </ResizingContainer>
43
42
  );
44
43
 
45
- basicSwitcher.story = {
46
- name: "Resizing Switcher"
47
- };
44
+ basicSwitcher.storyName = "Resizing Switcher";
48
45
 
49
46
  export const childLimitSwitcher = () => (
50
47
  <FixedSizeContainer
@@ -60,6 +57,4 @@ export const childLimitSwitcher = () => (
60
57
  </FixedSizeContainer>
61
58
  );
62
59
 
63
- childLimitSwitcher.story = {
64
- name: "Limited Children Switcher"
65
- };
60
+ childLimitSwitcher.storyName = "Limited Children Switcher";