@thecb/components 11.2.17-beta.5 → 11.2.17

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": "11.2.17-beta.5",
3
+ "version": "11.2.17",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,58 +0,0 @@
1
- import React from "react";
2
- import Jumbo from "./Jumbo";
3
-
4
- export default {
5
- title: "Atoms/Jumbo",
6
- component: Jumbo,
7
- argTypes: {
8
- showButton: { control: "boolean" },
9
- heading: { control: "text" },
10
- isHeadingLoading: { control: "boolean" },
11
- buttonLink: { control: "text" },
12
- subHeading: { control: "text" },
13
- buttonText: { control: "text" },
14
- slug: { control: "text" },
15
- largeSide: {
16
- control: { type: "select" },
17
- options: ["right", "left"]
18
- },
19
- largeSideSize: { control: "text" },
20
- showCartStatus: { control: "boolean" },
21
- total: { control: "number" },
22
- itemsCount: { control: "number" },
23
- extraStyles: { control: "text" }
24
- }
25
- };
26
-
27
- const Template = args => <Jumbo {...args} />;
28
-
29
- export const Default = Template.bind({});
30
- Default.args = {
31
- showButton: true,
32
- heading: "Welcome to Jumbo",
33
- isHeadingLoading: false,
34
- buttonLink: "/browse",
35
- subHeading: "This is a subheading",
36
- buttonText: "Click Me",
37
- slug: "jumbo-example",
38
- largeSide: "right",
39
- largeSideSize: "2",
40
- showCartStatus: false,
41
- total: 0,
42
- itemsCount: 0,
43
- extraStyles: ""
44
- };
45
-
46
- export const WithCartStatus = Template.bind({});
47
- WithCartStatus.args = {
48
- ...Default.args,
49
- showCartStatus: true,
50
- total: 100,
51
- itemsCount: 5
52
- };
53
-
54
- export const LoadingHeading = Template.bind({});
55
- LoadingHeading.args = {
56
- ...Default.args,
57
- isHeadingLoading: true
58
- };