beem-component 1.8.1 → 1.8.3
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/.babelrc +17 -0
- package/.eslintrc +16 -27
- package/.prettierrc +3 -2
- package/dist/components/Accordion/Accordion.js +14 -8
- package/dist/components/Avatars/avatars.js +3 -3
- package/dist/components/BannerCard/bannerCards.js +8 -6
- package/dist/components/ButtonGroup/buttonGroup.js +37 -0
- package/dist/components/Buttons/buttonAlertIcons.js +3 -3
- package/dist/components/Buttons/buttonDropdown copy.js +51 -50
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +6 -4
- package/dist/components/Buttons/buttons.js +12 -6
- package/dist/components/Cards/cards.js +12 -6
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +15 -7
- package/dist/components/ChatComponents/ChatBody/chatBody.js +33 -13
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +3 -3
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +6 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +14 -8
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +12 -6
- package/dist/components/ChatComponents/InfoTab/infoTab.js +9 -5
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -3
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +9 -5
- package/dist/components/Chats/chat.js +47 -29
- package/dist/components/Chats/chatInput.js +16 -8
- package/dist/components/Chats/chatwrapper.js +18 -8
- package/dist/components/Checkbox/checkboxToggler.js +12 -6
- package/dist/components/Checkbox/checkboxToggler.stories.js +2 -2
- package/dist/components/InputDatePicker.js +53 -0
- package/dist/components/Jumbotron/Jumbotron.js +35 -0
- package/dist/components/Jumbotron/Jumbotron.stories.js +32 -0
- package/dist/components/Lists/listBox.js +3 -3
- package/dist/components/Lists/listBox.stories.js +2 -2
- package/dist/components/Lists/listheader.js +3 -3
- package/dist/components/Lists/rowLabels.js +12 -6
- package/dist/components/Lists/rowLabels.stories.js +4 -1
- package/dist/components/Loader/loader.js +3 -3
- package/dist/components/MainWrapper/index.js +3 -3
- package/dist/components/MessageCounter/messageCounter.js +3 -3
- package/dist/components/Modals/modal.js +33 -21
- package/dist/components/Modals/modals.stories.js +2 -2
- package/dist/components/NoteBar/noteBar.js +5 -5
- package/dist/components/PaymentBox/paymentBox.js +12 -6
- package/dist/components/PerformanceIndicator/performanceIndicator.js +3 -3
- package/dist/components/Pills/pills.js +5 -5
- package/dist/components/ProfileIcon/ProfileIcon.js +12 -6
- package/dist/components/ProgressBar/progressbar.js +12 -6
- package/dist/components/ProgressRing/progressRing.js +14 -8
- package/dist/components/RouteLink/link.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +9 -5
- package/dist/components/SuperFluid/Content/index.js +3 -3
- package/dist/components/SuperFluid/ContentTitle.js/index.js +12 -6
- package/dist/components/SuperFluid/SegmentCard/index.js +20 -8
- package/dist/components/Tabs/tabs.js +3 -3
- package/dist/components/Tags/tags.js +5 -5
- package/dist/components/chatHeader.js +15 -7
- package/dist/components/checkbox.js +15 -7
- package/dist/components/contacts.js +33 -13
- package/dist/components/dropdown.js +25 -13
- package/dist/components/dropdownButton.js +9 -5
- package/dist/components/dropdownItems.js +22 -10
- package/dist/components/examples/App.js +8 -8
- package/dist/components/examples/chatBodyExample.js +1 -1
- package/dist/components/examples/selectExample.js +5 -5
- package/dist/components/globalStyles.js +1 -3
- package/dist/components/index.js +14 -0
- package/dist/components/input.js +9 -5
- package/dist/components/logo.js +3 -3
- package/dist/components/navbar.js +23 -9
- package/dist/components/search.js +17 -12
- package/dist/components/shadow.js +1 -1
- package/dist/components/wrapper.js +6 -4
- package/package.json +31 -16
- package/src/App.js +35 -253
- package/src/examples/AlertIcons.js +10 -5
- package/src/examples/Avatars.js +3 -2
- package/src/examples/Buttons.js +7 -10
- package/src/examples/Chat.js +9 -9
- package/src/examples/Input.js +79 -70
- package/src/examples/Logo.js +2 -2
- package/src/examples/Navbar.js +12 -12
- package/src/examples/Search.js +3 -2
- package/src/examples/SideBar.js +11 -11
- package/src/examples/Tags.js +3 -3
- package/src/lib/components/ButtonGroup/buttonGroup.js +38 -0
- package/src/lib/components/Buttons/buttonDropdown copy.js +51 -54
- package/src/lib/components/Buttons/buttonDropdown.js +6 -6
- package/src/lib/components/Chats/chat.js +23 -23
- package/src/lib/components/Chats/chatInput.js +8 -8
- package/src/lib/components/Chats/chatwrapper.js +2 -2
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +0 -1
- package/src/lib/components/InputDatePicker.js +45 -0
- package/src/lib/components/Jumbotron/Jumbotron.js +54 -0
- package/src/lib/components/Jumbotron/Jumbotron.stories.js +31 -0
- package/src/lib/components/chatHeader.js +8 -3
- package/src/lib/components/contacts.js +3 -3
- package/src/lib/components/dropdown.js +7 -7
- package/src/lib/components/dropdownItems.js +6 -6
- package/src/lib/components/examples/App.js +53 -43
- package/src/lib/components/examples/InfoAccordion.js +6 -5
- package/src/lib/components/examples/chatBodyExample.js +5 -5
- package/src/lib/components/examples/selectExample.js +7 -7
- package/src/lib/components/index-copy.js +49 -49
- package/src/lib/components/index.js +4 -0
- package/src/lib/components/logo.js +2 -2
- package/src/lib/components/navbar.js +5 -5
- package/src/lib/components/search.js +10 -11
- package/src/lib/components/shadow.js +1 -1
- package/src/lib/components/wrapper.js +1 -2
- package/babel.config.js +0 -11
|
@@ -6,25 +6,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.MessageOut = exports.MessageIn = exports.MainWrapper = exports.Main = exports.BmChatMenu = exports.BmChat = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
10
|
// Main wrapper
|
|
13
|
-
var Main = _styledComponents.default.div
|
|
11
|
+
var Main = _styledComponents.default.div.withConfig({
|
|
12
|
+
displayName: "chatwrapper__Main"
|
|
13
|
+
})(["display:flex;flex-direction:row;align-item:center;", " max-height:calc(100vh - 12.857rem);height:calc(100vh - 12.857rem);max-width:100%;width:100%;"], '' /* justify-content: space-between; */);
|
|
14
14
|
|
|
15
15
|
// Main Chat Wrapper
|
|
16
16
|
exports.Main = Main;
|
|
17
|
-
var BmChat = _styledComponents.default.div(
|
|
17
|
+
var BmChat = _styledComponents.default.div.withConfig({
|
|
18
|
+
displayName: "chatwrapper__BmChat"
|
|
19
|
+
})(["background:", ";display:flex;flex-direction:column;", " border-top:0.0625rem solid ", ";border-bottom:0.0625rem solid ", ";max-width:70%;width:70%;max-height:100%;height:100%;"], _colors.BmBgGreyBlue, '' /* flex-grow: 1; */, _colors.BmGrey400, _colors.BmGrey400);
|
|
18
20
|
exports.BmChat = BmChat;
|
|
19
|
-
var BmChatMenu = _styledComponents.default.div(
|
|
21
|
+
var BmChatMenu = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "chatwrapper__BmChatMenu"
|
|
23
|
+
})(["display:flex;padding:1.5rem !important;flex-grow:1;height:100%;max-height:100%;overflow:auto;flex-direction:column-reverse;", ""], '' /* border: 0.714rem solid yellow; */);
|
|
20
24
|
|
|
21
25
|
// Incoming message
|
|
22
26
|
exports.BmChatMenu = BmChatMenu;
|
|
23
|
-
var MessageIn = _styledComponents.default.div(
|
|
27
|
+
var MessageIn = _styledComponents.default.div.withConfig({
|
|
28
|
+
displayName: "chatwrapper__MessageIn"
|
|
29
|
+
})(["display:flex;align-items:flex-start;flex-direction:column;padding:0.5rem 0rem !important;"]);
|
|
24
30
|
|
|
25
31
|
// Outgoing message
|
|
26
32
|
exports.MessageIn = MessageIn;
|
|
27
|
-
var MessageOut = _styledComponents.default.div(
|
|
33
|
+
var MessageOut = _styledComponents.default.div.withConfig({
|
|
34
|
+
displayName: "chatwrapper__MessageOut"
|
|
35
|
+
})(["display:flex;align-items:flex-end;flex-direction:column;padding:0.5rem 0rem !important;"]);
|
|
28
36
|
exports.MessageOut = MessageOut;
|
|
29
|
-
var MainWrapper = _styledComponents.default.div(
|
|
37
|
+
var MainWrapper = _styledComponents.default.div.withConfig({
|
|
38
|
+
displayName: "chatwrapper__MainWrapper"
|
|
39
|
+
})(["padding:2.1875rem;background-color:", ";"], _colors.BmBgGreyBlue);
|
|
30
40
|
exports.MainWrapper = MainWrapper;
|
|
@@ -8,15 +8,21 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _colors = require("../colors");
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
var CheckBoxWrapper = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "checkboxToggler__CheckBoxWrapper"
|
|
14
|
+
})(["position:relative;align-items:center;display:flex;flex-direction:row;> *:not(:last-child){margin-right:0.5rem;}"]);
|
|
15
|
+
var CheckBoxLabel = _styledComponents.default.label.withConfig({
|
|
16
|
+
displayName: "checkboxToggler__CheckBoxLabel"
|
|
17
|
+
})(["align-items:center;display:flex;position:relative;width:3rem;height:1.25rem;border-radius:1.25rem;background:", ";cursor:pointer;&::after{content:'';display:block;border-radius:100%;width:1.75rem;height:1.75rem;background:", ";transition:0.2s;}"], function (props) {
|
|
16
18
|
return props.disabled ? _colors.BmGrey400 : _colors.BmBgGrey38;
|
|
17
19
|
}, _colors.BmGrey200);
|
|
18
|
-
var Label = _styledComponents.default.label(
|
|
19
|
-
|
|
20
|
+
var Label = _styledComponents.default.label.withConfig({
|
|
21
|
+
displayName: "checkboxToggler__Label"
|
|
22
|
+
})(["align-items:center;display:flex;position:relative;"]);
|
|
23
|
+
var CheckBox = _styledComponents.default.input.withConfig({
|
|
24
|
+
displayName: "checkboxToggler__CheckBox"
|
|
25
|
+
})(["opacity:0;z-index:1;", "}"], function (_ref) {
|
|
20
26
|
var checked = _ref.checked,
|
|
21
27
|
disabled = _ref.disabled;
|
|
22
28
|
return !disabled && checked !== undefined && checked === true && "\n &:checked + ".concat(CheckBoxLabel, " {\n background: ").concat(_colors.BmSecondaryDarkGreen, ";\n &::after {\n content: '';\n display: block;\n width: 1.75rem;\n height: 1.75rem;\n margin-left: 1.25rem;\n transition: 0.2s;\n } ");
|
|
@@ -12,8 +12,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12
12
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
13
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
14
|
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); }
|
|
15
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
16
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
15
|
+
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; }
|
|
16
|
+
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; } }
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
var _default = {
|
|
19
19
|
component: _checkboxToggler.BmCheckboxToggle,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ScheduleDateInput = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
var InputDatePicker = function InputDatePicker(_ref) {
|
|
11
|
+
var value = _ref.value,
|
|
12
|
+
placeholder = _ref.placeholder,
|
|
13
|
+
onClick = _ref.onClick;
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("input", {
|
|
15
|
+
type: "text",
|
|
16
|
+
className: "form-control",
|
|
17
|
+
placeholder: placeholder,
|
|
18
|
+
value: value,
|
|
19
|
+
onFocus: onClick
|
|
20
|
+
}), /*#__PURE__*/_react.default.createElement("i", {
|
|
21
|
+
className: "icon-schedule-date form-control-icon"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
InputDatePicker.propTypes = {
|
|
25
|
+
value: _propTypes.default.string,
|
|
26
|
+
placeholder: _propTypes.default.string,
|
|
27
|
+
onClick: _propTypes.default.func.isRequired
|
|
28
|
+
};
|
|
29
|
+
InputDatePicker.defaultProps = {
|
|
30
|
+
value: undefined,
|
|
31
|
+
placeholder: undefined
|
|
32
|
+
};
|
|
33
|
+
var ScheduleDateInput = function ScheduleDateInput(_ref2) {
|
|
34
|
+
var onClick = _ref2.onClick,
|
|
35
|
+
value = _ref2.value,
|
|
36
|
+
placeholder = _ref2.placeholder;
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-label": "button",
|
|
40
|
+
className: "btn btn-warning my-1 mr-2",
|
|
41
|
+
onClick: onClick
|
|
42
|
+
}, value || placeholder, " ", /*#__PURE__*/_react.default.createElement("i", {
|
|
43
|
+
className: "fa fa-calendar-alt"
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
exports.ScheduleDateInput = ScheduleDateInput;
|
|
47
|
+
ScheduleDateInput.propTypes = {
|
|
48
|
+
value: _propTypes.default.string.isRequired,
|
|
49
|
+
onClick: _propTypes.default.func.isRequired,
|
|
50
|
+
placeholder: _propTypes.default.string.isRequired
|
|
51
|
+
};
|
|
52
|
+
var _default = InputDatePicker;
|
|
53
|
+
exports.default = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _colors = require("../colors");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/* eslint-disable import/prefer-default-export */
|
|
11
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
12
|
+
|
|
13
|
+
var Title = _styledComponents.default.div.withConfig({
|
|
14
|
+
displayName: "Jumbotron__Title"
|
|
15
|
+
})(["display:flex;justify-content:space-between;padding:1rem 0.5rem;background:", ";"], function (props) {
|
|
16
|
+
return props.bgColor ? props.bgColor : _colors.BmPrimaryBlue;
|
|
17
|
+
});
|
|
18
|
+
var Body = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "Jumbotron__Body"
|
|
20
|
+
})(["display:flex;padding:0.5rem;> *{display:flex;flex-direction:column;flex-wrap:wrap;overflow-wrap:break-word !important;word-wrap:break-word !important;flex-grow:grow;> *:not(:last-child){margin-bottom:0.5rem;}}@media all and (max-width:960px){flex-direction:column;}"]);
|
|
21
|
+
var BmJumbotron = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "Jumbotron__BmJumbotron"
|
|
23
|
+
})(["display:flex;flex-direction:column;border:0.071rem solid ", ";border-radius:0.25rem;"], _colors.BmGrey200);
|
|
24
|
+
var text = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "Jumbotron__text"
|
|
26
|
+
})(["width:100%;"]);
|
|
27
|
+
var image = _styledComponents.default.div.withConfig({
|
|
28
|
+
displayName: "Jumbotron__image"
|
|
29
|
+
})(["width:20%;@media all and (max-width:960px){width:100%;}"]);
|
|
30
|
+
BmJumbotron.Title = Title;
|
|
31
|
+
BmJumbotron.Body = Body;
|
|
32
|
+
BmJumbotron.Body.Text = text;
|
|
33
|
+
BmJumbotron.Body.Image = image;
|
|
34
|
+
var _default = BmJumbotron;
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.BasicJumbotronSample = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _addonKnobs = require("@storybook/addon-knobs");
|
|
9
|
+
var _Jumbotron = _interopRequireDefault(require("./Jumbotron"));
|
|
10
|
+
var _beem = _interopRequireDefault(require("../../assets/beem.jpeg"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
13
|
+
var _default = {
|
|
14
|
+
component: _Jumbotron.default,
|
|
15
|
+
title: 'components/Jumbotron',
|
|
16
|
+
argTypes: {
|
|
17
|
+
children: {
|
|
18
|
+
description: 'Accordion Title Text',
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: undefined
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.default = _default;
|
|
26
|
+
var BasicJumbotronSample = function BasicJumbotronSample() {
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Jumbotron.default, null, /*#__PURE__*/_react.default.createElement(_Jumbotron.default.Title, null, /*#__PURE__*/_react.default.createElement("h3", null, (0, _addonKnobs.text)('children', 'Title'))), /*#__PURE__*/_react.default.createElement(_Jumbotron.default.Body.Text, null, "Body Text"), /*#__PURE__*/_react.default.createElement(_Jumbotron.default.Body.Image, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
28
|
+
src: _beem.default,
|
|
29
|
+
alt: "sampleImage"
|
|
30
|
+
}))));
|
|
31
|
+
};
|
|
32
|
+
exports.BasicJumbotronSample = BasicJumbotronSample;
|
|
@@ -10,14 +10,12 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _colors = require("../colors");
|
|
12
12
|
var _excluded = ["children", "showList", "setShowList"];
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
16
|
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); }
|
|
18
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
18
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
19
|
var show = function show(isOpen) {
|
|
22
20
|
if (isOpen !== undefined) {
|
|
23
21
|
if (isOpen === true) {
|
|
@@ -29,7 +27,9 @@ var show = function show(isOpen) {
|
|
|
29
27
|
}
|
|
30
28
|
return 'flex';
|
|
31
29
|
};
|
|
32
|
-
var BmListBoxWrapper = _styledComponents.default.div
|
|
30
|
+
var BmListBoxWrapper = _styledComponents.default.div.withConfig({
|
|
31
|
+
displayName: "listBox__BmListBoxWrapper"
|
|
32
|
+
})(["", ";flex-direction:column;padding:0.25rem 0rem;background:", ";border:0.071rem solid ", ";box-shadow:0rem 0.25rem 0.25rem rgba(0,0,0,0.25);border-radius:0.25rem;z-index:10000;cursor:pointer;"], function (props) {
|
|
33
33
|
return show(props.isOpen);
|
|
34
34
|
}, _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
35
35
|
var BmListBox = function BmListBox(_ref) {
|
|
@@ -15,8 +15,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
15
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
16
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
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++)
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
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
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
var _default = {
|
|
22
22
|
component: _listBox.BmListBox,
|
|
@@ -10,13 +10,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _colors = require("../colors");
|
|
11
11
|
var _iconStyles = require("../iconStyles");
|
|
12
12
|
var _excluded = ["children", "trailingIcon", "size", "color"];
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
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); }
|
|
16
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
18
|
+
displayName: "listheader__Container"
|
|
19
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;padding:0rem 1rem 1rem 1rem;border-bottom:0.125rem solid ", ";"], function (_ref) {
|
|
20
20
|
var color = _ref.color;
|
|
21
21
|
return color || "".concat(_colors.BmPrimaryBlue);
|
|
22
22
|
});
|
|
@@ -10,19 +10,25 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _colors = require("../colors");
|
|
11
11
|
var _iconStyles = require("../iconStyles");
|
|
12
12
|
var _excluded = ["children", "trailingIcon", "leadingIcon", "label", "color", "size"];
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
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); }
|
|
16
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
18
|
+
displayName: "rowLabels__Container"
|
|
19
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:0.5rem 1rem;justify-content:space-between;background:", ";margin:0rem;&:hover{background:", ";}"], _colors.BmPrimaryWhite, _colors.BmGrey100);
|
|
20
20
|
exports.Container = Container;
|
|
21
|
-
var LeftContainer = _styledComponents.default.div(
|
|
21
|
+
var LeftContainer = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "rowLabels__LeftContainer"
|
|
23
|
+
})(["display:flex;flex-direction:flex-start;align-items:center;> *{margin-right:0.5rem;}"]);
|
|
22
24
|
exports.LeftContainer = LeftContainer;
|
|
23
|
-
var RightContainer = _styledComponents.default.div(
|
|
25
|
+
var RightContainer = _styledComponents.default.div.withConfig({
|
|
26
|
+
displayName: "rowLabels__RightContainer"
|
|
27
|
+
})(["margin-left:auto;display:flex;flex-direction:flex-end;align-items:center;"]);
|
|
24
28
|
exports.RightContainer = RightContainer;
|
|
25
|
-
var Label = _styledComponents.default.p
|
|
29
|
+
var Label = _styledComponents.default.p.withConfig({
|
|
30
|
+
displayName: "rowLabels__Label"
|
|
31
|
+
})(["color:", ";", ""], _colors.BmPrimaryBlack, function (_ref) {
|
|
26
32
|
var trailingIcon = _ref.trailingIcon;
|
|
27
33
|
return trailingIcon && "\n margin-right: 0.5rem;\n ";
|
|
28
34
|
});
|
|
@@ -9,9 +9,12 @@ var _icons = require("@material-ui/icons");
|
|
|
9
9
|
var _rowLabels = require("./rowLabels");
|
|
10
10
|
require("../../../main.scss");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
12
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
18
|
var _default = {
|
|
16
19
|
component: _rowLabels.BmRowLabel,
|
|
17
20
|
title: 'components/Lists/RowLabels',
|
|
@@ -10,10 +10,8 @@ var _CircularProgress = _interopRequireDefault(require("@material-ui/core/Circul
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _styles = require("@material-ui/core/styles");
|
|
12
12
|
var _colors = require("../colors");
|
|
13
|
-
var _templateObject;
|
|
14
13
|
var _excluded = ["size"];
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
15
|
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); }
|
|
18
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -43,7 +41,9 @@ var BmLoader = (0, _styles.withStyles)(style)(function (_ref2) {
|
|
|
43
41
|
}, rest));
|
|
44
42
|
});
|
|
45
43
|
exports.BmLoader = BmLoader;
|
|
46
|
-
var Loader = _styledComponents.default.div(
|
|
44
|
+
var Loader = _styledComponents.default.div.withConfig({
|
|
45
|
+
displayName: "loader__Loader"
|
|
46
|
+
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
47
47
|
exports.Loader = Loader;
|
|
48
48
|
BmLoader.propTypes = {
|
|
49
49
|
size: _propTypes.default.string,
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.MainWrapper = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../colors");
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var MainWrapper = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "MainWrapper"
|
|
12
|
+
})(["padding:2.1875rem;background-color:", ";"], _colors.BmBgGreyBlue);
|
|
13
13
|
exports.MainWrapper = MainWrapper;
|
|
@@ -8,10 +8,10 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _colors = require("../colors");
|
|
10
10
|
var _text = require("../text");
|
|
11
|
-
var _templateObject;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var BmCounter = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "messageCounter__BmCounter"
|
|
14
|
+
})(["display:flex;align-items:center;justify-content:center;text-align:center;color:", ";width:", ";height:", ";", " border-radius:50%;text-align:center;background:", ";"], _colors.BmPrimaryWhite, function (_ref) {
|
|
15
15
|
var size = _ref.size;
|
|
16
16
|
if (size === 'small') return '1.429rem';
|
|
17
17
|
if (size === 'medium') return '1.714rem';
|
|
@@ -13,7 +13,6 @@ var _colors = require("../colors");
|
|
|
13
13
|
var _iconStyles = require("../iconStyles");
|
|
14
14
|
var _excluded = ["children", "show", "size", "onHide", "centered"],
|
|
15
15
|
_excluded2 = ["children", "size", "onHide", "closeButton", "show"];
|
|
16
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
17
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -21,20 +20,25 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
21
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
22
|
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); }
|
|
24
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
25
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
23
|
+
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; }
|
|
24
|
+
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; } }
|
|
26
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
28
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
30
28
|
var _React$createContext = /*#__PURE__*/_react.default.createContext(),
|
|
31
29
|
Provider = _React$createContext.Provider,
|
|
32
30
|
Consumer = _React$createContext.Consumer;
|
|
33
|
-
var Overlay = _styledComponents.default.div(
|
|
31
|
+
var Overlay = _styledComponents.default.div.withConfig({
|
|
32
|
+
displayName: "modal__Overlay"
|
|
33
|
+
})(["position:fixed;top:0;left:0;z-index:9999;width:100vw;height:100vh;background-color:", ";}"], _colors.BmBgGrey45);
|
|
34
34
|
exports.Overlay = Overlay;
|
|
35
|
-
var ModalContent = _styledComponents.default.div
|
|
35
|
+
var ModalContent = _styledComponents.default.div.withConfig({
|
|
36
|
+
displayName: "modal__ModalContent"
|
|
37
|
+
})(["display:flex;flex-direction:column;border-radius:0.25rem;padding:1rem;margin:2rem auto;background:", ";width:auto;max-width:100%;> *:not(:last-child){margin-bottom:0.5rem;}@media (min-width:576px){max-width:500px;width:500px;}"], _colors.BmPrimaryWhite);
|
|
36
38
|
exports.ModalContent = ModalContent;
|
|
37
|
-
var ModalWrapper = _styledComponents.default.div(
|
|
39
|
+
var ModalWrapper = _styledComponents.default.div.withConfig({
|
|
40
|
+
displayName: "modal__ModalWrapper"
|
|
41
|
+
})(["position:fixed;top:0;left:0;z-index:9999;display:block;width:100%;height:100%;overflow:hidden;outline:0;margin:auto;overflow-x:hidden;overflow-y:auto;"]);
|
|
38
42
|
exports.ModalWrapper = ModalWrapper;
|
|
39
43
|
var BmModal = function BmModal(_ref) {
|
|
40
44
|
var children = _ref.children,
|
|
@@ -77,7 +81,9 @@ var BmModal = function BmModal(_ref) {
|
|
|
77
81
|
size: size
|
|
78
82
|
}, rest), children)))));
|
|
79
83
|
};
|
|
80
|
-
var ModalHeader = _styledComponents.default.div(
|
|
84
|
+
var ModalHeader = _styledComponents.default.div.withConfig({
|
|
85
|
+
displayName: "modal__ModalHeader"
|
|
86
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]);
|
|
81
87
|
BmModal.Header = function (_ref2) {
|
|
82
88
|
var children = _ref2.children,
|
|
83
89
|
size = _ref2.size,
|
|
@@ -95,20 +101,26 @@ BmModal.Header = function (_ref2) {
|
|
|
95
101
|
}, rest)) : /*#__PURE__*/_react.default.createElement("p", null, "\xA0")));
|
|
96
102
|
});
|
|
97
103
|
};
|
|
98
|
-
BmModal.SubHeader = _styledComponents.default.div(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
BmModal.SubHeader = _styledComponents.default.div.withConfig({
|
|
105
|
+
displayName: "modal__SubHeader"
|
|
106
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;"]);
|
|
107
|
+
BmModal.Body = _styledComponents.default.div.withConfig({
|
|
108
|
+
displayName: "modal__Body"
|
|
109
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;> *:not(:last-child){margin-bottom:0.5rem;}", ""], '' /* max-height: ${({ size }) => {
|
|
110
|
+
if (size) {
|
|
111
|
+
if (size === "small") return "21.429rem";
|
|
112
|
+
if (size === "default") return "35.714rem";
|
|
113
|
+
if (size === "large") return "57.143rem";
|
|
114
|
+
if (size === "xlarge") return "81.429rem";
|
|
115
|
+
return size;
|
|
116
|
+
}
|
|
117
|
+
return "35.714rem";
|
|
118
|
+
}};
|
|
119
|
+
overflow: auto; */);
|
|
110
120
|
|
|
111
|
-
BmModal.Footer = _styledComponents.default.div(
|
|
121
|
+
BmModal.Footer = _styledComponents.default.div.withConfig({
|
|
122
|
+
displayName: "modal__Footer"
|
|
123
|
+
})(["display:flex;justify-content:space-between;"]);
|
|
112
124
|
BmModal.propTypes = {
|
|
113
125
|
size: _propTypes.default.string,
|
|
114
126
|
centered: _propTypes.default.bool,
|
|
@@ -14,8 +14,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
14
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
16
|
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); }
|
|
17
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
18
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
17
|
+
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; }
|
|
18
|
+
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; } }
|
|
19
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
20
|
var _default = {
|
|
21
21
|
component: _modal.default,
|
|
@@ -12,7 +12,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
12
12
|
var _colors = require("../colors");
|
|
13
13
|
var _iconStyles = require("../iconStyles");
|
|
14
14
|
var _excluded = ["type", "children", "color", "size", "closeButton"];
|
|
15
|
-
var _templateObject;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -20,13 +19,14 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
20
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
21
|
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); }
|
|
23
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
24
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
22
|
+
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; }
|
|
23
|
+
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; } }
|
|
25
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
var NoteBarWrapper = _styledComponents.default.div.withConfig({
|
|
28
|
+
displayName: "noteBar__NoteBarWrapper"
|
|
29
|
+
})(["display:", ";flex-direction:row;align-items:center;padding:0.5rem 1rem;border:0.071rem solid ", ";border-radius:0.25rem;> *:not(:last-child){margin-right:0.5rem;}"], function (_ref) {
|
|
30
30
|
var closeButton = _ref.closeButton,
|
|
31
31
|
isOpen = _ref.isOpen;
|
|
32
32
|
if (!closeButton) {
|
|
@@ -9,23 +9,29 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _colors = require("../colors");
|
|
11
11
|
var _excluded = ["children"];
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var BmPaymentBoxWrapper = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "paymentBox__BmPaymentBoxWrapper"
|
|
17
|
+
})(["display:inline-flex;flex-direction:column;min-width:240px;min-height:280px;border:0.071rem solid ", ";border-radius:0.5rem;> *{margin-bottom:1rem;}&:hover{box-shadow:0 0 60px rgba(0,0,0,0.08);}"], _colors.BmGrey200);
|
|
18
18
|
var BmPaymentBox = function BmPaymentBox(_ref) {
|
|
19
19
|
var children = _ref.children,
|
|
20
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(BmPaymentBoxWrapper, rest, children);
|
|
22
22
|
};
|
|
23
|
-
BmPaymentBox.Header = _styledComponents.default.div
|
|
23
|
+
BmPaymentBox.Header = _styledComponents.default.div.withConfig({
|
|
24
|
+
displayName: "paymentBox__Header"
|
|
25
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0.5rem 0rem;border-radius:0.5rem 0.5rem 0rem 0rem;background:", "}"], function (_ref2) {
|
|
24
26
|
var headerColor = _ref2.headerColor;
|
|
25
27
|
return headerColor || _colors.BmPrimaryBlue;
|
|
26
28
|
});
|
|
27
|
-
BmPaymentBox.Body = _styledComponents.default.div(
|
|
28
|
-
|
|
29
|
+
BmPaymentBox.Body = _styledComponents.default.div.withConfig({
|
|
30
|
+
displayName: "paymentBox__Body"
|
|
31
|
+
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
32
|
+
BmPaymentBox.Footer = _styledComponents.default.div.withConfig({
|
|
33
|
+
displayName: "paymentBox__Footer"
|
|
34
|
+
})(["display:flex;flex-direction:row;justify-content:center;margin-top:auto;"]);
|
|
29
35
|
BmPaymentBox.propTypes = {
|
|
30
36
|
children: _propTypes.default.node.isRequired
|
|
31
37
|
};
|