beem-component 2.0.27 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +4 -2
- package/Jenkinsfile +20 -5
- package/dist/components/Accordion/Accordion.js +55 -66
- package/dist/components/Accordion/Accordion.stories.js +5 -6
- package/dist/components/Avatars/avatars.js +33 -23
- package/dist/components/Avatars/avatars.stories.js +5 -10
- package/dist/components/BannerCard/bannerCard.stories.js +6 -7
- package/dist/components/BannerCard/bannerCards.js +38 -40
- package/dist/components/BmSelector/BmSelector.js +120 -0
- package/dist/components/BmSelector/BmSelector.stories.js +138 -0
- package/dist/components/ButtonGroup/buttonGroup.js +14 -15
- package/dist/components/ButtonGroup/buttonGroup.stories.js +11 -26
- package/dist/components/Buttons/Stories/basicbutton.stories.js +5 -10
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +4 -8
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +4 -8
- package/dist/components/Buttons/buttonAlertIcons.js +40 -58
- package/dist/components/Buttons/buttonDropdown copy.js +52 -35
- package/dist/components/Buttons/buttonDropdown.js +5 -3
- package/dist/components/Buttons/buttonIconsOnly.js +32 -25
- package/dist/components/Buttons/buttons.js +105 -72
- package/dist/components/Card_v2/Card.js +78 -0
- package/dist/components/Card_v2/Card.stories.js +60 -0
- package/dist/components/Cards/cards.js +3 -4
- package/dist/components/Cards/cards.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +65 -39
- package/dist/components/ChatComponents/ChatBody/chatBody.js +224 -189
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +11 -9
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +12 -10
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -4
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -6
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -10
- package/dist/components/ChatComponents/ContactCards/contactCards.js +40 -31
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/InfoTab/infoTab.js +3 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +3 -4
- package/dist/components/Chats/chat.js +56 -50
- package/dist/components/Chats/chatInput.js +9 -14
- package/dist/components/Chats/chatwrapper.js +8 -14
- package/dist/components/Checkbox/checkboxToggler.js +20 -20
- package/dist/components/Checkbox/checkboxToggler.stories.js +12 -35
- package/dist/components/InfoPanel/InfoPanel.js +141 -0
- package/dist/components/InfoPanel/InfoPanel.stories.js +200 -0
- package/dist/components/InputCounter/inputCounter.js +17 -18
- package/dist/components/Jumbotron/Jumbotron.js +8 -11
- package/dist/components/Jumbotron/Jumbotron.stories.js +3 -4
- package/dist/components/LabelWithIcon/LabelWithIcon.js +63 -0
- package/dist/components/LabelWithIcon/LabelWithIcon.stories.js +59 -0
- package/dist/components/Lists/listBox.js +21 -25
- package/dist/components/Lists/listBox.stories.js +7 -20
- package/dist/components/Lists/listHeader.stories.js +4 -8
- package/dist/components/Lists/listheader.js +17 -14
- package/dist/components/Lists/rowLabels.js +26 -24
- package/dist/components/Lists/rowLabels.stories.js +11 -18
- package/dist/components/Loader/loader.js +16 -14
- package/dist/components/Loader/loader.stories.js +4 -8
- package/dist/components/MainWrapper/index.js +3 -4
- package/dist/components/MessageCounter/MessageCounter.stories.js +4 -5
- package/dist/components/MessageCounter/messageCounter.js +15 -10
- package/dist/components/Modals/modal.js +57 -72
- package/dist/components/Modals/modals.stories.js +16 -45
- package/dist/components/MojaAccordion/MojaAccordion.js +49 -55
- package/dist/components/MultipleDateSelector/multipleDateSelector.js +14 -18
- package/dist/components/NoteBar/noteBar.js +22 -32
- package/dist/components/NoteBar/noteBar.stories.js +5 -10
- package/dist/components/PaymentBox/paymentBox.js +14 -11
- package/dist/components/PaymentBox/paymentBox.stories.js +3 -4
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +4 -8
- package/dist/components/PerformanceIndicator/performanceIndicator.js +17 -14
- package/dist/components/Pills/pills.js +30 -38
- package/dist/components/Pills/pills.stories.js +5 -10
- package/dist/components/ProfileIcon/ProfileIcon.js +26 -36
- package/dist/components/ProfileIcon/profileIcon.stories.js +6 -12
- package/dist/components/ProgressBar/progressbar.js +14 -12
- package/dist/components/ProgressBar/progressbar.stories.js +4 -8
- package/dist/components/ProgressIndicator/ProgressIndicator.js +121 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +99 -0
- package/dist/components/ProgressRing/progressRing.js +48 -50
- package/dist/components/ProgressRing/progressRing.stories.js +5 -10
- package/dist/components/RouteLink/link.js +3 -8
- package/dist/components/RouteLink/link.stories.js +3 -4
- package/dist/components/ScrollBar/scrollBar.js +18 -26
- package/dist/components/SelectionNotice/SelectionNotice.js +57 -0
- package/dist/components/SelectionNotice/SelectionNotice.stories.js +35 -0
- package/dist/components/Stepper/stepper.js +4 -11
- package/dist/components/SuperFluid/Content/index.js +3 -4
- package/dist/components/SuperFluid/ContentTitle.js/index.js +6 -10
- package/dist/components/SuperFluid/SegmentCard/index.js +11 -21
- package/dist/components/Tabs/tabs.js +32 -24
- package/dist/components/Tabs/tabs.stories.js +6 -12
- package/dist/components/Tags/tags.js +65 -63
- package/dist/components/Tags/tags.stories.js +6 -12
- package/dist/components/breakpoints.js +3 -5
- package/dist/components/chatHeader.js +7 -12
- package/dist/components/checkbox.js +30 -25
- package/dist/components/colors.js +31 -62
- package/dist/components/contacts.js +32 -35
- package/dist/components/dropdown.js +18 -39
- package/dist/components/dropdownButton.js +38 -28
- package/dist/components/dropdownItems.js +23 -26
- package/dist/components/examples/App.js +3 -4
- package/dist/components/examples/InfoAccordion.js +3 -4
- package/dist/components/examples/chatBodyExample.js +4 -7
- package/dist/components/examples/selectExample.js +12 -30
- package/dist/components/globalStyles.js +1 -2
- package/dist/components/iconStyles.js +69 -103
- package/dist/components/index-copy.js +197 -197
- package/dist/components/index.js +106 -66
- package/dist/components/input.js +36 -25
- package/dist/components/logo.js +10 -9
- package/dist/components/navbar.js +9 -16
- package/dist/components/search.js +18 -16
- package/dist/components/shadow.js +1 -2
- package/dist/components/text.js +9 -18
- package/dist/components/typography.js +14 -28
- package/dist/components/wrapper.js +4 -6
- package/nginx.conf +26 -12
- package/package.json +3 -1
- package/src/App.js +246 -3
- package/src/lib/components/BmSelector/BmSelector.js +154 -0
- package/src/lib/components/BmSelector/BmSelector.stories.jsx +125 -0
- package/src/lib/components/Buttons/buttons.js +12 -8
- package/src/lib/components/Card_v2/Card.js +127 -0
- package/src/lib/components/Card_v2/Card.stories.jsx +94 -0
- package/src/lib/components/InfoPanel/InfoPanel.js +221 -0
- package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +169 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.js +61 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.stories.jsx +59 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.js +208 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.stories.jsx +91 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.js +65 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.stories.jsx +40 -0
- package/src/lib/components/index.js +14 -0
- package/src/util/convertToRGBA.js +21 -0
- package/storybook-static/140.d6695a165d8dcc810b2e.manager.bundle.js +1 -0
- package/storybook-static/140.f87feb0b.iframe.bundle.js +1 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js +2 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/192.08b67b8c.iframe.bundle.js +1 -0
- package/storybook-static/246.9ad91c22.iframe.bundle.js +2 -0
- package/storybook-static/{vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt → 246.9ad91c22.iframe.bundle.js.LICENSE.txt} +48 -16
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js +2 -0
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js +2 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js +2 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js +2 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/58.56a2198b.iframe.bundle.js +1 -0
- package/storybook-static/58.cd3f8ad06a1200571eab.manager.bundle.js +1 -0
- package/storybook-static/676.d74803c6ab12eac1cdb2.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt → 676.d74803c6ab12eac1cdb2.manager.bundle.js.LICENSE.txt} +20 -30
- package/storybook-static/720.d729a720931e1312e597.manager.bundle.js +2 -0
- package/storybook-static/720.e12f6aa2.iframe.bundle.js +2 -0
- package/storybook-static/794.0543a68a8b5aa273273a.manager.bundle.js +1 -0
- package/storybook-static/929.5353bbe2.iframe.bundle.js +1 -0
- package/storybook-static/929.ed1807a8ea3e2353d440.manager.bundle.js +1 -0
- package/storybook-static/9b058fcb1416fea75e6c.png +0 -0
- package/storybook-static/f29af3502f15acc765a8.png +0 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +22 -6
- package/storybook-static/index.html +66 -109
- package/storybook-static/main.1a29aa69.iframe.bundle.js +1 -0
- package/storybook-static/main.69bad789e0a3d801264b.manager.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.87eecef7.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.dd5308492057ff00c469.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.08a2eb27.css +6 -0
- package/storybook-static/static/css/main.08a2eb27.css.map +1 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +0 -2
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.96c45dd8.iframe.bundle.js +0 -1
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +0 -3
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +0 -1
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +0 -1
- package/storybook-static/2.24353ddc.iframe.bundle.js +0 -1
- package/storybook-static/3.8bb2173c.iframe.bundle.js +0 -1
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +0 -1
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +0 -2
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +0 -1
- package/storybook-static/7.f0cfc757.iframe.bundle.js +0 -1
- package/storybook-static/8.91de97de.iframe.bundle.js +0 -3
- package/storybook-static/8.91de97de.iframe.bundle.js.map +0 -1
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +0 -1
- package/storybook-static/9.40ec65d6.iframe.bundle.js +0 -1
- package/storybook-static/asset-manifest.json +0 -30
- package/storybook-static/main.3c8d8027.iframe.bundle.js +0 -1
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +0 -1
- package/storybook-static/static/css/main.b44a190d.chunk.css +0 -4
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +0 -1
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +0 -1
- /package/storybook-static/{static/media/PoppinsMedium.0ba26f6c.woff → 0ba26f6cfe2f94ec2b43.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.13b9af9c.eot → 13b9af9c8b2b4d656251.eot} +0 -0
- /package/storybook-static/{static/media/OpenSans-Regular.1b0809d5.ttf → 1b0809d519837cb7aad3.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.1eae2d48.woff2 → 1eae2d48398534b6e1fe.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.43e9b50d.svg → 43e9b50d6f4141c6275f.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.49b46ace.eot → 49b46acec5a811ce1edd.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.4a4d5420.woff → 4a4d54208e3b43dcdd6e.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff6749.eot → 53ff67494885a390867f.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff971f.ttf → 53ff971f3c691d03daf6.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.5692c77f.ttf → 5692c77f2768f53db4fb.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.57a99fa8.woff2 → 57a99fa8569430db3aa1.woff2} +0 -0
- /package/storybook-static/{6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt → 720.d729a720931e1312e597.manager.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{8.91de97de.iframe.bundle.js.LICENSE.txt → 720.e12f6aa2.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.80138c67.woff → 80138c67abf7843ea7e5.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.850fc4f3.svg → 850fc4f3768c0af34ea8.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.9a7cc7ec.woff2 → 9a7cc7ec4e1eda4f7e6d.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.b33c148b.woff → b33c148b95e9b282af64.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.b7e43707.svg → b7e43707906d1445e127.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.c442695a.eot → c442695a5fcf958609b8.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.c98dddbd.ttf → c98dddbdc5b1e18988b9.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.e1948d56.svg → e1948d56fc87f569ef8d.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.e1bc9021.ttf → e1bc9021c9d8ba86968b.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.f27050e2.woff2 → f27050e2684287d42c91.woff2} +0 -0
|
@@ -7,45 +7,38 @@ exports.OldBmNavbar = exports.GlobalNavbarWrapper = exports.BmNavbarSearch = exp
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("./colors");
|
|
9
9
|
var _search = require("./search");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
// import React from 'react';
|
|
12
12
|
|
|
13
13
|
// Old with NavbarContent Main wrapper for navbar
|
|
14
|
-
|
|
14
|
+
const BmNavbar = exports.BmNavbar = _styledComponents.default.div.withConfig({
|
|
15
15
|
displayName: "navbar__BmNavbar"
|
|
16
16
|
})(["background:", ";box-shadow:0rem 0.286rem 0.214rem rgba(0,0,0,0.25);padding:0rem 2.5rem !important;flex-wrap:wrap;", "}"], _colors.BmPrimaryWhite, '' /* width: 100vw; */);
|
|
17
17
|
|
|
18
18
|
// Spacing between the contents of navbar
|
|
19
|
-
exports.
|
|
20
|
-
var BmNavbarItems = _styledComponents.default.div.withConfig({
|
|
19
|
+
const BmNavbarItems = exports.BmNavbarItems = _styledComponents.default.div.withConfig({
|
|
21
20
|
displayName: "navbar__BmNavbarItems"
|
|
22
21
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1.429rem 0rem !important;flex-wrap:wrap;"]);
|
|
23
|
-
exports.
|
|
24
|
-
var GlobalNavbarWrapper = _styledComponents.default.div.withConfig({
|
|
22
|
+
const GlobalNavbarWrapper = exports.GlobalNavbarWrapper = _styledComponents.default.div.withConfig({
|
|
25
23
|
displayName: "navbar__GlobalNavbarWrapper"
|
|
26
24
|
})(["display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;"]);
|
|
27
25
|
|
|
28
26
|
// Main wrapper for navbar
|
|
29
|
-
exports.
|
|
30
|
-
var OldBmNavbar = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
27
|
+
const OldBmNavbar = exports.OldBmNavbar = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
31
28
|
displayName: "navbar__OldBmNavbar"
|
|
32
29
|
})(["flex-direction:row;padding:1.429rem 2.5rem !important;background:", ";box-shadow:0rem 0.286rem 0.214rem rgba(0,0,0,0.25);}"], _colors.BmPrimaryWhite);
|
|
33
30
|
|
|
34
31
|
// Navbar Profile Icon Wrapper
|
|
35
|
-
exports.
|
|
36
|
-
var BmNavBarProfile = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
32
|
+
const BmNavBarProfile = exports.BmNavBarProfile = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
37
33
|
displayName: "navbar__BmNavBarProfile"
|
|
38
34
|
})(["@media (max-width:768px){display:none !important;}"]);
|
|
39
35
|
|
|
40
36
|
// Navbar Search Icon Wrapper
|
|
41
|
-
exports.
|
|
42
|
-
var BmNavbarSearch = (0, _styledComponents.default)(_search.BmSearch).withConfig({
|
|
37
|
+
const BmNavbarSearch = exports.BmNavbarSearch = (0, _styledComponents.default)(_search.BmSearch).withConfig({
|
|
43
38
|
displayName: "navbar__BmNavbarSearch"
|
|
44
39
|
})(["width:30vw;@media (max-width:768px){display:none !important;}"]);
|
|
45
40
|
|
|
46
41
|
// Navbar Logo Icon Wrapper
|
|
47
|
-
exports.
|
|
48
|
-
var BmNavbarLogo = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
42
|
+
const BmNavbarLogo = exports.BmNavbarLogo = (0, _styledComponents.default)(GlobalNavbarWrapper).withConfig({
|
|
49
43
|
displayName: "navbar__BmNavbarLogo"
|
|
50
|
-
})([""]);
|
|
51
|
-
exports.BmNavbarLogo = BmNavbarLogo;
|
|
44
|
+
})([""]);
|
|
@@ -9,33 +9,35 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _colors = require("./colors");
|
|
10
10
|
var _dropdown = require("./dropdown");
|
|
11
11
|
var _iconStyles = require("./iconStyles");
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
15
|
-
function _objectWithoutProperties(
|
|
16
|
-
function _objectWithoutPropertiesLoose(
|
|
17
|
-
|
|
12
|
+
const _excluded = ["dropdown"];
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
|
+
const BmSearchField = _styledComponents.default.input.withConfig({
|
|
18
18
|
displayName: "search__BmSearchField"
|
|
19
|
-
})(["color:", ";border:none;padding:0rem;&:visited,&:active,&:hover,&:focus{outline:none !important;text-decoration:none;color:", ";}", ""], _colors.BmSecondaryGrey, _colors.BmPrimaryBlack,
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
var BmSearchWrapper = _styledComponents.default.div.withConfig({
|
|
19
|
+
})(["color:", ";border:none;padding:0rem;&:visited,&:active,&:hover,&:focus{outline:none !important;text-decoration:none;color:", ";}", ""], _colors.BmSecondaryGrey, _colors.BmPrimaryBlack, props => props.dropdown === 'yes' && 'margin-right: 1.714rem;');
|
|
20
|
+
const BmSearchWrapper = _styledComponents.default.div.withConfig({
|
|
23
21
|
displayName: "search__BmSearchWrapper"
|
|
24
|
-
})(["display:flex;flex-direction:row;align-items:center;background:", ";border:0.071rem solid ", ";box-sizing:border-box;border-radius:0.25rem;", " padding:", ";"], _colors.BmPrimaryWhite, _colors.BmGrey400, '' /* height: 2.929rem; */,
|
|
25
|
-
|
|
22
|
+
})(["display:flex;flex-direction:row;align-items:center;background:", ";border:0.071rem solid ", ";box-sizing:border-box;border-radius:0.25rem;", " padding:", ";"], _colors.BmPrimaryWhite, _colors.BmGrey400, '' /* height: 2.929rem; */, _ref => {
|
|
23
|
+
let {
|
|
24
|
+
dropdown
|
|
25
|
+
} = _ref;
|
|
26
26
|
if (dropdown === 'yes') {
|
|
27
27
|
return '0rem 0rem 0rem 1.143rem';
|
|
28
28
|
}
|
|
29
29
|
return '0.786rem 1.143rem';
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
const BmStretch = _styledComponents.default.div.withConfig({
|
|
32
32
|
displayName: "search__BmStretch"
|
|
33
33
|
})(["display:flex;flex-direction:row;"]);
|
|
34
|
-
|
|
34
|
+
const SearchIcon = (0, _styledComponents.default)(_iconStyles.BmSearchIcon).withConfig({
|
|
35
35
|
displayName: "search__SearchIcon"
|
|
36
36
|
})(["margin-right:0.714rem;display:flex;"]);
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const BmSearch = _ref2 => {
|
|
38
|
+
let {
|
|
39
|
+
dropdown
|
|
40
|
+
} = _ref2,
|
|
39
41
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
40
42
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(BmStretch, rest, /*#__PURE__*/_react.default.createElement(BmSearchWrapper, _extends({
|
|
41
43
|
dropdown: dropdown
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BmGeneralShadow = void 0;
|
|
7
|
-
|
|
8
|
-
exports.BmGeneralShadow = BmGeneralShadow;
|
|
7
|
+
const BmGeneralShadow = exports.BmGeneralShadow = '0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25)';
|
package/dist/components/text.js
CHANGED
|
@@ -6,33 +6,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.p = exports.input = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.a = void 0;
|
|
7
7
|
var _typography = require("./typography");
|
|
8
8
|
// 32px
|
|
9
|
-
|
|
9
|
+
const h1 = exports.h1 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 2.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
10
10
|
|
|
11
11
|
// 24px
|
|
12
|
-
exports.
|
|
13
|
-
var h2 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
|
|
12
|
+
const h2 = exports.h2 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
|
|
14
13
|
|
|
15
14
|
// 18px
|
|
16
|
-
exports.
|
|
17
|
-
var h3 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
15
|
+
const h3 = exports.h3 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
18
16
|
|
|
19
17
|
// 16px
|
|
20
|
-
exports.
|
|
21
|
-
var h4 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
18
|
+
const h4 = exports.h4 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
22
19
|
|
|
23
20
|
// 14px
|
|
24
|
-
exports.
|
|
25
|
-
var h5 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
21
|
+
const h5 = exports.h5 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
26
22
|
|
|
27
23
|
// 12px
|
|
28
|
-
exports.
|
|
29
|
-
var h6 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: .857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
24
|
+
const h6 = exports.h6 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: .857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
30
25
|
|
|
31
26
|
// 14px
|
|
32
|
-
exports.
|
|
33
|
-
|
|
34
|
-
exports.
|
|
35
|
-
var input = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
36
|
-
exports.input = input;
|
|
37
|
-
var a = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
38
|
-
exports.a = a;
|
|
27
|
+
const p = exports.p = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
28
|
+
const input = exports.input = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
29
|
+
const a = exports.a = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
|
|
@@ -4,31 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
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
|
-
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
exports.
|
|
11
|
-
|
|
12
|
-
exports.
|
|
13
|
-
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
exports.
|
|
17
|
-
|
|
18
|
-
exports.
|
|
19
|
-
|
|
20
|
-
exports.
|
|
21
|
-
var QuoteMark = '3.429rem';
|
|
22
|
-
exports.QuoteMark = QuoteMark;
|
|
23
|
-
var PullQuote = '1.286rem';
|
|
24
|
-
exports.PullQuote = PullQuote;
|
|
25
|
-
var Captions = '0.714rem';
|
|
26
|
-
exports.Captions = Captions;
|
|
27
|
-
var Hero = '1rem';
|
|
28
|
-
exports.Hero = Hero;
|
|
29
|
-
var PoppinsMedium = 'PoppinsMedium';
|
|
30
|
-
exports.PoppinsMedium = PoppinsMedium;
|
|
31
|
-
var Poppins = 'Poppins';
|
|
32
|
-
exports.Poppins = Poppins;
|
|
33
|
-
var OpenSans = 'OpenSans';
|
|
34
|
-
exports.OpenSans = OpenSans;
|
|
7
|
+
const H1 = exports.H1 = '2.286rem';
|
|
8
|
+
const H2 = exports.H2 = '1.714rem';
|
|
9
|
+
const H3 = exports.H3 = '1.286rem';
|
|
10
|
+
const H4 = exports.H4 = '1.143rem';
|
|
11
|
+
const H5 = exports.H5 = '0.857rem';
|
|
12
|
+
const H6 = exports.H6 = '0.714rem';
|
|
13
|
+
const P = exports.P = '0.929rem';
|
|
14
|
+
const QuoteMark = exports.QuoteMark = '3.429rem';
|
|
15
|
+
const PullQuote = exports.PullQuote = '1.286rem';
|
|
16
|
+
const Captions = exports.Captions = '0.714rem';
|
|
17
|
+
const Hero = exports.Hero = '1rem';
|
|
18
|
+
const PoppinsMedium = exports.PoppinsMedium = 'PoppinsMedium';
|
|
19
|
+
const Poppins = exports.Poppins = 'Poppins';
|
|
20
|
+
const OpenSans = exports.OpenSans = 'OpenSans';
|
|
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BmChatMenuWrapper = exports.BmChatInfoWrapper = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const BmChatInfoWrapper = exports.BmChatInfoWrapper = _styledComponents.default.div.withConfig({
|
|
10
10
|
displayName: "wrapper__BmChatInfoWrapper"
|
|
11
11
|
})(["display:flex;flex-direction:column;max-height:100%;height:100%;flex-grow:1;max-width:75%;width:75%;", " max-height:100%;height:100%;"], '' /* border: 0.714rem solid orange; */);
|
|
12
|
-
exports.
|
|
13
|
-
var BmChatMenuWrapper = _styledComponents.default.div.withConfig({
|
|
12
|
+
const BmChatMenuWrapper = exports.BmChatMenuWrapper = _styledComponents.default.div.withConfig({
|
|
14
13
|
displayName: "wrapper__BmChatMenuWrapper"
|
|
15
|
-
})(["display:flex;flex-direction:row;justify-content:space-between;max-height:100%;height:100%;max-width:100%;width:100%;", " max-height:85%;height:85%;"], '' /* border: 0.714rem solid orange; */);
|
|
16
|
-
exports.BmChatMenuWrapper = BmChatMenuWrapper;
|
|
14
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;max-height:100%;height:100%;max-width:100%;width:100%;", " max-height:85%;height:85%;"], '' /* border: 0.714rem solid orange; */);
|
package/nginx.conf
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
server {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# server {
|
|
2
|
+
# listen 8085;
|
|
3
|
+
# root /usr/share/nginx/html;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# index index.html index.htm;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# include /etc/nginx/mime.types;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
# location / {
|
|
15
|
+
# try_files $uri $uri/ /index.html;
|
|
16
|
+
# }
|
|
17
|
+
# }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# nginx.conf
|
|
21
|
+
server {
|
|
22
|
+
listen 3000;
|
|
23
|
+
server_name localhost;
|
|
24
|
+
|
|
25
|
+
root /usr/share/nginx/html;
|
|
26
|
+
index index.html;
|
|
27
|
+
|
|
28
|
+
location / {
|
|
29
|
+
try_files $uri $uri/ /index.html;
|
|
30
|
+
}
|
|
17
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beem-component",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/components/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"@material-ui/icons": "^4.11.2",
|
|
49
49
|
"@mui/icons-material": "^5.2.1",
|
|
50
50
|
"@mui/material": "^5.2.3",
|
|
51
|
+
"ajv": "^8.17.1",
|
|
52
|
+
"ajv-keywords": "^5.1.0",
|
|
51
53
|
"bootstrap": "^5.3.3",
|
|
52
54
|
"js-file-download": "^0.4.12",
|
|
53
55
|
"lodash": "^4.17.21",
|
package/src/App.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
/* eslint-disable jsx-a11y/control-has-associated-label */
|
|
1
2
|
// * eslint-disable func-style *
|
|
2
3
|
/* eslint-disable jsx-a11y/media-has-caption */
|
|
3
|
-
import React from 'react';
|
|
4
|
+
import React, { useState } from 'react';
|
|
4
5
|
// import AbcIcon from '@mui/icons-material/Abc';
|
|
5
6
|
// import LocalOfferOutlinedIcon from '@mui/icons-material/LocalOfferOutlined';
|
|
6
|
-
|
|
7
|
+
// import CalendarTodayIcon from '@mui/icons-material/CalendarToday';
|
|
8
|
+
import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
9
|
+
// import PersonIcon from '@mui/icons-material/Person';
|
|
7
10
|
// import { Tooltip } from '@mui/material';
|
|
11
|
+
import PeopleIcon from '@mui/icons-material/People';
|
|
12
|
+
// import BusinessIcon from '@mui/icons-material/Business';
|
|
8
13
|
|
|
9
14
|
import {
|
|
10
15
|
BmChat,
|
|
@@ -21,7 +26,15 @@ import {
|
|
|
21
26
|
// BmContactCheckbox,
|
|
22
27
|
// BmCounter,
|
|
23
28
|
// BmProfileIcon,
|
|
29
|
+
BmProgressIndicator,
|
|
30
|
+
BmLabelWithIcon,
|
|
31
|
+
BmCardv2,
|
|
32
|
+
// BmInfoPanel,
|
|
33
|
+
BmButton,
|
|
34
|
+
BmSelectionNotice,
|
|
35
|
+
BmSelector,
|
|
24
36
|
} from './lib/components';
|
|
37
|
+
// import ProgressIndicator from './lib/components/newProgress';
|
|
25
38
|
|
|
26
39
|
// const datsa = JSON.stringify({
|
|
27
40
|
// dotgoV2: {
|
|
@@ -113,6 +126,12 @@ const Chat = () => {
|
|
|
113
126
|
'{"dotgoV2":{"type":"list","title":"","body":"Hey Abdallah,\\n\\n*Welcome to Zuri House Of Beauty* \\n\\nWe offer a range of styles designed by Black women for Black women. Our platform, brand, and financing solutions promote economic mobility for Black women entrepreneurs. \\n\\nHow can I assist you today?","globalButtons":[{"type":"text","title":"Browse Services"}],"items":[{"title":"Browse Services","subtitle":"","options":[{"type":"text","title":"View Products","description":"","postbackText":"section 1 row 1 postback payload"},{"type":"text","title":"Track Order","description":"Enter order id for status","postbackText":"section 1 row 1 postback payload"},{"type":"text","title":"Support","description":"","postbackText":"section 1 row 1 postback payload"},{"type":"text","title":"Feedback","description":"Give feedback","postbackText":"bm-feedback|0|bf5ff7a3-6425-484e-9b7b-6104ec774bff"},{"type":"text","title":"Ask us anything","description":"","postbackText":"section 1 row 1 postback payload"}]}]}}',
|
|
114
127
|
},
|
|
115
128
|
};
|
|
129
|
+
const steps = [
|
|
130
|
+
{ key: 'step1', label: 'Start' },
|
|
131
|
+
{ key: 'step2', label: 'Details' },
|
|
132
|
+
{ key: 'step3', label: 'Review' },
|
|
133
|
+
{ key: 'step4', label: 'Complete' },
|
|
134
|
+
];
|
|
116
135
|
|
|
117
136
|
const messages = [
|
|
118
137
|
{
|
|
@@ -891,11 +910,236 @@ const Chat = () => {
|
|
|
891
910
|
|
|
892
911
|
// Handler function for the checkbox change event
|
|
893
912
|
|
|
913
|
+
const [currentStep, setCurrentStep] = useState(1);
|
|
914
|
+
|
|
915
|
+
// const appointmentDetails = {
|
|
916
|
+
// title: 'Consultation',
|
|
917
|
+
// duration: '30 mins',
|
|
918
|
+
// };
|
|
919
|
+
// const [selected, setSelected] = useState('');
|
|
920
|
+
// const slots = [
|
|
921
|
+
// {
|
|
922
|
+
// label: '10:00 AM - 10:30 AM',
|
|
923
|
+
// value: { startDate: '10:00 AM', endDate: '10:30 AM' },
|
|
924
|
+
// },
|
|
925
|
+
// {
|
|
926
|
+
// label: '10:30 AM - 11:10 AM',
|
|
927
|
+
// value: { startDate: '10:30 AM', endDate: '11:00 AM' },
|
|
928
|
+
// },
|
|
929
|
+
// ];
|
|
930
|
+
// console.log({ selected });
|
|
931
|
+
|
|
932
|
+
// const formData = {
|
|
933
|
+
// departmentName: 'Marketing',
|
|
934
|
+
// resourceName: 'John Doe',
|
|
935
|
+
// date: new Date(),
|
|
936
|
+
// timeSlot: '09:00 - 09:30',
|
|
937
|
+
// name: 'Jane Smith',
|
|
938
|
+
// phone: '+1234567890',
|
|
939
|
+
// email: 'jane.smith@example.com',
|
|
940
|
+
// };
|
|
941
|
+
const slots = [
|
|
942
|
+
{
|
|
943
|
+
id: 'slot-1', // ⚠️ id is required
|
|
944
|
+
label: '10:00 AM - 10:30 AM',
|
|
945
|
+
value: { startDate: '10:00 AM', endDate: '10:30 AM' },
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
id: 'slot-2',
|
|
949
|
+
label: '10:30 AM - 11:10 AM',
|
|
950
|
+
value: { startDate: '10:30 AM', endDate: '11:10 AM' },
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
id: 'slot-3',
|
|
954
|
+
label: '11:10 AM - 11:50 AM',
|
|
955
|
+
value: { startDate: '11:10 AM', endDate: '11:50 AM' },
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
id: 'slot-4',
|
|
959
|
+
label: '11:50 AM - 12:30 PM',
|
|
960
|
+
value: { startDate: '11:50 AM', endDate: '12:30 PM' },
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
id: 'slot-5',
|
|
964
|
+
label: '12:30 PM - 1:10 PM',
|
|
965
|
+
value: { startDate: '12:30 PM', endDate: '1:10 PM' },
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
id: 'slot-6',
|
|
969
|
+
label: '1:10 PM - 1:50 PM',
|
|
970
|
+
value: { startDate: '1:10 PM', endDate: '1:50 PM' },
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
id: 'slot-7',
|
|
974
|
+
label: '1:50 PM - 2:30 PM',
|
|
975
|
+
value: { startDate: '1:50 PM', endDate: '2:30 PM' },
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
id: 'slot-8',
|
|
979
|
+
label: '2:30 PM - 3:10 PM',
|
|
980
|
+
value: { startDate: '2:30 PM', endDate: '3:10 PM' },
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
id: 'slot-9',
|
|
984
|
+
label: '3:10 PM - 3:50 PM',
|
|
985
|
+
value: { startDate: '3:10 PM', endDate: '3:50 PM' },
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
id: 'slot-10',
|
|
989
|
+
label: '3:50 PM - 4:30 PM',
|
|
990
|
+
value: { startDate: '3:50 PM', endDate: '4:30 PM' },
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
id: 'slot-11',
|
|
994
|
+
label: '4:30 PM - 5:10 PM',
|
|
995
|
+
value: { startDate: '4:30 PM', endDate: '5:10 PM' },
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
id: 'slot-12',
|
|
999
|
+
label: '5:10 PM - 5:50 PM',
|
|
1000
|
+
value: { startDate: '5:10 PM', endDate: '5:50 PM' },
|
|
1001
|
+
},
|
|
1002
|
+
];
|
|
1003
|
+
|
|
1004
|
+
const [selectedSlotId, setSelectedSlotId] = useState(null);
|
|
1005
|
+
console.log({ selectedSlotId });
|
|
894
1006
|
return (
|
|
895
1007
|
<>
|
|
896
1008
|
<GlobalStyle />
|
|
897
1009
|
|
|
1010
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
1011
|
+
<div style={{ padding: '2rem' }}>
|
|
1012
|
+
<h1>Progress Indicator Demo</h1>
|
|
1013
|
+
|
|
1014
|
+
<BmProgressIndicator
|
|
1015
|
+
steps={steps}
|
|
1016
|
+
currentStep={currentStep}
|
|
1017
|
+
primaryColor="#10b981"
|
|
1018
|
+
className="green" // Optional: for color themes defined in the styled component
|
|
1019
|
+
/>
|
|
1020
|
+
|
|
1021
|
+
{/* <div style={{ marginTop: '2rem' }}>
|
|
1022
|
+
<button
|
|
1023
|
+
type="button"
|
|
1024
|
+
onClick={() => setCurrentStep((prev) => Math.max(prev - 1, 0))}
|
|
1025
|
+
>
|
|
1026
|
+
Previous
|
|
1027
|
+
</button>
|
|
1028
|
+
<button
|
|
1029
|
+
type="button"
|
|
1030
|
+
onClick={() =>
|
|
1031
|
+
setCurrentStep((prev) => Math.min(prev + 1, steps.length - 1))
|
|
1032
|
+
}
|
|
1033
|
+
>
|
|
1034
|
+
Next
|
|
1035
|
+
</button>
|
|
1036
|
+
</div> */}
|
|
1037
|
+
</div>
|
|
1038
|
+
<BmCardv2 borderColor="#33B1BA" borderWidth="1.5px">
|
|
1039
|
+
<BmCardv2.Header>
|
|
1040
|
+
<BmCardv2.Title>Profile</BmCardv2.Title>
|
|
1041
|
+
<BmCardv2.Description>
|
|
1042
|
+
Manage your settings below
|
|
1043
|
+
</BmCardv2.Description>
|
|
1044
|
+
</BmCardv2.Header>
|
|
1045
|
+
<BmCardv2.Content>
|
|
1046
|
+
<BmSelector
|
|
1047
|
+
data={slots}
|
|
1048
|
+
selectedDataId={selectedSlotId}
|
|
1049
|
+
onChange={setSelectedSlotId}
|
|
1050
|
+
icon={AccessTimeIcon}
|
|
1051
|
+
themeColor="#33B1BA"
|
|
1052
|
+
/>
|
|
1053
|
+
{/* <BmInfoPanel>
|
|
1054
|
+
<BmInfoPanel.Section
|
|
1055
|
+
title="Appointment Details"
|
|
1056
|
+
icon={CalendarTodayIcon}
|
|
1057
|
+
backgroundColor="#fcba03"
|
|
1058
|
+
iconColor="#fcba03"
|
|
1059
|
+
>
|
|
1060
|
+
<BmInfoPanel.SectionSummary
|
|
1061
|
+
iconColor="#33B1BA"
|
|
1062
|
+
textColor="#fcba03"
|
|
1063
|
+
icon={CalendarTodayIcon}
|
|
1064
|
+
title={formData.departmentName}
|
|
1065
|
+
subtitle="Department"
|
|
1066
|
+
// iconBackgroundColor
|
|
1067
|
+
/>
|
|
1068
|
+
<BmInfoPanel.SectionSummary
|
|
1069
|
+
icon={BusinessIcon}
|
|
1070
|
+
title={formData.departmentName}
|
|
1071
|
+
subtitle="Department"
|
|
1072
|
+
/>
|
|
1073
|
+
</BmInfoPanel.Section>
|
|
1074
|
+
</BmInfoPanel> */}
|
|
1075
|
+
</BmCardv2.Content>
|
|
1076
|
+
<BmCardv2.Footer>
|
|
1077
|
+
<BmButton
|
|
1078
|
+
width="100%"
|
|
1079
|
+
size="medium"
|
|
1080
|
+
borderColor="#33b1ba33"
|
|
1081
|
+
color="#000000"
|
|
1082
|
+
variant="secondary"
|
|
1083
|
+
type="button"
|
|
1084
|
+
onClick={() => setCurrentStep((prev) => Math.max(prev - 1, 0))}
|
|
1085
|
+
>
|
|
1086
|
+
Cancel
|
|
1087
|
+
</BmButton>
|
|
1088
|
+
<BmButton
|
|
1089
|
+
width="100%"
|
|
1090
|
+
size="medium"
|
|
1091
|
+
type="button"
|
|
1092
|
+
onClick={() =>
|
|
1093
|
+
setCurrentStep((prev) => Math.min(prev + 1, steps.length - 1))
|
|
1094
|
+
}
|
|
1095
|
+
>
|
|
1096
|
+
Save
|
|
1097
|
+
</BmButton>
|
|
1098
|
+
</BmCardv2.Footer>
|
|
1099
|
+
</BmCardv2>
|
|
1100
|
+
</div>
|
|
898
1101
|
<div>
|
|
1102
|
+
<BmLabelWithIcon
|
|
1103
|
+
textColor="#fcba03"
|
|
1104
|
+
icon={PeopleIcon}
|
|
1105
|
+
iconColor="#fffff"
|
|
1106
|
+
iconSize="16px"
|
|
1107
|
+
>
|
|
1108
|
+
<p>yooo</p> <h4>Team: Engineering</h4>
|
|
1109
|
+
</BmLabelWithIcon>
|
|
1110
|
+
|
|
1111
|
+
<div>
|
|
1112
|
+
<BmSelectionNotice color="#ff6600">
|
|
1113
|
+
This is a <strong>warning</strong> notice.
|
|
1114
|
+
</BmSelectionNotice>
|
|
1115
|
+
</div>
|
|
1116
|
+
<div style={{ padding: '2rem' }}>
|
|
1117
|
+
<h1>Progress Indicator Demo</h1>
|
|
1118
|
+
|
|
1119
|
+
<BmProgressIndicator
|
|
1120
|
+
steps={steps}
|
|
1121
|
+
currentStep={currentStep}
|
|
1122
|
+
primaryColor="#10b981"
|
|
1123
|
+
className="green" // Optional: for color themes defined in the styled component
|
|
1124
|
+
/>
|
|
1125
|
+
|
|
1126
|
+
<div style={{ marginTop: '2rem' }}>
|
|
1127
|
+
<button
|
|
1128
|
+
type="button"
|
|
1129
|
+
onClick={() => setCurrentStep((prev) => Math.max(prev - 1, 0))}
|
|
1130
|
+
>
|
|
1131
|
+
Previous
|
|
1132
|
+
</button>
|
|
1133
|
+
<button
|
|
1134
|
+
type="button"
|
|
1135
|
+
onClick={() =>
|
|
1136
|
+
setCurrentStep((prev) => Math.min(prev + 1, steps.length - 1))
|
|
1137
|
+
}
|
|
1138
|
+
>
|
|
1139
|
+
Next
|
|
1140
|
+
</button>
|
|
1141
|
+
</div>
|
|
1142
|
+
</div>
|
|
899
1143
|
<BmChat.Details
|
|
900
1144
|
key={85279}
|
|
901
1145
|
state="inbound"
|
|
@@ -1312,7 +1556,6 @@ const Chat = () => {
|
|
|
1312
1556
|
))}
|
|
1313
1557
|
</BmChat.Body>
|
|
1314
1558
|
</BmChat> */}
|
|
1315
|
-
|
|
1316
1559
|
<BmChat>
|
|
1317
1560
|
<BmChat.Body>
|
|
1318
1561
|
{messages.map((ms) => {
|