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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,65 +8,45 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
9
|
var _colors = require("./colors");
|
|
11
10
|
var _iconStyles = require("./iconStyles");
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
22
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
var BmDropdownWrapper = _styledComponents.default.div.withConfig({
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
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
|
+
const BmDropdownWrapper = _styledComponents.default.div.withConfig({
|
|
24
16
|
displayName: "dropdown__BmDropdownWrapper"
|
|
25
17
|
})(["display:flex;justify-content:center;align-items:center;position:static;", " margin:0rem;padding:0.5rem 1.143rem;background:", ";border:0.071rem solid ", ";border-radius:0.25rem;", ""], '' /* box-sizing: border-box; */, _colors.BmPrimaryWhite, _colors.BmGrey400, '' /* box-shadow: inset 0.071rem 0rem 0rem #afafaf; */);
|
|
26
|
-
|
|
27
|
-
var BmDropdownBtn = _styledComponents.default.div.withConfig({
|
|
18
|
+
const BmDropdownBtn = _styledComponents.default.div.withConfig({
|
|
28
19
|
displayName: "dropdown__BmDropdownBtn"
|
|
29
20
|
})(["font-family:Poppins;font-style:normal;font-weight:500;font-size:1rem;line-height:1.5rem;text-align:center;letter-spacing:-0.02em;color:", ";flex:none;flex-grow:0;margin:0rem 0rem;padding:0rem;"], _colors.BmSecondaryGrey);
|
|
30
|
-
|
|
21
|
+
const StyledLi = _styledComponents.default.div.withConfig({
|
|
31
22
|
displayName: "dropdown__StyledLi"
|
|
32
23
|
})(["float:left;"]);
|
|
33
|
-
|
|
24
|
+
const DownIcon = (0, _styledComponents.default)(_iconStyles.BmDropdownIcon).withConfig({
|
|
34
25
|
displayName: "dropdown__DownIcon"
|
|
35
26
|
})(["padding-left:1.143rem;"]);
|
|
36
|
-
|
|
27
|
+
const DropDownContent = _styledComponents.default.div.withConfig({
|
|
37
28
|
displayName: "dropdown__DropDownContent"
|
|
38
29
|
})(["display:block;position:absolute;background-color:#f9f9f9;min-width:11.429rem;box-shadow:0rem 0.571rem 1.143rem 0rem rgba(0,0,0,0.2);z-index:1;"]);
|
|
39
30
|
|
|
40
31
|
// eslint-disable-next-line no-unused-vars
|
|
41
|
-
|
|
32
|
+
const BmDropdownList = (0, _styledComponents.default)(StyledLi).withConfig({
|
|
42
33
|
displayName: "dropdown__BmDropdownList"
|
|
43
34
|
})(["display:inline-block;"]);
|
|
44
|
-
|
|
35
|
+
const BmDropdownItem = _styledComponents.default.button.withConfig({
|
|
45
36
|
displayName: "dropdown__BmDropdownItem"
|
|
46
37
|
})(["padding:0.5rem 1.143rem;font-family:Poppins;font-style:normal;font-weight:500;font-size:1rem;line-height:1.5rem;text-align:center;letter-spacing:-0.02em;color:", ";flex:none;order:0;flex-grow:0;"], _colors.BmSecondaryGrey);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
-
isOpen = _useState2[0],
|
|
52
|
-
setIsOpen = _useState2[1];
|
|
38
|
+
const BmDropdown = _ref => {
|
|
39
|
+
let rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
40
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
53
41
|
// eslint-disable-next-line no-unused-vars
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
value = _useState4[0],
|
|
57
|
-
setValue = _useState4[1];
|
|
58
|
-
var toggling = function toggling() {
|
|
59
|
-
return setIsOpen(!isOpen);
|
|
60
|
-
};
|
|
42
|
+
const [value, setValue] = (0, _react.useState)(undefined);
|
|
43
|
+
const toggling = () => setIsOpen(!isOpen);
|
|
61
44
|
return /*#__PURE__*/_react.default.createElement(BmDropdownWrapper, rest, /*#__PURE__*/_react.default.createElement(BmDropdownBtn, {
|
|
62
45
|
onClick: toggling
|
|
63
46
|
}, "ANY"), /*#__PURE__*/_react.default.createElement(DownIcon, null), isOpen && /*#__PURE__*/_react.default.createElement(DropDownContent, null, /*#__PURE__*/_react.default.createElement(BmDropdownItem, {
|
|
64
|
-
onClick:
|
|
65
|
-
return setValue('any');
|
|
66
|
-
}
|
|
47
|
+
onClick: () => setValue('any')
|
|
67
48
|
}, "ANY"), /*#__PURE__*/_react.default.createElement(BmDropdownItem, {
|
|
68
|
-
onClick:
|
|
69
|
-
return setValue('all');
|
|
70
|
-
}
|
|
49
|
+
onClick: () => setValue('all')
|
|
71
50
|
}, "ALL")));
|
|
72
51
|
};
|
|
73
52
|
exports.BmDropdown = BmDropdown;
|
|
@@ -10,20 +10,22 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
10
10
|
var _buttonIconsOnly = require("./Buttons/buttonIconsOnly");
|
|
11
11
|
var _buttons = require("./Buttons/buttons");
|
|
12
12
|
var _colors = require("./colors");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
16
|
-
function _objectWithoutProperties(
|
|
17
|
-
function _objectWithoutPropertiesLoose(
|
|
18
|
-
|
|
13
|
+
const _excluded = ["children"];
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
const Wrapper = _styledComponents.default.div.withConfig({
|
|
19
19
|
displayName: "dropdownButton__Wrapper"
|
|
20
20
|
})(["display:flex;padding:0rem;margin:0rem;"]);
|
|
21
|
-
|
|
21
|
+
const Drop = exports.Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig({
|
|
22
22
|
displayName: "dropdownButton__Drop"
|
|
23
|
-
})(["background:", ";border:0.071rem solid ", ";border-left:0.0857rem solid ", ";border-top-left-radius:0.071rem;border-bottom-left-radius:0.071rem;border-top-right-radius:0.5714rem;border-bottom-right-radius:0.5714rem;padding:0rem;"],
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
})(["background:", ";border:0.071rem solid ", ";border-left:0.0857rem solid ", ";border-top-left-radius:0.071rem;border-bottom-left-radius:0.071rem;border-top-right-radius:0.5714rem;border-bottom-right-radius:0.5714rem;padding:0rem;"], _ref => {
|
|
24
|
+
let {
|
|
25
|
+
variant,
|
|
26
|
+
disabled,
|
|
27
|
+
color
|
|
28
|
+
} = _ref;
|
|
27
29
|
if (!disabled) {
|
|
28
30
|
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
29
31
|
if (variant === 'secondary') return 'none';
|
|
@@ -37,10 +39,12 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig
|
|
|
37
39
|
if (variant === 'secondary') return 'none';
|
|
38
40
|
if (variant === 'tertiary') return 'none';
|
|
39
41
|
return "".concat(_colors.BmGrey100);
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
}, _ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
variant,
|
|
45
|
+
disabled,
|
|
46
|
+
color
|
|
47
|
+
} = _ref2;
|
|
44
48
|
if (!disabled) {
|
|
45
49
|
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
46
50
|
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
@@ -53,10 +57,12 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig
|
|
|
53
57
|
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
54
58
|
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
55
59
|
if (variant === 'tertiary') return 'transparent';
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
}, _ref3 => {
|
|
61
|
+
let {
|
|
62
|
+
variant,
|
|
63
|
+
disabled,
|
|
64
|
+
color
|
|
65
|
+
} = _ref3;
|
|
60
66
|
if (!disabled) {
|
|
61
67
|
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
62
68
|
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
@@ -70,27 +76,31 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig
|
|
|
70
76
|
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
71
77
|
if (variant === 'tertiary') return 'transparent';
|
|
72
78
|
});
|
|
73
|
-
exports.
|
|
74
|
-
var Button = (0, _styledComponents.default)(_buttons.BmButton).withConfig({
|
|
79
|
+
const Button = exports.Button = (0, _styledComponents.default)(_buttons.BmButton).withConfig({
|
|
75
80
|
displayName: "dropdownButton__Button"
|
|
76
|
-
})(["border-top-right-radius:0.071rem;border-bottom-right-radius:0.071rem;border-right:none;padding:", ";line-height:", ";"],
|
|
77
|
-
|
|
81
|
+
})(["border-top-right-radius:0.071rem;border-bottom-right-radius:0.071rem;border-right:none;padding:", ";line-height:", ";"], _ref4 => {
|
|
82
|
+
let {
|
|
83
|
+
size
|
|
84
|
+
} = _ref4;
|
|
78
85
|
// if (size === 'large') return '0.625rem 1.5rem';
|
|
79
86
|
// if (size === 'medium') return '0.4375rem 1rem';
|
|
80
87
|
// if (size === 'small') return '.375rem .75rem';
|
|
81
88
|
if (size === 'xsmall') return '.4286rem .8571rem';
|
|
82
89
|
return '.625rem 1.5rem';
|
|
83
|
-
},
|
|
84
|
-
|
|
90
|
+
}, _ref5 => {
|
|
91
|
+
let {
|
|
92
|
+
size
|
|
93
|
+
} = _ref5;
|
|
85
94
|
// if (size === 'large') return '0.625rem 1.5rem';
|
|
86
95
|
// if (size === 'medium') return '0.4375rem 1rem';
|
|
87
96
|
// if (size === 'small') return '.375rem .75rem';
|
|
88
97
|
if (size === 'xsmall') return '1.4286rem';
|
|
89
98
|
return 'normal';
|
|
90
99
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
const BmButtonDropDown = _ref6 => {
|
|
101
|
+
let {
|
|
102
|
+
children
|
|
103
|
+
} = _ref6,
|
|
94
104
|
rest = _objectWithoutProperties(_ref6, _excluded);
|
|
95
105
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Wrapper, rest, /*#__PURE__*/_react.default.createElement(Button, rest, children), /*#__PURE__*/_react.default.createElement(Drop, _extends({}, rest, {
|
|
96
106
|
icon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, null)
|
|
@@ -8,47 +8,44 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("./colors");
|
|
10
10
|
var _iconStyles = require("./iconStyles");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _objectWithoutProperties(
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
15
|
-
|
|
11
|
+
const _excluded = ["children", "leadingIcon", "trailingIcon", "color", "size"];
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
const BmCustomizedDropdown = exports.BmCustomizedDropdown = _styledComponents.default.div.withConfig({
|
|
16
16
|
displayName: "dropdownItems__BmCustomizedDropdown"
|
|
17
17
|
})(["display:flex;flex-direction:column;"]);
|
|
18
|
-
exports.
|
|
19
|
-
var BmButtonDropdownItem = _styledComponents.default.div.withConfig({
|
|
18
|
+
const BmButtonDropdownItem = exports.BmButtonDropdownItem = _styledComponents.default.div.withConfig({
|
|
20
19
|
displayName: "dropdownItems__BmButtonDropdownItem"
|
|
21
|
-
})(["", " display:", "};flex-direction:column;", " padding:0.286rem 0rem;background:", ";border:0.071rem solid ", ";box-shadow:0rem 0.286rem 0.286rem rgba(0,0,0,0.25);border-radius:0.25rem;z-index:99999;position:absolute;cursor:pointer;width:100%;"], '' /* display: inline-block; */,
|
|
22
|
-
|
|
20
|
+
})(["", " display:", "};flex-direction:column;", " padding:0.286rem 0rem;background:", ";border:0.071rem solid ", ";box-shadow:0rem 0.286rem 0.286rem rgba(0,0,0,0.25);border-radius:0.25rem;z-index:99999;position:absolute;cursor:pointer;width:100%;"], '' /* display: inline-block; */, _ref => {
|
|
21
|
+
let {
|
|
22
|
+
isOpen
|
|
23
|
+
} = _ref;
|
|
23
24
|
return isOpen ? 'flex' : 'none';
|
|
24
25
|
}, '' /* align-items: flex-start; */, _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
25
|
-
exports.
|
|
26
|
-
var BmDropDownMenu = _styledComponents.default.div.withConfig({
|
|
26
|
+
const BmDropDownMenu = exports.BmDropDownMenu = _styledComponents.default.div.withConfig({
|
|
27
27
|
displayName: "dropdownItems__BmDropDownMenu"
|
|
28
28
|
})(["position:relative;margin-top:0.357rem;width:100%;"]);
|
|
29
|
-
exports.
|
|
30
|
-
var ItemWrapper = _styledComponents.default.div.withConfig({
|
|
29
|
+
const ItemWrapper = exports.ItemWrapper = _styledComponents.default.div.withConfig({
|
|
31
30
|
displayName: "dropdownItems__ItemWrapper"
|
|
32
31
|
})(["display:flex;flex-direction:row;align-items:center;padding:0.571rem 1.143rem;background:", ";&:hover{background:", ";}cursor:pointer;"], _colors.BmPrimaryWhite, _colors.BmGrey100);
|
|
33
|
-
exports.
|
|
34
|
-
var LeftItemIcon = (0, _styledComponents.default)(_iconStyles.BmIcons).withConfig({
|
|
32
|
+
const LeftItemIcon = exports.LeftItemIcon = (0, _styledComponents.default)(_iconStyles.BmIcons).withConfig({
|
|
35
33
|
displayName: "dropdownItems__LeftItemIcon"
|
|
36
34
|
})(["margin-right:0.571rem;"]);
|
|
37
|
-
exports.
|
|
38
|
-
var RightItemIcon = (0, _styledComponents.default)(_iconStyles.BmIcons).withConfig({
|
|
35
|
+
const RightItemIcon = exports.RightItemIcon = (0, _styledComponents.default)(_iconStyles.BmIcons).withConfig({
|
|
39
36
|
displayName: "dropdownItems__RightItemIcon"
|
|
40
37
|
})(["margin-left:0.571rem;"]);
|
|
41
|
-
exports.
|
|
42
|
-
var ItemText = _styledComponents.default.p.withConfig({
|
|
38
|
+
const ItemText = exports.ItemText = _styledComponents.default.p.withConfig({
|
|
43
39
|
displayName: "dropdownItems__ItemText"
|
|
44
40
|
})(["color:", ";"], _colors.BmPrimaryBlack);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
const BmDropDownItem = _ref2 => {
|
|
42
|
+
let {
|
|
43
|
+
children,
|
|
44
|
+
leadingIcon,
|
|
45
|
+
trailingIcon,
|
|
46
|
+
color,
|
|
47
|
+
size
|
|
48
|
+
} = _ref2,
|
|
52
49
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
53
50
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ItemWrapper, rest, leadingIcon && /*#__PURE__*/_react.default.createElement(LeftItemIcon, {
|
|
54
51
|
size: size,
|
|
@@ -12,8 +12,8 @@ var _Send = _interopRequireDefault(require("@mui/icons-material/Send"));
|
|
|
12
12
|
var _components = require("./lib/components");
|
|
13
13
|
require("../src/lib/assets/css/sidebar.scss");
|
|
14
14
|
var _chartImg = _interopRequireDefault(require("../src/lib/assets/chart-img.png"));
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const Chat = () => {
|
|
17
17
|
return /*#__PURE__*/_react.default.createElement(_components.BmChat, null, /*#__PURE__*/_react.default.createElement(_components.BmChat.Body, null, /*#__PURE__*/_react.default.createElement(_components.BmChat.Details, {
|
|
18
18
|
state: "inbound",
|
|
19
19
|
session: "bot",
|
|
@@ -123,5 +123,4 @@ var Chat = function Chat() {
|
|
|
123
123
|
size: "xlarge"
|
|
124
124
|
}))));
|
|
125
125
|
};
|
|
126
|
-
var _default = Chat;
|
|
127
|
-
exports.default = _default;
|
|
126
|
+
var _default = exports.default = Chat;
|
|
@@ -7,11 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("./lib/components");
|
|
9
9
|
var _FormAccordion = _interopRequireDefault(require("./lib/components/ChatComponents/FormAccordion/FormAccordion"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const InfoAccordion = () => {
|
|
12
12
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Title, null, /*#__PURE__*/_react.default.createElement("h3", null, "Notes")), /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Body, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Label, null, /*#__PURE__*/_react.default.createElement("h4", null, "Hello")), /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Input, {
|
|
13
13
|
placeholder: "Hello"
|
|
14
14
|
})))));
|
|
15
15
|
};
|
|
16
|
-
var _default = InfoAccordion;
|
|
17
|
-
exports.default = _default;
|
|
16
|
+
var _default = exports.default = InfoAccordion;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,9 +8,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
8
|
var _ = require("..");
|
|
10
9
|
require("./list.scss");
|
|
11
10
|
var _scrollBar = require("../ScrollBar/scrollBar");
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
var App = function App() {
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const App = () => {
|
|
15
13
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_.GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_scrollBar.ScrollbarWrapper, null, /*#__PURE__*/_react.default.createElement(_.BmChat, null, /*#__PURE__*/_react.default.createElement(_.BmChat.Body, null, /*#__PURE__*/_react.default.createElement(_.BmChat.Details, {
|
|
16
14
|
state: "inbound",
|
|
17
15
|
session: "bot",
|
|
@@ -54,10 +52,9 @@ var App = function App() {
|
|
|
54
52
|
displayTime: /*#__PURE__*/_react.default.createElement("p", null, "10:00am"),
|
|
55
53
|
status: "failed",
|
|
56
54
|
fileName: /*#__PURE__*/_react.default.createElement("p", null, "file.csv"),
|
|
57
|
-
onDownload:
|
|
55
|
+
onDownload: () => {
|
|
58
56
|
alert('hello');
|
|
59
57
|
}
|
|
60
58
|
})))));
|
|
61
59
|
};
|
|
62
|
-
var _default = App;
|
|
63
|
-
exports.default = _default;
|
|
60
|
+
var _default = exports.default = App;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,40 +8,24 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
8
|
var _map = _interopRequireDefault(require("lodash/map"));
|
|
10
9
|
var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
11
10
|
var _components = require("./lib/components");
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
-
var App = function App() {
|
|
22
|
-
var _useState = (0, _react.useState)(false),
|
|
23
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
-
showModal = _useState2[0],
|
|
25
|
-
setShowModal = _useState2[1];
|
|
26
|
-
var VENDOR_ACCOUNT_STATUSES = {
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
const App = () => {
|
|
14
|
+
const [showModal, setShowModal] = (0, _react.useState)(false);
|
|
15
|
+
const VENDOR_ACCOUNT_STATUSES = {
|
|
27
16
|
0: 'Inactive',
|
|
28
17
|
1: 'Active'
|
|
29
18
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
});
|
|
19
|
+
const VENDOR_ACCOUNT_STATUS_OPTIONS = (0, _map.default)(VENDOR_ACCOUNT_STATUSES, (type, key) => ({
|
|
20
|
+
value: key,
|
|
21
|
+
label: type
|
|
22
|
+
}));
|
|
36
23
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_components.BmButton, {
|
|
37
|
-
onClick:
|
|
38
|
-
return setShowModal(!showModal);
|
|
39
|
-
}
|
|
24
|
+
onClick: () => setShowModal(!showModal)
|
|
40
25
|
}, "Click Me!"), /*#__PURE__*/_react.default.createElement(_components.BmModal, {
|
|
41
26
|
size: "small",
|
|
42
27
|
show: showModal,
|
|
43
|
-
onHide:
|
|
44
|
-
return setShowModal(false);
|
|
45
|
-
},
|
|
28
|
+
onHide: () => setShowModal(false),
|
|
46
29
|
centered: true
|
|
47
30
|
}, /*#__PURE__*/_react.default.createElement(_components.BmModal.Header, {
|
|
48
31
|
closeButton: true
|
|
@@ -56,5 +39,4 @@ var App = function App() {
|
|
|
56
39
|
variant: "secondary"
|
|
57
40
|
}, "View"))));
|
|
58
41
|
};
|
|
59
|
-
var _default = App;
|
|
60
|
-
exports.default = _default;
|
|
42
|
+
var _default = exports.default = App;
|
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.GlobalStyle = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _text = require("./text");
|
|
9
|
-
|
|
10
|
-
exports.GlobalStyle = GlobalStyle;
|
|
9
|
+
const GlobalStyle = exports.GlobalStyle = (0, _styledComponents.createGlobalStyle)(["*{font-size:14px;cursor:pointer}h1{", "}h2{", "}h3{", "}h4{", "}h5{", "}h6{", "}p{", "}input{", "}a{", "}"], _text.h1, _text.h2, _text.h3, _text.h4, _text.h5, _text.h6, _text.p, _text.input, _text.a);
|