beem-component 1.0.0 → 1.0.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/.storybook/favicon.ico +0 -0
- package/.storybook/logo-blue.png +0 -0
- package/.storybook/main.js +15 -0
- package/.storybook/manager-head.html +14 -0
- package/.storybook/manager.js +6 -0
- package/.storybook/preview.js +10 -0
- package/.storybook/theme.js +10 -0
- package/Dockerfile +30 -0
- package/Jenkinsfile +73 -0
- package/build-storybook.log +14621 -0
- package/dist/assets/beem.jpeg +0 -0
- package/dist/components/{Accordion.js → Accordion/Accordion.js} +12 -6
- package/dist/components/Accordion/Accordion.stories.js +86 -0
- package/dist/components/{avatars.js → Avatars/avatars.js} +31 -11
- package/dist/components/Avatars/avatars.stories.js +69 -0
- package/dist/components/Buttons/Stories/basicbutton.stories.js +67 -0
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +65 -0
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +65 -0
- package/dist/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +17 -9
- package/dist/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +13 -4
- package/dist/components/{buttons.js → Buttons/buttons.js} +11 -10
- package/dist/components/{Reports → Cards}/cards.js +9 -24
- package/dist/components/Cards/cards.stories.js +61 -0
- package/dist/components/Chats/chat.js +1 -1
- package/dist/components/Chats/chatInput.js +1 -1
- package/dist/components/Chats/chatwrapper.js +1 -1
- package/dist/components/Lists/listBox.js +41 -0
- package/dist/components/Lists/listBox.stories.js +78 -0
- package/dist/components/Lists/listHeader.stories.js +58 -0
- package/dist/components/Lists/listheader.js +17 -12
- package/dist/components/Lists/rowLabels.js +34 -16
- package/dist/components/Lists/rowLabels.stories.js +85 -0
- package/dist/components/{loaders.js → Loader/loader.js} +13 -7
- package/dist/components/Loader/loader.stories.js +52 -0
- package/dist/components/{Reports/buttons.js → MainWrapper/index.js} +5 -3
- package/dist/components/Modals/modal copy.js +160 -0
- package/dist/components/Modals/modal.js +166 -0
- package/dist/components/Modals/modals.stories.js +117 -0
- package/dist/components/{infoNote.js → NoteBar.js/noteBar.js} +23 -19
- package/dist/components/NoteBar.js/noteBar.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performanceIndicator.js +68 -0
- package/dist/components/Pills/pills.js +126 -0
- package/dist/components/Pills/pills.stories.js +110 -0
- package/dist/components/{progressbar.js → ProgressBar/progressbar.js} +8 -2
- package/dist/components/ProgressBar/progressbar.stories.js +45 -0
- package/dist/components/{Link.js → RouteLink/link.js} +3 -3
- package/dist/components/RouteLink/link.stories.js +29 -0
- package/dist/components/SuperFluid/ContentTitle.js/index.js +1 -1
- package/dist/components/SuperFluid/SegmentCard/index.js +1 -1
- package/dist/components/Tabs/tabs.js +85 -0
- package/dist/components/Tabs/tabs.stories.js +59 -0
- package/dist/components/breakpoints.js +18 -0
- package/dist/components/chatHeader.js +1 -1
- package/dist/components/checkboxToggler.js +2 -2
- package/dist/components/colors.js +5 -3
- package/dist/components/contacts.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdownButton.js +3 -3
- package/dist/components/dropdownItems.js +1 -1
- package/dist/components/example.js +47 -0
- package/dist/components/iconStyles.js +69 -119
- package/dist/components/index-copy.js +1285 -0
- package/dist/components/index.js +80 -1155
- package/dist/components/input.js +9 -3
- package/dist/components/logo.js +1 -1
- package/dist/components/navbar.js +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/typography.js +1 -1
- package/nginx.conf +17 -0
- package/package.json +29 -11
- package/public/favicon.ico +0 -0
- package/public/index.html +1 -1
- package/src/App.js +10 -29
- package/src/examples/Navbar.js +1 -1
- package/src/lib/assets/beem.jpeg +0 -0
- package/src/lib/components/{Accordion.js → Accordion/Accordion.js} +5 -4
- package/src/lib/components/Accordion/Accordion.stories.js +63 -0
- package/src/lib/components/{avatars.js → Avatars/avatars.js} +24 -8
- package/src/lib/components/Avatars/avatars.stories.js +45 -0
- package/src/lib/components/Buttons/Stories/basicbutton.stories.js +51 -0
- package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +42 -0
- package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +49 -0
- package/src/lib/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +20 -9
- package/src/lib/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +12 -2
- package/src/lib/components/{buttons.js → Buttons/buttons.js} +10 -10
- package/src/lib/components/{Reports → Cards}/cards.js +10 -18
- package/src/lib/components/Cards/cards.stories.js +52 -0
- package/src/lib/components/Lists/listBox.js +34 -0
- package/src/lib/components/Lists/listBox.stories.js +47 -0
- package/src/lib/components/Lists/listHeader.stories.js +36 -0
- package/src/lib/components/Lists/listheader.js +17 -11
- package/src/lib/components/Lists/rowLabels.js +47 -16
- package/src/lib/components/Lists/rowLabels.stories.js +59 -0
- package/src/lib/components/{loaders.js → Loader/loader.js} +18 -7
- package/src/lib/components/Loader/loader.stories.js +30 -0
- package/src/lib/components/MainWrapper/index.js +7 -0
- package/src/lib/components/Modals/modal copy.js +159 -0
- package/src/lib/components/Modals/modal.js +152 -0
- package/src/lib/components/Modals/modals.stories.js +82 -0
- package/src/lib/components/{infoNote.js → NoteBar.js/noteBar.js} +24 -25
- package/src/lib/components/NoteBar.js/noteBar.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performanceIndicator.js +56 -0
- package/src/lib/components/Pills/pills.js +91 -0
- package/src/lib/components/Pills/pills.stories.js +74 -0
- package/src/lib/components/{progressbar.js → ProgressBar/progressbar.js} +8 -1
- package/src/lib/components/ProgressBar/progressbar.stories.js +26 -0
- package/src/lib/components/{Link.js → RouteLink/link.js} +5 -5
- package/src/lib/components/RouteLink/link.stories.js +21 -0
- package/src/lib/components/Tabs/tabs.js +84 -0
- package/src/lib/components/Tabs/tabs.stories.js +36 -0
- package/src/lib/components/breakpoints.js +11 -0
- package/src/lib/components/colors.js +2 -0
- package/src/lib/components/dropdownButton.js +2 -2
- package/src/lib/components/example.js +30 -0
- package/src/lib/components/iconStyles.js +46 -101
- package/src/lib/components/index-copy.js +468 -0
- package/src/lib/components/index.js +39 -446
- package/src/lib/components/input.js +8 -2
- package/src/lib/components/sidebar.js +1 -1
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +2 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/0.96c45dd8.iframe.bundle.js +1 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +3 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +1 -0
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +1 -0
- package/storybook-static/2.24353ddc.iframe.bundle.js +1 -0
- package/storybook-static/3.8bb2173c.iframe.bundle.js +1 -0
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +1 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +2 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +1 -0
- package/storybook-static/7.f0cfc757.iframe.bundle.js +1 -0
- package/storybook-static/8.91de97de.iframe.bundle.js +3 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.map +1 -0
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +1 -0
- package/storybook-static/9.40ec65d6.iframe.bundle.js +1 -0
- package/storybook-static/asset-manifest.json +30 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +348 -0
- package/storybook-static/index.html +110 -0
- package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -0
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css +4 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +1 -0
- package/storybook-static/static/media/OpenSans-Regular.1b0809d5.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.1eae2d48.woff2 +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff6749.eot +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff971f.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.850fc4f3.svg +3066 -0
- package/storybook-static/static/media/PoppinsBold.b33c148b.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.0ba26f6c.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.49b46ace.eot +0 -0
- package/storybook-static/static/media/PoppinsMedium.57a99fa8.woff2 +0 -0
- package/storybook-static/static/media/PoppinsMedium.b7e43707.svg +3103 -0
- package/storybook-static/static/media/PoppinsMedium.c98dddbd.ttf +0 -0
- package/storybook-static/static/media/PoppinsRegular.13b9af9c.eot +0 -0
- package/storybook-static/static/media/PoppinsRegular.43e9b50d.svg +3138 -0
- package/storybook-static/static/media/PoppinsRegular.4a4d5420.woff +0 -0
- package/storybook-static/static/media/PoppinsRegular.9a7cc7ec.woff2 +0 -0
- package/storybook-static/static/media/PoppinsRegular.e1bc9021.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.5692c77f.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.80138c67.woff +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.c442695a.eot +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.e1948d56.svg +3098 -0
- package/storybook-static/static/media/PoppinsSemiBold.f27050e2.woff2 +0 -0
- package/storybook-static/static/media/logo-blue.bfc5ba6d.png +0 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +2 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt +104 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +3 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt +122 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +1 -0
- package/dist/assets/content_copy_black.svg +0 -1
- package/dist/assets/profile-pic.jpg +0 -0
- package/dist/components/Accordicon.js +0 -51
- package/dist/components/CustomerInfo/customerInfo.js +0 -89
- package/dist/components/CustomerInfo/customerInfoBar.js +0 -24
- package/dist/components/CustomerInfo/infoAccordion.js +0 -78
- package/dist/components/CustomerInfo/labelsInfo.js +0 -37
- package/dist/components/CustomerInfo/notesInfo.js +0 -39
- package/dist/components/Modals/modalBody.js +0 -61
- package/dist/components/Modals/noteModalBody.js +0 -20
- package/dist/components/Modals/noteModalFooter.js +0 -24
- package/dist/components/Modals/noteModalHeader.js +0 -93
- package/dist/components/Reports/charts.js +0 -70
- package/dist/components/Reports/infoHeader.js +0 -65
- package/dist/components/Reports/reportsBody.js +0 -28
- package/dist/components/Reports/title.js +0 -28
- package/dist/components/performanceIndicator.js +0 -41
- package/dist/components/pills.js +0 -73
- package/src/App1.js +0 -229
- package/src/CHAT.js +0 -170
- package/src/Complete.js +0 -48
- package/src/CreateSegments.js +0 -48
- package/src/FileUploadSFL.js +0 -110
- package/src/examples/CustomerInfo.js +0 -248
- package/src/lib/assets/content_copy_black.svg +0 -1
- package/src/lib/assets/profile-pic.jpg +0 -0
- package/src/lib/components/Accordicon.js +0 -43
- package/src/lib/components/CustomerInfo/customerInfo.js +0 -91
- package/src/lib/components/CustomerInfo/customerInfoBar.js +0 -23
- package/src/lib/components/CustomerInfo/infoAccordion.js +0 -96
- package/src/lib/components/CustomerInfo/labelsInfo.js +0 -37
- package/src/lib/components/CustomerInfo/notesInfo.js +0 -61
- package/src/lib/components/Modals/modalBody.js +0 -66
- package/src/lib/components/Modals/noteModalBody.js +0 -10
- package/src/lib/components/Modals/noteModalFooter.js +0 -16
- package/src/lib/components/Modals/noteModalHeader.js +0 -103
- package/src/lib/components/Reports/buttons.js +0 -5
- package/src/lib/components/Reports/charts.js +0 -79
- package/src/lib/components/Reports/infoHeader.js +0 -63
- package/src/lib/components/Reports/reportsBody.js +0 -29
- package/src/lib/components/Reports/title.js +0 -19
- package/src/lib/components/performanceIndicator.js +0 -27
- package/src/lib/components/pills.js +0 -65
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -13,9 +13,11 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
|
|
16
|
-
var _colors = require("
|
|
16
|
+
var _colors = require("../colors");
|
|
17
17
|
|
|
18
|
-
var _iconStyles = require("
|
|
18
|
+
var _iconStyles = require("../iconStyles");
|
|
19
|
+
|
|
20
|
+
var _icons = require("@material-ui/icons");
|
|
19
21
|
|
|
20
22
|
var _excluded = ["children", "disabled", "expandIcon"],
|
|
21
23
|
_excluded2 = ["children", "leadingIcon", "trailingIcon", "size"];
|
|
@@ -28,8 +30,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
28
30
|
|
|
29
31
|
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; }
|
|
30
32
|
|
|
31
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
32
|
-
|
|
33
33
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
34
34
|
|
|
35
35
|
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."); }
|
|
@@ -48,6 +48,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
48
48
|
|
|
49
49
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
50
50
|
|
|
51
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
52
|
+
|
|
51
53
|
var _React$createContext = /*#__PURE__*/_react.default.createContext({}),
|
|
52
54
|
Provider = _React$createContext.Provider,
|
|
53
55
|
Consumer = _React$createContext.Consumer;
|
|
@@ -58,7 +60,11 @@ var Dropdown = function Dropdown(value, rest) {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
if (!value.expandIcon) {
|
|
61
|
-
return value.toggle ? /*#__PURE__*/_react.default.createElement(_iconStyles.
|
|
63
|
+
return value.toggle ? /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, _extends({
|
|
64
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, null)
|
|
65
|
+
}, rest)) : /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, _extends({
|
|
66
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowUp, null)
|
|
67
|
+
}, rest));
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
if (value.expandIcon && value.expandIcon !== "none") {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Accordion = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
11
|
+
|
|
12
|
+
var _addonKnobs = require("@storybook/addon-knobs");
|
|
13
|
+
|
|
14
|
+
var _icons = require("@material-ui/icons");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
19
|
+
var _default = {
|
|
20
|
+
component: _Accordion.default,
|
|
21
|
+
subcomponents: _Accordion.default.Title,
|
|
22
|
+
title: "components/Accordion",
|
|
23
|
+
argTypes: {
|
|
24
|
+
size: {
|
|
25
|
+
options: ["small", "medium", "large"],
|
|
26
|
+
control: {
|
|
27
|
+
type: "select"
|
|
28
|
+
},
|
|
29
|
+
description: "Size of the icons",
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "large"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
description: "Optional",
|
|
36
|
+
defaultValue: {
|
|
37
|
+
summary: false
|
|
38
|
+
},
|
|
39
|
+
control: {
|
|
40
|
+
type: "boolean"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
children: {
|
|
44
|
+
description: "Accordion Title Text",
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: undefined
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
expandIcon: {
|
|
50
|
+
description: "'none' or Material-UI icon (optional)",
|
|
51
|
+
defaultValue: {
|
|
52
|
+
summary: undefined
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
leadingIcon: {
|
|
56
|
+
description: "Material-UI icon(optional)",
|
|
57
|
+
defaultValue: {
|
|
58
|
+
summary: undefined
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
trailingIcon: {
|
|
62
|
+
description: "Material-UI icon(optional)",
|
|
63
|
+
defaultValue: {
|
|
64
|
+
summary: undefined
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.default = _default;
|
|
70
|
+
var optionSize = {
|
|
71
|
+
small: "small",
|
|
72
|
+
medium: "medium",
|
|
73
|
+
large: "large"
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var Accordion = function Accordion() {
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Accordion.default, {
|
|
78
|
+
disabled: (0, _addonKnobs.boolean)("disabled", false)
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_Accordion.default.Title, {
|
|
80
|
+
leadingIcon: /*#__PURE__*/_react.default.createElement(_icons.Home, null),
|
|
81
|
+
trailingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
|
|
82
|
+
size: (0, _addonKnobs.select)("size", optionSize, "large")
|
|
83
|
+
}, /*#__PURE__*/_react.default.createElement("h3", null, (0, _addonKnobs.text)("children", "Accordion"))), /*#__PURE__*/_react.default.createElement(_Accordion.default.Body, null, "Accordion Body")));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.Accordion = Accordion;
|
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmAvatarWrapper = exports.BmAvatar = void 0;
|
|
7
7
|
|
|
8
8
|
var _icons = require("@material-ui/icons");
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
12
14
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
15
|
|
|
14
|
-
var _colors = require("
|
|
16
|
+
var _colors = require("../colors");
|
|
17
|
+
|
|
18
|
+
var _iconStyles = require("../iconStyles");
|
|
15
19
|
|
|
16
|
-
var
|
|
20
|
+
var _SmartToy = _interopRequireDefault(require("@mui/icons-material/SmartToy"));
|
|
17
21
|
|
|
18
|
-
var _excluded = ["user", "size"];
|
|
22
|
+
var _excluded = ["user", "size", "color"];
|
|
19
23
|
|
|
20
24
|
var _templateObject;
|
|
21
25
|
|
|
@@ -35,14 +39,16 @@ var BmAvatarWrapper = _styledComponents.default.div(_templateObject || (_templat
|
|
|
35
39
|
if (size === "medium") return "2.286rem";
|
|
36
40
|
if (size === "small") return "1.714rem";
|
|
37
41
|
if (size === "xsmall") return "1.429rem";
|
|
38
|
-
return "3.429rem";
|
|
42
|
+
if (!size) return "3.429rem";
|
|
43
|
+
return size;
|
|
39
44
|
}, function (_ref2) {
|
|
40
45
|
var size = _ref2.size;
|
|
41
46
|
if (size === "large") return "3.429rem";
|
|
42
47
|
if (size === "medium") return "2.286rem";
|
|
43
48
|
if (size === "small") return "1.714rem";
|
|
44
49
|
if (size === "xsmall") return "1.429rem";
|
|
45
|
-
return "3.429rem";
|
|
50
|
+
if (!size) return "3.429rem";
|
|
51
|
+
return size;
|
|
46
52
|
}, function (_ref3) {
|
|
47
53
|
var user = _ref3.user;
|
|
48
54
|
if (user === "chatbot") return "".concat(_colors.BmPrimaryBlue);
|
|
@@ -67,17 +73,31 @@ exports.BmAvatarWrapper = BmAvatarWrapper;
|
|
|
67
73
|
var BmAvatar = function BmAvatar(props) {
|
|
68
74
|
var user = props.user,
|
|
69
75
|
size = props.size,
|
|
76
|
+
color = props.color,
|
|
70
77
|
rest = _objectWithoutProperties(props, _excluded);
|
|
71
78
|
|
|
72
79
|
return /*#__PURE__*/_react.default.createElement(BmAvatarWrapper, _extends({
|
|
73
80
|
user: user,
|
|
74
81
|
size: size
|
|
75
|
-
}, rest), user === "
|
|
82
|
+
}, rest), user === "employee" && /*#__PURE__*/_react.default.createElement(_iconStyles.BmAvatarIcon, _extends({
|
|
76
83
|
icon: /*#__PURE__*/_react.default.createElement(_icons.Person, null),
|
|
77
|
-
size: size
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
size: size,
|
|
85
|
+
color: color
|
|
86
|
+
}, rest)), user === "chatbot" && /*#__PURE__*/_react.default.createElement(_iconStyles.BmAvatarIcon, _extends({
|
|
87
|
+
icon: /*#__PURE__*/_react.default.createElement(_SmartToy.default, null),
|
|
88
|
+
size: size,
|
|
89
|
+
color: color
|
|
90
|
+
}, rest)), user !== "chatbot" && user !== "employee" && user !== "default" && /*#__PURE__*/_react.default.createElement(_iconStyles.BmAvatarIcon, _extends({
|
|
91
|
+
icon: user,
|
|
92
|
+
size: size,
|
|
93
|
+
color: color
|
|
80
94
|
}, rest)));
|
|
81
95
|
};
|
|
82
96
|
|
|
83
|
-
exports.BmAvatar = BmAvatar;
|
|
97
|
+
exports.BmAvatar = BmAvatar;
|
|
98
|
+
BmAvatar.propTypes = {
|
|
99
|
+
size: _propTypes.default.string,
|
|
100
|
+
type: _propTypes.default.string,
|
|
101
|
+
color: _propTypes.default.string,
|
|
102
|
+
user: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
103
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.CustomAvatar = exports.Avatar = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _avatars = require("./avatars");
|
|
11
|
+
|
|
12
|
+
var _icons = require("@material-ui/icons");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
17
|
+
var _default = {
|
|
18
|
+
component: _avatars.BmAvatar,
|
|
19
|
+
title: "components/Avatars",
|
|
20
|
+
argTypes: {
|
|
21
|
+
size: {
|
|
22
|
+
options: ["xsmall", "small", "medium", "large"],
|
|
23
|
+
control: {
|
|
24
|
+
type: "select"
|
|
25
|
+
},
|
|
26
|
+
description: "Size of the Avatar",
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: "large"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
type: {
|
|
32
|
+
options: ["circle", "square"],
|
|
33
|
+
control: {
|
|
34
|
+
type: "select"
|
|
35
|
+
},
|
|
36
|
+
description: "Shape of the Avatar",
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: "circle"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
user: {
|
|
42
|
+
description: "Type of the Avatar ('chatbot', 'employee' or Material-UI icon)",
|
|
43
|
+
defaultValue: {
|
|
44
|
+
summary: undefined
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.default = _default;
|
|
50
|
+
|
|
51
|
+
var MainAvatar = function MainAvatar(args) {
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_avatars.BmAvatar, args);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var Avatar = MainAvatar.bind({});
|
|
56
|
+
exports.Avatar = Avatar;
|
|
57
|
+
Avatar.args = {
|
|
58
|
+
user: "chatbot",
|
|
59
|
+
size: "large",
|
|
60
|
+
type: "circle"
|
|
61
|
+
};
|
|
62
|
+
var CustomAvatar = MainAvatar.bind({});
|
|
63
|
+
exports.CustomAvatar = CustomAvatar;
|
|
64
|
+
CustomAvatar.args = {
|
|
65
|
+
user: /*#__PURE__*/_react.default.createElement(_icons.Home, null),
|
|
66
|
+
size: "large",
|
|
67
|
+
type: "square",
|
|
68
|
+
color: "#000000"
|
|
69
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.BasicButton = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _buttons = require("../buttons");
|
|
11
|
+
|
|
12
|
+
var _icons = require("@material-ui/icons");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
17
|
+
var _default = {
|
|
18
|
+
component: _buttons.BmButton,
|
|
19
|
+
title: "components/Buttons/Basic",
|
|
20
|
+
argTypes: {
|
|
21
|
+
size: {
|
|
22
|
+
options: ["small", "medium", "large"],
|
|
23
|
+
control: {
|
|
24
|
+
type: "select"
|
|
25
|
+
},
|
|
26
|
+
description: "Size",
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: "large"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
options: ["primary", "secondary", "tertiary", "success", "neutral", "destructive"],
|
|
33
|
+
control: {
|
|
34
|
+
type: "select"
|
|
35
|
+
},
|
|
36
|
+
description: "Variant",
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: "primary"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
leadingIcon: {
|
|
42
|
+
description: "Material UI Icons"
|
|
43
|
+
},
|
|
44
|
+
trailingIcon: {
|
|
45
|
+
description: "Material UI Icons"
|
|
46
|
+
},
|
|
47
|
+
children: {
|
|
48
|
+
description: "Text of the button",
|
|
49
|
+
default: "Button"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.default = _default;
|
|
54
|
+
|
|
55
|
+
var MainButton = function MainButton(args) {
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_buttons.BmButton, args);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var BasicButton = MainButton.bind({});
|
|
60
|
+
exports.BasicButton = BasicButton;
|
|
61
|
+
BasicButton.args = {
|
|
62
|
+
variant: "primary",
|
|
63
|
+
size: "large",
|
|
64
|
+
children: "Button",
|
|
65
|
+
leadingIcon: /*#__PURE__*/_react.default.createElement(_icons.Home, null),
|
|
66
|
+
trailingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null)
|
|
67
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ButtonAlertIcon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _buttonAlertIcons = require("../buttonAlertIcons");
|
|
11
|
+
|
|
12
|
+
var _icons = require("@material-ui/icons");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
17
|
+
var _default = {
|
|
18
|
+
component: _buttonAlertIcons.BmAlertIcon,
|
|
19
|
+
title: "components/Buttons/AlertIcons",
|
|
20
|
+
argTypes: {
|
|
21
|
+
size: {
|
|
22
|
+
options: ["small", "medium", "large"],
|
|
23
|
+
control: {
|
|
24
|
+
type: "select"
|
|
25
|
+
},
|
|
26
|
+
description: "Size",
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: "large"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
description: "Material UI Icons"
|
|
33
|
+
},
|
|
34
|
+
color: {
|
|
35
|
+
description: "Color of the icon",
|
|
36
|
+
defaultValue: {
|
|
37
|
+
summary: "#575757"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
badgeContent: {
|
|
41
|
+
description: "Badge Content"
|
|
42
|
+
},
|
|
43
|
+
badgeColor: {
|
|
44
|
+
description: "Color of the badge content",
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: "#F62E48"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.default = _default;
|
|
52
|
+
|
|
53
|
+
var MainButtonAlertIcon = function MainButtonAlertIcon(args) {
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_buttonAlertIcons.BmAlertIcon, args);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
var ButtonAlertIcon = MainButtonAlertIcon.bind({});
|
|
58
|
+
exports.ButtonAlertIcon = ButtonAlertIcon;
|
|
59
|
+
ButtonAlertIcon.args = {
|
|
60
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.AssignmentLateOutlined, null),
|
|
61
|
+
badgeContent: 4,
|
|
62
|
+
badgeColor: "red",
|
|
63
|
+
size: "large",
|
|
64
|
+
color: "black"
|
|
65
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ButtonIcon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _buttonIconsOnly = require("../buttonIconsOnly");
|
|
11
|
+
|
|
12
|
+
var _icons = require("@material-ui/icons");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
17
|
+
var _default = {
|
|
18
|
+
component: _buttonIconsOnly.BmBtnIcon,
|
|
19
|
+
title: "components/Buttons/IconsOnly",
|
|
20
|
+
argTypes: {
|
|
21
|
+
size: {
|
|
22
|
+
options: ["small", "medium", "large"],
|
|
23
|
+
control: {
|
|
24
|
+
type: "select"
|
|
25
|
+
},
|
|
26
|
+
description: "Size",
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: "large"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
options: ["primary", "secondary", "tertiary", "success", "neutral", "destructive", "active", "enabled"],
|
|
33
|
+
control: {
|
|
34
|
+
type: "select"
|
|
35
|
+
},
|
|
36
|
+
description: "Variant",
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: "primary"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
icon: {
|
|
42
|
+
description: "Material UI Icons"
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
description: "Color of the button",
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: "primary color"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.default = _default;
|
|
53
|
+
|
|
54
|
+
var MainButtonIcon = function MainButtonIcon(args) {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_buttonIconsOnly.BmBtnIcon, args);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var ButtonIcon = MainButtonIcon.bind({});
|
|
59
|
+
exports.ButtonIcon = ButtonIcon;
|
|
60
|
+
ButtonIcon.args = {
|
|
61
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
|
|
62
|
+
size: "large",
|
|
63
|
+
variant: "primary",
|
|
64
|
+
color: undefined
|
|
65
|
+
};
|
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmIcon = exports.BmBtnIconWrapper = exports.BmAlertIcon = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
12
14
|
var _styles = require("@material-ui/core/styles");
|
|
13
15
|
|
|
14
|
-
var _colors = require("
|
|
16
|
+
var _colors = require("../colors");
|
|
15
17
|
|
|
16
18
|
var _Badge = _interopRequireDefault(require("@material-ui/core/Badge"));
|
|
17
19
|
|
|
20
|
+
var _typography = require("../typography");
|
|
21
|
+
|
|
18
22
|
var _excluded = ["icon", "badgeContent", "badgeColor", "size"];
|
|
19
23
|
|
|
20
24
|
var _templateObject;
|
|
@@ -57,7 +61,7 @@ var AlertIcon = {
|
|
|
57
61
|
}
|
|
58
62
|
};
|
|
59
63
|
|
|
60
|
-
var BadgeIcon = function BadgeIcon(
|
|
64
|
+
var BadgeIcon = function BadgeIcon() {
|
|
61
65
|
return {
|
|
62
66
|
badge: {
|
|
63
67
|
height: function height(props) {
|
|
@@ -73,11 +77,10 @@ var BadgeIcon = function BadgeIcon(props) {
|
|
|
73
77
|
return props.badgeColor || "".concat(_colors.BmSecondaryRed);
|
|
74
78
|
},
|
|
75
79
|
color: "".concat(_colors.BmPrimaryWhite),
|
|
76
|
-
fontFamily: "
|
|
80
|
+
fontFamily: "".concat(_typography.PoppinsMedium),
|
|
77
81
|
fontStyle: "normal",
|
|
78
82
|
fontWeight: 500,
|
|
79
83
|
fontSize: "0.643rem",
|
|
80
|
-
lineHeight: "0.929rem",
|
|
81
84
|
display: "flex",
|
|
82
85
|
alignItems: "center",
|
|
83
86
|
textAlign: "center",
|
|
@@ -107,9 +110,7 @@ var BmIcon = (0, _styles.withStyles)(AlertIcon)(function (props) {
|
|
|
107
110
|
});
|
|
108
111
|
exports.BmIcon = BmIcon;
|
|
109
112
|
|
|
110
|
-
var BmBtnIconWrapper = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0.536rem;\n
|
|
111
|
-
/* added */
|
|
112
|
-
);
|
|
113
|
+
var BmBtnIconWrapper = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0.536rem;\n border: none;\n background: none;\n"])));
|
|
113
114
|
|
|
114
115
|
exports.BmBtnIconWrapper = BmBtnIconWrapper;
|
|
115
116
|
|
|
@@ -128,4 +129,11 @@ var BmAlertIcon = function BmAlertIcon(props) {
|
|
|
128
129
|
}, rest)));
|
|
129
130
|
};
|
|
130
131
|
|
|
131
|
-
exports.BmAlertIcon = BmAlertIcon;
|
|
132
|
+
exports.BmAlertIcon = BmAlertIcon;
|
|
133
|
+
BmAlertIcon.propTypes = {
|
|
134
|
+
size: _propTypes.default.string,
|
|
135
|
+
badgeColor: _propTypes.default.string,
|
|
136
|
+
badgeContent: _propTypes.default.string,
|
|
137
|
+
icon: _propTypes.default.node,
|
|
138
|
+
color: _propTypes.default.string
|
|
139
|
+
};
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmIconWrapper = exports.BmBtnIcon = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _colors = require("../colors");
|
|
15
|
+
|
|
16
|
+
var _iconStyles = require("../iconStyles");
|
|
15
17
|
|
|
16
18
|
var _excluded = ["variant", "size", "disabled", "children", "icon", "color"];
|
|
17
19
|
|
|
@@ -89,4 +91,11 @@ var BmBtnIcon = function BmBtnIcon(props) {
|
|
|
89
91
|
})));
|
|
90
92
|
};
|
|
91
93
|
|
|
92
|
-
exports.BmBtnIcon = BmBtnIcon;
|
|
94
|
+
exports.BmBtnIcon = BmBtnIcon;
|
|
95
|
+
BmBtnIcon.propTypes = {
|
|
96
|
+
size: _propTypes.default.string,
|
|
97
|
+
variant: _propTypes.default.string,
|
|
98
|
+
icon: _propTypes.default.node,
|
|
99
|
+
color: _propTypes.default.string,
|
|
100
|
+
disabled: _propTypes.default.bool
|
|
101
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BmRightIcon = exports.BmLeftIcon = exports.BmButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,11 +11,11 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var _colors = require("
|
|
14
|
+
var _colors = require("../colors");
|
|
15
15
|
|
|
16
|
-
var _iconStyles = require("
|
|
16
|
+
var _iconStyles = require("../iconStyles");
|
|
17
17
|
|
|
18
|
-
var _text = require("
|
|
18
|
+
var _text = require("../text");
|
|
19
19
|
|
|
20
20
|
var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color"];
|
|
21
21
|
|
|
@@ -172,9 +172,9 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
175
|
+
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: 0.5rem;\n"])));
|
|
176
176
|
exports.BmLeftIcon = BmLeftIcon;
|
|
177
|
-
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n
|
|
177
|
+
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 0.5rem;\n"])));
|
|
178
178
|
exports.BmRightIcon = BmRightIcon;
|
|
179
179
|
|
|
180
180
|
var BmButton = function BmButton(props) {
|
|
@@ -216,8 +216,9 @@ var BmButton = function BmButton(props) {
|
|
|
216
216
|
exports.BmButton = BmButton;
|
|
217
217
|
BmButton.propTypes = {
|
|
218
218
|
size: _propTypes.default.string,
|
|
219
|
-
variant: _propTypes.default.string
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
variant: _propTypes.default.string,
|
|
220
|
+
leadingIcon: _propTypes.default.node,
|
|
221
|
+
trailingIcon: _propTypes.default.node,
|
|
222
|
+
color: _propTypes.default.string,
|
|
223
|
+
disabled: _propTypes.default.bool
|
|
223
224
|
};
|