sag_components 1.0.7 → 1.0.8
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 +1 -1
- package/src/stories/components/OneColumnContainer.jsx +2 -2
- package/src/stories/components/SegmentedButton.jsx +1 -0
- package/storybook-static/256.47510a7e.iframe.bundle.js +1 -1
- package/storybook-static/256.47510a7e.iframe.bundle.js.LICENSE.txt +9 -9
- package/storybook-static/385.7e265f0d.iframe.bundle.js +401 -401
- package/storybook-static/385.7e265f0d.iframe.bundle.js.LICENSE.txt +53 -53
- package/storybook-static/463.60fe9b8e.iframe.bundle.js +43 -43
- package/storybook-static/537.29807a20.iframe.bundle.js +120 -120
- package/storybook-static/55.d0744d52.iframe.bundle.js +75 -75
- package/storybook-static/55.d0744d52.iframe.bundle.js.LICENSE.txt +26 -26
- package/storybook-static/Dropdown-stories.825dde1a.iframe.bundle.js +7 -7
- package/storybook-static/Introduction-mdx.f8264230.iframe.bundle.js +1 -1
- package/storybook-static/Introduction-mdx.f8264230.iframe.bundle.js.LICENSE.txt +9 -9
- package/storybook-static/OneColumnContainer-stories.65049871.iframe.bundle.js +35 -35
- package/storybook-static/OneColumnContainer-stories.65049871.iframe.bundle.js.LICENSE.txt +18 -18
- package/storybook-static/favicon.svg +6 -6
- package/storybook-static/iframe.html +354 -354
- package/storybook-static/index.html +138 -138
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +13 -13
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +117 -117
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -18
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +31 -31
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +18 -18
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/links-0/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/links-0/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js +4 -4
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js.map +7 -7
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js +23 -23
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js.LEGAL.txt +14 -14
- package/storybook-static/sb-addons/storysource-9/manager-bundle.js.map +7 -7
- package/storybook-static/sb-common-assets/fonts.css +31 -31
- package/storybook-static/sb-manager/GlobalScrollAreaStyles-XIHNDKUY-F4JIPIHL.js +1 -1
- package/storybook-static/sb-manager/OverlayScrollbars-VAV6LJAB-K3TMPSMY.js +6 -6
- package/storybook-static/sb-manager/WithTooltip-FBT32F6Q-7QJ37TCY.js +1 -1
- package/storybook-static/sb-manager/chunk-3FAXWWKG.js +15 -15
- package/storybook-static/sb-manager/chunk-54KM6K5Z.js +7 -7
- package/storybook-static/sb-manager/chunk-AS2AMEUR.js +1 -1
- package/storybook-static/sb-manager/chunk-F3MVQVF6.js +207 -207
- package/storybook-static/sb-manager/chunk-FENICTK6.js +1 -1
- package/storybook-static/sb-manager/chunk-GQDEE62S.js +406 -406
- package/storybook-static/sb-manager/chunk-PUVLCKJJ.js +140 -140
- package/storybook-static/sb-manager/chunk-QPL63VNK.js +1 -1
- package/storybook-static/sb-manager/formatter-S4K5WUZV-4LPR5OBX.js +156 -156
- package/storybook-static/sb-manager/globals.js +1 -1
- package/storybook-static/sb-manager/index.js +1 -1
- package/storybook-static/sb-manager/runtime.js +1 -1
- package/storybook-static/sb-manager/syntaxhighlighter-QTQ2UBB4-F5YUFYAB.js +1 -1
- package/storybook-static/sb-preview/globals.js +1 -1
- package/storybook-static/sb-preview/runtime.js +105 -105
- package/storybook-static/stories.json +1 -1
- package/dist/App.js +0 -120
- package/dist/App.test.js +0 -10
- package/dist/index.js +0 -17
- package/dist/stories/Button.stories.js +0 -117
- package/dist/stories/Button.style.js +0 -14
- package/dist/stories/Dropdown.stories.js +0 -252
- package/dist/stories/Dropdown.style.js +0 -14
- package/dist/stories/OneColumnContainer.stories.js +0 -22
- package/dist/stories/OneColumnContainer.style.js +0 -28
- package/dist/stories/SegmentedButton.stories.js +0 -187
- package/dist/stories/SegmentedButton.style.js +0 -39
- package/dist/stories/components/Button.js +0 -59
- package/dist/stories/components/Dropdown.js +0 -237
- package/dist/stories/components/InfoIcon.js +0 -38
- package/dist/stories/components/OneColumnContainer.js +0 -46
- package/dist/stories/components/SegmentedButton.js +0 -118
|
@@ -1 +1 @@
|
|
|
1
|
-
{"v":3,"stories":{"sag-introduction--docs":{"id":"sag-introduction--docs","title":"SAG/Introduction","name":"Docs","importPath":"./src/stories/Introduction.mdx","storiesImports":[],"tags":["unattached-mdx","docs"],"kind":"SAG/Introduction","story":"Docs","parameters":{"__id":"sag-introduction--docs","docsOnly":true,"fileName":"./src/stories/Introduction.mdx"}},"sag-bi-button--docs":{"id":"sag-bi-button--docs","title":"SAG BI/Button","name":"Docs","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","docs"],"storiesImports":[],"kind":"SAG BI/Button","story":"Docs","parameters":{"__id":"sag-bi-button--docs","docsOnly":true,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--small":{"id":"sag-bi-button--small","title":"SAG BI/Button","name":"Small","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Small","parameters":{"__id":"sag-bi-button--small","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--large":{"id":"sag-bi-button--large","title":"SAG BI/Button","name":"Large","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Large","parameters":{"__id":"sag-bi-button--large","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--disabled":{"id":"sag-bi-button--disabled","title":"SAG BI/Button","name":"Disabled","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Disabled","parameters":{"__id":"sag-bi-button--disabled","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-dropdown--docs":{"id":"sag-bi-dropdown--docs","title":"SAG BI/Dropdown","name":"Docs","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","docs"],"storiesImports":[],"kind":"SAG BI/Dropdown","story":"Docs","parameters":{"__id":"sag-bi-dropdown--docs","docsOnly":true,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--small-square":{"id":"sag-bi-dropdown--small-square","title":"SAG BI/Dropdown","name":"Small Square","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Small Square","parameters":{"__id":"sag-bi-dropdown--small-square","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--small-round":{"id":"sag-bi-dropdown--small-round","title":"SAG BI/Dropdown","name":"Small Round","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Small Round","parameters":{"__id":"sag-bi-dropdown--small-round","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--up-down-arrow-icon":{"id":"sag-bi-dropdown--up-down-arrow-icon","title":"SAG BI/Dropdown","name":"Up Down Arrow Icon","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Up Down Arrow Icon","parameters":{"__id":"sag-bi-dropdown--up-down-arrow-icon","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--search-icon":{"id":"sag-bi-dropdown--search-icon","title":"SAG BI/Dropdown","name":"Search Icon","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Search Icon","parameters":{"__id":"sag-bi-dropdown--search-icon","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-small":{"id":"sag-bi-dropdown--multi-select-small","title":"SAG BI/Dropdown","name":"Multi Select Small","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select Small","parameters":{"__id":"sag-bi-dropdown--multi-select-small","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-large":{"id":"sag-bi-dropdown--multi-select-large","title":"SAG BI/Dropdown","name":"Multi Select Large","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select Large","parameters":{"__id":"sag-bi-dropdown--multi-select-large","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-with-icons":{"id":"sag-bi-dropdown--multi-select-with-icons","title":"SAG BI/Dropdown","name":"Multi Select With Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select With Icons","parameters":{"__id":"sag-bi-dropdown--multi-select-with-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--large-round-without-icons":{"id":"sag-bi-dropdown--large-round-without-icons","title":"SAG BI/Dropdown","name":"Large Round Without Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Large Round Without Icons","parameters":{"__id":"sag-bi-dropdown--large-round-without-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--large-square-with-icons":{"id":"sag-bi-dropdown--large-square-with-icons","title":"SAG BI/Dropdown","name":"Large Square With Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Large Square With Icons","parameters":{"__id":"sag-bi-dropdown--large-square-with-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-onecolumncontainer--docs":{"id":"sag-bi-onecolumncontainer--docs","title":"Sag BI/OneColumnContainer","name":"Docs","importPath":"./src/stories/OneColumnContainer.stories.js","tags":["autodocs","docs"],"storiesImports":[],"kind":"Sag BI/OneColumnContainer","story":"Docs","parameters":{"__id":"sag-bi-onecolumncontainer--docs","docsOnly":true,"fileName":"./src/stories/OneColumnContainer.stories.js"}},"sag-bi-onecolumncontainer--primary":{"id":"sag-bi-onecolumncontainer--primary","title":"Sag BI/OneColumnContainer","name":"Primary","importPath":"./src/stories/OneColumnContainer.stories.js","tags":["autodocs","story"],"kind":"Sag BI/OneColumnContainer","story":"Primary","parameters":{"__id":"sag-bi-onecolumncontainer--primary","docsOnly":false,"fileName":"./src/stories/OneColumnContainer.stories.js"}}}}
|
|
1
|
+
{"v":3,"stories":{"sag-introduction--docs":{"id":"sag-introduction--docs","title":"SAG/Introduction","name":"Docs","importPath":"./src/stories/Introduction.mdx","storiesImports":[],"tags":["unattached-mdx","docs"],"kind":"SAG/Introduction","story":"Docs","parameters":{"__id":"sag-introduction--docs","docsOnly":true,"fileName":"./src/stories/Introduction.mdx"}},"sag-bi-button--docs":{"id":"sag-bi-button--docs","title":"SAG BI/Button","name":"Docs","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","docs"],"storiesImports":[],"kind":"SAG BI/Button","story":"Docs","parameters":{"__id":"sag-bi-button--docs","docsOnly":true,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--small":{"id":"sag-bi-button--small","title":"SAG BI/Button","name":"Small","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Small","parameters":{"__id":"sag-bi-button--small","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--large":{"id":"sag-bi-button--large","title":"SAG BI/Button","name":"Large","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Large","parameters":{"__id":"sag-bi-button--large","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-button--disabled":{"id":"sag-bi-button--disabled","title":"SAG BI/Button","name":"Disabled","importPath":"./src/stories/ButtonText.stories.js","tags":["autodocs","story"],"kind":"SAG BI/Button","story":"Disabled","parameters":{"__id":"sag-bi-button--disabled","docsOnly":false,"fileName":"./src/stories/ButtonText.stories.js"}},"sag-bi-dropdown--docs":{"id":"sag-bi-dropdown--docs","title":"SAG BI/Dropdown","name":"Docs","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","docs"],"storiesImports":[],"kind":"SAG BI/Dropdown","story":"Docs","parameters":{"__id":"sag-bi-dropdown--docs","docsOnly":true,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--small-square":{"id":"sag-bi-dropdown--small-square","title":"SAG BI/Dropdown","name":"Small Square","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Small Square","parameters":{"__id":"sag-bi-dropdown--small-square","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--small-round":{"id":"sag-bi-dropdown--small-round","title":"SAG BI/Dropdown","name":"Small Round","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Small Round","parameters":{"__id":"sag-bi-dropdown--small-round","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--up-down-arrow-icon":{"id":"sag-bi-dropdown--up-down-arrow-icon","title":"SAG BI/Dropdown","name":"Up Down Arrow Icon","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Up Down Arrow Icon","parameters":{"__id":"sag-bi-dropdown--up-down-arrow-icon","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--search-icon":{"id":"sag-bi-dropdown--search-icon","title":"SAG BI/Dropdown","name":"Search Icon","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Search Icon","parameters":{"__id":"sag-bi-dropdown--search-icon","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-small":{"id":"sag-bi-dropdown--multi-select-small","title":"SAG BI/Dropdown","name":"Multi Select Small","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select Small","parameters":{"__id":"sag-bi-dropdown--multi-select-small","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-large":{"id":"sag-bi-dropdown--multi-select-large","title":"SAG BI/Dropdown","name":"Multi Select Large","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select Large","parameters":{"__id":"sag-bi-dropdown--multi-select-large","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--multi-select-with-icons":{"id":"sag-bi-dropdown--multi-select-with-icons","title":"SAG BI/Dropdown","name":"Multi Select With Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Multi Select With Icons","parameters":{"__id":"sag-bi-dropdown--multi-select-with-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--large-round-without-icons":{"id":"sag-bi-dropdown--large-round-without-icons","title":"SAG BI/Dropdown","name":"Large Round Without Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Large Round Without Icons","parameters":{"__id":"sag-bi-dropdown--large-round-without-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-dropdown--large-square-with-icons":{"id":"sag-bi-dropdown--large-square-with-icons","title":"SAG BI/Dropdown","name":"Large Square With Icons","importPath":"./src/stories/Dropdown.stories.jsx","tags":["autodocs","story"],"kind":"SAG BI/Dropdown","story":"Large Square With Icons","parameters":{"__id":"sag-bi-dropdown--large-square-with-icons","docsOnly":false,"fileName":"./src/stories/Dropdown.stories.jsx"}},"sag-bi-onecolumncontainer--docs":{"id":"sag-bi-onecolumncontainer--docs","title":"Sag BI/OneColumnContainer","name":"Docs","importPath":"./src/stories/OneColumnContainer.stories.js","tags":["autodocs","docs"],"storiesImports":[],"kind":"Sag BI/OneColumnContainer","story":"Docs","parameters":{"__id":"sag-bi-onecolumncontainer--docs","docsOnly":true,"fileName":"./src/stories/OneColumnContainer.stories.js"}},"sag-bi-onecolumncontainer--primary":{"id":"sag-bi-onecolumncontainer--primary","title":"Sag BI/OneColumnContainer","name":"Primary","importPath":"./src/stories/OneColumnContainer.stories.js","tags":["autodocs","story"],"kind":"Sag BI/OneColumnContainer","story":"Primary","parameters":{"__id":"sag-bi-onecolumncontainer--primary","docsOnly":false,"fileName":"./src/stories/OneColumnContainer.stories.js"}}}}
|
package/dist/App.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
9
|
-
var _logo = _interopRequireDefault(require("./logo.svg"));
|
|
10
|
-
require("./App.css");
|
|
11
|
-
var _react = require("react");
|
|
12
|
-
var _Button = _interopRequireDefault(require("./stories/components/Button"));
|
|
13
|
-
var _Dropdown = _interopRequireDefault(require("./stories/components/Dropdown"));
|
|
14
|
-
var _SegmentedButton = _interopRequireDefault(require("./stories/components/SegmentedButton"));
|
|
15
|
-
var onChangehandler = function onChangehandler(event, newValue) {
|
|
16
|
-
console.log("Dropdown onChange event returned:");
|
|
17
|
-
console.log(newValue);
|
|
18
|
-
};
|
|
19
|
-
var onInputChangeHandler = function onInputChangeHandler(event, newInputValue) {
|
|
20
|
-
console.log("Dropdown onInputChange event returned:");
|
|
21
|
-
console.log(newInputValue);
|
|
22
|
-
};
|
|
23
|
-
function App() {
|
|
24
|
-
var options = [{
|
|
25
|
-
id: "1",
|
|
26
|
-
label: "Shufersal"
|
|
27
|
-
}, {
|
|
28
|
-
id: "2",
|
|
29
|
-
label: "EPC"
|
|
30
|
-
}, {
|
|
31
|
-
id: "3",
|
|
32
|
-
label: "Food Lion"
|
|
33
|
-
}, {
|
|
34
|
-
id: "4",
|
|
35
|
-
label: "Hannaford"
|
|
36
|
-
}, {
|
|
37
|
-
id: "5",
|
|
38
|
-
label: "Giant Food"
|
|
39
|
-
}, {
|
|
40
|
-
id: "6",
|
|
41
|
-
label: "The Giant Company"
|
|
42
|
-
}, {
|
|
43
|
-
id: "7",
|
|
44
|
-
label: "Stop&Shop"
|
|
45
|
-
}, {
|
|
46
|
-
id: "8",
|
|
47
|
-
label: "Price Chopper"
|
|
48
|
-
}, {
|
|
49
|
-
id: "9",
|
|
50
|
-
label: "South Eastern Grocers"
|
|
51
|
-
}];
|
|
52
|
-
var segmentsArr1 = [{
|
|
53
|
-
label: "Complete",
|
|
54
|
-
value: "complete"
|
|
55
|
-
}, {
|
|
56
|
-
label: "Incomplete",
|
|
57
|
-
value: "incomplete"
|
|
58
|
-
}, {
|
|
59
|
-
label: "Pending",
|
|
60
|
-
value: "pending"
|
|
61
|
-
}];
|
|
62
|
-
var segmentsArr2 = [{
|
|
63
|
-
label: "First",
|
|
64
|
-
value: "first"
|
|
65
|
-
}, {
|
|
66
|
-
label: "Second",
|
|
67
|
-
value: "second"
|
|
68
|
-
}, {
|
|
69
|
-
label: "Third",
|
|
70
|
-
value: "third"
|
|
71
|
-
}];
|
|
72
|
-
var _useState = (0, _react.useState)("complete"),
|
|
73
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
74
|
-
selectedValue1 = _useState2[0],
|
|
75
|
-
setSelectedValue1 = _useState2[1];
|
|
76
|
-
var _useState3 = (0, _react.useState)("complete"),
|
|
77
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
78
|
-
selectedValue2 = _useState4[0],
|
|
79
|
-
setSelectedValue2 = _useState4[1];
|
|
80
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "App"
|
|
82
|
-
}, /*#__PURE__*/React.createElement(_Dropdown.default, {
|
|
83
|
-
width: "300",
|
|
84
|
-
size: "small",
|
|
85
|
-
text: "Select retailer......",
|
|
86
|
-
multiSelect: false,
|
|
87
|
-
options: options,
|
|
88
|
-
shape: "round",
|
|
89
|
-
onChange: onChangehandler,
|
|
90
|
-
onInputChange: onInputChangeHandler
|
|
91
|
-
}), /*#__PURE__*/React.createElement(_Dropdown.default, {
|
|
92
|
-
width: 400,
|
|
93
|
-
size: "small",
|
|
94
|
-
text: "Select retailer......",
|
|
95
|
-
multiSelect: true,
|
|
96
|
-
options: options,
|
|
97
|
-
shape: "round",
|
|
98
|
-
onChange: onChangehandler,
|
|
99
|
-
onInputChange: onInputChangeHandler
|
|
100
|
-
}), /*#__PURE__*/React.createElement(_SegmentedButton.default, {
|
|
101
|
-
name: "group1",
|
|
102
|
-
onClick: function onClick(val) {
|
|
103
|
-
return setSelectedValue1(val);
|
|
104
|
-
},
|
|
105
|
-
segments: segmentsArr1
|
|
106
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
107
|
-
className: "selected-item"
|
|
108
|
-
}, "Selected: ", selectedValue1), /*#__PURE__*/React.createElement(_SegmentedButton.default, {
|
|
109
|
-
name: "group2",
|
|
110
|
-
onClick: function onClick(val) {
|
|
111
|
-
return setSelectedValue2(val);
|
|
112
|
-
},
|
|
113
|
-
defaultIndex: 1,
|
|
114
|
-
segments: segmentsArr2
|
|
115
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
116
|
-
className: "selected-item"
|
|
117
|
-
}, "Selected: ", selectedValue2));
|
|
118
|
-
}
|
|
119
|
-
var _default = App;
|
|
120
|
-
exports.default = _default;
|
package/dist/App.test.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _App = _interopRequireDefault(require("./App"));
|
|
6
|
-
test('renders learn react link', function () {
|
|
7
|
-
(0, _react.render)( /*#__PURE__*/React.createElement(_App.default, null));
|
|
8
|
-
var linkElement = _react.screen.getByText(/learn react/i);
|
|
9
|
-
expect(linkElement).toBeInTheDocument();
|
|
10
|
-
});
|
package/dist/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _react = _interopRequireDefault(require("react"));
|
|
5
|
-
var _client = _interopRequireDefault(require("react-dom/client"));
|
|
6
|
-
require("./index.css");
|
|
7
|
-
var _App = _interopRequireDefault(require("./App"));
|
|
8
|
-
// import '@fontsource/roboto/300.css';
|
|
9
|
-
// import '@fontsource/roboto/400.css';
|
|
10
|
-
// import '@fontsource/roboto/500.css';
|
|
11
|
-
// import '@fontsource/roboto/700.css';
|
|
12
|
-
var root = _client.default.createRoot(document.getElementById('root'));
|
|
13
|
-
root.render( /*#__PURE__*/_react.default.createElement(_react.default.StrictMode, null, /*#__PURE__*/_react.default.createElement(_App.default, null)));
|
|
14
|
-
|
|
15
|
-
// If you want to start measuring performance in your app, pass a function
|
|
16
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
17
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.SmallContainedStyle = exports.MediumOutlinedStyle = exports.LargeTextStyle = exports.DisabledContainedStyle = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Button = require("./components/Button");
|
|
10
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
11
|
-
var _default = {
|
|
12
|
-
title: "SAG/Button",
|
|
13
|
-
component: _Button.Button,
|
|
14
|
-
tags: ["autodocs"],
|
|
15
|
-
argTypes: {
|
|
16
|
-
text: {
|
|
17
|
-
name: "text",
|
|
18
|
-
control: {
|
|
19
|
-
type: "text"
|
|
20
|
-
},
|
|
21
|
-
description: "text inside of the button",
|
|
22
|
-
defaultValue: ""
|
|
23
|
-
},
|
|
24
|
-
shape: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "radio"
|
|
27
|
-
},
|
|
28
|
-
options: ["contained", "outlined", "text"],
|
|
29
|
-
description: "shape of the button"
|
|
30
|
-
},
|
|
31
|
-
radius: {
|
|
32
|
-
name: "radius",
|
|
33
|
-
control: {
|
|
34
|
-
type: "number"
|
|
35
|
-
},
|
|
36
|
-
description: "radius of the button",
|
|
37
|
-
defaultValue: 50
|
|
38
|
-
},
|
|
39
|
-
size: {
|
|
40
|
-
control: {
|
|
41
|
-
type: "radio"
|
|
42
|
-
},
|
|
43
|
-
options: ["small", "medium", "large"],
|
|
44
|
-
description: "size of the button"
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
name: "disabled",
|
|
48
|
-
control: {
|
|
49
|
-
type: "boolean"
|
|
50
|
-
},
|
|
51
|
-
description: "changes the button to be enabled/disabled",
|
|
52
|
-
defaultValue: ""
|
|
53
|
-
},
|
|
54
|
-
backgroundColor: {
|
|
55
|
-
control: {
|
|
56
|
-
type: "color",
|
|
57
|
-
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"],
|
|
58
|
-
description: "Sets Background Color"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
textColor: {
|
|
62
|
-
control: {
|
|
63
|
-
type: "select"
|
|
64
|
-
},
|
|
65
|
-
options: ["none", "inherit", "black", "green", "red", "yellow", "blue", "white"],
|
|
66
|
-
description: "text color of the button"
|
|
67
|
-
},
|
|
68
|
-
onClick: {
|
|
69
|
-
action: "onClick",
|
|
70
|
-
description: "returns an event click object when user clicks on a button"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
exports.default = _default;
|
|
75
|
-
var Template = function Template(args) {
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement(_Button.Button, args);
|
|
77
|
-
};
|
|
78
|
-
var SmallContainedStyle = Template.bind({});
|
|
79
|
-
exports.SmallContainedStyle = SmallContainedStyle;
|
|
80
|
-
SmallContainedStyle.args = {
|
|
81
|
-
text: "Confirm",
|
|
82
|
-
shape: "contained",
|
|
83
|
-
radius: 50,
|
|
84
|
-
size: "small",
|
|
85
|
-
textColor: "none",
|
|
86
|
-
disabled: false
|
|
87
|
-
};
|
|
88
|
-
var DisabledContainedStyle = Template.bind({});
|
|
89
|
-
exports.DisabledContainedStyle = DisabledContainedStyle;
|
|
90
|
-
DisabledContainedStyle.args = {
|
|
91
|
-
size: "small",
|
|
92
|
-
text: "Confirm",
|
|
93
|
-
shape: "contained",
|
|
94
|
-
radius: 50,
|
|
95
|
-
textColor: "inherit",
|
|
96
|
-
disabled: true
|
|
97
|
-
};
|
|
98
|
-
var MediumOutlinedStyle = Template.bind({});
|
|
99
|
-
exports.MediumOutlinedStyle = MediumOutlinedStyle;
|
|
100
|
-
MediumOutlinedStyle.args = {
|
|
101
|
-
text: "Confirm",
|
|
102
|
-
size: "medium",
|
|
103
|
-
radius: 50,
|
|
104
|
-
shape: "outlined",
|
|
105
|
-
textColor: "",
|
|
106
|
-
disabled: false
|
|
107
|
-
};
|
|
108
|
-
var LargeTextStyle = Template.bind({});
|
|
109
|
-
exports.LargeTextStyle = LargeTextStyle;
|
|
110
|
-
LargeTextStyle.args = {
|
|
111
|
-
text: "Confirm",
|
|
112
|
-
size: "large",
|
|
113
|
-
radius: 50,
|
|
114
|
-
shape: "text",
|
|
115
|
-
textColor: "inherit",
|
|
116
|
-
disabled: false
|
|
117
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DropdownContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject;
|
|
11
|
-
var DropdownContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", "; \n text-align: left; \n position: relative; \n align-items: center;\n justify-content: center;\n"])), function (props) {
|
|
12
|
-
return props.width;
|
|
13
|
-
});
|
|
14
|
-
exports.DropdownContainer = DropdownContainer;
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.UpDownArrowIcon = exports.SmallSquare = exports.SmallRound = exports.SearchIcon = exports.MultiSelectWithIcons = exports.MultiSelectSmall = exports.MultiSelectLarge = exports.LargeSquareWithIcons = exports.LargeRoundWithoutIcons = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Dropdown = require("./components/Dropdown");
|
|
10
|
-
var options = [{
|
|
11
|
-
id: 0,
|
|
12
|
-
label: "Shufersal"
|
|
13
|
-
}, {
|
|
14
|
-
id: 1,
|
|
15
|
-
label: "EPC"
|
|
16
|
-
}, {
|
|
17
|
-
id: 2,
|
|
18
|
-
label: "Food Lion"
|
|
19
|
-
}, {
|
|
20
|
-
id: 3,
|
|
21
|
-
label: "Hannaford"
|
|
22
|
-
}, {
|
|
23
|
-
id: 4,
|
|
24
|
-
label: "Giant Food"
|
|
25
|
-
}, {
|
|
26
|
-
id: 5,
|
|
27
|
-
label: "The Giant Company"
|
|
28
|
-
}, {
|
|
29
|
-
id: 6,
|
|
30
|
-
label: "Stop&Shop"
|
|
31
|
-
}, {
|
|
32
|
-
id: 7,
|
|
33
|
-
label: "Price Chopper"
|
|
34
|
-
}, {
|
|
35
|
-
id: 8,
|
|
36
|
-
label: "South Eastern Grocers"
|
|
37
|
-
}];
|
|
38
|
-
|
|
39
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
40
|
-
var _default = {
|
|
41
|
-
title: "SAG/Dropdown",
|
|
42
|
-
component: _Dropdown.Dropdown,
|
|
43
|
-
tags: ["autodocs"],
|
|
44
|
-
argTypes: {
|
|
45
|
-
width: {
|
|
46
|
-
control: {
|
|
47
|
-
type: "number"
|
|
48
|
-
},
|
|
49
|
-
description: "width of the input field",
|
|
50
|
-
defaultValue: 300
|
|
51
|
-
},
|
|
52
|
-
size: {
|
|
53
|
-
control: {
|
|
54
|
-
type: "radio"
|
|
55
|
-
},
|
|
56
|
-
options: ["small", "large"],
|
|
57
|
-
description: "size: small/large"
|
|
58
|
-
},
|
|
59
|
-
text: {
|
|
60
|
-
name: "text",
|
|
61
|
-
control: {
|
|
62
|
-
type: "text"
|
|
63
|
-
},
|
|
64
|
-
description: "text inside of the input field",
|
|
65
|
-
defaultValue: 'Search...'
|
|
66
|
-
},
|
|
67
|
-
placeHolder: {
|
|
68
|
-
name: "placeHolder",
|
|
69
|
-
control: {
|
|
70
|
-
type: "text"
|
|
71
|
-
},
|
|
72
|
-
description: "notify the user how to type a text",
|
|
73
|
-
defaultValue: "Type..."
|
|
74
|
-
},
|
|
75
|
-
multiSelect: {
|
|
76
|
-
name: "multiSelect",
|
|
77
|
-
// control: { type: "boolean",
|
|
78
|
-
// },
|
|
79
|
-
control: false,
|
|
80
|
-
description: "true/false - allows multi select - (switch multiSelect / singleSelect is disabled in this story)"
|
|
81
|
-
},
|
|
82
|
-
limitTagsOnMultiSelect: {
|
|
83
|
-
name: "limitTagsOnMultiSelect",
|
|
84
|
-
control: {
|
|
85
|
-
type: "number"
|
|
86
|
-
},
|
|
87
|
-
description: "limit noumber displayed tags on multi select when not focused"
|
|
88
|
-
},
|
|
89
|
-
options: {
|
|
90
|
-
description: "array [] of objects: {id: string1 , label: string2 } to fill dropdown options "
|
|
91
|
-
},
|
|
92
|
-
shape: {
|
|
93
|
-
control: {
|
|
94
|
-
type: "radio"
|
|
95
|
-
},
|
|
96
|
-
options: ["round", "square"],
|
|
97
|
-
description: "shape: round/square"
|
|
98
|
-
},
|
|
99
|
-
showPopupIcon: {
|
|
100
|
-
name: "showPopupIcon",
|
|
101
|
-
control: {
|
|
102
|
-
type: "boolean"
|
|
103
|
-
},
|
|
104
|
-
description: "show/hide popup (up/down arrow) icon"
|
|
105
|
-
},
|
|
106
|
-
showSearchIcon: {
|
|
107
|
-
name: "showSearchIcon",
|
|
108
|
-
control: {
|
|
109
|
-
type: "boolean"
|
|
110
|
-
},
|
|
111
|
-
description: "show/hide search icon "
|
|
112
|
-
},
|
|
113
|
-
onChange: {
|
|
114
|
-
action: "onChange",
|
|
115
|
-
description: "returns an option (object) selected by the user"
|
|
116
|
-
},
|
|
117
|
-
onInputChange: {
|
|
118
|
-
action: "onInputChange",
|
|
119
|
-
description: "returns a value (string) displayed in the textbox"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
exports.default = _default;
|
|
124
|
-
var Template = function Template(args) {
|
|
125
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.Dropdown, args);
|
|
126
|
-
};
|
|
127
|
-
var SmallSquare = Template.bind({});
|
|
128
|
-
exports.SmallSquare = SmallSquare;
|
|
129
|
-
SmallSquare.args = {
|
|
130
|
-
width: 300,
|
|
131
|
-
size: "small",
|
|
132
|
-
text: "Retailer",
|
|
133
|
-
multiSelect: false,
|
|
134
|
-
limitTagsOnMultiSelect: 0,
|
|
135
|
-
placeHolder: "Type...",
|
|
136
|
-
shape: "square",
|
|
137
|
-
showPopupIcon: false,
|
|
138
|
-
showSearchIcon: false,
|
|
139
|
-
options: options
|
|
140
|
-
};
|
|
141
|
-
var SmallRound = Template.bind({});
|
|
142
|
-
exports.SmallRound = SmallRound;
|
|
143
|
-
SmallRound.args = {
|
|
144
|
-
width: 300,
|
|
145
|
-
size: "small",
|
|
146
|
-
text: "Retailer",
|
|
147
|
-
multiSelect: false,
|
|
148
|
-
limitTagsOnMultiSelect: 0,
|
|
149
|
-
placeHolder: "Type...",
|
|
150
|
-
shape: "round",
|
|
151
|
-
showPopupIcon: false,
|
|
152
|
-
showSearchIcon: false,
|
|
153
|
-
options: options
|
|
154
|
-
};
|
|
155
|
-
var UpDownArrowIcon = Template.bind({});
|
|
156
|
-
exports.UpDownArrowIcon = UpDownArrowIcon;
|
|
157
|
-
UpDownArrowIcon.args = {
|
|
158
|
-
width: 300,
|
|
159
|
-
size: "small",
|
|
160
|
-
text: "Retailer",
|
|
161
|
-
multiSelect: false,
|
|
162
|
-
limitTagsOnMultiSelect: 0,
|
|
163
|
-
placeHolder: "Type...",
|
|
164
|
-
shape: "round",
|
|
165
|
-
showPopupIcon: true,
|
|
166
|
-
showSearchIcon: false,
|
|
167
|
-
options: options
|
|
168
|
-
};
|
|
169
|
-
var SearchIcon = Template.bind({});
|
|
170
|
-
exports.SearchIcon = SearchIcon;
|
|
171
|
-
SearchIcon.args = {
|
|
172
|
-
width: 300,
|
|
173
|
-
size: "small",
|
|
174
|
-
text: "Retailer",
|
|
175
|
-
multiSelect: false,
|
|
176
|
-
limitTagsOnMultiSelect: 0,
|
|
177
|
-
placeHolder: "Type...",
|
|
178
|
-
shape: "round",
|
|
179
|
-
showPopupIcon: false,
|
|
180
|
-
showSearchIcon: true,
|
|
181
|
-
options: options
|
|
182
|
-
};
|
|
183
|
-
var MultiSelectSmall = Template.bind({});
|
|
184
|
-
exports.MultiSelectSmall = MultiSelectSmall;
|
|
185
|
-
MultiSelectSmall.args = {
|
|
186
|
-
width: 400,
|
|
187
|
-
size: "small",
|
|
188
|
-
text: "Retailer",
|
|
189
|
-
multiSelect: true,
|
|
190
|
-
limitTagsOnMultiSelect: 2,
|
|
191
|
-
placeHolder: "Type...",
|
|
192
|
-
shape: "square",
|
|
193
|
-
showPopupIcon: false,
|
|
194
|
-
showSearchIcon: false,
|
|
195
|
-
options: options
|
|
196
|
-
};
|
|
197
|
-
var MultiSelectLarge = Template.bind({});
|
|
198
|
-
exports.MultiSelectLarge = MultiSelectLarge;
|
|
199
|
-
MultiSelectLarge.args = {
|
|
200
|
-
width: 500,
|
|
201
|
-
size: "large",
|
|
202
|
-
text: "Retailer",
|
|
203
|
-
multiSelect: true,
|
|
204
|
-
limitTagsOnMultiSelect: 2,
|
|
205
|
-
placeHolder: "Type...",
|
|
206
|
-
shape: "round",
|
|
207
|
-
showPopupIcon: false,
|
|
208
|
-
showSearchIcon: false,
|
|
209
|
-
options: options
|
|
210
|
-
};
|
|
211
|
-
var MultiSelectWithIcons = Template.bind({});
|
|
212
|
-
exports.MultiSelectWithIcons = MultiSelectWithIcons;
|
|
213
|
-
MultiSelectWithIcons.args = {
|
|
214
|
-
width: 500,
|
|
215
|
-
size: "large",
|
|
216
|
-
text: "Retailer",
|
|
217
|
-
multiSelect: true,
|
|
218
|
-
limitTagsOnMultiSelect: 2,
|
|
219
|
-
placeHolder: "Type...",
|
|
220
|
-
shape: "square",
|
|
221
|
-
showPopupIcon: true,
|
|
222
|
-
showSearchIcon: true,
|
|
223
|
-
options: options
|
|
224
|
-
};
|
|
225
|
-
var LargeRoundWithoutIcons = Template.bind({});
|
|
226
|
-
exports.LargeRoundWithoutIcons = LargeRoundWithoutIcons;
|
|
227
|
-
LargeRoundWithoutIcons.args = {
|
|
228
|
-
width: 400,
|
|
229
|
-
size: "large",
|
|
230
|
-
text: "Retailer",
|
|
231
|
-
multiSelect: false,
|
|
232
|
-
limitTagsOnMultiSelect: 0,
|
|
233
|
-
placeHolder: "Type part of name...",
|
|
234
|
-
shape: "round",
|
|
235
|
-
showPopupIcon: false,
|
|
236
|
-
showSearchIcon: false,
|
|
237
|
-
options: options
|
|
238
|
-
};
|
|
239
|
-
var LargeSquareWithIcons = Template.bind({});
|
|
240
|
-
exports.LargeSquareWithIcons = LargeSquareWithIcons;
|
|
241
|
-
LargeSquareWithIcons.args = {
|
|
242
|
-
width: 400,
|
|
243
|
-
size: "large",
|
|
244
|
-
text: "Retailer",
|
|
245
|
-
multiSelect: false,
|
|
246
|
-
limitTagsOnMultiSelect: 0,
|
|
247
|
-
placeHolder: "Type part of name...",
|
|
248
|
-
shape: "square",
|
|
249
|
-
showPopupIcon: true,
|
|
250
|
-
showSearchIcon: true,
|
|
251
|
-
options: options
|
|
252
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DropdownContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject;
|
|
11
|
-
var DropdownContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", "; \n text-align: left; \n position: relative; \n align-items: center;\n justify-content: center;\n"])), function (props) {
|
|
12
|
-
return props.width;
|
|
13
|
-
});
|
|
14
|
-
exports.DropdownContainer = DropdownContainer;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Primary = void 0;
|
|
7
|
-
var _OneColumnContainer = require("./components/OneColumnContainer");
|
|
8
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
9
|
-
var _default = {
|
|
10
|
-
title: 'Sag BI/OneColumnContainer',
|
|
11
|
-
component: _OneColumnContainer.OneColumnContainer,
|
|
12
|
-
tags: ['autodocs']
|
|
13
|
-
}; // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
var Primary = {
|
|
16
|
-
args: {
|
|
17
|
-
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",
|
|
18
|
-
width: "250px",
|
|
19
|
-
height: "250px"
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.Primary = Primary;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.StyledContainer = exports.InfoTextLabel = exports.InfoTextContainer = exports.IconContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
11
|
-
var StyledContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; \n display: flex;\n position: relative;\n border-radius: 10px;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n"])), function (props) {
|
|
12
|
-
return props.width;
|
|
13
|
-
}, function (props) {
|
|
14
|
-
return props.height;
|
|
15
|
-
});
|
|
16
|
-
exports.StyledContainer = StyledContainer;
|
|
17
|
-
var InfoTextContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n align-items: center;\n display: flex;\n visibility: ", ";\n text-align: center;\n justify-content: center;\n background: rgba(16, 16, 16, .6);\n"])), function (props) {
|
|
18
|
-
return props.width;
|
|
19
|
-
}, function (props) {
|
|
20
|
-
return props.height;
|
|
21
|
-
}, function (props) {
|
|
22
|
-
return props.clicked ? 'visible' : 'hidden';
|
|
23
|
-
});
|
|
24
|
-
exports.InfoTextContainer = InfoTextContainer;
|
|
25
|
-
var InfoTextLabel = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n text-align: center;\n color: white;\n margin: 10px;\n justify-content: center;\n"])));
|
|
26
|
-
exports.InfoTextLabel = InfoTextLabel;
|
|
27
|
-
var IconContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n width: 15px;\n height: 15px;\n position: absolute;\n margin-top:10px;\n margin-right:10px;\n top: 0;\n right: 0;\n"])));
|
|
28
|
-
exports.IconContainer = IconContainer;
|