beem-component 1.5.7 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +62 -0
- package/.prettierrc +6 -0
- package/babel.config.js +9 -10
- package/dist/components/Accordion/Accordion.js +7 -7
- package/dist/components/Accordion/Accordion.stories.js +28 -28
- package/dist/components/Avatars/avatars.js +22 -22
- package/dist/components/Avatars/avatars.stories.js +17 -17
- package/dist/components/BannerCard/bannerCard.stories.js +12 -12
- package/dist/components/BannerCard/bannerCards.js +14 -14
- package/dist/components/Buttons/Stories/basicbutton.stories.js +23 -23
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +16 -16
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +16 -16
- package/dist/components/Buttons/buttonAlertIcons.js +16 -16
- package/dist/components/Buttons/buttonIconsOnly.js +22 -22
- package/dist/components/Buttons/buttons.js +56 -56
- package/dist/components/Cards/cards.js +1 -1
- package/dist/components/Cards/cards.stories.js +6 -6
- package/dist/components/ChatComponents/ChatBody/chatBody.js +36 -36
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +4 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +1 -1
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +1 -1
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +1 -2
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +1 -1
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.js +1 -1
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +4 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +14 -12
- package/dist/components/Checkbox/checkboxToggler.js +64 -0
- package/dist/components/Checkbox/checkboxToggler.stories.js +92 -0
- package/dist/components/Lists/listBox.js +5 -5
- package/dist/components/Lists/listBox.stories.js +5 -5
- package/dist/components/Lists/listHeader.stories.js +11 -11
- package/dist/components/Lists/listheader.js +4 -4
- package/dist/components/Lists/rowLabels.js +2 -2
- package/dist/components/Lists/rowLabels.stories.js +16 -16
- package/dist/components/Loader/loader.js +7 -7
- package/dist/components/Loader/loader.stories.js +11 -11
- package/dist/components/MessageCounter/MessageCounter.stories.js +13 -13
- package/dist/components/MessageCounter/messageCounter.js +11 -11
- package/dist/components/Modals/modal.js +6 -8
- package/dist/components/Modals/modals.stories.js +6 -6
- package/dist/components/NoteBar/noteBar.js +14 -14
- package/dist/components/NoteBar/noteBar.stories.js +15 -15
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +13 -13
- package/dist/components/PerformanceIndicator/performanceIndicator.js +14 -12
- package/dist/components/Pills/pills.js +10 -10
- package/dist/components/Pills/pills.stories.js +19 -21
- package/dist/components/ProfileIcon/ProfileIcon.js +14 -14
- package/dist/components/ProfileIcon/profileIcon.stories.js +16 -16
- package/dist/components/ProgressBar/progressbar.stories.js +6 -8
- package/dist/components/ProgressRing/progressRing.js +19 -19
- package/dist/components/ProgressRing/progressRing.stories.js +14 -14
- package/dist/components/RouteLink/link.js +3 -3
- package/dist/components/RouteLink/link.stories.js +1 -1
- package/dist/components/ScrollBar/scrollBar.js +9 -9
- package/dist/components/SuperFluid/SegmentCard/index.js +2 -2
- package/dist/components/Tabs/tabs.js +6 -6
- package/dist/components/Tabs/tabs.stories.js +17 -17
- package/dist/components/Tags/tags.js +21 -21
- package/dist/components/Tags/tags.stories.js +16 -16
- package/dist/components/breakpoints.js +3 -3
- package/dist/components/checkbox.js +4 -4
- package/dist/components/colors.js +32 -30
- package/dist/components/dropdownButton.js +35 -35
- package/dist/components/examples/InfoAccordion.js +0 -1
- package/dist/components/iconStyles.js +45 -45
- package/dist/components/index.js +32 -16
- package/dist/components/input.js +16 -16
- package/dist/components/typography.js +14 -14
- package/package.json +54 -31
- package/src/App.js +10 -7
- package/src/index.js +6 -8
- package/src/lib/components/Accordion/Accordion.js +32 -14
- package/src/lib/components/Accordion/Accordion.stories.js +31 -31
- package/src/lib/components/Avatars/avatars.js +33 -28
- package/src/lib/components/Avatars/avatars.stories.js +18 -18
- package/src/lib/components/BannerCard/bannerCard.stories.js +16 -17
- package/src/lib/components/BannerCard/bannerCards.js +18 -18
- package/src/lib/components/Buttons/Stories/basicbutton.stories.js +29 -29
- package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
- package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +24 -24
- package/src/lib/components/Buttons/buttonAlertIcons.js +22 -25
- package/src/lib/components/Buttons/buttonIconsOnly.js +32 -28
- package/src/lib/components/Buttons/buttons.js +70 -73
- package/src/lib/components/Cards/cards.js +2 -3
- package/src/lib/components/Cards/cards.stories.js +10 -10
- package/src/lib/components/ChatComponents/ChatBody/chatBody.js +46 -45
- package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +34 -28
- package/src/lib/components/ChatComponents/ChatBody/sessionDetails.js +2 -2
- package/src/lib/components/ChatComponents/ChatHeader/chatHeader.js +2 -2
- package/src/lib/components/ChatComponents/ChatHeader/chatHeader.stories.js +4 -4
- package/src/lib/components/ChatComponents/ColorPicker/colorPicker.js +2 -2
- package/src/lib/components/ChatComponents/ColorPicker/colorPicker.stories.js +4 -3
- package/src/lib/components/ChatComponents/ContactCards/contactCards.js +7 -5
- package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +6 -6
- package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.js +3 -3
- package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.stories.js +4 -3
- package/src/lib/components/ChatComponents/InfoTab/infoTab.js +2 -2
- package/src/lib/components/ChatComponents/InfoTab/infoTab.stories.js +7 -7
- package/src/lib/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +5 -3
- package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.js +2 -2
- package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +6 -5
- package/src/lib/components/Checkbox/checkboxToggler.js +89 -0
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +48 -0
- package/src/lib/components/Lists/listBox.js +7 -7
- package/src/lib/components/Lists/listBox.stories.js +8 -11
- package/src/lib/components/Lists/listHeader.stories.js +13 -13
- package/src/lib/components/Lists/listheader.js +7 -7
- package/src/lib/components/Lists/rowLabels.js +6 -6
- package/src/lib/components/Lists/rowLabels.stories.js +18 -18
- package/src/lib/components/Loader/loader.js +13 -13
- package/src/lib/components/Loader/loader.stories.js +14 -14
- package/src/lib/components/MainWrapper/index.js +2 -2
- package/src/lib/components/MessageCounter/MessageCounter.stories.js +14 -14
- package/src/lib/components/MessageCounter/messageCounter.js +16 -16
- package/src/lib/components/Modals/modal.js +25 -23
- package/src/lib/components/Modals/modals.stories.js +9 -9
- package/src/lib/components/NoteBar/noteBar.js +20 -20
- package/src/lib/components/NoteBar/noteBar.stories.js +18 -17
- package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
- package/src/lib/components/PerformanceIndicator/performanceIndicator.js +11 -10
- package/src/lib/components/Pills/pills.js +16 -16
- package/src/lib/components/Pills/pills.stories.js +22 -23
- package/src/lib/components/ProfileIcon/ProfileIcon.js +50 -52
- package/src/lib/components/ProfileIcon/profileIcon.stories.js +22 -22
- package/src/lib/components/ProgressBar/progressbar.js +4 -5
- package/src/lib/components/ProgressBar/progressbar.stories.js +8 -9
- package/src/lib/components/ProgressRing/progressRing.js +25 -24
- package/src/lib/components/ProgressRing/progressRing.stories.js +18 -18
- package/src/lib/components/RouteLink/link.js +10 -8
- package/src/lib/components/RouteLink/link.stories.js +4 -4
- package/src/lib/components/ScrollBar/scrollBar.js +15 -14
- package/src/lib/components/SuperFluid/Content/index.js +2 -2
- package/src/lib/components/SuperFluid/ContentTitle.js/index.js +2 -2
- package/src/lib/components/SuperFluid/SegmentCard/index.js +9 -8
- package/src/lib/components/Tabs/tabs.js +11 -11
- package/src/lib/components/Tabs/tabs.stories.js +20 -20
- package/src/lib/components/Tags/tags.js +26 -24
- package/src/lib/components/Tags/tags.stories.js +19 -19
- package/src/lib/components/breakpoints.js +3 -3
- package/src/lib/components/checkbox.js +7 -6
- package/src/lib/components/colors.js +30 -28
- package/src/lib/components/dropdownButton.js +36 -39
- package/src/lib/components/examples/InfoAccordion.js +1 -1
- package/src/lib/components/globalStyles.js +2 -2
- package/src/lib/components/iconStyles.js +45 -48
- package/src/lib/components/index.js +48 -45
- package/src/lib/components/input.js +20 -20
- package/src/lib/components/text.js +1 -1
- package/src/lib/components/typography.js +14 -14
- package/src/reportWebVitals.js +1 -1
- package/dist/components/checkboxToggler.js +0 -50
- package/src/lib/components/checkboxToggler.js +0 -19
|
@@ -11,9 +11,9 @@ var _icons = require("@material-ui/icons");
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var _buttonIconsOnly = require("
|
|
14
|
+
var _buttonIconsOnly = require("./Buttons/buttonIconsOnly");
|
|
15
15
|
|
|
16
|
-
var _buttons = require("
|
|
16
|
+
var _buttons = require("./Buttons/buttons");
|
|
17
17
|
|
|
18
18
|
var _colors = require("./colors");
|
|
19
19
|
|
|
@@ -39,55 +39,55 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon)(_templateO
|
|
|
39
39
|
color = _ref.color;
|
|
40
40
|
|
|
41
41
|
if (!disabled) {
|
|
42
|
-
if (variant ===
|
|
43
|
-
if (variant ===
|
|
44
|
-
if (variant ===
|
|
45
|
-
if (variant ===
|
|
46
|
-
if (variant ===
|
|
47
|
-
if (variant ===
|
|
48
|
-
return "".concat(color
|
|
49
|
-
} else {
|
|
50
|
-
if (variant === "primary") return "".concat(_colors.BmGrey100);
|
|
51
|
-
if (variant === "secondary") return "none";
|
|
52
|
-
if (variant === "tertiary") return "none";
|
|
53
|
-
return "".concat(_colors.BmGrey100);
|
|
42
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
43
|
+
if (variant === 'secondary') return 'none';
|
|
44
|
+
if (variant === 'tertiary') return 'none';
|
|
45
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
46
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
47
|
+
if (variant === 'neutral') return "".concat(_colors.BmPrimaryWhite);
|
|
48
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
54
49
|
}
|
|
50
|
+
|
|
51
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
52
|
+
if (variant === 'secondary') return 'none';
|
|
53
|
+
if (variant === 'tertiary') return 'none';
|
|
54
|
+
return "".concat(_colors.BmGrey100);
|
|
55
55
|
}, function (_ref2) {
|
|
56
56
|
var variant = _ref2.variant,
|
|
57
57
|
disabled = _ref2.disabled,
|
|
58
58
|
color = _ref2.color;
|
|
59
59
|
|
|
60
60
|
if (!disabled) {
|
|
61
|
-
if (variant ===
|
|
62
|
-
if (variant ===
|
|
63
|
-
if (variant ===
|
|
64
|
-
if (variant ===
|
|
65
|
-
if (variant ===
|
|
66
|
-
if (variant ===
|
|
67
|
-
return "".concat(color
|
|
68
|
-
} else {
|
|
69
|
-
if (variant === "primary") return "".concat(_colors.BmGrey100);
|
|
70
|
-
if (variant === "secondary") return "".concat(_colors.BmGrey400);
|
|
71
|
-
if (variant === "tertiary") return "transparent";
|
|
61
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
62
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
63
|
+
if (variant === 'tertiary') return 'transparent';
|
|
64
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
65
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
66
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
67
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
72
68
|
}
|
|
69
|
+
|
|
70
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
71
|
+
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
72
|
+
if (variant === 'tertiary') return 'transparent';
|
|
73
73
|
}, function (_ref3) {
|
|
74
74
|
var variant = _ref3.variant,
|
|
75
75
|
disabled = _ref3.disabled,
|
|
76
76
|
color = _ref3.color;
|
|
77
77
|
|
|
78
78
|
if (!disabled) {
|
|
79
|
-
if (variant ===
|
|
80
|
-
if (variant ===
|
|
81
|
-
if (variant ===
|
|
82
|
-
if (variant ===
|
|
83
|
-
if (variant ===
|
|
84
|
-
if (variant ===
|
|
79
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
80
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
81
|
+
if (variant === 'tertiary') return 'transparent';
|
|
82
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
83
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
84
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
85
85
|
return "".concat(_colors.BmPrimaryWhite);
|
|
86
|
-
} else {
|
|
87
|
-
if (variant === "primary") return "".concat(_colors.BmGrey400);
|
|
88
|
-
if (variant === "secondary") return "".concat(_colors.BmGrey400);
|
|
89
|
-
if (variant === "tertiary") return "transparent";
|
|
90
86
|
}
|
|
87
|
+
|
|
88
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey400);
|
|
89
|
+
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
90
|
+
if (variant === 'tertiary') return 'transparent';
|
|
91
91
|
});
|
|
92
92
|
exports.Drop = Drop;
|
|
93
93
|
var Button = (0, _styledComponents.default)(_buttons.BmButton)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-top-right-radius: 0.071rem; */}\n border-bottom-right-radius: 0.071rem; */}\n border-radius: none;\n border-right: none;\n"])));
|
|
@@ -13,7 +13,6 @@ var _FormAccordion = _interopRequireDefault(require("./lib/components/ChatCompon
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
/* eslint-disable react/prop-types */
|
|
17
16
|
var InfoAccordion = function InfoAccordion() {
|
|
18
17
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Title, null, /*#__PURE__*/_react.default.createElement("h3", null, "Notes")), /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Body, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Label, null, /*#__PURE__*/_react.default.createElement("h4", null, "Hello")), /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Input, {
|
|
19
18
|
placeholder: "Hello"
|
|
@@ -9,21 +9,21 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _styles = require("@material-ui/core/styles");
|
|
11
11
|
|
|
12
|
-
var _colors = require("./colors");
|
|
13
|
-
|
|
14
12
|
var _SvgIcon = _interopRequireDefault(require("@material-ui/core/SvgIcon"));
|
|
15
13
|
|
|
14
|
+
var _colors = require("./colors");
|
|
15
|
+
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
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); }
|
|
19
19
|
|
|
20
20
|
var size = function size(props) {
|
|
21
|
-
if (props.size ===
|
|
22
|
-
if (props.size ===
|
|
23
|
-
if (props.size ===
|
|
24
|
-
if (props.size ===
|
|
25
|
-
if (props.size ===
|
|
26
|
-
if (!props.size) return
|
|
21
|
+
if (props.size === 'xsmall') return '1.143rem !important';
|
|
22
|
+
if (props.size === 'small') return '1.429rem !important';
|
|
23
|
+
if (props.size === 'medium') return '1.714rem !important';
|
|
24
|
+
if (props.size === 'large') return '1.714rem !important';
|
|
25
|
+
if (props.size === 'xlarge') return '2.286rem !important';
|
|
26
|
+
if (!props.size) return '1.714rem !important';
|
|
27
27
|
return props.size;
|
|
28
28
|
}; // Button Icons
|
|
29
29
|
|
|
@@ -42,18 +42,18 @@ var ButtonIcon = {
|
|
|
42
42
|
color = _ref.color;
|
|
43
43
|
|
|
44
44
|
if (!disabled) {
|
|
45
|
-
if (variant ===
|
|
46
|
-
if (variant ===
|
|
47
|
-
if (variant ===
|
|
48
|
-
if (variant ===
|
|
49
|
-
if (variant ===
|
|
50
|
-
if (variant ===
|
|
51
|
-
if (variant ===
|
|
52
|
-
if (variant ===
|
|
45
|
+
if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
|
|
46
|
+
if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
|
|
47
|
+
if (variant === 'destructive') return "".concat(_colors.BmPrimaryWhite);
|
|
48
|
+
if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
|
|
49
|
+
if (variant === 'neutral') return "".concat(color || _colors.BmPrimaryBlue);
|
|
50
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
51
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
52
|
+
if (variant === 'tertiary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
53
53
|
return "".concat(_colors.BmPrimaryWhite);
|
|
54
|
-
} else {
|
|
55
|
-
return "".concat(_colors.BmGrey400);
|
|
56
54
|
}
|
|
55
|
+
|
|
56
|
+
return "".concat(_colors.BmGrey400);
|
|
57
57
|
},
|
|
58
58
|
color: function color(_ref2) {
|
|
59
59
|
var variant = _ref2.variant,
|
|
@@ -62,18 +62,18 @@ var ButtonIcon = {
|
|
|
62
62
|
if (_color) return _color;
|
|
63
63
|
|
|
64
64
|
if (!disabled) {
|
|
65
|
-
if (variant ===
|
|
66
|
-
if (variant ===
|
|
67
|
-
if (variant ===
|
|
68
|
-
if (variant ===
|
|
69
|
-
if (variant ===
|
|
70
|
-
if (variant ===
|
|
71
|
-
if (variant ===
|
|
72
|
-
if (variant ===
|
|
65
|
+
if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
|
|
66
|
+
if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
|
|
67
|
+
if (variant === 'destructive') return "".concat(_colors.BmPrimaryWhite);
|
|
68
|
+
if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
|
|
69
|
+
if (variant === 'neutral') return "".concat(_colors.BmPrimaryBlue);
|
|
70
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
71
|
+
if (variant === 'secondary') return "".concat(_color || _colors.BmPrimaryBlue);
|
|
72
|
+
if (variant === 'tertiary') return "".concat(_color || _colors.BmPrimaryBlue);
|
|
73
73
|
return "".concat(_colors.BmPrimaryWhite);
|
|
74
|
-
} else {
|
|
75
|
-
return "".concat(_colors.BmGrey400);
|
|
76
74
|
}
|
|
75
|
+
|
|
76
|
+
return "".concat(_colors.BmGrey400);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -92,10 +92,10 @@ exports.BmButtonIcon = BmButtonIcon;
|
|
|
92
92
|
var TagIcon = {
|
|
93
93
|
root: {
|
|
94
94
|
height: function height(props) {
|
|
95
|
-
return size(props) ||
|
|
95
|
+
return size(props) || '1.143rem !important';
|
|
96
96
|
},
|
|
97
97
|
width: function width(props) {
|
|
98
|
-
return size(props) ||
|
|
98
|
+
return size(props) || '1.143rem !important';
|
|
99
99
|
},
|
|
100
100
|
fill: function fill(_ref3) {
|
|
101
101
|
var variant = _ref3.variant,
|
|
@@ -105,7 +105,7 @@ var TagIcon = {
|
|
|
105
105
|
return color;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
if (variant ===
|
|
108
|
+
if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
|
|
109
109
|
return "".concat(_colors.BmPrimaryWhite);
|
|
110
110
|
},
|
|
111
111
|
color: function color(_ref4) {
|
|
@@ -116,7 +116,7 @@ var TagIcon = {
|
|
|
116
116
|
return _color2;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
if (variant ===
|
|
119
|
+
if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
|
|
120
120
|
return "".concat(_colors.BmPrimaryWhite);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -135,11 +135,11 @@ var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
|
|
|
135
135
|
exports.BmTagIcon = BmTagIcon;
|
|
136
136
|
|
|
137
137
|
var Avatarsize = function Avatarsize(props) {
|
|
138
|
-
if (props.size ===
|
|
139
|
-
if (props.size ===
|
|
140
|
-
if (props.size ===
|
|
141
|
-
if (props.size ===
|
|
142
|
-
if (!props.size) return
|
|
138
|
+
if (props.size === 'xsmall') return '0.857rem !important';
|
|
139
|
+
if (props.size === 'small') return '1.143rem !important';
|
|
140
|
+
if (props.size === 'medium') return '1.429rem !important';
|
|
141
|
+
if (props.size === 'large') return '2.286rem !important';
|
|
142
|
+
if (!props.size) return '2.286rem !important';
|
|
143
143
|
return props.size;
|
|
144
144
|
};
|
|
145
145
|
|
|
@@ -168,7 +168,7 @@ var BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
return null;
|
|
171
|
-
}); //check on sizing
|
|
171
|
+
}); // check on sizing
|
|
172
172
|
|
|
173
173
|
exports.BmAvatarIcon = BmAvatarIcon;
|
|
174
174
|
var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
@@ -176,7 +176,7 @@ var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
|
176
176
|
action: true
|
|
177
177
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
178
178
|
d: "M19 8.975V6C19 5.46957 18.7893 4.96086 18.4142 4.58579C18.0391 4.21072 17.5304 4 17 4H11V2.688C11.305 2.414 11.5 2.02 11.5 1.578C11.5 1.18018 11.342 0.798647 11.0607 0.517343C10.7794 0.236038 10.3978 0.0780029 10 0.0780029C9.60218 0.0780029 9.22064 0.236038 8.93934 0.517343C8.65804 0.798647 8.5 1.18018 8.5 1.578C8.5 2.02 8.695 2.414 9 2.688V4H3C2.46957 4 1.96086 4.21072 1.58579 4.58579C1.21071 4.96086 1 5.46957 1 6V8.998L0.928 9.003C0.675888 9.02097 0.439955 9.13382 0.26775 9.31883C0.095544 9.50384 -0.000132994 9.74725 1.38752e-07 10V12C1.38752e-07 12.2652 0.105357 12.5196 0.292893 12.7071C0.48043 12.8946 0.734784 13 1 13V18C1 18.5304 1.21071 19.0391 1.58579 19.4142C1.96086 19.7893 2.46957 20 3 20H17C17.5304 20 18.0391 19.7893 18.4142 19.4142C18.7893 19.0391 19 18.5304 19 18V13C19.2652 13 19.5196 12.8946 19.7071 12.7071C19.8946 12.5196 20 12.2652 20 12V10.062C20.0116 9.90681 19.9869 9.75104 19.928 9.607C19.726 9.119 19.293 9.002 19 8.975ZM5 10C5 8.896 5.672 8 6.5 8C7.328 8 8 8.896 8 10C8 11.104 7.328 12 6.5 12C5.672 12 5 11.104 5 10ZM13.998 16C12.997 15.997 6.001 16 6 16V14C6 14 13.001 13.998 14.002 14L13.998 16ZM13.5 12C12.672 12 12 11.104 12 10C12 8.896 12.672 8 13.5 8C14.328 8 15 8.896 15 10C15 11.104 14.328 12 13.5 12Z",
|
|
179
|
-
fill: props.color ||
|
|
179
|
+
fill: props.color || 'white'
|
|
180
180
|
}));
|
|
181
181
|
}); // To be refacotored
|
|
182
182
|
// Emoji Icons
|
|
@@ -187,7 +187,7 @@ var EmojiSize = function EmojiSize() {
|
|
|
187
187
|
// if (props.size === "small") return "1.429rem";
|
|
188
188
|
// if (props.size === "medium") return "1.714rem";
|
|
189
189
|
// if (props.size === "large") return "1.714rem";
|
|
190
|
-
return
|
|
190
|
+
return '2.286rem !important';
|
|
191
191
|
};
|
|
192
192
|
|
|
193
193
|
var EmojiIcon = {
|
|
@@ -222,7 +222,7 @@ var BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
|
|
|
222
222
|
action: true
|
|
223
223
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
224
224
|
d: "M5.33332 23.3932V5.83317H26.6667V13.8332H29.3333V5.83317C29.3333 4.3665 28.1333 3.1665 26.6667 3.1665H5.33332C3.86666 3.1665 2.67999 4.3665 2.67999 5.83317L2.66666 29.8332L7.99999 24.4998H20V21.8332H6.89332L5.33332 23.3932Z",
|
|
225
|
-
fill: props.color ||
|
|
225
|
+
fill: props.color || '#575757'
|
|
226
226
|
}));
|
|
227
227
|
});
|
|
228
228
|
exports.BmQuickReplyIcon = BmQuickReplyIcon;
|
|
@@ -269,16 +269,16 @@ var BmSupport = (0, _styles.withStyles)(icon)(function (props) {
|
|
|
269
269
|
action: true
|
|
270
270
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
271
271
|
d: "M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",
|
|
272
|
-
fill: props.color ||
|
|
272
|
+
fill: props.color || 'black'
|
|
273
273
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
274
274
|
d: "M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",
|
|
275
|
-
fill: props.color ||
|
|
275
|
+
fill: props.color || 'black'
|
|
276
276
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
277
277
|
d: "M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",
|
|
278
|
-
fill: props.color ||
|
|
278
|
+
fill: props.color || 'black'
|
|
279
279
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
280
280
|
d: "M18 11.03C17.7615 9.62413 17.0334 8.34796 15.9444 7.42738C14.8555 6.5068 13.4759 6.00117 12.05 6C9.01997 6 5.75997 8.51 6.01997 12.45C7.2531 11.9454 8.34221 11.1435 9.1902 10.1158C10.0382 9.08808 10.6187 7.86652 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",
|
|
281
|
-
fill: props.color ||
|
|
281
|
+
fill: props.color || 'black'
|
|
282
282
|
}));
|
|
283
283
|
});
|
|
284
284
|
exports.BmSupport = BmSupport;
|
package/dist/components/index.js
CHANGED
|
@@ -101,6 +101,12 @@ Object.defineProperty(exports, "BmCheckbox", {
|
|
|
101
101
|
return _checkbox.BmCheckbox;
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
+
Object.defineProperty(exports, "BmCheckboxToggle", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function get() {
|
|
107
|
+
return _checkboxToggler.BmCheckboxToggle;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
104
110
|
Object.defineProperty(exports, "BmColorPicker", {
|
|
105
111
|
enumerable: true,
|
|
106
112
|
get: function get() {
|
|
@@ -123,13 +129,13 @@ Object.defineProperty(exports, "BmContent", {
|
|
|
123
129
|
Object.defineProperty(exports, "BmContentFooter", {
|
|
124
130
|
enumerable: true,
|
|
125
131
|
get: function get() {
|
|
126
|
-
return
|
|
132
|
+
return _ContentTitle.BmContentFooter;
|
|
127
133
|
}
|
|
128
134
|
});
|
|
129
135
|
Object.defineProperty(exports, "BmContentTitle", {
|
|
130
136
|
enumerable: true,
|
|
131
137
|
get: function get() {
|
|
132
|
-
return
|
|
138
|
+
return _ContentTitle.BmContentTitle;
|
|
133
139
|
}
|
|
134
140
|
});
|
|
135
141
|
Object.defineProperty(exports, "BmCounter", {
|
|
@@ -147,13 +153,13 @@ Object.defineProperty(exports, "BmEmojiIcon", {
|
|
|
147
153
|
Object.defineProperty(exports, "BmFooterLeft", {
|
|
148
154
|
enumerable: true,
|
|
149
155
|
get: function get() {
|
|
150
|
-
return
|
|
156
|
+
return _ContentTitle.BmFooterLeft;
|
|
151
157
|
}
|
|
152
158
|
});
|
|
153
159
|
Object.defineProperty(exports, "BmFooterRight", {
|
|
154
160
|
enumerable: true,
|
|
155
161
|
get: function get() {
|
|
156
|
-
return
|
|
162
|
+
return _ContentTitle.BmFooterRight;
|
|
157
163
|
}
|
|
158
164
|
});
|
|
159
165
|
Object.defineProperty(exports, "BmIcons", {
|
|
@@ -204,6 +210,12 @@ Object.defineProperty(exports, "BmNoteBar", {
|
|
|
204
210
|
return _noteBar.BmNoteBar;
|
|
205
211
|
}
|
|
206
212
|
});
|
|
213
|
+
Object.defineProperty(exports, "BmProfileIcon", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function get() {
|
|
216
|
+
return _ProfileIcon.BmProfileIcon;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
207
219
|
Object.defineProperty(exports, "BmProgressBar", {
|
|
208
220
|
enumerable: true,
|
|
209
221
|
get: function get() {
|
|
@@ -237,43 +249,43 @@ Object.defineProperty(exports, "BmRowLabel", {
|
|
|
237
249
|
Object.defineProperty(exports, "BmSegment", {
|
|
238
250
|
enumerable: true,
|
|
239
251
|
get: function get() {
|
|
240
|
-
return
|
|
252
|
+
return _index2.BmSegment;
|
|
241
253
|
}
|
|
242
254
|
});
|
|
243
255
|
Object.defineProperty(exports, "BmSegmentCard", {
|
|
244
256
|
enumerable: true,
|
|
245
257
|
get: function get() {
|
|
246
|
-
return
|
|
258
|
+
return _index2.BmSegmentCard;
|
|
247
259
|
}
|
|
248
260
|
});
|
|
249
261
|
Object.defineProperty(exports, "BmSegmentCheckBox", {
|
|
250
262
|
enumerable: true,
|
|
251
263
|
get: function get() {
|
|
252
|
-
return
|
|
264
|
+
return _index2.BmSegmentCheckBox;
|
|
253
265
|
}
|
|
254
266
|
});
|
|
255
267
|
Object.defineProperty(exports, "BmSegmentCompleteContent", {
|
|
256
268
|
enumerable: true,
|
|
257
269
|
get: function get() {
|
|
258
|
-
return
|
|
270
|
+
return _index2.BmSegmentCompleteContent;
|
|
259
271
|
}
|
|
260
272
|
});
|
|
261
273
|
Object.defineProperty(exports, "BmSegmentCompleteIcon", {
|
|
262
274
|
enumerable: true,
|
|
263
275
|
get: function get() {
|
|
264
|
-
return
|
|
276
|
+
return _index2.BmSegmentCompleteIcon;
|
|
265
277
|
}
|
|
266
278
|
});
|
|
267
279
|
Object.defineProperty(exports, "BmSegmentCreateContent", {
|
|
268
280
|
enumerable: true,
|
|
269
281
|
get: function get() {
|
|
270
|
-
return
|
|
282
|
+
return _index2.BmSegmentCreateContent;
|
|
271
283
|
}
|
|
272
284
|
});
|
|
273
285
|
Object.defineProperty(exports, "BmSegmentSelector", {
|
|
274
286
|
enumerable: true,
|
|
275
287
|
get: function get() {
|
|
276
|
-
return
|
|
288
|
+
return _index2.BmSegmentSelector;
|
|
277
289
|
}
|
|
278
290
|
});
|
|
279
291
|
Object.defineProperty(exports, "BmSupport", {
|
|
@@ -359,17 +371,21 @@ var _loader = require("./Loader/loader");
|
|
|
359
371
|
|
|
360
372
|
var _checkbox = require("./checkbox");
|
|
361
373
|
|
|
362
|
-
var _tags = require("
|
|
374
|
+
var _tags = require("./Tags/tags");
|
|
363
375
|
|
|
364
|
-
var _bannerCards = _interopRequireDefault(require("
|
|
376
|
+
var _bannerCards = _interopRequireDefault(require("./BannerCard/bannerCards"));
|
|
365
377
|
|
|
366
378
|
var _progressRing = _interopRequireDefault(require("./ProgressRing/progressRing"));
|
|
367
379
|
|
|
380
|
+
var _ProfileIcon = require("./ProfileIcon/ProfileIcon");
|
|
381
|
+
|
|
382
|
+
var _checkboxToggler = require("./Checkbox/checkboxToggler");
|
|
383
|
+
|
|
368
384
|
var _iconStyles = require("./iconStyles");
|
|
369
385
|
|
|
370
386
|
var _noteBar = require("./NoteBar/noteBar");
|
|
371
387
|
|
|
372
|
-
var _MainWrapper = require("
|
|
388
|
+
var _MainWrapper = require("./MainWrapper");
|
|
373
389
|
|
|
374
390
|
var _chatBody = _interopRequireDefault(require("./ChatComponents/ChatBody/chatBody"));
|
|
375
391
|
|
|
@@ -391,9 +407,9 @@ var _colorPicker = require("./ChatComponents/ColorPicker/colorPicker");
|
|
|
391
407
|
|
|
392
408
|
var _index = require("./SuperFluid/Content/index");
|
|
393
409
|
|
|
394
|
-
var
|
|
410
|
+
var _ContentTitle = require("./SuperFluid/ContentTitle.js");
|
|
395
411
|
|
|
396
|
-
var
|
|
412
|
+
var _index2 = require("./SuperFluid/SegmentCard/index");
|
|
397
413
|
|
|
398
414
|
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); }
|
|
399
415
|
|
package/dist/components/input.js
CHANGED
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _iconStyles = require("./iconStyles");
|
|
15
15
|
|
|
16
16
|
var _colors = require("./colors");
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ var BmInputLabel = _styledComponents.default.div(_templateObject || (_templateOb
|
|
|
33
33
|
var state = _ref.state;
|
|
34
34
|
|
|
35
35
|
if (state) {
|
|
36
|
-
if (state ===
|
|
36
|
+
if (state === 'incomplete') return "".concat(_colors.BmSecondaryRed);
|
|
37
37
|
return "".concat(_colors.BmSecondaryGrey);
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -44,7 +44,7 @@ var BmInputField = _styledComponents.default.input(_templateObject2 || (_templat
|
|
|
44
44
|
var state = _ref2.state;
|
|
45
45
|
|
|
46
46
|
if (state) {
|
|
47
|
-
if (state ===
|
|
47
|
+
if (state === 'disabled') return "".concat(_colors.BmGrey400);
|
|
48
48
|
return "".concat(_colors.BmPrimaryBlack);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -53,11 +53,11 @@ var BmInputField = _styledComponents.default.input(_templateObject2 || (_templat
|
|
|
53
53
|
var state = _ref3.state;
|
|
54
54
|
|
|
55
55
|
if (state) {
|
|
56
|
-
if (state ===
|
|
56
|
+
if (state === 'pressed') return "".concat(_colors.BmGrey50); // TODO: to be reviewed
|
|
57
57
|
|
|
58
|
-
if (state ===
|
|
59
|
-
if (state ===
|
|
60
|
-
if (state ===
|
|
58
|
+
if (state === 'positive') return "".concat(_colors.BmSecondaryGreen15);
|
|
59
|
+
if (state === 'negative') return "".concat(_colors.BmSecondaryRed15);
|
|
60
|
+
if (state === 'disabled') return "".concat(_colors.BmGrey100);
|
|
61
61
|
return "".concat(_colors.BmPrimaryWhite);
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -70,9 +70,9 @@ var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templat
|
|
|
70
70
|
var state = _ref4.state;
|
|
71
71
|
|
|
72
72
|
if (state) {
|
|
73
|
-
if (state ===
|
|
74
|
-
if (state ===
|
|
75
|
-
if (state ===
|
|
73
|
+
if (state === 'pressed') return "".concat(_colors.BmGrey50);
|
|
74
|
+
if (state === 'positive') return "".concat(_colors.BmSecondaryGreen15);
|
|
75
|
+
if (state === 'disabled') return "".concat(_colors.BmGrey100);
|
|
76
76
|
return "".concat(_colors.BmPrimaryWhite);
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -81,9 +81,9 @@ var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templat
|
|
|
81
81
|
var state = _ref5.state;
|
|
82
82
|
|
|
83
83
|
if (state) {
|
|
84
|
-
if (state ===
|
|
85
|
-
if (state ===
|
|
86
|
-
if (state ===
|
|
84
|
+
if (state === 'positive') return "0.071rem solid ".concat(_colors.BmSecondaryDarkGreen);
|
|
85
|
+
if (state === 'negative') return "0.071rem solid ".concat(_colors.BmSecondaryRed);
|
|
86
|
+
if (state === 'disabled') return "0.071rem solid ".concat(_colors.BmGrey100);
|
|
87
87
|
return "0.071rem solid ".concat(_colors.BmGrey400);
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -103,11 +103,11 @@ var BmInput = function BmInput(_ref6) {
|
|
|
103
103
|
id: id
|
|
104
104
|
}, rest, {
|
|
105
105
|
state: state,
|
|
106
|
-
disabled: state ===
|
|
107
|
-
})), state && state ===
|
|
106
|
+
disabled: state === 'disabled'
|
|
107
|
+
})), state && state === 'complete' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
108
108
|
icon: /*#__PURE__*/_react.default.createElement(_icons.ErrorOutline, null),
|
|
109
109
|
size: "small"
|
|
110
|
-
}), state && state ===
|
|
110
|
+
}), state && state === 'incomplete' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
111
111
|
icon: /*#__PURE__*/_react.default.createElement(_icons.Done, null),
|
|
112
112
|
size: "small"
|
|
113
113
|
})), label && /*#__PURE__*/_react.default.createElement(BmInputLabel, _extends({
|
|
@@ -4,31 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.QuoteMark = exports.PullQuote = exports.PoppinsMedium = exports.Poppins = exports.P = exports.OpenSans = exports.Hero = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Captions = void 0;
|
|
7
|
-
var H1 =
|
|
7
|
+
var H1 = '2.286rem';
|
|
8
8
|
exports.H1 = H1;
|
|
9
|
-
var H2 =
|
|
9
|
+
var H2 = '1.714rem';
|
|
10
10
|
exports.H2 = H2;
|
|
11
|
-
var H3 =
|
|
11
|
+
var H3 = '1.286rem';
|
|
12
12
|
exports.H3 = H3;
|
|
13
|
-
var H4 =
|
|
13
|
+
var H4 = '1.143rem';
|
|
14
14
|
exports.H4 = H4;
|
|
15
|
-
var H5 =
|
|
15
|
+
var H5 = '0.857rem';
|
|
16
16
|
exports.H5 = H5;
|
|
17
|
-
var H6 =
|
|
17
|
+
var H6 = '0.714rem';
|
|
18
18
|
exports.H6 = H6;
|
|
19
|
-
var P =
|
|
19
|
+
var P = '0.929rem';
|
|
20
20
|
exports.P = P;
|
|
21
|
-
var QuoteMark =
|
|
21
|
+
var QuoteMark = '3.429rem';
|
|
22
22
|
exports.QuoteMark = QuoteMark;
|
|
23
|
-
var PullQuote =
|
|
23
|
+
var PullQuote = '1.286rem';
|
|
24
24
|
exports.PullQuote = PullQuote;
|
|
25
|
-
var Captions =
|
|
25
|
+
var Captions = '0.714rem';
|
|
26
26
|
exports.Captions = Captions;
|
|
27
|
-
var Hero =
|
|
27
|
+
var Hero = '1rem';
|
|
28
28
|
exports.Hero = Hero;
|
|
29
|
-
var PoppinsMedium =
|
|
29
|
+
var PoppinsMedium = 'PoppinsMedium';
|
|
30
30
|
exports.PoppinsMedium = PoppinsMedium;
|
|
31
|
-
var Poppins =
|
|
31
|
+
var Poppins = 'Poppins';
|
|
32
32
|
exports.Poppins = Poppins;
|
|
33
|
-
var OpenSans =
|
|
33
|
+
var OpenSans = 'OpenSans';
|
|
34
34
|
exports.OpenSans = OpenSans;
|