sag_components 1.0.27 → 1.0.29
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/dist/stories/Benchmark.stories.js +122 -0
- package/dist/stories/Benchmark.style.js +50 -0
- package/dist/stories/TotalDoughnutChart.stories.js +1 -1
- package/dist/stories/components/Benchmark.js +80 -0
- package/package.json +1 -1
- package/.storybook/YourTheme.js +0 -11
- package/.storybook/main.js +0 -30
- package/.storybook/manager.js +0 -8
- package/.storybook/preview.js +0 -14
- package/.storybook/webpack.config.js +0 -16
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -52
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/App.css +0 -6
- package/src/App.js +0 -149
- package/src/App.test.js +0 -8
- package/src/index.css +0 -13
- package/src/index.js +0 -22
- package/src/logo.svg +0 -1
- package/src/stories/Button.stories.js +0 -114
- package/src/stories/Button.style.js +0 -9
- package/src/stories/Dropdown.stories.jsx +0 -238
- package/src/stories/Dropdown.style.js +0 -9
- package/src/stories/Introduction.mdx +0 -119
- package/src/stories/OneColumnContainer.stories.js +0 -20
- package/src/stories/OneColumnContainer.style.js +0 -41
- package/src/stories/SegmentedButton.stories.js +0 -205
- package/src/stories/SegmentedButton.style.js +0 -76
- package/src/stories/TotalDoughnutChart.stories.js +0 -112
- package/src/stories/TotalDoughnutChart.style.js +0 -143
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/info.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/components/Button.jsx +0 -54
- package/src/stories/components/Dropdown.jsx +0 -249
- package/src/stories/components/InfoIcon.jsx +0 -9
- package/src/stories/components/OneColumnContainer.jsx +0 -46
- package/src/stories/components/SegmentedButton.jsx +0 -110
- package/src/stories/components/TotalDoughnutChart.jsx +0 -178
- package/storybook-static/256.47510a7e.iframe.bundle.js +0 -2
- package/storybook-static/256.47510a7e.iframe.bundle.js.LICENSE.txt +0 -9
- package/storybook-static/333.c94a363a.iframe.bundle.js +0 -1
- package/storybook-static/383.2aff9f43.iframe.bundle.js +0 -1
- package/storybook-static/385.7e265f0d.iframe.bundle.js +0 -402
- package/storybook-static/385.7e265f0d.iframe.bundle.js.LICENSE.txt +0 -53
- package/storybook-static/385.7e265f0d.iframe.bundle.js.map +0 -1
- package/storybook-static/433.06d7c436.iframe.bundle.js +0 -1
- package/storybook-static/446.dd9a0d77.iframe.bundle.js +0 -1
- package/storybook-static/463.60fe9b8e.iframe.bundle.js +0 -44
- package/storybook-static/463.60fe9b8e.iframe.bundle.js.map +0 -1
- package/storybook-static/537.29807a20.iframe.bundle.js +0 -121
- package/storybook-static/537.29807a20.iframe.bundle.js.map +0 -1
- package/storybook-static/55.d0744d52.iframe.bundle.js +0 -76
- package/storybook-static/55.d0744d52.iframe.bundle.js.LICENSE.txt +0 -26
- package/storybook-static/55.d0744d52.iframe.bundle.js.map +0 -1
- package/storybook-static/58.676f9d84.iframe.bundle.js +0 -1
- package/storybook-static/661.14a42934.iframe.bundle.js +0 -1
- package/storybook-static/720.f79ea110.iframe.bundle.js +0 -1
- package/storybook-static/923.47c94418.iframe.bundle.js +0 -1
- package/storybook-static/ButtonText-stories.ac096281.iframe.bundle.js +0 -1
- package/storybook-static/Dropdown-stories.825dde1a.iframe.bundle.js +0 -8
- package/storybook-static/Dropdown-stories.825dde1a.iframe.bundle.js.map +0 -1
- package/storybook-static/Introduction-mdx.f8264230.iframe.bundle.js +0 -2
- package/storybook-static/Introduction-mdx.f8264230.iframe.bundle.js.LICENSE.txt +0 -9
- package/storybook-static/OneColumnContainer-stories.65049871.iframe.bundle.js +0 -36
- package/storybook-static/OneColumnContainer-stories.65049871.iframe.bundle.js.LICENSE.txt +0 -18
- package/storybook-static/OneColumnContainer-stories.65049871.iframe.bundle.js.map +0 -1
- package/storybook-static/favicon.svg +0 -7
- package/storybook-static/iframe.html +0 -355
- package/storybook-static/index.html +0 -138
- package/storybook-static/index.json +0 -1
- package/storybook-static/main.612c6447.iframe.bundle.js +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/runtime~main.55585f00.iframe.bundle.js +0 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -13
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -117
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -31
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/links-0/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js +0 -23
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js.LEGAL.txt +0 -14
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js.map +0 -7
- package/storybook-static/sb-common-assets/fonts.css +0 -31
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/GlobalScrollAreaStyles-XIHNDKUY-F4JIPIHL.js +0 -1
- package/storybook-static/sb-manager/OverlayScrollbars-VAV6LJAB-K3TMPSMY.js +0 -6
- package/storybook-static/sb-manager/WithTooltip-FBT32F6Q-7QJ37TCY.js +0 -1
- package/storybook-static/sb-manager/chunk-3FAXWWKG.js +0 -15
- package/storybook-static/sb-manager/chunk-54KM6K5Z.js +0 -7
- package/storybook-static/sb-manager/chunk-AS2AMEUR.js +0 -1
- package/storybook-static/sb-manager/chunk-F3MVQVF6.js +0 -207
- package/storybook-static/sb-manager/chunk-FENICTK6.js +0 -1
- package/storybook-static/sb-manager/chunk-GQDEE62S.js +0 -406
- package/storybook-static/sb-manager/chunk-PUVLCKJJ.js +0 -140
- package/storybook-static/sb-manager/chunk-QPL63VNK.js +0 -1
- package/storybook-static/sb-manager/formatter-S4K5WUZV-4LPR5OBX.js +0 -156
- package/storybook-static/sb-manager/globals.js +0 -1
- package/storybook-static/sb-manager/index.js +0 -1
- package/storybook-static/sb-manager/runtime.js +0 -1
- package/storybook-static/sb-manager/syntaxhighlighter-QTQ2UBB4-F5YUFYAB.js +0 -1
- package/storybook-static/sb-preview/globals.js +0 -1
- package/storybook-static/sb-preview/runtime.js +0 -105
- package/storybook-static/static/media/code-brackets.2e1112d7.svg +0 -1
- package/storybook-static/static/media/colors.a4bd0486.svg +0 -1
- package/storybook-static/static/media/comments.a3859089.svg +0 -1
- package/storybook-static/static/media/direction.b770f9af.svg +0 -1
- package/storybook-static/static/media/flow.edad2ac1.svg +0 -1
- package/storybook-static/static/media/plugin.d494b228.svg +0 -1
- package/storybook-static/static/media/repo.6d496322.svg +0 -1
- package/storybook-static/static/media/stackalt.dba9fbb3.svg +0 -1
- package/storybook-static/stories.json +0 -1
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Button } from "./components/Button";
|
|
3
|
-
|
|
4
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
5
|
-
export default {
|
|
6
|
-
title: "SAG/Button",
|
|
7
|
-
component: Button,
|
|
8
|
-
tags: ["autodocs"],
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
text: {
|
|
12
|
-
name: "text",
|
|
13
|
-
control: { type: "text" },
|
|
14
|
-
description: "text inside of the button",
|
|
15
|
-
defaultValue: "",
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
shape: {
|
|
19
|
-
control: { type: "radio" },
|
|
20
|
-
options: ["contained", "outlined", "text"],
|
|
21
|
-
description: "shape of the button",
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
radius: {
|
|
25
|
-
name: "radius",
|
|
26
|
-
control: { type: "number" },
|
|
27
|
-
description: "radius of the button",
|
|
28
|
-
defaultValue: 50,
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
size: {
|
|
32
|
-
control: { type: "radio" },
|
|
33
|
-
options: ["small", "medium", "large"],
|
|
34
|
-
description: "size of the button",
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
disabled: {
|
|
38
|
-
name: "disabled",
|
|
39
|
-
control: { type: "boolean" },
|
|
40
|
-
description: "changes the button to be enabled/disabled",
|
|
41
|
-
defaultValue: "",
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
backgroundColor: {
|
|
45
|
-
control: {
|
|
46
|
-
type: "color",
|
|
47
|
-
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"],
|
|
48
|
-
description: "Sets Background Color",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
textColor: {
|
|
53
|
-
control: { type: "select" },
|
|
54
|
-
options: [
|
|
55
|
-
"none",
|
|
56
|
-
"inherit",
|
|
57
|
-
"black",
|
|
58
|
-
"green",
|
|
59
|
-
"red",
|
|
60
|
-
"yellow",
|
|
61
|
-
"blue",
|
|
62
|
-
"white",
|
|
63
|
-
],
|
|
64
|
-
description: "text color of the button",
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
onClick: {
|
|
68
|
-
action: "onClick",
|
|
69
|
-
description: "returns an event click object when user clicks on a button",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const Template = (args) => <Button {...args} />;
|
|
75
|
-
|
|
76
|
-
export const SmallContainedStyle = Template.bind({});
|
|
77
|
-
SmallContainedStyle.args = {
|
|
78
|
-
text: "Confirm",
|
|
79
|
-
shape: "contained",
|
|
80
|
-
radius: 50,
|
|
81
|
-
size: "small",
|
|
82
|
-
textColor: "none",
|
|
83
|
-
disabled: false,
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const DisabledContainedStyle = Template.bind({});
|
|
87
|
-
DisabledContainedStyle.args = {
|
|
88
|
-
size: "small",
|
|
89
|
-
text: "Confirm",
|
|
90
|
-
shape: "contained",
|
|
91
|
-
radius: 50,
|
|
92
|
-
textColor: "inherit",
|
|
93
|
-
disabled: true,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export const MediumOutlinedStyle = Template.bind({});
|
|
97
|
-
MediumOutlinedStyle.args = {
|
|
98
|
-
text: "Confirm",
|
|
99
|
-
size: "medium",
|
|
100
|
-
radius: 50,
|
|
101
|
-
shape: "outlined",
|
|
102
|
-
textColor: "",
|
|
103
|
-
disabled: false,
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export const LargeTextStyle = Template.bind({});
|
|
107
|
-
LargeTextStyle.args = {
|
|
108
|
-
text: "Confirm",
|
|
109
|
-
size: "large",
|
|
110
|
-
radius: 50,
|
|
111
|
-
shape: "text",
|
|
112
|
-
textColor: "inherit",
|
|
113
|
-
disabled: false,
|
|
114
|
-
};
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Dropdown } from "./components/Dropdown";
|
|
3
|
-
|
|
4
|
-
const options = [
|
|
5
|
-
{ id: 0, label: "Shufersal" },
|
|
6
|
-
{ id: 1, label: "EPC" },
|
|
7
|
-
{ id: 2, label: "Food Lion" },
|
|
8
|
-
{ id: 3, label: "Hannaford" },
|
|
9
|
-
{ id: 4, label: "Giant Food" },
|
|
10
|
-
{ id: 5, label: "The Giant Company" },
|
|
11
|
-
{ id: 6, label: "Stop&Shop" },
|
|
12
|
-
{ id: 7, label: "Price Chopper" },
|
|
13
|
-
{ id: 8, label: "South Eastern Grocers" },
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
17
|
-
export default {
|
|
18
|
-
title: "SAG/Dropdown",
|
|
19
|
-
component: Dropdown,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
|
|
22
|
-
argTypes: {
|
|
23
|
-
width: {
|
|
24
|
-
control: { type: "number" },
|
|
25
|
-
description: "width of the input field",
|
|
26
|
-
defaultValue: 300,
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
size: {
|
|
30
|
-
control: { type: "radio" },
|
|
31
|
-
options: ["small", "large"],
|
|
32
|
-
description: "size: small/large",
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
text: {
|
|
36
|
-
name: "text",
|
|
37
|
-
control: { type: "text" },
|
|
38
|
-
description: "text inside of the input field",
|
|
39
|
-
defaultValue: 'Search...',
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
placeHolder: {
|
|
43
|
-
name: "placeHolder",
|
|
44
|
-
control: { type: "text" },
|
|
45
|
-
description: "notify the user how to type a text",
|
|
46
|
-
defaultValue: "Type...",
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
multiSelect: {
|
|
50
|
-
name: "multiSelect",
|
|
51
|
-
// control: { type: "boolean",
|
|
52
|
-
// },
|
|
53
|
-
control: false,
|
|
54
|
-
description: "true/false - allows multi select - (switch multiSelect / singleSelect is disabled in this story)",
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
limitTagsOnMultiSelect: {
|
|
59
|
-
name: "limitTagsOnMultiSelect",
|
|
60
|
-
control: { type: "number" },
|
|
61
|
-
description: "limit noumber displayed tags on multi select when not focused",
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
options: {
|
|
67
|
-
description:
|
|
68
|
-
"array [] of objects: {id: string1 , label: string2 } to fill dropdown options ",
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
shape: {
|
|
72
|
-
control: { type: "radio" },
|
|
73
|
-
options: ["round", "square"],
|
|
74
|
-
description: "shape: round/square",
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
showPopupIcon: {
|
|
79
|
-
name: "showPopupIcon",
|
|
80
|
-
control: { type: "boolean" },
|
|
81
|
-
description: "show/hide popup (up/down arrow) icon",
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
showSearchIcon: {
|
|
86
|
-
name: "showSearchIcon",
|
|
87
|
-
control: { type: "boolean" },
|
|
88
|
-
description: "show/hide search icon ",
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
onChange: {
|
|
92
|
-
action: "onChange",
|
|
93
|
-
description: "returns an option (object) selected by the user",
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
onInputChange: {
|
|
97
|
-
action: "onInputChange",
|
|
98
|
-
description: "returns a value (string) displayed in the textbox",
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const Template = (args) => <Dropdown {...args} />;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export const SmallSquare = Template.bind({});
|
|
108
|
-
SmallSquare.args = {
|
|
109
|
-
width: 300,
|
|
110
|
-
size: "small",
|
|
111
|
-
text: "Retailer",
|
|
112
|
-
multiSelect: false,
|
|
113
|
-
limitTagsOnMultiSelect: 0,
|
|
114
|
-
placeHolder: "Type...",
|
|
115
|
-
shape: "square",
|
|
116
|
-
showPopupIcon: false,
|
|
117
|
-
showSearchIcon: false,
|
|
118
|
-
options: options,
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
export const SmallRound = Template.bind({});
|
|
123
|
-
SmallRound.args = {
|
|
124
|
-
width: 300,
|
|
125
|
-
size: "small",
|
|
126
|
-
text: "Retailer",
|
|
127
|
-
multiSelect: false,
|
|
128
|
-
limitTagsOnMultiSelect: 0,
|
|
129
|
-
placeHolder: "Type...",
|
|
130
|
-
shape: "round",
|
|
131
|
-
showPopupIcon: false,
|
|
132
|
-
showSearchIcon: false,
|
|
133
|
-
options: options,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
export const UpDownArrowIcon = Template.bind({});
|
|
139
|
-
UpDownArrowIcon.args = {
|
|
140
|
-
width: 300,
|
|
141
|
-
size: "small",
|
|
142
|
-
text: "Retailer",
|
|
143
|
-
multiSelect: false,
|
|
144
|
-
limitTagsOnMultiSelect: 0,
|
|
145
|
-
placeHolder: "Type...",
|
|
146
|
-
shape: "round",
|
|
147
|
-
showPopupIcon: true,
|
|
148
|
-
showSearchIcon: false,
|
|
149
|
-
options: options,
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export const SearchIcon = Template.bind({});
|
|
153
|
-
SearchIcon.args = {
|
|
154
|
-
width: 300,
|
|
155
|
-
size: "small",
|
|
156
|
-
text: "Retailer",
|
|
157
|
-
multiSelect: false,
|
|
158
|
-
limitTagsOnMultiSelect: 0,
|
|
159
|
-
placeHolder: "Type...",
|
|
160
|
-
shape: "round",
|
|
161
|
-
showPopupIcon: false,
|
|
162
|
-
showSearchIcon: true,
|
|
163
|
-
options: options,
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
export const MultiSelectSmall = Template.bind({});
|
|
168
|
-
MultiSelectSmall.args = {
|
|
169
|
-
width: 400,
|
|
170
|
-
size: "small",
|
|
171
|
-
text: "Retailer",
|
|
172
|
-
multiSelect: true,
|
|
173
|
-
limitTagsOnMultiSelect: 2,
|
|
174
|
-
placeHolder: "Type...",
|
|
175
|
-
shape: "square",
|
|
176
|
-
showPopupIcon: false,
|
|
177
|
-
showSearchIcon: false,
|
|
178
|
-
options: options,
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
export const MultiSelectLarge = Template.bind({});
|
|
183
|
-
MultiSelectLarge.args = {
|
|
184
|
-
width: 500,
|
|
185
|
-
size: "large",
|
|
186
|
-
text: "Retailer",
|
|
187
|
-
multiSelect: true,
|
|
188
|
-
limitTagsOnMultiSelect: 2,
|
|
189
|
-
placeHolder: "Type...",
|
|
190
|
-
shape: "round",
|
|
191
|
-
showPopupIcon: false,
|
|
192
|
-
showSearchIcon: false,
|
|
193
|
-
options: options,
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export const MultiSelectWithIcons = Template.bind({});
|
|
198
|
-
MultiSelectWithIcons.args = {
|
|
199
|
-
width: 500,
|
|
200
|
-
size: "large",
|
|
201
|
-
text: "Retailer",
|
|
202
|
-
multiSelect: true,
|
|
203
|
-
limitTagsOnMultiSelect: 2,
|
|
204
|
-
placeHolder: "Type...",
|
|
205
|
-
shape: "square",
|
|
206
|
-
showPopupIcon: true,
|
|
207
|
-
showSearchIcon: true,
|
|
208
|
-
options: options,
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
export const LargeRoundWithoutIcons = Template.bind({});
|
|
212
|
-
LargeRoundWithoutIcons.args = {
|
|
213
|
-
width: 400,
|
|
214
|
-
size: "large",
|
|
215
|
-
text: "Retailer",
|
|
216
|
-
multiSelect: false,
|
|
217
|
-
limitTagsOnMultiSelect: 0,
|
|
218
|
-
placeHolder: "Type part of name...",
|
|
219
|
-
shape: "round",
|
|
220
|
-
showPopupIcon: false,
|
|
221
|
-
showSearchIcon: false,
|
|
222
|
-
options: options,
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export const LargeSquareWithIcons = Template.bind({});
|
|
226
|
-
LargeSquareWithIcons.args = {
|
|
227
|
-
width: 400,
|
|
228
|
-
size: "large",
|
|
229
|
-
text: "Retailer",
|
|
230
|
-
multiSelect: false,
|
|
231
|
-
limitTagsOnMultiSelect: 0,
|
|
232
|
-
placeHolder: "Type part of name...",
|
|
233
|
-
shape: "square",
|
|
234
|
-
showPopupIcon: true,
|
|
235
|
-
showSearchIcon: true,
|
|
236
|
-
options: options,
|
|
237
|
-
};
|
|
238
|
-
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks';
|
|
2
|
-
import Code from './assets/code-brackets.svg';
|
|
3
|
-
import Colors from './assets/colors.svg';
|
|
4
|
-
import Comments from './assets/comments.svg';
|
|
5
|
-
import Direction from './assets/direction.svg';
|
|
6
|
-
import Flow from './assets/flow.svg';
|
|
7
|
-
import Plugin from './assets/plugin.svg';
|
|
8
|
-
import Repo from './assets/repo.svg';
|
|
9
|
-
import StackAlt from './assets/stackalt.svg';
|
|
10
|
-
|
|
11
|
-
<Meta title="SAG/Introduction" />
|
|
12
|
-
|
|
13
|
-
<style>
|
|
14
|
-
{`
|
|
15
|
-
.subheading {
|
|
16
|
-
--mediumdark: '#999999';
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
font-size: 13px;
|
|
19
|
-
color: #999;
|
|
20
|
-
letter-spacing: 6px;
|
|
21
|
-
line-height: 24px;
|
|
22
|
-
text-transform: uppercase;
|
|
23
|
-
margin-bottom: 12px;
|
|
24
|
-
margin-top: 40px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.link-list {
|
|
28
|
-
display: grid;
|
|
29
|
-
grid-template-columns: 1fr;
|
|
30
|
-
grid-template-rows: 1fr 1fr;
|
|
31
|
-
row-gap: 10px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media (min-width: 620px) {
|
|
35
|
-
.link-list {
|
|
36
|
-
row-gap: 20px;
|
|
37
|
-
column-gap: 20px;
|
|
38
|
-
grid-template-columns: 1fr 1fr;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media all and (-ms-high-contrast:none) {
|
|
43
|
-
.link-list {
|
|
44
|
-
display: -ms-grid;
|
|
45
|
-
-ms-grid-columns: 1fr 1fr;
|
|
46
|
-
-ms-grid-rows: 1fr 1fr;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.link-item {
|
|
51
|
-
display: block;
|
|
52
|
-
padding: 20px;
|
|
53
|
-
border: 1px solid #00000010;
|
|
54
|
-
border-radius: 5px;
|
|
55
|
-
transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
|
|
56
|
-
color: #333333;
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: flex-start;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.link-item:hover {
|
|
62
|
-
border-color: #1EA7FD50;
|
|
63
|
-
transform: translate3d(0, -3px, 0);
|
|
64
|
-
box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.link-item:active {
|
|
68
|
-
border-color: #1EA7FD;
|
|
69
|
-
transform: translate3d(0, 0, 0);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.link-item strong {
|
|
73
|
-
font-weight: 700;
|
|
74
|
-
display: block;
|
|
75
|
-
margin-bottom: 2px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.link-item img {
|
|
79
|
-
height: 40px;
|
|
80
|
-
width: 40px;
|
|
81
|
-
margin-right: 15px;
|
|
82
|
-
flex: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.link-item span,
|
|
86
|
-
.link-item p {
|
|
87
|
-
margin: 0;
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
line-height: 20px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.tip {
|
|
93
|
-
display: inline-block;
|
|
94
|
-
border-radius: 1em;
|
|
95
|
-
font-size: 11px;
|
|
96
|
-
line-height: 12px;
|
|
97
|
-
font-weight: 700;
|
|
98
|
-
background: #E7FDD8;
|
|
99
|
-
color: #66BF3C;
|
|
100
|
-
padding: 4px 12px;
|
|
101
|
-
margin-right: 10px;
|
|
102
|
-
vertical-align: top;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.tip-wrapper {
|
|
106
|
-
font-size: 13px;
|
|
107
|
-
line-height: 20px;
|
|
108
|
-
margin-top: 40px;
|
|
109
|
-
margin-bottom: 40px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.tip-wrapper code {
|
|
113
|
-
font-size: 12px;
|
|
114
|
-
display: inline-block;
|
|
115
|
-
}
|
|
116
|
-
`}
|
|
117
|
-
</style>
|
|
118
|
-
|
|
119
|
-
# Welcome to Sagramata Storybook
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OneColumnContainer } from './components/OneColumnContainer';
|
|
2
|
-
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Sag BI/OneColumnContainer',
|
|
6
|
-
component: OneColumnContainer,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
12
|
-
export const Primary = {
|
|
13
|
-
args: {
|
|
14
|
-
infoText:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s",
|
|
15
|
-
width:"250px",
|
|
16
|
-
height:"250px"
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const StyledContainer = styled.div`
|
|
4
|
-
width: ${(props) =>(props.width)};
|
|
5
|
-
height: ${(props) =>(props.height)};
|
|
6
|
-
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
|
7
|
-
display: flex;
|
|
8
|
-
position: relative;
|
|
9
|
-
border-radius: 10px;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
`;
|
|
14
|
-
export const InfoTextContainer = styled.div`
|
|
15
|
-
width: ${(props) =>(props.width)};
|
|
16
|
-
height: ${(props) =>(props.height)};
|
|
17
|
-
align-items: center;
|
|
18
|
-
display: flex;
|
|
19
|
-
visibility: ${(props) =>(props.clicked ? 'visible' : 'hidden')};
|
|
20
|
-
text-align: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
background: rgba(16, 16, 16, .6);
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const InfoTextLabel = styled.div`
|
|
26
|
-
align-items: center;
|
|
27
|
-
text-align: center;
|
|
28
|
-
color: white;
|
|
29
|
-
margin: 10px;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
export const IconContainer = styled.div`
|
|
34
|
-
width: 15px;
|
|
35
|
-
height: 15px;
|
|
36
|
-
position: absolute;
|
|
37
|
-
margin-top:10px;
|
|
38
|
-
margin-right:10px;
|
|
39
|
-
top: 0;
|
|
40
|
-
right: 0;
|
|
41
|
-
`;
|