beem-component 1.0.1 → 1.0.5
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/.storybook/favicon.ico +0 -0
- package/.storybook/logo-blue.png +0 -0
- package/.storybook/main.js +15 -0
- package/.storybook/manager-head.html +14 -0
- package/.storybook/manager.js +6 -0
- package/.storybook/preview.js +10 -0
- package/.storybook/theme.js +10 -0
- package/Dockerfile +30 -0
- package/Jenkinsfile +73 -0
- package/build-storybook.log +14621 -0
- package/dist/assets/beem.jpeg +0 -0
- package/dist/components/{Accordion.js → Accordion/Accordion.js} +12 -6
- package/dist/components/Accordion/Accordion.stories.js +86 -0
- package/dist/components/{avatars.js → Avatars/avatars.js} +31 -11
- package/dist/components/Avatars/avatars.stories.js +69 -0
- package/dist/components/Buttons/Stories/basicbutton.stories.js +67 -0
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +65 -0
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +65 -0
- package/dist/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +17 -9
- package/dist/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +13 -4
- package/dist/components/{buttons.js → Buttons/buttons.js} +11 -10
- package/dist/components/{Reports → Cards}/cards.js +9 -24
- package/dist/components/Cards/cards.stories.js +61 -0
- package/dist/components/Chats/chat.js +1 -1
- package/dist/components/Chats/chatInput.js +1 -1
- package/dist/components/Chats/chatwrapper.js +1 -1
- package/dist/components/Lists/listBox.js +41 -0
- package/dist/components/Lists/listBox.stories.js +78 -0
- package/dist/components/Lists/listHeader.stories.js +58 -0
- package/dist/components/Lists/listheader.js +17 -12
- package/dist/components/Lists/rowLabels.js +34 -16
- package/dist/components/Lists/rowLabels.stories.js +85 -0
- package/dist/components/{loaders.js → Loader/loader.js} +13 -7
- package/dist/components/Loader/loader.stories.js +52 -0
- package/dist/components/{Reports/buttons.js → MainWrapper/index.js} +5 -3
- package/dist/components/Modals/modal copy.js +160 -0
- package/dist/components/Modals/modal.js +166 -0
- package/dist/components/Modals/modals.stories.js +117 -0
- package/dist/components/{infoNote.js → NoteBar.js/noteBar.js} +23 -19
- package/dist/components/NoteBar.js/noteBar.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performanceIndicator.js +68 -0
- package/dist/components/Pills/pills.js +126 -0
- package/dist/components/Pills/pills.stories.js +110 -0
- package/dist/components/{progressbar.js → ProgressBar/progressbar.js} +8 -2
- package/dist/components/ProgressBar/progressbar.stories.js +45 -0
- package/dist/components/{Link.js → RouteLink/link.js} +8 -3
- package/dist/components/RouteLink/link.stories.js +29 -0
- package/dist/components/SuperFluid/ContentTitle.js/index.js +1 -1
- package/dist/components/SuperFluid/SegmentCard/index.js +1 -1
- package/dist/components/Tabs/tabs.js +85 -0
- package/dist/components/Tabs/tabs.stories.js +59 -0
- package/dist/components/breakpoints.js +18 -0
- package/dist/components/chatHeader.js +1 -1
- package/dist/components/checkboxToggler.js +2 -2
- package/dist/components/colors.js +5 -3
- package/dist/components/contacts.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdownButton.js +3 -3
- package/dist/components/dropdownItems.js +1 -1
- package/dist/components/example.js +47 -0
- package/dist/components/iconStyles.js +69 -119
- package/dist/components/index-copy.js +1285 -0
- package/dist/components/index.js +80 -1155
- package/dist/components/input.js +9 -3
- package/dist/components/logo.js +1 -1
- package/dist/components/navbar.js +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/typography.js +1 -1
- package/nginx.conf +17 -0
- package/package.json +30 -11
- package/public/favicon.ico +0 -0
- package/public/index.html +1 -1
- package/src/App.js +12 -29
- package/src/examples/Navbar.js +1 -1
- package/src/lib/assets/beem.jpeg +0 -0
- package/src/lib/components/{Accordion.js → Accordion/Accordion.js} +5 -4
- package/src/lib/components/Accordion/Accordion.stories.js +63 -0
- package/src/lib/components/{avatars.js → Avatars/avatars.js} +24 -8
- package/src/lib/components/Avatars/avatars.stories.js +45 -0
- package/src/lib/components/Buttons/Stories/basicbutton.stories.js +51 -0
- package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +42 -0
- package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +49 -0
- package/src/lib/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +20 -9
- package/src/lib/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +12 -2
- package/src/lib/components/{buttons.js → Buttons/buttons.js} +10 -10
- package/src/lib/components/{Reports → Cards}/cards.js +10 -18
- package/src/lib/components/Cards/cards.stories.js +52 -0
- package/src/lib/components/Lists/listBox.js +34 -0
- package/src/lib/components/Lists/listBox.stories.js +47 -0
- package/src/lib/components/Lists/listHeader.stories.js +36 -0
- package/src/lib/components/Lists/listheader.js +17 -11
- package/src/lib/components/Lists/rowLabels.js +47 -16
- package/src/lib/components/Lists/rowLabels.stories.js +59 -0
- package/src/lib/components/{loaders.js → Loader/loader.js} +18 -7
- package/src/lib/components/Loader/loader.stories.js +30 -0
- package/src/lib/components/MainWrapper/index.js +7 -0
- package/src/lib/components/Modals/modal copy.js +159 -0
- package/src/lib/components/Modals/modal.js +152 -0
- package/src/lib/components/Modals/modals.stories.js +82 -0
- package/src/lib/components/{infoNote.js → NoteBar.js/noteBar.js} +24 -25
- package/src/lib/components/NoteBar.js/noteBar.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performanceIndicator.js +56 -0
- package/src/lib/components/Pills/pills.js +91 -0
- package/src/lib/components/Pills/pills.stories.js +74 -0
- package/src/lib/components/{progressbar.js → ProgressBar/progressbar.js} +8 -1
- package/src/lib/components/ProgressBar/progressbar.stories.js +26 -0
- package/src/lib/components/{Link.js → RouteLink/link.js} +5 -4
- package/src/lib/components/RouteLink/link.stories.js +21 -0
- package/src/lib/components/Tabs/tabs.js +84 -0
- package/src/lib/components/Tabs/tabs.stories.js +36 -0
- package/src/lib/components/breakpoints.js +11 -0
- package/src/lib/components/colors.js +2 -0
- package/src/lib/components/dropdownButton.js +2 -2
- package/src/lib/components/example.js +30 -0
- package/src/lib/components/iconStyles.js +46 -101
- package/src/lib/components/index-copy.js +468 -0
- package/src/lib/components/index.js +38 -445
- package/src/lib/components/input.js +8 -2
- package/src/lib/components/sidebar.js +1 -1
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +2 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/0.96c45dd8.iframe.bundle.js +1 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +3 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +1 -0
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +1 -0
- package/storybook-static/2.24353ddc.iframe.bundle.js +1 -0
- package/storybook-static/3.8bb2173c.iframe.bundle.js +1 -0
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +1 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +2 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +1 -0
- package/storybook-static/7.f0cfc757.iframe.bundle.js +1 -0
- package/storybook-static/8.91de97de.iframe.bundle.js +3 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.map +1 -0
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +1 -0
- package/storybook-static/9.40ec65d6.iframe.bundle.js +1 -0
- package/storybook-static/asset-manifest.json +30 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +348 -0
- package/storybook-static/index.html +110 -0
- package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -0
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css +4 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +1 -0
- package/storybook-static/static/media/OpenSans-Regular.1b0809d5.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.1eae2d48.woff2 +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff6749.eot +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff971f.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.850fc4f3.svg +3066 -0
- package/storybook-static/static/media/PoppinsBold.b33c148b.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.0ba26f6c.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.49b46ace.eot +0 -0
- package/storybook-static/static/media/PoppinsMedium.57a99fa8.woff2 +0 -0
- package/storybook-static/static/media/PoppinsMedium.b7e43707.svg +3103 -0
- package/storybook-static/static/media/PoppinsMedium.c98dddbd.ttf +0 -0
- package/storybook-static/static/media/PoppinsRegular.13b9af9c.eot +0 -0
- package/storybook-static/static/media/PoppinsRegular.43e9b50d.svg +3138 -0
- package/storybook-static/static/media/PoppinsRegular.4a4d5420.woff +0 -0
- package/storybook-static/static/media/PoppinsRegular.9a7cc7ec.woff2 +0 -0
- package/storybook-static/static/media/PoppinsRegular.e1bc9021.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.5692c77f.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.80138c67.woff +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.c442695a.eot +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.e1948d56.svg +3098 -0
- package/storybook-static/static/media/PoppinsSemiBold.f27050e2.woff2 +0 -0
- package/storybook-static/static/media/logo-blue.bfc5ba6d.png +0 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +2 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt +104 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +3 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt +122 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +1 -0
- package/dist/assets/content_copy_black.svg +0 -1
- package/dist/assets/profile-pic.jpg +0 -0
- package/dist/components/Accordicon.js +0 -51
- package/dist/components/CustomerInfo/customerInfo.js +0 -89
- package/dist/components/CustomerInfo/customerInfoBar.js +0 -24
- package/dist/components/CustomerInfo/infoAccordion.js +0 -78
- package/dist/components/CustomerInfo/labelsInfo.js +0 -37
- package/dist/components/CustomerInfo/notesInfo.js +0 -39
- package/dist/components/Modals/modalBody.js +0 -61
- package/dist/components/Modals/noteModalBody.js +0 -20
- package/dist/components/Modals/noteModalFooter.js +0 -24
- package/dist/components/Modals/noteModalHeader.js +0 -93
- package/dist/components/Reports/charts.js +0 -70
- package/dist/components/Reports/infoHeader.js +0 -65
- package/dist/components/Reports/reportsBody.js +0 -28
- package/dist/components/Reports/title.js +0 -28
- package/dist/components/performanceIndicator.js +0 -41
- package/dist/components/pills.js +0 -73
- package/src/App1.js +0 -229
- package/src/CHAT.js +0 -170
- package/src/Complete.js +0 -48
- package/src/CreateSegments.js +0 -48
- package/src/FileUploadSFL.js +0 -110
- package/src/examples/CustomerInfo.js +0 -248
- package/src/lib/assets/content_copy_black.svg +0 -1
- package/src/lib/assets/profile-pic.jpg +0 -0
- package/src/lib/components/Accordicon.js +0 -43
- package/src/lib/components/CustomerInfo/customerInfo.js +0 -91
- package/src/lib/components/CustomerInfo/customerInfoBar.js +0 -23
- package/src/lib/components/CustomerInfo/infoAccordion.js +0 -96
- package/src/lib/components/CustomerInfo/labelsInfo.js +0 -37
- package/src/lib/components/CustomerInfo/notesInfo.js +0 -61
- package/src/lib/components/Modals/modalBody.js +0 -66
- package/src/lib/components/Modals/noteModalBody.js +0 -10
- package/src/lib/components/Modals/noteModalFooter.js +0 -16
- package/src/lib/components/Modals/noteModalHeader.js +0 -103
- package/src/lib/components/Reports/buttons.js +0 -5
- package/src/lib/components/Reports/charts.js +0 -79
- package/src/lib/components/Reports/infoHeader.js +0 -63
- package/src/lib/components/Reports/reportsBody.js +0 -29
- package/src/lib/components/Reports/title.js +0 -19
- package/src/lib/components/performanceIndicator.js +0 -27
- package/src/lib/components/pills.js +0 -65
package/dist/components/input.js
CHANGED
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmInputField = exports.BmInput = void 0;
|
|
7
|
+
|
|
8
|
+
var _icons = require("@material-ui/icons");
|
|
7
9
|
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
|
|
10
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
13
|
|
|
14
|
+
var _ = require(".");
|
|
15
|
+
|
|
12
16
|
var _colors = require("./colors");
|
|
13
17
|
|
|
14
18
|
var _iconStyles = require("./iconStyles");
|
|
@@ -102,9 +106,11 @@ var BmInput = function BmInput(_ref6) {
|
|
|
102
106
|
}, rest, {
|
|
103
107
|
state: state,
|
|
104
108
|
disabled: state === "disabled" ? true : false
|
|
105
|
-
})), state && state === "complete" && /*#__PURE__*/_react.default.createElement(
|
|
109
|
+
})), state && state === "complete" && /*#__PURE__*/_react.default.createElement(_.BmIcons, {
|
|
110
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.ErrorOutline, null),
|
|
106
111
|
size: "small"
|
|
107
|
-
}), state && state === "incomplete" && /*#__PURE__*/_react.default.createElement(
|
|
112
|
+
}), state && state === "incomplete" && /*#__PURE__*/_react.default.createElement(_.BmIcons, {
|
|
113
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.Done, null),
|
|
108
114
|
size: "small"
|
|
109
115
|
})), label && /*#__PURE__*/_react.default.createElement(BmInputLabel, _extends({
|
|
110
116
|
htmlFor: id,
|
package/dist/components/logo.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OldBmNavbar = exports.GlobalNavbarWrapper = exports.BmNavbarSearch = exports.BmNavbarLogo = exports.BmNavbarItems = exports.BmNavbar = exports.BmNavBarProfile = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.BmSideBarTab = exports.
|
|
6
|
+
exports.BmSideBarTab = exports.BmSideBarSearch = exports.BmSideBarBtnIcon = exports.BmSideBar = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _buttonIconsOnly = require("
|
|
10
|
+
var _buttonIconsOnly = require("../components/Buttons/buttonIconsOnly");
|
|
11
11
|
|
|
12
12
|
var _colors = require("./colors");
|
|
13
13
|
|
package/dist/components/tabs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmTabWrapper = exports.BmTabText = exports.BmTabItem = exports.BmTab = exports.BmRightTabIcon = exports.BmLeftTabIcon = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
package/dist/components/text.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.p = exports.input = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.a = void 0;
|
|
7
7
|
|
|
8
8
|
var _typography = require("./typography");
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.QuoteMark = exports.PullQuote = exports.PoppinsMedium = exports.Poppins = exports.P = exports.OpenSans = exports.Hero = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Captions = void 0;
|
|
7
7
|
var H1 = "2.286rem";
|
|
8
8
|
exports.H1 = H1;
|
|
9
9
|
var H2 = "1.714rem";
|
package/nginx.conf
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
server {
|
|
2
|
+
listen 8085;
|
|
3
|
+
root /usr/share/nginx/html;
|
|
4
|
+
|
|
5
|
+
index index.html index.htm;
|
|
6
|
+
|
|
7
|
+
include /etc/nginx/mime.types;
|
|
8
|
+
|
|
9
|
+
gzip on;
|
|
10
|
+
gzip_min_length 1000;
|
|
11
|
+
gzip_proxied expired no-cache no-store private auth;
|
|
12
|
+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
13
|
+
|
|
14
|
+
location / {
|
|
15
|
+
try_files $uri $uri/ /index.html;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beem-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/components/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "react-scripts start",
|
|
8
|
+
"build": "react-scripts build",
|
|
9
|
+
"test": "react-scripts test",
|
|
10
|
+
"eject": "react-scripts eject",
|
|
11
|
+
"clean": "rimraf dist",
|
|
12
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
|
|
13
|
+
"storybook": "start-storybook -p 6006",
|
|
14
|
+
"build-storybook": "build-storybook"
|
|
15
|
+
},
|
|
6
16
|
"peerDependencies": {
|
|
7
17
|
"react": "^17.0.2",
|
|
8
18
|
"react-dom": "^17.0.2",
|
|
@@ -10,25 +20,22 @@
|
|
|
10
20
|
"web-vitals": "^1.1.2"
|
|
11
21
|
},
|
|
12
22
|
"dependencies": {
|
|
23
|
+
"@emotion/react": "^11.7.1",
|
|
24
|
+
"@emotion/styled": "^11.6.0",
|
|
13
25
|
"@material-ui/core": "^4.11.4",
|
|
14
26
|
"@material-ui/icons": "^4.11.2",
|
|
15
|
-
"@mui/icons-material": "^5.
|
|
27
|
+
"@mui/icons-material": "^5.2.1",
|
|
28
|
+
"@mui/material": "^5.2.3",
|
|
16
29
|
"node-sass": "^6.0.1",
|
|
30
|
+
"polished": "^4.1.3",
|
|
17
31
|
"react": "^17.0.2",
|
|
18
32
|
"react-dom": "^17.0.2",
|
|
19
33
|
"react-router-dom": "^5.3.0",
|
|
20
34
|
"react-scripts": "4.0.3",
|
|
35
|
+
"save": "^2.4.0",
|
|
21
36
|
"styled-components": "^5.3.0",
|
|
22
37
|
"web-vitals": "^1.1.2"
|
|
23
38
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"start": "react-scripts start",
|
|
26
|
-
"build": "react-scripts build",
|
|
27
|
-
"test": "react-scripts test",
|
|
28
|
-
"eject": "react-scripts eject",
|
|
29
|
-
"clean": "rimraf dist",
|
|
30
|
-
"compile": "npm run clean && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__"
|
|
31
|
-
},
|
|
32
39
|
"eslintConfig": {
|
|
33
40
|
"extends": [
|
|
34
41
|
"react-app",
|
|
@@ -51,6 +58,18 @@
|
|
|
51
58
|
"@babel/cli": "^7.14.8",
|
|
52
59
|
"@babel/preset-env": "^7.14.8",
|
|
53
60
|
"@babel/preset-react": "^7.14.5",
|
|
54
|
-
"cross-env": "^7.0.3"
|
|
61
|
+
"cross-env": "^7.0.3",
|
|
62
|
+
"@storybook/addon-actions": "^6.3.2",
|
|
63
|
+
"@storybook/addon-controls": "^6.3.12",
|
|
64
|
+
"@storybook/addon-docs": "^6.3.12",
|
|
65
|
+
"@storybook/addon-essentials": "^6.3.12",
|
|
66
|
+
"@storybook/addon-knobs": "^6.3.1",
|
|
67
|
+
"@storybook/addon-links": "^6.3.2",
|
|
68
|
+
"@storybook/addons": "^6.4.9",
|
|
69
|
+
"@storybook/node-logger": "^6.3.2",
|
|
70
|
+
"@storybook/preset-create-react-app": "^3.2.0",
|
|
71
|
+
"@storybook/react": "^6.3.2",
|
|
72
|
+
"@storybook/theming": "^6.4.9",
|
|
73
|
+
"storybook-addon-jsx": "^7.3.14"
|
|
55
74
|
}
|
|
56
75
|
}
|
package/public/favicon.ico
CHANGED
|
Binary file
|
package/public/index.html
CHANGED
package/src/App.js
CHANGED
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Switch, BrowserRouter } from "react-router-dom";
|
|
3
3
|
import "../src/main.scss";
|
|
4
|
-
import { MainWrapper } from "./lib/components
|
|
4
|
+
import { BmRouteLink, MainWrapper } from "./lib/components";
|
|
5
5
|
import { GlobalStyle } from "./lib/components/globalStyles";
|
|
6
|
-
|
|
7
|
-
import { Complete } from "./Complete";
|
|
8
|
-
import { CreateSegment } from "./CreateSegments";
|
|
9
|
-
// import Buttons from "../src/examples/Buttons";
|
|
10
|
-
import Chat from "./CHAT";
|
|
11
|
-
import { BmAccordicon } from "./lib/components/Accordicon";
|
|
12
|
-
import BmAccordion from "./lib/components/Accordion";
|
|
13
|
-
import { BmRouteLink } from "./lib/components/Link";
|
|
6
|
+
|
|
14
7
|
export const App = () => {
|
|
15
8
|
return (
|
|
16
9
|
<>
|
|
17
10
|
<GlobalStyle />
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<BmAccordion.Title>SMS</BmAccordion.Title>
|
|
28
|
-
<BmAccordion.Body>Reports</BmAccordion.Body>
|
|
29
|
-
</BmAccordion>
|
|
30
|
-
{/* <Buttons /> */}
|
|
31
|
-
{/* <h1>hello</h1> */}
|
|
32
|
-
{/* <MainWrapper>
|
|
33
|
-
<UploadFile />
|
|
34
|
-
<Complete />
|
|
35
|
-
<CreateSegment />
|
|
36
|
-
</MainWrapper> */}
|
|
11
|
+
<MainWrapper>
|
|
12
|
+
<BrowserRouter>
|
|
13
|
+
<Switch>
|
|
14
|
+
<BmRouteLink to="#" color="red">
|
|
15
|
+
BkhkdxA
|
|
16
|
+
</BmRouteLink>
|
|
17
|
+
</Switch>
|
|
18
|
+
</BrowserRouter>
|
|
19
|
+
</MainWrapper>
|
|
37
20
|
</>
|
|
38
21
|
);
|
|
39
22
|
};
|
package/src/examples/Navbar.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "../lib/components/navbar";
|
|
9
9
|
import { BmLogo } from "../lib/components/logo";
|
|
10
10
|
import Azam from "../lib/images/azam.png";
|
|
11
|
-
import { BmAlertIcon } from "../lib/components/buttonAlertIcons";
|
|
11
|
+
import { BmAlertIcon } from "../lib/components/Buttons/buttonAlertIcons";
|
|
12
12
|
import { BmCheckboxToggler } from "../lib/components/checkboxToggler";
|
|
13
13
|
import { AssignmentLateOutlined } from "@material-ui/icons";
|
|
14
14
|
import NotificationsNoneIcon from "@material-ui/icons/NotificationsNone";
|
|
Binary file
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import { BmPrimaryWhite } from "
|
|
5
|
-
import {
|
|
4
|
+
import { BmPrimaryWhite } from "../colors";
|
|
5
|
+
import { BmIcons } from "../iconStyles";
|
|
6
|
+
import { KeyboardArrowDown, KeyboardArrowUp } from "@material-ui/icons";
|
|
6
7
|
|
|
7
8
|
const { Provider, Consumer } = React.createContext({});
|
|
8
9
|
|
|
@@ -12,9 +13,9 @@ const Dropdown = (value, rest) => {
|
|
|
12
13
|
}
|
|
13
14
|
if (!value.expandIcon) {
|
|
14
15
|
return value.toggle ? (
|
|
15
|
-
<
|
|
16
|
+
<BmIcons icon={<KeyboardArrowDown />} {...rest} />
|
|
16
17
|
) : (
|
|
17
|
-
<
|
|
18
|
+
<BmIcons icon={<KeyboardArrowUp />} {...rest} />
|
|
18
19
|
);
|
|
19
20
|
}
|
|
20
21
|
if (value.expandIcon && value.expandIcon !== "none") {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import BmAccordion from "./Accordion";
|
|
4
|
+
import { text, boolean, select } from "@storybook/addon-knobs";
|
|
5
|
+
import { Favorite, Home } from "@material-ui/icons";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
component: BmAccordion,
|
|
9
|
+
subcomponents: BmAccordion.Title,
|
|
10
|
+
title: "components/Accordion",
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: {
|
|
13
|
+
options: ["small", "medium", "large"],
|
|
14
|
+
control: { type: "select" },
|
|
15
|
+
description: "Size of the icons",
|
|
16
|
+
defaultValue: { summary: "large" },
|
|
17
|
+
},
|
|
18
|
+
disabled: {
|
|
19
|
+
description: "Optional",
|
|
20
|
+
defaultValue: { summary: false },
|
|
21
|
+
control: { type: "boolean" },
|
|
22
|
+
},
|
|
23
|
+
children: {
|
|
24
|
+
description: "Accordion Title Text",
|
|
25
|
+
defaultValue: { summary: undefined },
|
|
26
|
+
},
|
|
27
|
+
expandIcon: {
|
|
28
|
+
description: "'none' or Material-UI icon (optional)",
|
|
29
|
+
defaultValue: { summary: undefined },
|
|
30
|
+
},
|
|
31
|
+
leadingIcon: {
|
|
32
|
+
description: "Material-UI icon(optional)",
|
|
33
|
+
defaultValue: { summary: undefined },
|
|
34
|
+
},
|
|
35
|
+
trailingIcon: {
|
|
36
|
+
description: "Material-UI icon(optional)",
|
|
37
|
+
defaultValue: { summary: undefined },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const optionSize = {
|
|
43
|
+
small: "small",
|
|
44
|
+
medium: "medium",
|
|
45
|
+
large: "large",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Accordion = () => {
|
|
49
|
+
return (
|
|
50
|
+
<div>
|
|
51
|
+
<BmAccordion disabled={boolean("disabled", false)}>
|
|
52
|
+
<BmAccordion.Title
|
|
53
|
+
leadingIcon={<Home />}
|
|
54
|
+
trailingIcon={<Favorite />}
|
|
55
|
+
size={select("size", optionSize, "large")}
|
|
56
|
+
>
|
|
57
|
+
<h3>{text("children", "Accordion")}</h3>
|
|
58
|
+
</BmAccordion.Title>
|
|
59
|
+
<BmAccordion.Body>Accordion Body</BmAccordion.Body>
|
|
60
|
+
</BmAccordion>
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Person } from "@material-ui/icons";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
3
4
|
import styled from "styled-components";
|
|
4
|
-
import { BmGrey100, BmPrimaryBlue, BmGrey400 } from "
|
|
5
|
-
import { BmAvatarIcon
|
|
5
|
+
import { BmGrey100, BmPrimaryBlue, BmGrey400 } from "../colors";
|
|
6
|
+
import { BmAvatarIcon } from "../iconStyles";
|
|
7
|
+
import SmartToyIcon from '@mui/icons-material/SmartToy';
|
|
6
8
|
|
|
7
9
|
export const BmAvatarWrapper = styled.div`
|
|
8
10
|
display: flex;
|
|
@@ -13,14 +15,16 @@ export const BmAvatarWrapper = styled.div`
|
|
|
13
15
|
if (size === "medium") return "2.286rem";
|
|
14
16
|
if (size === "small") return "1.714rem";
|
|
15
17
|
if (size === "xsmall") return "1.429rem";
|
|
16
|
-
return "3.429rem";
|
|
18
|
+
if (!size) return "3.429rem";
|
|
19
|
+
return size;
|
|
17
20
|
}};
|
|
18
21
|
width: ${({ size }) => {
|
|
19
22
|
if (size === "large") return "3.429rem";
|
|
20
23
|
if (size === "medium") return "2.286rem";
|
|
21
24
|
if (size === "small") return "1.714rem";
|
|
22
25
|
if (size === "xsmall") return "1.429rem";
|
|
23
|
-
return "3.429rem";
|
|
26
|
+
if (!size) return "3.429rem";
|
|
27
|
+
return size;
|
|
24
28
|
}};
|
|
25
29
|
background: ${({ user }) => {
|
|
26
30
|
if (user === "chatbot") return `${BmPrimaryBlue}`;
|
|
@@ -43,13 +47,25 @@ export const BmAvatarWrapper = styled.div`
|
|
|
43
47
|
`;
|
|
44
48
|
|
|
45
49
|
export const BmAvatar = (props) => {
|
|
46
|
-
const { user, size, ...rest } = props;
|
|
50
|
+
const { user, size, color, ...rest } = props;
|
|
47
51
|
return (
|
|
48
52
|
<BmAvatarWrapper user={user} size={size} {...rest}>
|
|
49
|
-
{user === "
|
|
50
|
-
<BmAvatarIcon icon={<Person />} size={size} {...rest} />
|
|
53
|
+
{user === "employee" && (
|
|
54
|
+
<BmAvatarIcon icon={<Person />} size={size} color={color} {...rest} />
|
|
55
|
+
)}
|
|
56
|
+
{user === "chatbot" && (
|
|
57
|
+
<BmAvatarIcon icon={<SmartToyIcon />} size={size} color={color} {...rest} />
|
|
58
|
+
)}
|
|
59
|
+
{user !== "chatbot" && user !== "employee" && user !== "default" && (
|
|
60
|
+
<BmAvatarIcon icon={user} size={size} color={color} {...rest} />
|
|
51
61
|
)}
|
|
52
|
-
{user === "chatbot" && <BmChatbotIcon size={size} {...rest} />}
|
|
53
62
|
</BmAvatarWrapper>
|
|
54
63
|
);
|
|
55
64
|
};
|
|
65
|
+
|
|
66
|
+
BmAvatar.propTypes = {
|
|
67
|
+
size: PropTypes.string,
|
|
68
|
+
type: PropTypes.string,
|
|
69
|
+
color: PropTypes.string,
|
|
70
|
+
user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
71
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BmAvatar } from "./avatars";
|
|
4
|
+
import { Home } from "@material-ui/icons";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: BmAvatar,
|
|
8
|
+
title: "components/Avatars",
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: ["xsmall", "small", "medium", "large"],
|
|
12
|
+
control: { type: "select" },
|
|
13
|
+
description: "Size of the Avatar",
|
|
14
|
+
defaultValue: { summary: "large" },
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
options: ["circle", "square"],
|
|
18
|
+
control: { type: "select" },
|
|
19
|
+
description: "Shape of the Avatar",
|
|
20
|
+
defaultValue: { summary: "circle" },
|
|
21
|
+
},
|
|
22
|
+
user: {
|
|
23
|
+
description:
|
|
24
|
+
"Type of the Avatar ('chatbot', 'employee' or Material-UI icon)",
|
|
25
|
+
defaultValue: { summary: undefined },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const MainAvatar = (args) => <BmAvatar {...args} />;
|
|
31
|
+
|
|
32
|
+
export const Avatar = MainAvatar.bind({});
|
|
33
|
+
Avatar.args = {
|
|
34
|
+
user: "chatbot",
|
|
35
|
+
size: "large",
|
|
36
|
+
type: "circle",
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const CustomAvatar = MainAvatar.bind({});
|
|
40
|
+
CustomAvatar.args = {
|
|
41
|
+
user: <Home />,
|
|
42
|
+
size: "large",
|
|
43
|
+
type: "square",
|
|
44
|
+
color: "#000000",
|
|
45
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BmButton } from "../buttons";
|
|
4
|
+
import { Favorite, Home } from "@material-ui/icons";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: BmButton,
|
|
8
|
+
title: "components/Buttons/Basic",
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: ["small", "medium", "large"],
|
|
12
|
+
control: { type: "select" },
|
|
13
|
+
description: "Size",
|
|
14
|
+
defaultValue: { summary: "large" },
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
options: [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"tertiary",
|
|
21
|
+
"success",
|
|
22
|
+
"neutral",
|
|
23
|
+
"destructive",
|
|
24
|
+
],
|
|
25
|
+
control: { type: "select" },
|
|
26
|
+
description: "Variant",
|
|
27
|
+
defaultValue: { summary: "primary" },
|
|
28
|
+
},
|
|
29
|
+
leadingIcon: {
|
|
30
|
+
description: "Material UI Icons",
|
|
31
|
+
},
|
|
32
|
+
trailingIcon: {
|
|
33
|
+
description: "Material UI Icons",
|
|
34
|
+
},
|
|
35
|
+
children: {
|
|
36
|
+
description: "Text of the button",
|
|
37
|
+
default: "Button",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const MainButton = (args) => <BmButton {...args} />;
|
|
43
|
+
|
|
44
|
+
export const BasicButton = MainButton.bind({});
|
|
45
|
+
BasicButton.args = {
|
|
46
|
+
variant: "primary",
|
|
47
|
+
size: "large",
|
|
48
|
+
children: "Button",
|
|
49
|
+
leadingIcon: <Home />,
|
|
50
|
+
trailingIcon: <Favorite />,
|
|
51
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BmAlertIcon } from "../buttonAlertIcons";
|
|
4
|
+
import { AssignmentLateOutlined } from "@material-ui/icons";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: BmAlertIcon,
|
|
8
|
+
title: "components/Buttons/AlertIcons",
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: ["small", "medium", "large"],
|
|
12
|
+
control: { type: "select" },
|
|
13
|
+
description: "Size",
|
|
14
|
+
defaultValue: { summary: "large" },
|
|
15
|
+
},
|
|
16
|
+
icon: {
|
|
17
|
+
description: "Material UI Icons",
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
description: "Color of the icon",
|
|
21
|
+
defaultValue: { summary: "#575757" },
|
|
22
|
+
},
|
|
23
|
+
badgeContent: {
|
|
24
|
+
description: "Badge Content",
|
|
25
|
+
},
|
|
26
|
+
badgeColor: {
|
|
27
|
+
description: "Color of the badge content",
|
|
28
|
+
defaultValue: { summary: "#F62E48" },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const MainButtonAlertIcon = (args) => <BmAlertIcon {...args} />;
|
|
34
|
+
|
|
35
|
+
export const ButtonAlertIcon = MainButtonAlertIcon.bind({});
|
|
36
|
+
ButtonAlertIcon.args = {
|
|
37
|
+
icon: <AssignmentLateOutlined />,
|
|
38
|
+
badgeContent: 4,
|
|
39
|
+
badgeColor: "red",
|
|
40
|
+
size: "large",
|
|
41
|
+
color: "black",
|
|
42
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BmBtnIcon } from "../buttonIconsOnly";
|
|
4
|
+
import { Favorite } from "@material-ui/icons";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: BmBtnIcon,
|
|
8
|
+
title: "components/Buttons/IconsOnly",
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: ["small", "medium", "large"],
|
|
12
|
+
control: { type: "select" },
|
|
13
|
+
description: "Size",
|
|
14
|
+
defaultValue: { summary: "large" },
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
options: [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"tertiary",
|
|
21
|
+
"success",
|
|
22
|
+
"neutral",
|
|
23
|
+
"destructive",
|
|
24
|
+
"active",
|
|
25
|
+
"enabled",
|
|
26
|
+
],
|
|
27
|
+
control: { type: "select" },
|
|
28
|
+
description: "Variant",
|
|
29
|
+
defaultValue: { summary: "primary" },
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
description: "Material UI Icons",
|
|
33
|
+
},
|
|
34
|
+
color: {
|
|
35
|
+
description: "Color of the button",
|
|
36
|
+
defaultValue: { summary: "primary color" },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const MainButtonIcon = (args) => <BmBtnIcon {...args} />;
|
|
42
|
+
|
|
43
|
+
export const ButtonIcon = MainButtonIcon.bind({});
|
|
44
|
+
ButtonIcon.args = {
|
|
45
|
+
icon: <Favorite />,
|
|
46
|
+
size: "large",
|
|
47
|
+
variant: "primary",
|
|
48
|
+
color: undefined,
|
|
49
|
+
};
|