beem-component 2.0.27 → 2.1.1
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/Dockerfile +4 -2
- package/Jenkinsfile +20 -5
- package/dist/components/Accordion/Accordion.js +55 -66
- package/dist/components/Accordion/Accordion.stories.js +5 -6
- package/dist/components/Avatars/avatars.js +33 -23
- package/dist/components/Avatars/avatars.stories.js +5 -10
- package/dist/components/BannerCard/bannerCard.stories.js +6 -7
- package/dist/components/BannerCard/bannerCards.js +38 -40
- package/dist/components/BmSelector/BmSelector.js +120 -0
- package/dist/components/BmSelector/BmSelector.stories.js +138 -0
- package/dist/components/ButtonGroup/buttonGroup.js +14 -15
- package/dist/components/ButtonGroup/buttonGroup.stories.js +11 -26
- package/dist/components/Buttons/Stories/basicbutton.stories.js +5 -10
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +4 -8
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +4 -8
- package/dist/components/Buttons/buttonAlertIcons.js +40 -58
- package/dist/components/Buttons/buttonDropdown copy.js +52 -35
- package/dist/components/Buttons/buttonDropdown.js +5 -3
- package/dist/components/Buttons/buttonIconsOnly.js +32 -25
- package/dist/components/Buttons/buttons.js +105 -72
- package/dist/components/Card_v2/Card.js +78 -0
- package/dist/components/Card_v2/Card.stories.js +60 -0
- package/dist/components/Cards/cards.js +3 -4
- package/dist/components/Cards/cards.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +65 -39
- package/dist/components/ChatComponents/ChatBody/chatBody.js +224 -189
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +11 -9
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +12 -10
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -4
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -6
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -10
- package/dist/components/ChatComponents/ContactCards/contactCards.js +40 -31
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/InfoTab/infoTab.js +3 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +3 -4
- package/dist/components/Chats/chat.js +56 -50
- package/dist/components/Chats/chatInput.js +9 -14
- package/dist/components/Chats/chatwrapper.js +8 -14
- package/dist/components/Checkbox/checkboxToggler.js +20 -20
- package/dist/components/Checkbox/checkboxToggler.stories.js +12 -35
- package/dist/components/InfoPanel/InfoPanel.js +141 -0
- package/dist/components/InfoPanel/InfoPanel.stories.js +200 -0
- package/dist/components/InputCounter/inputCounter.js +17 -18
- package/dist/components/Jumbotron/Jumbotron.js +8 -11
- package/dist/components/Jumbotron/Jumbotron.stories.js +3 -4
- package/dist/components/LabelWithIcon/LabelWithIcon.js +63 -0
- package/dist/components/LabelWithIcon/LabelWithIcon.stories.js +59 -0
- package/dist/components/Lists/listBox.js +21 -25
- package/dist/components/Lists/listBox.stories.js +7 -20
- package/dist/components/Lists/listHeader.stories.js +4 -8
- package/dist/components/Lists/listheader.js +17 -14
- package/dist/components/Lists/rowLabels.js +26 -24
- package/dist/components/Lists/rowLabels.stories.js +11 -18
- package/dist/components/Loader/loader.js +16 -14
- package/dist/components/Loader/loader.stories.js +4 -8
- package/dist/components/MainWrapper/index.js +3 -4
- package/dist/components/MessageCounter/MessageCounter.stories.js +4 -5
- package/dist/components/MessageCounter/messageCounter.js +15 -10
- package/dist/components/Modals/modal.js +57 -72
- package/dist/components/Modals/modals.stories.js +16 -45
- package/dist/components/MojaAccordion/MojaAccordion.js +49 -55
- package/dist/components/MultipleDateSelector/multipleDateSelector.js +14 -18
- package/dist/components/NoteBar/noteBar.js +22 -32
- package/dist/components/NoteBar/noteBar.stories.js +5 -10
- package/dist/components/PaymentBox/paymentBox.js +14 -11
- package/dist/components/PaymentBox/paymentBox.stories.js +3 -4
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +4 -8
- package/dist/components/PerformanceIndicator/performanceIndicator.js +17 -14
- package/dist/components/Pills/pills.js +30 -38
- package/dist/components/Pills/pills.stories.js +5 -10
- package/dist/components/ProfileIcon/ProfileIcon.js +26 -36
- package/dist/components/ProfileIcon/profileIcon.stories.js +6 -12
- package/dist/components/ProgressBar/progressbar.js +14 -12
- package/dist/components/ProgressBar/progressbar.stories.js +4 -8
- package/dist/components/ProgressIndicator/ProgressIndicator.js +121 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +99 -0
- package/dist/components/ProgressRing/progressRing.js +48 -50
- package/dist/components/ProgressRing/progressRing.stories.js +5 -10
- package/dist/components/RouteLink/link.js +3 -8
- package/dist/components/RouteLink/link.stories.js +3 -4
- package/dist/components/ScrollBar/scrollBar.js +18 -26
- package/dist/components/SelectionNotice/SelectionNotice.js +57 -0
- package/dist/components/SelectionNotice/SelectionNotice.stories.js +35 -0
- package/dist/components/Stepper/stepper.js +4 -11
- package/dist/components/SuperFluid/Content/index.js +3 -4
- package/dist/components/SuperFluid/ContentTitle.js/index.js +6 -10
- package/dist/components/SuperFluid/SegmentCard/index.js +11 -21
- package/dist/components/Tabs/tabs.js +32 -24
- package/dist/components/Tabs/tabs.stories.js +6 -12
- package/dist/components/Tags/tags.js +65 -63
- package/dist/components/Tags/tags.stories.js +6 -12
- package/dist/components/breakpoints.js +3 -5
- package/dist/components/chatHeader.js +7 -12
- package/dist/components/checkbox.js +30 -25
- package/dist/components/colors.js +31 -62
- package/dist/components/contacts.js +32 -35
- package/dist/components/dropdown.js +18 -39
- package/dist/components/dropdownButton.js +38 -28
- package/dist/components/dropdownItems.js +23 -26
- package/dist/components/examples/App.js +3 -4
- package/dist/components/examples/InfoAccordion.js +3 -4
- package/dist/components/examples/chatBodyExample.js +4 -7
- package/dist/components/examples/selectExample.js +12 -30
- package/dist/components/globalStyles.js +1 -2
- package/dist/components/iconStyles.js +69 -103
- package/dist/components/index-copy.js +197 -197
- package/dist/components/index.js +106 -66
- package/dist/components/input.js +36 -25
- package/dist/components/logo.js +10 -9
- package/dist/components/navbar.js +9 -16
- package/dist/components/search.js +18 -16
- package/dist/components/shadow.js +1 -2
- package/dist/components/text.js +9 -18
- package/dist/components/typography.js +14 -28
- package/dist/components/wrapper.js +4 -6
- package/nginx.conf +26 -12
- package/package.json +3 -1
- package/src/App.js +246 -3
- package/src/lib/components/BmSelector/BmSelector.js +154 -0
- package/src/lib/components/BmSelector/BmSelector.stories.jsx +125 -0
- package/src/lib/components/Buttons/buttons.js +12 -8
- package/src/lib/components/Card_v2/Card.js +128 -0
- package/src/lib/components/Card_v2/Card.stories.jsx +94 -0
- package/src/lib/components/InfoPanel/InfoPanel.js +221 -0
- package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +169 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.js +61 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.stories.jsx +59 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.js +208 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.stories.jsx +91 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.js +65 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.stories.jsx +40 -0
- package/src/lib/components/index.js +14 -0
- package/src/util/convertToRGBA.js +21 -0
- package/storybook-static/140.d6695a165d8dcc810b2e.manager.bundle.js +1 -0
- package/storybook-static/140.f87feb0b.iframe.bundle.js +1 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js +2 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/192.08b67b8c.iframe.bundle.js +1 -0
- package/storybook-static/246.9ad91c22.iframe.bundle.js +2 -0
- package/storybook-static/{vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt → 246.9ad91c22.iframe.bundle.js.LICENSE.txt} +48 -16
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js +2 -0
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js +2 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js +2 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js +2 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/58.56a2198b.iframe.bundle.js +1 -0
- package/storybook-static/58.cd3f8ad06a1200571eab.manager.bundle.js +1 -0
- package/storybook-static/676.d74803c6ab12eac1cdb2.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt → 676.d74803c6ab12eac1cdb2.manager.bundle.js.LICENSE.txt} +20 -30
- package/storybook-static/720.d729a720931e1312e597.manager.bundle.js +2 -0
- package/storybook-static/720.e12f6aa2.iframe.bundle.js +2 -0
- package/storybook-static/794.0543a68a8b5aa273273a.manager.bundle.js +1 -0
- package/storybook-static/929.5353bbe2.iframe.bundle.js +1 -0
- package/storybook-static/929.ed1807a8ea3e2353d440.manager.bundle.js +1 -0
- package/storybook-static/9b058fcb1416fea75e6c.png +0 -0
- package/storybook-static/f29af3502f15acc765a8.png +0 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +22 -6
- package/storybook-static/index.html +66 -109
- package/storybook-static/main.1a29aa69.iframe.bundle.js +1 -0
- package/storybook-static/main.69bad789e0a3d801264b.manager.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.87eecef7.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.dd5308492057ff00c469.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.08a2eb27.css +6 -0
- package/storybook-static/static/css/main.08a2eb27.css.map +1 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +0 -2
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.96c45dd8.iframe.bundle.js +0 -1
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +0 -3
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +0 -1
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +0 -1
- package/storybook-static/2.24353ddc.iframe.bundle.js +0 -1
- package/storybook-static/3.8bb2173c.iframe.bundle.js +0 -1
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +0 -1
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +0 -2
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +0 -1
- package/storybook-static/7.f0cfc757.iframe.bundle.js +0 -1
- package/storybook-static/8.91de97de.iframe.bundle.js +0 -3
- package/storybook-static/8.91de97de.iframe.bundle.js.map +0 -1
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +0 -1
- package/storybook-static/9.40ec65d6.iframe.bundle.js +0 -1
- package/storybook-static/asset-manifest.json +0 -30
- package/storybook-static/main.3c8d8027.iframe.bundle.js +0 -1
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +0 -1
- package/storybook-static/static/css/main.b44a190d.chunk.css +0 -4
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +0 -1
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +0 -1
- /package/storybook-static/{static/media/PoppinsMedium.0ba26f6c.woff → 0ba26f6cfe2f94ec2b43.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.13b9af9c.eot → 13b9af9c8b2b4d656251.eot} +0 -0
- /package/storybook-static/{static/media/OpenSans-Regular.1b0809d5.ttf → 1b0809d519837cb7aad3.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.1eae2d48.woff2 → 1eae2d48398534b6e1fe.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.43e9b50d.svg → 43e9b50d6f4141c6275f.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.49b46ace.eot → 49b46acec5a811ce1edd.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.4a4d5420.woff → 4a4d54208e3b43dcdd6e.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff6749.eot → 53ff67494885a390867f.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff971f.ttf → 53ff971f3c691d03daf6.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.5692c77f.ttf → 5692c77f2768f53db4fb.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.57a99fa8.woff2 → 57a99fa8569430db3aa1.woff2} +0 -0
- /package/storybook-static/{6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt → 720.d729a720931e1312e597.manager.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{8.91de97de.iframe.bundle.js.LICENSE.txt → 720.e12f6aa2.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.80138c67.woff → 80138c67abf7843ea7e5.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.850fc4f3.svg → 850fc4f3768c0af34ea8.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.9a7cc7ec.woff2 → 9a7cc7ec4e1eda4f7e6d.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.b33c148b.woff → b33c148b95e9b282af64.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.b7e43707.svg → b7e43707906d1445e127.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.c442695a.eot → c442695a5fcf958609b8.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.c98dddbd.ttf → c98dddbdc5b1e18988b9.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.e1948d56.svg → e1948d56fc87f569ef8d.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.e1bc9021.ttf → e1bc9021c9d8ba86968b.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.f27050e2.woff2 → f27050e2684287d42c91.woff2} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Example = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Card = require("./Card");
|
|
9
|
+
var _buttons = require("../Buttons/buttons");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var _default = exports.default = {
|
|
12
|
+
title: 'Components/BmCardv2',
|
|
13
|
+
component: _Card.BmCardv2,
|
|
14
|
+
argTypes: {
|
|
15
|
+
borderColor: {
|
|
16
|
+
control: 'color',
|
|
17
|
+
defaultValue: '#33B1BA'
|
|
18
|
+
},
|
|
19
|
+
borderWidth: {
|
|
20
|
+
control: 'text',
|
|
21
|
+
defaultValue: '1px'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const Template = _ref => {
|
|
26
|
+
let {
|
|
27
|
+
borderColor,
|
|
28
|
+
borderWidth
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Card.BmCardv2, {
|
|
31
|
+
borderColor: borderColor,
|
|
32
|
+
borderWidth: borderWidth
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Header, null, /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Title, null, "Appointment Summary"), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Description, null, "This BmCardv2 shows a quick overview of your booking.")), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Content, null, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Type:"), " Consultation"), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Date:"), " June 24, 2025"), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Doctor:"), " Dr. Smith")), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Footer, null, /*#__PURE__*/_react.default.createElement(_buttons.BmButton, {
|
|
34
|
+
variant: "primary"
|
|
35
|
+
}, "Edit"), /*#__PURE__*/_react.default.createElement(_buttons.BmButton, {
|
|
36
|
+
variant: "secondary"
|
|
37
|
+
}, "Cancel"))));
|
|
38
|
+
};
|
|
39
|
+
const Default = exports.Default = Template.bind({});
|
|
40
|
+
Default.args = {
|
|
41
|
+
borderColor: '#33B1BA',
|
|
42
|
+
borderWidth: '1px'
|
|
43
|
+
};
|
|
44
|
+
const Example = () => {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_Card.BmCardv2, {
|
|
46
|
+
borderColor: "#d62a2af",
|
|
47
|
+
borderWidth: "1.5px"
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Header, null, /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Title, null, "Appointment Summary"), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Description, null, "This BmCardv2 shows a quick overview of your booking.")), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Content, null, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Type:"), " Consultation"), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Date:"), " June 24, 2025"), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "Doctor:"), " Dr. Smith")), /*#__PURE__*/_react.default.createElement(_Card.BmCardv2.Footer, null, /*#__PURE__*/_react.default.createElement(_buttons.BmButton, {
|
|
49
|
+
width: "100%",
|
|
50
|
+
size: "medium",
|
|
51
|
+
variant: "primary"
|
|
52
|
+
}, "Edit"), /*#__PURE__*/_react.default.createElement(_buttons.BmButton, {
|
|
53
|
+
borderColor: "#000000",
|
|
54
|
+
width: "100%",
|
|
55
|
+
size: "medium",
|
|
56
|
+
variant: "secondary",
|
|
57
|
+
color: "#000000"
|
|
58
|
+
}, "Cancel")));
|
|
59
|
+
};
|
|
60
|
+
exports.Example = Example;
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../colors");
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const BmCard = _styledComponents.default.div.withConfig({
|
|
11
11
|
displayName: "cards__BmCard"
|
|
12
12
|
})(["display:flex;flex-direction:column;background:", ";border:0.071rem solid ", ";border-radius:0.25rem;> *{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:0.5rem;}"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
13
13
|
BmCard.Header = _styledComponents.default.div.withConfig({
|
|
@@ -19,5 +19,4 @@ BmCard.Body = _styledComponents.default.div.withConfig({
|
|
|
19
19
|
BmCard.Footer = _styledComponents.default.div.withConfig({
|
|
20
20
|
displayName: "cards__Footer"
|
|
21
21
|
})(["border-top:0.071rem solid ", ";padding:0.5rem 0.5rem 0rem 0.5rem;"], _colors.BmGrey400);
|
|
22
|
-
var _default = BmCard;
|
|
23
|
-
exports.default = _default;
|
|
22
|
+
var _default = exports.default = BmCard;
|
|
@@ -10,9 +10,9 @@ var _cards = _interopRequireDefault(require("./cards"));
|
|
|
10
10
|
require("../../../main.scss");
|
|
11
11
|
var _buttons = require("../Buttons/buttons");
|
|
12
12
|
var _beem = _interopRequireDefault(require("../../assets/beem.jpeg"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
/* eslint-disable import/no-anonymous-default-export */
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
component: _cards.default,
|
|
17
17
|
title: 'components/Card',
|
|
18
18
|
argTypes: {
|
|
@@ -24,14 +24,13 @@ var _default = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
var BasicCardSample = function BasicCardSample() {
|
|
27
|
+
const BasicCardSample = () => {
|
|
29
28
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_cards.default, {
|
|
30
29
|
disabled: (0, _addonKnobs.boolean)('disabled', false)
|
|
31
30
|
}, /*#__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")));
|
|
32
31
|
};
|
|
33
32
|
exports.BasicCardSample = BasicCardSample;
|
|
34
|
-
|
|
33
|
+
const Example = () => {
|
|
35
34
|
return /*#__PURE__*/_react.default.createElement(_cards.default, null, /*#__PURE__*/_react.default.createElement(_cards.default.Header, null, /*#__PURE__*/_react.default.createElement("h3", null, "Overview")), /*#__PURE__*/_react.default.createElement(_cards.default.Body, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
36
35
|
src: _beem.default,
|
|
37
36
|
alt: "Imagebody"
|
|
@@ -7,94 +7,120 @@ exports.BmFeedPostComments = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("../../colors");
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
function _objectWithoutProperties(
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
15
|
-
|
|
10
|
+
const _excluded = ["story", "state", "status", "image"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
|
+
const BmFeedPost = _styledComponents.default.div.withConfig({
|
|
16
16
|
displayName: "FeedPostComments__BmFeedPost"
|
|
17
|
-
})(["display:inline-block;flex-direction:column;padding:0.5rem;width:", ";max-width:", ";margin-left:", ";background-color:", ";border:0.071rem solid ", ";border-radius:0.25rem;max-height:", ";height:", ";"],
|
|
18
|
-
|
|
17
|
+
})(["display:inline-block;flex-direction:column;padding:0.5rem;width:", ";max-width:", ";margin-left:", ";background-color:", ";border:0.071rem solid ", ";border-radius:0.25rem;max-height:", ";height:", ";"], _ref => {
|
|
18
|
+
let {
|
|
19
|
+
image
|
|
20
|
+
} = _ref;
|
|
19
21
|
if (image) return '15vw';
|
|
20
22
|
return '20vw';
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
+
}, _ref2 => {
|
|
24
|
+
let {
|
|
25
|
+
image
|
|
26
|
+
} = _ref2;
|
|
23
27
|
if (image) return '15vw';
|
|
24
28
|
return '20vw';
|
|
25
|
-
},
|
|
26
|
-
|
|
29
|
+
}, _ref3 => {
|
|
30
|
+
let {
|
|
31
|
+
state
|
|
32
|
+
} = _ref3;
|
|
27
33
|
if (state) {
|
|
28
34
|
if (state === 'inbound') return '0rem';
|
|
29
35
|
if (state === 'outbound') return 'auto';
|
|
30
36
|
}
|
|
31
37
|
return '0rem';
|
|
32
|
-
},
|
|
33
|
-
|
|
38
|
+
}, _ref4 => {
|
|
39
|
+
let {
|
|
40
|
+
state
|
|
41
|
+
} = _ref4;
|
|
34
42
|
if (state) {
|
|
35
43
|
if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
|
|
36
44
|
if (state === 'outbound') return "".concat(_colors.BmPrimaryBlue);
|
|
37
45
|
}
|
|
38
46
|
return "".concat(_colors.BmPrimaryWhite);
|
|
39
|
-
}, _colors.BmGrey200,
|
|
40
|
-
|
|
47
|
+
}, _colors.BmGrey200, _ref5 => {
|
|
48
|
+
let {
|
|
49
|
+
image
|
|
50
|
+
} = _ref5;
|
|
41
51
|
if (image) return '10vw';
|
|
42
52
|
return '100%';
|
|
43
|
-
},
|
|
44
|
-
|
|
53
|
+
}, _ref6 => {
|
|
54
|
+
let {
|
|
55
|
+
image
|
|
56
|
+
} = _ref6;
|
|
45
57
|
if (image) return '10vw';
|
|
46
58
|
return '100%';
|
|
47
59
|
});
|
|
48
|
-
|
|
60
|
+
const MainContent = _styledComponents.default.div.withConfig({
|
|
49
61
|
displayName: "FeedPostComments__MainContent"
|
|
50
|
-
})(["display:flex;flex-direction:row;border-left:", ";background-color:", ";max-height:80%;height:80%;"],
|
|
51
|
-
|
|
62
|
+
})(["display:flex;flex-direction:row;border-left:", ";background-color:", ";max-height:80%;height:80%;"], _ref7 => {
|
|
63
|
+
let {
|
|
64
|
+
status
|
|
65
|
+
} = _ref7;
|
|
52
66
|
if (status) {
|
|
53
67
|
if (status === 'comment') return "0.143rem solid ".concat(_colors.BmSecondaryGreen);
|
|
54
68
|
if (status === 'story') return "0.143rem solid ".concat(_colors.BmSecondaryPurple);
|
|
55
69
|
}
|
|
56
70
|
return "0.143rem solid ".concat(_colors.BmSecondaryPurple);
|
|
57
|
-
},
|
|
58
|
-
|
|
71
|
+
}, _ref8 => {
|
|
72
|
+
let {
|
|
73
|
+
state
|
|
74
|
+
} = _ref8;
|
|
59
75
|
if (state) {
|
|
60
76
|
if (state === 'inbound') return "".concat(_colors.BmTransparentBg30);
|
|
61
77
|
if (state === 'outbound') return "".concat(_colors.BmTransparentBg30);
|
|
62
78
|
}
|
|
63
79
|
return "".concat(_colors.BmTransparentBg30);
|
|
64
80
|
});
|
|
65
|
-
|
|
81
|
+
const Content = _styledComponents.default.div.withConfig({
|
|
66
82
|
displayName: "FeedPostComments__Content"
|
|
67
|
-
})(["display:flex;flex-direction:column;color:", ";word-break:break-word;> *{margin-bottom:0.5rem;word-break:break-word;}width:", ";max-width:", ";padding:0.5rem;"],
|
|
68
|
-
|
|
83
|
+
})(["display:flex;flex-direction:column;color:", ";word-break:break-word;> *{margin-bottom:0.5rem;word-break:break-word;}width:", ";max-width:", ";padding:0.5rem;"], _ref9 => {
|
|
84
|
+
let {
|
|
85
|
+
state
|
|
86
|
+
} = _ref9;
|
|
69
87
|
if (state && state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
70
88
|
if (state && state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
71
89
|
return "".concat(_colors.BmPrimaryBlack);
|
|
72
|
-
},
|
|
73
|
-
|
|
90
|
+
}, _ref0 => {
|
|
91
|
+
let {
|
|
92
|
+
image
|
|
93
|
+
} = _ref0;
|
|
74
94
|
if (image) return '75%';
|
|
75
95
|
return '100%';
|
|
76
|
-
},
|
|
77
|
-
|
|
96
|
+
}, _ref1 => {
|
|
97
|
+
let {
|
|
98
|
+
image
|
|
99
|
+
} = _ref1;
|
|
78
100
|
if (image) return '75%';
|
|
79
101
|
return '100%';
|
|
80
102
|
});
|
|
81
|
-
|
|
103
|
+
const Image = _styledComponents.default.img.withConfig({
|
|
82
104
|
displayName: "FeedPostComments__Image"
|
|
83
105
|
})(["max-width:25%;width:25%;"]);
|
|
84
106
|
BmFeedPost.Footer = _styledComponents.default.div.withConfig({
|
|
85
107
|
displayName: "FeedPostComments__Footer"
|
|
86
|
-
})(["display:flex;flex-direction:row;word-break:break-word;> *{word-break:break-word !important;}align-items:center;margin-top:0.5rem;max-height:20%;height:20%;color:", ";"],
|
|
87
|
-
|
|
108
|
+
})(["display:flex;flex-direction:row;word-break:break-word;> *{word-break:break-word !important;}align-items:center;margin-top:0.5rem;max-height:20%;height:20%;color:", ";"], _ref10 => {
|
|
109
|
+
let {
|
|
110
|
+
state
|
|
111
|
+
} = _ref10;
|
|
88
112
|
if (state && state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
89
113
|
if (state && state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
90
114
|
return "".concat(_colors.BmPrimaryBlack);
|
|
91
115
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
116
|
+
const BmFeedPostComments = _ref11 => {
|
|
117
|
+
let {
|
|
118
|
+
story,
|
|
119
|
+
state,
|
|
120
|
+
status,
|
|
121
|
+
image
|
|
122
|
+
} = _ref11,
|
|
123
|
+
rest = _objectWithoutProperties(_ref11, _excluded);
|
|
98
124
|
return story && /*#__PURE__*/_react.default.createElement(BmFeedPost, _extends({
|
|
99
125
|
state: story.state
|
|
100
126
|
}, rest, {
|