beem-component 2.1.14 → 2.1.16
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/dist/components/HorizontalCard/HorizontalCard.js +8 -5
- package/dist/components/HorizontalCard/HorizontalCard.stories.js +4 -1
- package/dist/components/Modals/modal.js +1 -1
- package/package.json +1 -1
- package/src/App.js +4 -1
- package/src/lib/components/HorizontalCard/HorizontalCard.js +10 -4
- package/src/lib/components/HorizontalCard/HorizontalCard.stories.jsx +3 -0
- package/src/lib/components/Modals/modal.js +1 -1
|
@@ -47,7 +47,7 @@ const Badge = _styledComponents.default.span.withConfig({
|
|
|
47
47
|
});
|
|
48
48
|
const Description = _styledComponents.default.p.withConfig({
|
|
49
49
|
displayName: "HorizontalCard__Description"
|
|
50
|
-
})(["margin-top:4px;font-size:0.9rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;
|
|
50
|
+
})(["margin-top:4px;font-size:0.9rem;color:#6b7280;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;"]);
|
|
51
51
|
const MetaRow = _styledComponents.default.div.withConfig({
|
|
52
52
|
displayName: "HorizontalCard__MetaRow"
|
|
53
53
|
})(["display:flex;flex-wrap:wrap;gap:16px;margin-top:12px;"]);
|
|
@@ -80,7 +80,10 @@ const BmHorizontalCard = _ref4 => {
|
|
|
80
80
|
selectedResources,
|
|
81
81
|
address,
|
|
82
82
|
duration,
|
|
83
|
-
guest_limit
|
|
83
|
+
guest_limit,
|
|
84
|
+
deleteToolTip,
|
|
85
|
+
editToolTip,
|
|
86
|
+
copyToolTip
|
|
84
87
|
} = _ref4;
|
|
85
88
|
return /*#__PURE__*/_react.default.createElement(RowContainer, {
|
|
86
89
|
isActive: isActive
|
|
@@ -105,7 +108,7 @@ const BmHorizontalCard = _ref4 => {
|
|
|
105
108
|
e.stopPropagation();
|
|
106
109
|
onCopyLink();
|
|
107
110
|
},
|
|
108
|
-
title:
|
|
111
|
+
title: copyToolTip || ''
|
|
109
112
|
}, /*#__PURE__*/_react.default.createElement(_Link.default, {
|
|
110
113
|
fontSize: "small"
|
|
111
114
|
})), /*#__PURE__*/_react.default.createElement(IconButton, {
|
|
@@ -113,7 +116,7 @@ const BmHorizontalCard = _ref4 => {
|
|
|
113
116
|
e.stopPropagation();
|
|
114
117
|
onView();
|
|
115
118
|
},
|
|
116
|
-
title:
|
|
119
|
+
title: editToolTip || ''
|
|
117
120
|
}, /*#__PURE__*/_react.default.createElement(_Edit.default, {
|
|
118
121
|
fontSize: "small"
|
|
119
122
|
})), /*#__PURE__*/_react.default.createElement(IconButton, {
|
|
@@ -123,7 +126,7 @@ const BmHorizontalCard = _ref4 => {
|
|
|
123
126
|
e.stopPropagation();
|
|
124
127
|
onDelete();
|
|
125
128
|
},
|
|
126
|
-
title:
|
|
129
|
+
title: deleteToolTip || ''
|
|
127
130
|
}, /*#__PURE__*/_react.default.createElement(_Delete.default, {
|
|
128
131
|
fontSize: "small"
|
|
129
132
|
}))));
|
|
@@ -34,6 +34,9 @@ const Example = () => /*#__PURE__*/_react.default.createElement(_HorizontalCard.
|
|
|
34
34
|
selectedResources: sampleResources,
|
|
35
35
|
address: "456 Innovation Avenue, Tech City",
|
|
36
36
|
duration: 60,
|
|
37
|
-
guest_limit: 10
|
|
37
|
+
guest_limit: 10,
|
|
38
|
+
editToolTip: "edit appointment type",
|
|
39
|
+
deleteToolTip: "delete appointment type",
|
|
40
|
+
copyToolTip: "copy appointment type link"
|
|
38
41
|
});
|
|
39
42
|
exports.Example = Example;
|
|
@@ -25,7 +25,7 @@ const {
|
|
|
25
25
|
} = /*#__PURE__*/_react.default.createContext();
|
|
26
26
|
const Overlay = exports.Overlay = _styledComponents.default.div.withConfig({
|
|
27
27
|
displayName: "modal__Overlay"
|
|
28
|
-
})(["position:fixed;top:0;left:0;z-index:
|
|
28
|
+
})(["position:fixed;top:0;left:0;z-index:20;width:100vw;height:100vh;background-color:", ";"], _colors.BmBgGrey45);
|
|
29
29
|
const ModalContent = exports.ModalContent = _styledComponents.default.div.withConfig({
|
|
30
30
|
displayName: "modal__ModalContent"
|
|
31
31
|
})(["display:flex;flex-direction:column;border-radius:0.8571rem;padding:1rem;margin:2rem auto;background:", ";width:auto;max-width:100%;> *:not(:last-child){margin-bottom:0.5rem;}@media (min-width:576px){width:", ";}"], _colors.BmPrimaryWhite, _ref => {
|
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -1108,7 +1108,7 @@ const Chat = () => {
|
|
|
1108
1108
|
{sampleAppointmentTypes.map((type) => (
|
|
1109
1109
|
<BmHorizontalCard
|
|
1110
1110
|
name={type.name}
|
|
1111
|
-
description=
|
|
1111
|
+
description="Handles imaging and diagnostic scanssdijfsdoijfoisd jsdoij fosidf jsdoif jsdoifs ergjri gr[ jdi[t gegrepg fghepoiurig hroegeigig hep etghtpg hepghrp eug hrg[o hrgiorwrgh w[uugo ggwg iuhwoigw[ig soiug [oh g[wgh[oig hrw[ouig hei reg rwg wgujhsuw hgwrg h9rug rfewrewg fskg42398 glskjgur ghwpgh43hsaujhpghrpeihhou re9ojgpoh"
|
|
1112
1112
|
price={type.price}
|
|
1113
1113
|
color={type.color}
|
|
1114
1114
|
isActive={type.isActive}
|
|
@@ -1123,6 +1123,9 @@ const Chat = () => {
|
|
|
1123
1123
|
onDelete={() => handleDelete(type)}
|
|
1124
1124
|
onCopyLink={() => handleCopyLink(type.id)}
|
|
1125
1125
|
data={type}
|
|
1126
|
+
editToolTip="edit appointment type"
|
|
1127
|
+
deleteToolTip="delete appointment type"
|
|
1128
|
+
copyToolTip="copy appointment type link"
|
|
1126
1129
|
/>
|
|
1127
1130
|
))}
|
|
1128
1131
|
</div>
|
|
@@ -90,9 +90,12 @@ const Description = styled.p`
|
|
|
90
90
|
margin-top: 4px;
|
|
91
91
|
font-size: 0.9rem;
|
|
92
92
|
color: #6b7280;
|
|
93
|
+
display: -webkit-box;
|
|
94
|
+
-webkit-line-clamp: 1;
|
|
95
|
+
-webkit-box-orient: vertical;
|
|
93
96
|
overflow: hidden;
|
|
94
97
|
text-overflow: ellipsis;
|
|
95
|
-
|
|
98
|
+
word-break: break-word;
|
|
96
99
|
`;
|
|
97
100
|
|
|
98
101
|
const MetaRow = styled.div`
|
|
@@ -162,6 +165,9 @@ const BmHorizontalCard = ({
|
|
|
162
165
|
address,
|
|
163
166
|
duration,
|
|
164
167
|
guest_limit,
|
|
168
|
+
deleteToolTip,
|
|
169
|
+
editToolTip,
|
|
170
|
+
copyToolTip,
|
|
165
171
|
}) => {
|
|
166
172
|
return (
|
|
167
173
|
<RowContainer isActive={isActive}>
|
|
@@ -227,7 +233,7 @@ const BmHorizontalCard = ({
|
|
|
227
233
|
e.stopPropagation();
|
|
228
234
|
onCopyLink();
|
|
229
235
|
}}
|
|
230
|
-
title=
|
|
236
|
+
title={copyToolTip || ''}
|
|
231
237
|
>
|
|
232
238
|
<LinkIcon fontSize="small" />
|
|
233
239
|
</IconButton>
|
|
@@ -236,7 +242,7 @@ const BmHorizontalCard = ({
|
|
|
236
242
|
e.stopPropagation();
|
|
237
243
|
onView();
|
|
238
244
|
}}
|
|
239
|
-
title=
|
|
245
|
+
title={editToolTip || ''}
|
|
240
246
|
>
|
|
241
247
|
<EditIcon fontSize="small" />
|
|
242
248
|
</IconButton>
|
|
@@ -247,7 +253,7 @@ const BmHorizontalCard = ({
|
|
|
247
253
|
e.stopPropagation();
|
|
248
254
|
onDelete();
|
|
249
255
|
}}
|
|
250
|
-
title=
|
|
256
|
+
title={deleteToolTip || ''}
|
|
251
257
|
>
|
|
252
258
|
<DeleteIcon fontSize="small" />
|
|
253
259
|
</IconButton>
|