beem-component 1.8.2 → 1.8.4
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/Jumbotron/Jumbotron.js +18 -7
- 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 +7 -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 +28 -16
- package/src/App.js +15 -264
- 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/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 +2 -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
package/.babelrc
ADDED
package/.eslintrc
CHANGED
|
@@ -8,55 +8,44 @@
|
|
|
8
8
|
"plugin:jest/style",
|
|
9
9
|
"prettier"
|
|
10
10
|
],
|
|
11
|
-
"plugins": [
|
|
12
|
-
"jest",
|
|
13
|
-
"jsdoc",
|
|
14
|
-
"prettier"
|
|
15
|
-
],
|
|
11
|
+
"plugins": ["jest", "jsdoc", "prettier"],
|
|
16
12
|
"parser": "@babel/eslint-parser",
|
|
17
13
|
"rules": {
|
|
18
14
|
"prettier/prettier": "error",
|
|
19
15
|
"react/jsx-filename-extension": [
|
|
20
16
|
1,
|
|
21
17
|
{
|
|
22
|
-
"extensions": [
|
|
23
|
-
".js",
|
|
24
|
-
".jsx"
|
|
25
|
-
]
|
|
18
|
+
"extensions": [".js", ".jsx"]
|
|
26
19
|
}
|
|
27
20
|
],
|
|
28
21
|
"import/no-extraneous-dependencies": [
|
|
29
22
|
"error",
|
|
30
23
|
{
|
|
31
|
-
"devDependencies": [
|
|
32
|
-
"**/*.test.js",
|
|
33
|
-
"**/*.spec.js",
|
|
34
|
-
"**/**/.storybook/**",
|
|
35
|
-
"**/**/stories/**",
|
|
36
|
-
"**/*.stories.js"
|
|
37
|
-
],
|
|
38
|
-
"peerDependencies": true
|
|
24
|
+
"devDependencies": ["**/*.test.js", "**/*.spec.js", "**/stories/*"]
|
|
39
25
|
}
|
|
40
26
|
],
|
|
41
|
-
"func-style": [
|
|
42
|
-
"error",
|
|
43
|
-
"expression"
|
|
44
|
-
],
|
|
27
|
+
"func-style": ["error", "expression"],
|
|
45
28
|
"jest/no-disabled-tests": "warn",
|
|
46
29
|
"jest/no-focused-tests": "error",
|
|
47
30
|
"jest/no-identical-title": "error",
|
|
48
31
|
"jest/prefer-to-have-length": "warn",
|
|
49
32
|
"jest/valid-expect": "error",
|
|
50
33
|
"object-curly-newline": "off",
|
|
34
|
+
"jsdoc/require-jsdoc": "off",
|
|
35
|
+
"jsdoc/require-param": "off",
|
|
51
36
|
"no-console": "off",
|
|
52
|
-
"react/jsx-props-no-spreading": "off",
|
|
53
37
|
"react/prop-types": 0,
|
|
54
|
-
"react/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"react/
|
|
38
|
+
"react/destructuring-assignment": "off",
|
|
39
|
+
"camelcase": "off",
|
|
40
|
+
"react/no-unknown-property": "off",
|
|
41
|
+
"react/jsx-key": "off",
|
|
42
|
+
"react/jsx-props-no-spreading": "off",
|
|
43
|
+
"import/prefer-default-export": "off",
|
|
44
|
+
"react/require-default-props": "off",
|
|
45
|
+
"consistent-return": "off",
|
|
46
|
+
"react/forbid-prop-types": "off"
|
|
58
47
|
},
|
|
59
48
|
"globals": {
|
|
60
49
|
"fetch": false
|
|
61
50
|
}
|
|
62
|
-
}
|
|
51
|
+
}
|
package/.prettierrc
CHANGED
|
@@ -13,22 +13,22 @@ var _colors = require("../colors");
|
|
|
13
13
|
var _iconStyles = require("../iconStyles");
|
|
14
14
|
var _excluded = ["children", "disabled", "expandIcon", "Open", "expandIconPosition"],
|
|
15
15
|
_excluded2 = ["children", "leadingIcon", "trailingIcon", "size"];
|
|
16
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
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; }
|
|
20
19
|
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; }
|
|
21
20
|
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; }
|
|
22
|
-
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
+
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); }
|
|
23
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
24
25
|
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."); }
|
|
25
26
|
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); }
|
|
26
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
27
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
27
|
+
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; }
|
|
28
|
+
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; } }
|
|
28
29
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
30
|
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; }
|
|
30
31
|
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; }
|
|
31
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
32
32
|
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); }
|
|
33
33
|
var _React$createContext = /*#__PURE__*/_react.default.createContext({}),
|
|
34
34
|
Provider = _React$createContext.Provider,
|
|
@@ -50,9 +50,15 @@ var Dropdown = function Dropdown(value, rest) {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var BmAccordionMenu = _styledComponents.default.div
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
var BmAccordionMenu = _styledComponents.default.div.withConfig({
|
|
54
|
+
displayName: "Accordion__BmAccordionMenu"
|
|
55
|
+
})(["display:flex;align-items:center;flex-direction:row;padding:0.571rem 1.143rem;background:", ";> *:not(:last-child){margin-right:0.5rem;}"], _colors.BmPrimaryWhite);
|
|
56
|
+
var BmAccordionDetails = _styledComponents.default.div.withConfig({
|
|
57
|
+
displayName: "Accordion__BmAccordionDetails"
|
|
58
|
+
})(["display:flex;justify-content:space-between;width:100%;"]);
|
|
59
|
+
var BmAccordionWrapper = _styledComponents.default.div.withConfig({
|
|
60
|
+
displayName: "Accordion__BmAccordionWrapper"
|
|
61
|
+
})(["display:flex;flex-direction:column;"]);
|
|
56
62
|
var BmAccordion = function BmAccordion(_ref) {
|
|
57
63
|
var children = _ref.children,
|
|
58
64
|
disabled = _ref.disabled,
|
|
@@ -13,13 +13,13 @@ var _Chat = _interopRequireDefault(require("@mui/icons-material/Chat"));
|
|
|
13
13
|
var _colors = require("../colors");
|
|
14
14
|
var _iconStyles = require("../iconStyles");
|
|
15
15
|
var _excluded = ["user", "size", "color"];
|
|
16
|
-
var _templateObject;
|
|
17
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
17
|
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); }
|
|
19
18
|
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; }
|
|
20
19
|
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; }
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
var BmAvatarWrapper = _styledComponents.default.div.withConfig({
|
|
21
|
+
displayName: "avatars__BmAvatarWrapper"
|
|
22
|
+
})(["display:flex;align-items:center;justify-content:center;height:", ";width:", ";background:", ";border-radius:", ";border:0.071rem solid ", ";"], function (_ref) {
|
|
23
23
|
var size = _ref.size;
|
|
24
24
|
if (size === 'large') return '3.429rem';
|
|
25
25
|
if (size === 'medium') return '2.286rem';
|
|
@@ -11,7 +11,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
var _iconStyles = require("../iconStyles");
|
|
12
12
|
var _colors = require("../colors");
|
|
13
13
|
var _excluded = ["closeButton", "children"];
|
|
14
|
-
var _templateObject, _templateObject2;
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
15
|
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); }
|
|
17
16
|
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; }
|
|
@@ -19,13 +18,14 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
19
18
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
19
|
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."); }
|
|
21
20
|
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); }
|
|
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++)
|
|
23
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
21
|
+
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; }
|
|
22
|
+
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; } }
|
|
24
23
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
24
|
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; }
|
|
26
25
|
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; }
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
var BannerCardWrapper = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "bannerCards__BannerCardWrapper"
|
|
28
|
+
})(["display:", ";flex-direction:column;padding:0.5rem;border:0.071rem ", " ", ";border-radius:0.25rem;align-items:", ";background:", "};> *:not(:last-child){margin-bottom:0.5rem;}"], function (_ref) {
|
|
29
29
|
var closeButton = _ref.closeButton,
|
|
30
30
|
show = _ref.show;
|
|
31
31
|
if (!closeButton) {
|
|
@@ -55,7 +55,9 @@ var BannerCardWrapper = _styledComponents.default.div(_templateObject || (_templ
|
|
|
55
55
|
if (!bannerBg) return 'none';
|
|
56
56
|
return bannerBg;
|
|
57
57
|
});
|
|
58
|
-
var BannerComponent = _styledComponents.default.div(
|
|
58
|
+
var BannerComponent = _styledComponents.default.div.withConfig({
|
|
59
|
+
displayName: "bannerCards__BannerComponent"
|
|
60
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;"]);
|
|
59
61
|
var BmBanner = function BmBanner(_ref6) {
|
|
60
62
|
var closeButton = _ref6.closeButton,
|
|
61
63
|
children = _ref6.children,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _polished = require("polished");
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _colors = require("../colors");
|
|
10
|
+
var _tabs = require("../Tabs/tabs");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
/* eslint-disable consistent-return */
|
|
13
|
+
/* eslint-disable no-unused-vars */
|
|
14
|
+
|
|
15
|
+
var BmButtonGroup = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "buttonGroup__BmButtonGroup"
|
|
17
|
+
})(["display:inline-flex;border:0.071rem solid ", ";background:", ";padding:0.25rem;"], _colors.BmPrimaryWhite, function (props) {
|
|
18
|
+
return props.bgColor ? props.bgColor : _colors.BmGrey50;
|
|
19
|
+
});
|
|
20
|
+
var Item = (0, _styledComponents.default)(_tabs.BmTab).withConfig({
|
|
21
|
+
displayName: "buttonGroup__Item"
|
|
22
|
+
})(["", ";box-shadow:none !important;background:", ";border-radius:0rem;padding:0.5rem 2rem;&:hover{background:", ";}"], function (_ref) {
|
|
23
|
+
var active = _ref.active;
|
|
24
|
+
return active && " \n border: 0.071rem solid ".concat(_colors.BmPrimaryWhite, ";\n background: ").concat(_colors.BmPrimaryWhite, " !important;\n ");
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.bgColor ? props.bgColor : _colors.BmGrey50;
|
|
27
|
+
}, function (_ref2) {
|
|
28
|
+
var bgColor = _ref2.bgColor,
|
|
29
|
+
active = _ref2.active;
|
|
30
|
+
if (!active) {
|
|
31
|
+
if (bgColor) return "".concat((0, _polished.darken)(0.1, bgColor));
|
|
32
|
+
return "".concat((0, _polished.darken)(0.1, _colors.BmGrey50));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
BmButtonGroup.Item = Item;
|
|
36
|
+
var _default = BmButtonGroup;
|
|
37
|
+
exports.default = _default;
|
|
@@ -12,11 +12,9 @@ var _Badge = _interopRequireDefault(require("@material-ui/core/Badge"));
|
|
|
12
12
|
var _colors = require("../colors");
|
|
13
13
|
var _typography = require("../typography");
|
|
14
14
|
var _excluded = ["icon", "badgeContent", "badgeColor", "size"];
|
|
15
|
-
var _templateObject;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
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; }
|
|
18
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; }
|
|
19
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
20
18
|
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); }
|
|
21
19
|
var size = function size(props) {
|
|
22
20
|
if (props.size === 'small') return '1.429rem';
|
|
@@ -89,7 +87,9 @@ var BmIcon = (0, _styles.withStyles)(AlertIcon)(function (props) {
|
|
|
89
87
|
return null;
|
|
90
88
|
});
|
|
91
89
|
exports.BmIcon = BmIcon;
|
|
92
|
-
var BmBtnIconWrapper = _styledComponents.default.button(
|
|
90
|
+
var BmBtnIconWrapper = _styledComponents.default.button.withConfig({
|
|
91
|
+
displayName: "buttonAlertIcons__BmBtnIconWrapper"
|
|
92
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0.536rem;border:none;background:none;"]);
|
|
93
93
|
exports.BmBtnIconWrapper = BmBtnIconWrapper;
|
|
94
94
|
var BmAlertIcon = function BmAlertIcon(props) {
|
|
95
95
|
var icon = props.icon,
|
|
@@ -11,20 +11,20 @@ var _buttonIconsOnly = require("./buttonIconsOnly");
|
|
|
11
11
|
var _buttons = require("./buttons");
|
|
12
12
|
var _colors = require("../colors");
|
|
13
13
|
var _excluded = ["children"];
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
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); }
|
|
17
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; }
|
|
18
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; }
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
var ButtonDropdownWrapper = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "buttonDropdowncopy__ButtonDropdownWrapper"
|
|
20
|
+
})(["display:flex;&:hover{background:", ";border:0.071rem solid ", ";}&:active{background:", ";box-shadow:", ";border:0.071rem solid ", ";}"], function (_ref) {
|
|
21
21
|
var variant = _ref.variant,
|
|
22
22
|
disabled = _ref.disabled;
|
|
23
23
|
if (!disabled) {
|
|
24
|
-
if (variant ===
|
|
25
|
-
if (variant ===
|
|
26
|
-
if (variant ===
|
|
27
|
-
if (variant ===
|
|
24
|
+
if (variant === 'primary') return "".concat(_colors.BmSecondaryCyan);
|
|
25
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey50);
|
|
26
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryGreen8);
|
|
27
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed8);
|
|
28
28
|
if (!variant) {
|
|
29
29
|
return "".concat(_colors.BmSecondaryCyan);
|
|
30
30
|
}
|
|
@@ -33,17 +33,17 @@ var ButtonDropdownWrapper = _styledComponents.default.div(_templateObject || (_t
|
|
|
33
33
|
var variant = _ref2.variant,
|
|
34
34
|
disabled = _ref2.disabled;
|
|
35
35
|
if (!disabled) {
|
|
36
|
-
if (variant ===
|
|
36
|
+
if (variant === 'secondary') return "".concat(_colors.BmSecondaryCyan);
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return 'none';
|
|
39
39
|
}, function (_ref3) {
|
|
40
40
|
var variant = _ref3.variant,
|
|
41
41
|
disabled = _ref3.disabled;
|
|
42
42
|
if (!disabled) {
|
|
43
|
-
if (variant ===
|
|
44
|
-
if (variant ===
|
|
45
|
-
if (variant ===
|
|
46
|
-
if (variant ===
|
|
43
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryBlue);
|
|
44
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey100);
|
|
45
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
46
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
47
47
|
if (!variant) {
|
|
48
48
|
return "".concat(_colors.BmPrimaryBlue);
|
|
49
49
|
}
|
|
@@ -52,70 +52,71 @@ var ButtonDropdownWrapper = _styledComponents.default.div(_templateObject || (_t
|
|
|
52
52
|
var variant = _ref4.variant,
|
|
53
53
|
disabled = _ref4.disabled;
|
|
54
54
|
if (!disabled) {
|
|
55
|
-
if (variant ===
|
|
55
|
+
if (variant === 'primary' || variant === 'success' || variant === 'destructive') return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
|
|
56
56
|
if (!variant) {
|
|
57
|
-
return
|
|
57
|
+
return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, function (_ref5) {
|
|
61
61
|
var variant = _ref5.variant,
|
|
62
62
|
disabled = _ref5.disabled;
|
|
63
63
|
if (!disabled) {
|
|
64
|
-
if (variant ===
|
|
64
|
+
if (variant === 'secondary') return "".concat(_colors.BmPrimaryBlue);
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return 'none';
|
|
67
67
|
});
|
|
68
|
-
var Dropdown = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon)
|
|
68
|
+
var Dropdown = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig({
|
|
69
|
+
displayName: "buttonDropdowncopy__Dropdown"
|
|
70
|
+
})(["background:", ";border:0.0625rem solid ", ";border-left:0.071rem solid ", ";border-top-left-radius:0.071rem;border-bottom-left-radius:0.071rem;padding:0rem;"], function (_ref6) {
|
|
69
71
|
var variant = _ref6.variant,
|
|
70
72
|
disabled = _ref6.disabled;
|
|
71
73
|
if (!disabled) {
|
|
72
|
-
if (variant ===
|
|
73
|
-
if (variant ===
|
|
74
|
-
if (variant ===
|
|
75
|
-
if (variant ===
|
|
76
|
-
if (variant ===
|
|
77
|
-
if (variant ===
|
|
74
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryBlue);
|
|
75
|
+
if (variant === 'secondary') return 'none';
|
|
76
|
+
if (variant === 'tertiary') return 'none';
|
|
77
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
78
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
79
|
+
if (variant === 'neutral') return "".concat(_colors.BmPrimaryWhite);
|
|
78
80
|
return "".concat(_colors.BmPrimaryBlue);
|
|
79
|
-
} else {
|
|
80
|
-
if (variant === "primary") return "".concat(_colors.BmGrey100);
|
|
81
|
-
if (variant === "secondary") return "none";
|
|
82
|
-
if (variant === "tertiary") return "none";
|
|
83
|
-
return "".concat(_colors.BmGrey100);
|
|
84
81
|
}
|
|
82
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
83
|
+
if (variant === 'secondary') return 'none';
|
|
84
|
+
if (variant === 'tertiary') return 'none';
|
|
85
|
+
return "".concat(_colors.BmGrey100);
|
|
85
86
|
}, function (_ref7) {
|
|
86
87
|
var variant = _ref7.variant,
|
|
87
88
|
disabled = _ref7.disabled;
|
|
88
89
|
if (!disabled) {
|
|
89
|
-
if (variant ===
|
|
90
|
-
if (variant ===
|
|
91
|
-
if (variant ===
|
|
92
|
-
if (variant ===
|
|
93
|
-
if (variant ===
|
|
94
|
-
if (variant ===
|
|
90
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryBlue);
|
|
91
|
+
if (variant === 'secondary') return "".concat(_colors.BmPrimaryBlue);
|
|
92
|
+
if (variant === 'tertiary') return 'transparent';
|
|
93
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
94
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
95
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
95
96
|
return "".concat(_colors.BmPrimaryBlue);
|
|
96
|
-
} else {
|
|
97
|
-
if (variant === "primary") return "".concat(_colors.BmGrey100);
|
|
98
|
-
if (variant === "secondary") return "".concat(_colors.BmGrey400);
|
|
99
|
-
if (variant === "tertiary") return "transparent";
|
|
100
97
|
}
|
|
98
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
99
|
+
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
100
|
+
if (variant === 'tertiary') return 'transparent';
|
|
101
101
|
}, function (_ref8) {
|
|
102
102
|
var variant = _ref8.variant,
|
|
103
103
|
disabled = _ref8.disabled;
|
|
104
104
|
if (!disabled) {
|
|
105
|
-
if (variant ===
|
|
106
|
-
if (variant ===
|
|
107
|
-
if (variant ===
|
|
108
|
-
if (variant ===
|
|
109
|
-
if (variant ===
|
|
110
|
-
if (variant ===
|
|
105
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
106
|
+
if (variant === 'secondary') return "".concat(_colors.BmPrimaryBlue);
|
|
107
|
+
if (variant === 'tertiary') return 'transparent';
|
|
108
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
109
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
110
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
111
111
|
return "".concat(_colors.BmPrimaryWhite);
|
|
112
|
-
} else {
|
|
113
|
-
if (variant === "primary") return "".concat(_colors.BmGrey400);
|
|
114
|
-
if (variant === "secondary") return "".concat(_colors.BmGrey400);
|
|
115
|
-
if (variant === "tertiary") return "transparent";
|
|
116
112
|
}
|
|
113
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey400);
|
|
114
|
+
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
115
|
+
if (variant === 'tertiary') return 'transparent';
|
|
117
116
|
});
|
|
118
|
-
var Button = (0, _styledComponents.default)(_buttons.BmButton)(
|
|
117
|
+
var Button = (0, _styledComponents.default)(_buttons.BmButton).withConfig({
|
|
118
|
+
displayName: "buttonDropdowncopy__Button"
|
|
119
|
+
})(["border-top-right-radius:0.071rem;border-bottom-right-radius:0.071rem;border-radius:none;border-right:none;"]);
|
|
119
120
|
exports.Button = Button;
|
|
120
121
|
var BmButtonDropDown = function BmButtonDropDown(_ref9) {
|
|
121
122
|
var children = _ref9.children,
|
|
@@ -13,8 +13,8 @@ var BmButtonDropdown = function BmButtonDropdown(_ref) {
|
|
|
13
13
|
var children = _ref.children;
|
|
14
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
15
|
style: {
|
|
16
|
-
display:
|
|
17
|
-
flexDirection:
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'row'
|
|
18
18
|
}
|
|
19
19
|
}, /*#__PURE__*/React.createElement(_buttons.BmButton, null, children), /*#__PURE__*/React.createElement(_buttons.BmButton, {
|
|
20
20
|
leadingIcon: /*#__PURE__*/React.createElement(_icons.KeyboardArrowDown, null)
|
|
@@ -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 = ["variant", "size", "disabled", "children", "icon", "color"];
|
|
13
|
-
var _templateObject, _templateObject2;
|
|
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 BeemButtonIcon = _styledComponents.default.button.withConfig({
|
|
18
|
+
displayName: "buttonIconsOnly__BeemButtonIcon"
|
|
19
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:center;background:", ";border:0.071rem solid ", ";box-sizing:border-box;border-radius:0.25rem;padding:0rem;"], function (_ref) {
|
|
20
20
|
var variant = _ref.variant,
|
|
21
21
|
disabled = _ref.disabled,
|
|
22
22
|
color = _ref.color;
|
|
@@ -49,7 +49,9 @@ var BeemButtonIcon = _styledComponents.default.button(_templateObject || (_templ
|
|
|
49
49
|
}
|
|
50
50
|
return "".concat(_colors.BmGrey100);
|
|
51
51
|
});
|
|
52
|
-
var BmIconWrapper = _styledComponents.default.div(
|
|
52
|
+
var BmIconWrapper = _styledComponents.default.div.withConfig({
|
|
53
|
+
displayName: "buttonIconsOnly__BmIconWrapper"
|
|
54
|
+
})(["padding:0.5rem !important;"]);
|
|
53
55
|
exports.BmIconWrapper = BmIconWrapper;
|
|
54
56
|
var BmBtnIcon = function BmBtnIcon(props) {
|
|
55
57
|
var variant = props.variant,
|
|
@@ -12,13 +12,13 @@ var _colors = require("../colors");
|
|
|
12
12
|
var _iconStyles = require("../iconStyles");
|
|
13
13
|
var _text = require("../text");
|
|
14
14
|
var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color", "type"];
|
|
15
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
-
|
|
21
|
-
|
|
19
|
+
var ButtonText = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "buttons__ButtonText"
|
|
21
|
+
})(["", " text-align:center;color:", ";padding:0rem;"], function (_ref) {
|
|
22
22
|
var size = _ref.size;
|
|
23
23
|
if (size === 'large') return "".concat(_text.h3);
|
|
24
24
|
if (size === 'medium') return "".concat(_text.h3);
|
|
@@ -39,7 +39,9 @@ var ButtonText = _styledComponents.default.div(_templateObject || (_templateObje
|
|
|
39
39
|
}
|
|
40
40
|
return "".concat(_colors.BmGrey400);
|
|
41
41
|
});
|
|
42
|
-
var BeemButton = _styledComponents.default.button
|
|
42
|
+
var BeemButton = _styledComponents.default.button.withConfig({
|
|
43
|
+
displayName: "buttons__BeemButton"
|
|
44
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:0.25rem;padding:", ";background:", ";border:0.071rem solid ", ";&:hover{background:", ";border:0.071rem solid ", ";}&:active{background:", ";box-shadow:", ";border:0.071rem solid ", ";}&:hover ", "{color:", ";}&:active ", "{color:", ";}"], function (_ref3) {
|
|
43
45
|
var size = _ref3.size;
|
|
44
46
|
if (size === 'large') return '0.625rem 1.5rem';
|
|
45
47
|
if (size === 'medium') return '0.4375rem 1rem';
|
|
@@ -144,9 +146,13 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
144
146
|
if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
145
147
|
}
|
|
146
148
|
});
|
|
147
|
-
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(
|
|
149
|
+
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon).withConfig({
|
|
150
|
+
displayName: "buttons__BmLeftIcon"
|
|
151
|
+
})(["margin-right:0.5rem;"]);
|
|
148
152
|
exports.BmLeftIcon = BmLeftIcon;
|
|
149
|
-
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(
|
|
153
|
+
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon).withConfig({
|
|
154
|
+
displayName: "buttons__BmRightIcon"
|
|
155
|
+
})(["margin-left:0.5rem;"]);
|
|
150
156
|
exports.BmRightIcon = BmRightIcon;
|
|
151
157
|
var BmButton = function BmButton(props) {
|
|
152
158
|
var variant = props.variant,
|
|
@@ -6,12 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
BmCard.
|
|
15
|
-
|
|
10
|
+
var BmCard = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "cards__BmCard"
|
|
12
|
+
})(["display:flex;flex-direction:column;background:", ";border:0.071rem solid ", ";border-radius:0.25rem;> *{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:0.5rem;}"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
13
|
+
BmCard.Header = _styledComponents.default.div.withConfig({
|
|
14
|
+
displayName: "cards__Header"
|
|
15
|
+
})(["padding:0.5rem 0.5rem 0rem 0.5rem;"]);
|
|
16
|
+
BmCard.Body = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "cards__Body"
|
|
18
|
+
})(["padding:0rem 0.5rem;"]);
|
|
19
|
+
BmCard.Footer = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "cards__Footer"
|
|
21
|
+
})(["border-top:0.071rem solid ", ";padding:0.5rem 0.5rem 0rem 0.5rem;"], _colors.BmGrey400);
|
|
16
22
|
var _default = BmCard;
|
|
17
23
|
exports.default = _default;
|