beem-component 1.5.6 → 1.5.9
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 +62 -0
- package/.prettierrc +6 -0
- package/dist/assets/fb.png +0 -0
- package/dist/assets/insta.png +0 -0
- package/dist/assets/wa.png +0 -0
- package/dist/components/Accordion/Accordion.js +31 -64
- package/dist/components/Accordion/Accordion.stories.js +29 -29
- package/dist/components/Avatars/avatars.js +31 -46
- package/dist/components/Avatars/avatars.stories.js +18 -18
- package/dist/components/BannerCard/bannerCard.stories.js +14 -14
- package/dist/components/BannerCard/bannerCards.js +30 -48
- package/dist/components/Buttons/Stories/basicbutton.stories.js +24 -24
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +17 -17
- package/dist/components/Buttons/buttonAlertIcons.js +28 -44
- package/dist/components/Buttons/buttonDropdown copy.js +15 -18
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +35 -49
- package/dist/components/Buttons/buttons.js +75 -86
- package/dist/components/Cards/cards.js +15 -11
- package/dist/components/Cards/cards.stories.js +8 -8
- package/dist/components/ChatComponents/ChatBody/chatBody.js +80 -69
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +6 -6
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +9 -16
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +5 -7
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +5 -7
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +15 -12
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +4 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +14 -10
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.js +11 -9
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +6 -6
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +5 -7
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +11 -9
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +15 -13
- package/dist/components/Chats/chat.js +41 -32
- package/dist/components/Chats/chatInput.js +18 -14
- package/dist/components/Chats/chatwrapper.js +20 -12
- package/dist/components/Checkbox/checkboxToggler.js +61 -0
- package/dist/components/Checkbox/checkboxToggler.stories.js +81 -0
- package/dist/components/Lists/listBox.js +14 -30
- package/dist/components/Lists/listBox.stories.js +12 -23
- package/dist/components/Lists/listHeader.stories.js +13 -13
- package/dist/components/Lists/listheader.js +12 -27
- package/dist/components/Lists/rowLabels.js +19 -30
- package/dist/components/Lists/rowLabels.stories.js +22 -25
- package/dist/components/Loader/loader.js +17 -31
- package/dist/components/Loader/loader.stories.js +13 -13
- package/dist/components/MainWrapper/index.js +5 -7
- package/dist/components/MessageCounter/MessageCounter.stories.js +14 -14
- package/dist/components/MessageCounter/messageCounter.js +16 -18
- package/dist/components/Modals/modal.js +38 -57
- package/dist/components/Modals/modals.stories.js +38 -29
- package/dist/components/NoteBar/noteBar.js +28 -57
- package/dist/components/NoteBar/noteBar.stories.js +17 -17
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
- package/dist/components/PerformanceIndicator/performanceIndicator.js +21 -34
- package/dist/components/Pills/pills.js +24 -56
- package/dist/components/Pills/pills.stories.js +21 -23
- package/dist/components/ProfileIcon/ProfileIcon.js +96 -0
- package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
- package/dist/components/ProgressBar/progressbar.js +15 -17
- package/dist/components/ProgressBar/progressbar.stories.js +8 -10
- package/dist/components/ProgressRing/progressRing.js +38 -54
- package/dist/components/ProgressRing/progressRing.stories.js +16 -16
- package/dist/components/RouteLink/link.js +8 -10
- package/dist/components/RouteLink/link.stories.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +19 -17
- package/dist/components/SuperFluid/Content/index.js +5 -7
- package/dist/components/SuperFluid/ContentTitle.js/index.js +14 -10
- package/dist/components/SuperFluid/SegmentCard/index.js +22 -13
- package/dist/components/Tabs/tabs.js +16 -35
- package/dist/components/Tabs/tabs.stories.js +19 -19
- package/dist/components/Tags/tags.js +33 -65
- package/dist/components/Tags/tags.stories.js +18 -18
- package/dist/components/breakpoints.js +3 -3
- package/dist/components/chatHeader.js +17 -11
- package/dist/components/checkbox.js +27 -26
- package/dist/components/colors.js +32 -30
- package/dist/components/contacts.js +39 -25
- package/dist/components/dropdown.js +29 -35
- package/dist/components/dropdownButton.js +50 -53
- package/dist/components/dropdownItems.js +26 -19
- package/dist/components/examples/App.js +137 -0
- package/dist/components/examples/InfoAccordion.js +23 -0
- package/dist/components/examples/chatBodyExample.js +68 -0
- package/dist/components/examples/selectExample.js +63 -0
- package/dist/components/globalStyles.js +1 -5
- package/dist/components/iconStyles.js +56 -58
- package/dist/components/index.js +35 -23
- package/dist/components/input.js +33 -36
- package/dist/components/logo.js +9 -16
- package/dist/components/navbar.js +24 -13
- package/dist/components/search.js +20 -21
- package/dist/components/text.js +15 -6
- package/dist/components/typography.js +14 -14
- package/dist/components/wrapper.js +8 -8
- package/package.json +54 -30
- package/src/App.js +31 -175
- package/src/index.js +6 -8
- package/src/lib/assets/fb.png +0 -0
- package/src/lib/assets/insta.png +0 -0
- package/src/lib/assets/wa.png +0 -0
- 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 +33 -23
- package/src/lib/components/Modals/modals.stories.js +34 -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 +76 -0
- package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
- 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/App.js +181 -0
- package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +1 -1
- package/src/{App1.js → lib/components/examples/chatBodyExample.js} +2 -2
- package/src/{App copy.js → lib/components/examples/selectExample.js} +0 -0
- package/src/lib/components/globalStyles.js +4 -5
- 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 +17 -3
- package/src/lib/components/typography.js +14 -14
- package/src/reportWebVitals.js +1 -1
- package/babel.config.js +0 -12
- package/dist/components/checkboxToggler.js +0 -50
- package/dist/components/example.js +0 -47
- package/dist/components/sidebar.js +0 -32
- package/dist/components/tabs.js +0 -106
- package/dist/components/tags.js +0 -100
- package/dist/images/azam.png +0 -0
- package/dist/images/azam1.png +0 -0
- package/src/ChatHeader.js +0 -22
- package/src/CustomerInfo.js +0 -46
- package/src/MainChat.js +0 -41
- package/src/SideBar.js +0 -81
- package/src/lib/components/checkboxToggler.js +0 -19
- package/src/lib/components/example.js +0 -30
- package/src/lib/components/sidebar.js +0 -33
- package/src/lib/components/tabs.js +0 -123
- package/src/lib/components/tags.js +0 -101
- package/src/lib/images/azam.png +0 -0
- package/src/lib/images/azam1.png +0 -0
- package/src/list.scss +0 -4
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.Button = exports.BmButtonDropDown = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"));
|
|
11
|
+
|
|
8
12
|
var _react = _interopRequireDefault(require("react"));
|
|
9
13
|
|
|
10
14
|
var _icons = require("@material-ui/icons");
|
|
@@ -19,19 +23,9 @@ var _colors = require("../colors");
|
|
|
19
23
|
|
|
20
24
|
var _excluded = ["children"];
|
|
21
25
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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
|
-
|
|
32
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
33
|
-
|
|
34
|
-
var ButtonDropdownWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n &:hover {\n background: ", ";\n border: 0.071rem solid\n ", ";\n }\n &:active {\n background: ", ";\n box-shadow: ", ";\n border: 0.071rem solid\n ", ";\n }\n"])), function (_ref) {
|
|
26
|
+
var ButtonDropdownWrapper = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "buttonDropdowncopy__ButtonDropdownWrapper"
|
|
28
|
+
})(["display:flex;&:hover{background:", ";border:0.071rem solid ", ";}&:active{background:", ";box-shadow:", ";border:0.071rem solid ", ";}"], function (_ref) {
|
|
35
29
|
var variant = _ref.variant,
|
|
36
30
|
disabled = _ref.disabled;
|
|
37
31
|
|
|
@@ -90,7 +84,9 @@ var ButtonDropdownWrapper = _styledComponents.default.div(_templateObject || (_t
|
|
|
90
84
|
return "none";
|
|
91
85
|
});
|
|
92
86
|
|
|
93
|
-
var Dropdown = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon)
|
|
87
|
+
var Dropdown = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig({
|
|
88
|
+
displayName: "buttonDropdowncopy__Dropdown"
|
|
89
|
+
})(["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) {
|
|
94
90
|
var variant = _ref6.variant,
|
|
95
91
|
disabled = _ref6.disabled;
|
|
96
92
|
|
|
@@ -143,14 +139,15 @@ var Dropdown = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon)(_templ
|
|
|
143
139
|
if (variant === "tertiary") return "transparent";
|
|
144
140
|
}
|
|
145
141
|
});
|
|
146
|
-
var Button = (0, _styledComponents.default)(_buttons.BmButton)(
|
|
142
|
+
var Button = (0, _styledComponents.default)(_buttons.BmButton).withConfig({
|
|
143
|
+
displayName: "buttonDropdowncopy__Button"
|
|
144
|
+
})(["border-top-right-radius:0.071rem;border-bottom-right-radius:0.071rem;border-radius:none;border-right:none;"]);
|
|
147
145
|
exports.Button = Button;
|
|
148
146
|
|
|
149
147
|
var BmButtonDropDown = function BmButtonDropDown(_ref9) {
|
|
150
148
|
var children = _ref9.children,
|
|
151
|
-
rest =
|
|
152
|
-
|
|
153
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ButtonDropdownWrapper, rest, /*#__PURE__*/_react.default.createElement(Button, rest, children), /*#__PURE__*/_react.default.createElement(Dropdown, _extends({}, rest, {
|
|
149
|
+
rest = (0, _objectWithoutProperties2.default)(_ref9, _excluded);
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ButtonDropdownWrapper, rest, /*#__PURE__*/_react.default.createElement(Button, rest, children), /*#__PURE__*/_react.default.createElement(Dropdown, Object.assign({}, rest, {
|
|
154
151
|
icon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, null)
|
|
155
152
|
}))));
|
|
156
153
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -13,8 +15,6 @@ var _buttonIconsOnly = require("./buttonIconsOnly");
|
|
|
13
15
|
|
|
14
16
|
var _buttons = require("./buttons");
|
|
15
17
|
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
18
|
var BmButtonDropdown = function BmButtonDropdown(_ref) {
|
|
19
19
|
var children = _ref.children;
|
|
20
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,73 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.BmIconWrapper = exports.BmBtnIcon = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"));
|
|
11
|
+
|
|
8
12
|
var _react = _interopRequireDefault(require("react"));
|
|
9
13
|
|
|
10
14
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
15
|
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
16
|
var _colors = require("../colors");
|
|
15
17
|
|
|
16
18
|
var _iconStyles = require("../iconStyles");
|
|
17
19
|
|
|
18
20
|
var _excluded = ["variant", "size", "disabled", "children", "icon", "color"];
|
|
19
21
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
-
|
|
28
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
|
|
30
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
31
|
-
|
|
32
|
-
var BeemButtonIcon = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n background: ", ";\n border: 0.071rem solid\n ", ";\n box-sizing: border-box;\n border-radius: 0.25rem;\n padding: 0rem;\n"])), function (_ref) {
|
|
22
|
+
var BeemButtonIcon = _styledComponents.default.button.withConfig({
|
|
23
|
+
displayName: "buttonIconsOnly__BeemButtonIcon"
|
|
24
|
+
})(["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) {
|
|
33
25
|
var variant = _ref.variant,
|
|
34
26
|
disabled = _ref.disabled,
|
|
35
27
|
color = _ref.color;
|
|
36
28
|
|
|
37
29
|
if (!disabled) {
|
|
38
|
-
if (variant ===
|
|
39
|
-
if (variant ===
|
|
40
|
-
if (variant ===
|
|
41
|
-
if (variant ===
|
|
42
|
-
if (variant ===
|
|
43
|
-
if (variant ===
|
|
44
|
-
if (variant ===
|
|
45
|
-
if (variant ===
|
|
46
|
-
return "".concat(color
|
|
47
|
-
} else {
|
|
48
|
-
return "".concat(_colors.BmGrey100);
|
|
30
|
+
if (variant === 'active') return "".concat(_colors.BmPrimaryBlue);
|
|
31
|
+
if (variant === 'enabled') return "".concat(_colors.BmGrey50);
|
|
32
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
33
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
34
|
+
if (variant === 'neutral') return "".concat(_colors.BmPrimaryWhite);
|
|
35
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
36
|
+
if (variant === 'secondary') return "".concat(_colors.BmPrimaryWhite);
|
|
37
|
+
if (variant === 'tertiary') return "".concat(_colors.BmPrimaryWhite);
|
|
38
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
49
39
|
}
|
|
40
|
+
|
|
41
|
+
return "".concat(_colors.BmGrey100);
|
|
50
42
|
}, function (_ref2) {
|
|
51
43
|
var variant = _ref2.variant,
|
|
52
44
|
disabled = _ref2.disabled,
|
|
53
45
|
color = _ref2.color;
|
|
54
46
|
|
|
55
47
|
if (!disabled) {
|
|
56
|
-
if (variant ===
|
|
57
|
-
if (variant ===
|
|
58
|
-
if (variant ===
|
|
59
|
-
if (variant ===
|
|
60
|
-
if (variant ===
|
|
61
|
-
if (variant ===
|
|
62
|
-
if (variant ===
|
|
63
|
-
if (variant ===
|
|
64
|
-
return "".concat(color
|
|
65
|
-
} else {
|
|
66
|
-
return "".concat(_colors.BmGrey100);
|
|
48
|
+
if (variant === 'active') return "".concat(_colors.BmPrimaryBlue);
|
|
49
|
+
if (variant === 'enabled') return "".concat(_colors.BmGrey50);
|
|
50
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
51
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
52
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
53
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
54
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
55
|
+
if (variant === 'tertiary') return "".concat(_colors.BmPrimaryWhite);
|
|
56
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
67
57
|
}
|
|
58
|
+
|
|
59
|
+
return "".concat(_colors.BmGrey100);
|
|
68
60
|
});
|
|
69
61
|
|
|
70
|
-
var BmIconWrapper = _styledComponents.default.div(
|
|
62
|
+
var BmIconWrapper = _styledComponents.default.div.withConfig({
|
|
63
|
+
displayName: "buttonIconsOnly__BmIconWrapper"
|
|
64
|
+
})(["padding:0.5rem !important;"]);
|
|
71
65
|
|
|
72
66
|
exports.BmIconWrapper = BmIconWrapper;
|
|
73
67
|
|
|
@@ -78,9 +72,8 @@ var BmBtnIcon = function BmBtnIcon(props) {
|
|
|
78
72
|
children = props.children,
|
|
79
73
|
icon = props.icon,
|
|
80
74
|
color = props.color,
|
|
81
|
-
rest =
|
|
82
|
-
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement(BeemButtonIcon, _extends({
|
|
75
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(BeemButtonIcon, Object.assign({
|
|
84
77
|
color: color,
|
|
85
78
|
size: size,
|
|
86
79
|
variant: variant,
|
|
@@ -94,11 +87,4 @@ var BmBtnIcon = function BmBtnIcon(props) {
|
|
|
94
87
|
})));
|
|
95
88
|
};
|
|
96
89
|
|
|
97
|
-
exports.BmBtnIcon = BmBtnIcon;
|
|
98
|
-
BmBtnIcon.propTypes = {
|
|
99
|
-
size: _propTypes.default.string,
|
|
100
|
-
variant: _propTypes.default.string,
|
|
101
|
-
icon: _propTypes.default.node,
|
|
102
|
-
color: _propTypes.default.string,
|
|
103
|
-
disabled: _propTypes.default.bool
|
|
104
|
-
};
|
|
90
|
+
exports.BmBtnIcon = BmBtnIcon;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.BmRightIcon = exports.BmLeftIcon = exports.BmButton = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"));
|
|
11
|
+
|
|
8
12
|
var _react = _interopRequireDefault(require("react"));
|
|
9
13
|
|
|
10
14
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
15
|
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
16
|
var _polished = require("polished");
|
|
15
17
|
|
|
16
18
|
var _colors = require("../colors");
|
|
@@ -21,23 +23,13 @@ var _text = require("../text");
|
|
|
21
23
|
|
|
22
24
|
var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color"];
|
|
23
25
|
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
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); }
|
|
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
35
|
-
|
|
36
|
-
var ButtonText = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n text-align: center;\n color: ", ";\n padding: 0rem;\n"])), function (_ref) {
|
|
26
|
+
var ButtonText = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "buttons__ButtonText"
|
|
28
|
+
})(["", " text-align:center;color:", ";padding:0rem;"], function (_ref) {
|
|
37
29
|
var size = _ref.size;
|
|
38
|
-
if (size ===
|
|
39
|
-
if (size ===
|
|
40
|
-
if (size ===
|
|
30
|
+
if (size === 'large') return "".concat(_text.h3);
|
|
31
|
+
if (size === 'medium') return "".concat(_text.h3);
|
|
32
|
+
if (size === 'small') return "".concat(_text.h4);
|
|
41
33
|
return "".concat(_text.h3);
|
|
42
34
|
}, function (_ref2) {
|
|
43
35
|
var variant = _ref2.variant,
|
|
@@ -45,74 +37,76 @@ var ButtonText = _styledComponents.default.div(_templateObject || (_templateObje
|
|
|
45
37
|
color = _ref2.color;
|
|
46
38
|
|
|
47
39
|
if (!disabled) {
|
|
48
|
-
if (variant ===
|
|
49
|
-
if (variant ===
|
|
50
|
-
if (variant ===
|
|
51
|
-
if (variant ===
|
|
52
|
-
if (variant ===
|
|
53
|
-
if (variant ===
|
|
40
|
+
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
41
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
42
|
+
if (variant === 'tertiary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
43
|
+
if (variant === 'destructive') return "".concat(_colors.BmPrimaryWhite);
|
|
44
|
+
if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
|
|
45
|
+
if (variant === 'neutral') return "".concat(color || _colors.BmPrimaryBlue);
|
|
54
46
|
return "".concat(_colors.BmPrimaryWhite);
|
|
55
|
-
} else {
|
|
56
|
-
return "".concat(_colors.BmGrey400);
|
|
57
47
|
}
|
|
48
|
+
|
|
49
|
+
return "".concat(_colors.BmGrey400);
|
|
58
50
|
});
|
|
59
51
|
|
|
60
|
-
var BeemButton = _styledComponents.default.button
|
|
52
|
+
var BeemButton = _styledComponents.default.button.withConfig({
|
|
53
|
+
displayName: "buttons__BeemButton"
|
|
54
|
+
})(["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) {
|
|
61
55
|
var size = _ref3.size;
|
|
62
|
-
if (size ===
|
|
63
|
-
if (size ===
|
|
64
|
-
if (size ===
|
|
65
|
-
return
|
|
56
|
+
if (size === 'large') return '0.625rem 1.5rem';
|
|
57
|
+
if (size === 'medium') return '0.4375rem 1rem';
|
|
58
|
+
if (size === 'small') return '0.375rem 0.75rem';
|
|
59
|
+
return '0.625rem 1.5rem';
|
|
66
60
|
}, function (_ref4) {
|
|
67
61
|
var variant = _ref4.variant,
|
|
68
62
|
disabled = _ref4.disabled,
|
|
69
63
|
color = _ref4.color;
|
|
70
64
|
|
|
71
65
|
if (!disabled) {
|
|
72
|
-
if (variant ===
|
|
73
|
-
if (variant ===
|
|
74
|
-
if (variant ===
|
|
75
|
-
if (variant ===
|
|
76
|
-
if (variant ===
|
|
77
|
-
if (variant ===
|
|
78
|
-
return "".concat(color
|
|
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);
|
|
66
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
67
|
+
if (variant === 'secondary') return 'none';
|
|
68
|
+
if (variant === 'tertiary') return 'none';
|
|
69
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
70
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
71
|
+
if (variant === 'neutral') return "".concat(_colors.BmPrimaryWhite);
|
|
72
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
84
73
|
}
|
|
74
|
+
|
|
75
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
76
|
+
if (variant === 'secondary') return 'none';
|
|
77
|
+
if (variant === 'tertiary') return 'none';
|
|
78
|
+
return "".concat(_colors.BmGrey100);
|
|
85
79
|
}, function (_ref5) {
|
|
86
80
|
var variant = _ref5.variant,
|
|
87
81
|
disabled = _ref5.disabled,
|
|
88
82
|
color = _ref5.color;
|
|
89
83
|
|
|
90
84
|
if (!disabled) {
|
|
91
|
-
if (variant ===
|
|
92
|
-
if (variant ===
|
|
93
|
-
if (variant ===
|
|
94
|
-
if (variant ===
|
|
95
|
-
if (variant ===
|
|
96
|
-
if (variant ===
|
|
97
|
-
return "".concat(color
|
|
98
|
-
} else {
|
|
99
|
-
if (variant === "primary") return "".concat(_colors.BmGrey100);
|
|
100
|
-
if (variant === "secondary") return "".concat(_colors.BmGrey400);
|
|
101
|
-
if (variant === "tertiary") return "transparent";
|
|
85
|
+
if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
86
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
87
|
+
if (variant === 'tertiary') return 'transparent';
|
|
88
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
89
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
90
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey400);
|
|
91
|
+
return "".concat(color || _colors.BmPrimaryBlue);
|
|
102
92
|
}
|
|
93
|
+
|
|
94
|
+
if (variant === 'primary') return "".concat(_colors.BmGrey100);
|
|
95
|
+
if (variant === 'secondary') return "".concat(_colors.BmGrey400);
|
|
96
|
+
if (variant === 'tertiary') return 'transparent';
|
|
103
97
|
}, function (_ref6) {
|
|
104
98
|
var variant = _ref6.variant,
|
|
105
99
|
disabled = _ref6.disabled,
|
|
106
100
|
color = _ref6.color;
|
|
107
101
|
|
|
108
102
|
if (!disabled) {
|
|
109
|
-
if (variant ===
|
|
110
|
-
if (variant ===
|
|
111
|
-
if (variant ===
|
|
112
|
-
if (variant ===
|
|
103
|
+
if (variant === 'primary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
104
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey50);
|
|
105
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryGreen8);
|
|
106
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed8);
|
|
113
107
|
|
|
114
108
|
if (!variant) {
|
|
115
|
-
return "".concat((0, _polished.darken)(0.1, color
|
|
109
|
+
return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
112
|
}, function (_ref7) {
|
|
@@ -121,23 +115,23 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
121
115
|
color = _ref7.color;
|
|
122
116
|
|
|
123
117
|
if (!disabled) {
|
|
124
|
-
if (variant ===
|
|
118
|
+
if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
return
|
|
121
|
+
return 'none';
|
|
128
122
|
}, function (_ref8) {
|
|
129
123
|
var variant = _ref8.variant,
|
|
130
124
|
disabled = _ref8.disabled,
|
|
131
125
|
color = _ref8.color;
|
|
132
126
|
|
|
133
127
|
if (!disabled) {
|
|
134
|
-
if (variant ===
|
|
135
|
-
if (variant ===
|
|
136
|
-
if (variant ===
|
|
137
|
-
if (variant ===
|
|
128
|
+
if (variant === 'primary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
129
|
+
if (variant === 'neutral') return "".concat(_colors.BmGrey100);
|
|
130
|
+
if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
|
|
131
|
+
if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
|
|
138
132
|
|
|
139
133
|
if (!variant) {
|
|
140
|
-
return "".concat((0, _polished.darken)(0.1, color
|
|
134
|
+
return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
141
135
|
}
|
|
142
136
|
}
|
|
143
137
|
}, function (_ref9) {
|
|
@@ -145,10 +139,10 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
145
139
|
disabled = _ref9.disabled;
|
|
146
140
|
|
|
147
141
|
if (!disabled) {
|
|
148
|
-
if (variant ===
|
|
142
|
+
if (variant === 'primary' || variant === 'success' || variant === 'destructive') return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
|
|
149
143
|
|
|
150
144
|
if (!variant) {
|
|
151
|
-
return
|
|
145
|
+
return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
|
|
152
146
|
}
|
|
153
147
|
}
|
|
154
148
|
}, function (_ref10) {
|
|
@@ -157,17 +151,17 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
157
151
|
color = _ref10.color;
|
|
158
152
|
|
|
159
153
|
if (!disabled) {
|
|
160
|
-
if (variant ===
|
|
154
|
+
if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
161
155
|
}
|
|
162
156
|
|
|
163
|
-
return
|
|
157
|
+
return 'none';
|
|
164
158
|
}, ButtonText, function (_ref11) {
|
|
165
159
|
var variant = _ref11.variant,
|
|
166
160
|
disabled = _ref11.disabled,
|
|
167
161
|
color = _ref11.color;
|
|
168
162
|
|
|
169
163
|
if (!disabled) {
|
|
170
|
-
if (variant ===
|
|
164
|
+
if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
171
165
|
}
|
|
172
166
|
}, ButtonText, function (_ref12) {
|
|
173
167
|
var variant = _ref12.variant,
|
|
@@ -175,13 +169,17 @@ var BeemButton = _styledComponents.default.button(_templateObject2 || (_template
|
|
|
175
169
|
color = _ref12.color;
|
|
176
170
|
|
|
177
171
|
if (!disabled) {
|
|
178
|
-
if (variant ===
|
|
172
|
+
if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
|
|
179
173
|
}
|
|
180
174
|
});
|
|
181
175
|
|
|
182
|
-
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(
|
|
176
|
+
var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon).withConfig({
|
|
177
|
+
displayName: "buttons__BmLeftIcon"
|
|
178
|
+
})(["margin-right:0.5rem;"]);
|
|
183
179
|
exports.BmLeftIcon = BmLeftIcon;
|
|
184
|
-
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon)(
|
|
180
|
+
var BmRightIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon).withConfig({
|
|
181
|
+
displayName: "buttons__BmRightIcon"
|
|
182
|
+
})(["margin-left:0.5rem;"]);
|
|
185
183
|
exports.BmRightIcon = BmRightIcon;
|
|
186
184
|
|
|
187
185
|
var BmButton = function BmButton(props) {
|
|
@@ -192,9 +190,8 @@ var BmButton = function BmButton(props) {
|
|
|
192
190
|
leadingIcon = props.leadingIcon,
|
|
193
191
|
trailingIcon = props.trailingIcon,
|
|
194
192
|
color = props.color,
|
|
195
|
-
rest =
|
|
196
|
-
|
|
197
|
-
return /*#__PURE__*/_react.default.createElement(BeemButton, _extends({
|
|
193
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
194
|
+
return /*#__PURE__*/_react.default.createElement(BeemButton, Object.assign({
|
|
198
195
|
size: size,
|
|
199
196
|
variant: variant,
|
|
200
197
|
disabled: disabled,
|
|
@@ -220,12 +217,4 @@ var BmButton = function BmButton(props) {
|
|
|
220
217
|
}));
|
|
221
218
|
};
|
|
222
219
|
|
|
223
|
-
exports.BmButton = BmButton;
|
|
224
|
-
BmButton.propTypes = {
|
|
225
|
-
size: _propTypes.default.string,
|
|
226
|
-
variant: _propTypes.default.string,
|
|
227
|
-
leadingIcon: _propTypes.default.node,
|
|
228
|
-
trailingIcon: _propTypes.default.node,
|
|
229
|
-
color: _propTypes.default.string,
|
|
230
|
-
disabled: _propTypes.default.bool
|
|
231
|
-
};
|
|
220
|
+
exports.BmButton = BmButton;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -9,16 +11,18 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
11
|
|
|
10
12
|
var _colors = require("../colors");
|
|
11
13
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
BmCard.Footer = _styledComponents.default.div(
|
|
14
|
+
var BmCard = _styledComponents.default.div.withConfig({
|
|
15
|
+
displayName: "cards__BmCard"
|
|
16
|
+
})(["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);
|
|
17
|
+
|
|
18
|
+
BmCard.Header = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "cards__Header"
|
|
20
|
+
})(["padding:0.5rem 0.5rem 0rem 0.5rem;"]);
|
|
21
|
+
BmCard.Body = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "cards__Body"
|
|
23
|
+
})(["padding:0rem 0.5rem;"]);
|
|
24
|
+
BmCard.Footer = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "cards__Footer"
|
|
26
|
+
})(["border-top:0.071rem solid ", ";padding:0.5rem 0.5rem 0rem 0.5rem;"], _colors.BmGrey400);
|
|
23
27
|
var _default = BmCard;
|
|
24
28
|
exports.default = _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("/home/tejal/Desktop/Beem-UI/bm-components/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -7,25 +9,23 @@ exports.default = exports.Example = exports.BasicCardSample = void 0;
|
|
|
7
9
|
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
|
|
10
|
-
var _cards = _interopRequireDefault(require("./cards"));
|
|
11
|
-
|
|
12
12
|
var _addonKnobs = require("@storybook/addon-knobs");
|
|
13
13
|
|
|
14
|
+
var _cards = _interopRequireDefault(require("./cards"));
|
|
15
|
+
|
|
14
16
|
require("../../../main.scss");
|
|
15
17
|
|
|
16
18
|
var _buttons = require("../Buttons/buttons");
|
|
17
19
|
|
|
18
20
|
var _beem = _interopRequireDefault(require("../../assets/beem.jpeg"));
|
|
19
21
|
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
22
|
/* eslint-disable import/no-anonymous-default-export */
|
|
23
23
|
var _default = {
|
|
24
24
|
component: _cards.default,
|
|
25
|
-
title:
|
|
25
|
+
title: 'components/Card',
|
|
26
26
|
argTypes: {
|
|
27
27
|
children: {
|
|
28
|
-
description:
|
|
28
|
+
description: 'Accordion Title Text',
|
|
29
29
|
defaultValue: {
|
|
30
30
|
summary: undefined
|
|
31
31
|
}
|
|
@@ -36,8 +36,8 @@ exports.default = _default;
|
|
|
36
36
|
|
|
37
37
|
var BasicCardSample = function BasicCardSample() {
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_cards.default, {
|
|
39
|
-
disabled: (0, _addonKnobs.boolean)(
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_cards.default.Header, null, /*#__PURE__*/_react.default.createElement("h3", null, (0, _addonKnobs.text)(
|
|
39
|
+
disabled: (0, _addonKnobs.boolean)('disabled', false)
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_cards.default.Header, null, /*#__PURE__*/_react.default.createElement("h3", null, (0, _addonKnobs.text)('children', 'Card Header'))), /*#__PURE__*/_react.default.createElement(_cards.default.Body, null, "Card Body"), /*#__PURE__*/_react.default.createElement(_cards.default.Footer, null, "Card Footer")));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports.BasicCardSample = BasicCardSample;
|