beem-component 2.1.12 → 2.1.13
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.
|
@@ -16,7 +16,7 @@ const TabsHeader = _styledComponents.default.div.withConfig({
|
|
|
16
16
|
})(["display:flex;justify-content:flex-start;align-items:center;margin-bottom:14px;padding:0 14px;border-radius:var(--radius-lg,12px);flex-wrap:wrap;"]);
|
|
17
17
|
const TabsList = _styledComponents.default.div.withConfig({
|
|
18
18
|
displayName: "BmTabv2__TabsList"
|
|
19
|
-
})(["display:inline-flex;background-color:var(--color-muted,#f2f2f2);color:var(--color-muted-foreground,#666);align-items:center;justify-content:center;border-radius:var(--radius-lg,12px);padding:4px 4px;"]);
|
|
19
|
+
})(["width:100%;display:inline-flex;background-color:var(--color-muted,#f2f2f2);color:var(--color-muted-foreground,#666);align-items:center;justify-content:center;border-radius:var(--radius-lg,12px);padding:4px 4px;"]);
|
|
20
20
|
const TabsTriggerButton = _styledComponents.default.button.withConfig({
|
|
21
21
|
displayName: "BmTabv2__TabsTriggerButton"
|
|
22
22
|
})(["display:inline-flex;flex:1;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:var(--radius-lg,12px);padding:6px 12px;font-size:14px;font-weight:500;white-space:nowrap;transition:color 0.2s,box-shadow 0.2s,background-color 0.2s;cursor:pointer;", " &:focus-visible{outline:none;border-color:var(--color-ring,#2684ff);box-shadow:0 0 0 3px rgba(38,132,255,0.3);}&:disabled{pointer-events:none;opacity:0.5;}svg{flex-shrink:0;pointer-events:none;width:16px;height:16px;}"], _ref => {
|
|
@@ -14,6 +14,7 @@ var _Edit = _interopRequireDefault(require("@mui/icons-material/Edit"));
|
|
|
14
14
|
var _Delete = _interopRequireDefault(require("@mui/icons-material/Delete"));
|
|
15
15
|
var _Groups2Outlined = _interopRequireDefault(require("@mui/icons-material/Groups2Outlined"));
|
|
16
16
|
var _PeopleAltOutlined = _interopRequireDefault(require("@mui/icons-material/PeopleAltOutlined"));
|
|
17
|
+
var _lodash = require("lodash");
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
20
|
const RowContainer = _styledComponents.default.div.withConfig({
|
|
@@ -95,7 +96,7 @@ const BmHorizontalCard = _ref4 => {
|
|
|
95
96
|
fontSize: "small"
|
|
96
97
|
}), /*#__PURE__*/_react.default.createElement("span", null, price === 0 ? 'Free' : "$".concat(price))), /*#__PURE__*/_react.default.createElement(MetaItem, null, /*#__PURE__*/_react.default.createElement(_LocationOnOutlined.default, {
|
|
97
98
|
fontSize: "small"
|
|
98
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, location, location === 'physical' && address ? " (".concat(address.split(',')[0], "...)") : '')), guest_limit && /*#__PURE__*/_react.default.createElement(MetaItem, null, /*#__PURE__*/_react.default.createElement(_Groups2Outlined.default, {
|
|
99
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, location, (0, _lodash.lowerCase)(location) === 'physical' && address ? " (".concat(address.split(',')[0], "...)") : '')), guest_limit && /*#__PURE__*/_react.default.createElement(MetaItem, null, /*#__PURE__*/_react.default.createElement(_Groups2Outlined.default, {
|
|
99
100
|
fontSize: "small"
|
|
100
101
|
}), /*#__PURE__*/_react.default.createElement("span", null, "Max ", guest_limit, " attendee", guest_limit > 1 ? 's' : '')), selectedResources && selectedResources.length > 0 && /*#__PURE__*/_react.default.createElement(MetaItem, null, /*#__PURE__*/_react.default.createElement(_PeopleAltOutlined.default, {
|
|
101
102
|
fontSize: "small"
|
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -10,7 +10,7 @@ import PersonIcon from '@mui/icons-material/Person';
|
|
|
10
10
|
import CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';
|
|
11
11
|
|
|
12
12
|
import GroupIcon from '@mui/icons-material/Group';
|
|
13
|
-
import BusinessIcon from '@mui/icons-material/Business';
|
|
13
|
+
// import BusinessIcon from '@mui/icons-material/Business';
|
|
14
14
|
|
|
15
15
|
import CheckIcon from '@mui/icons-material/Check';
|
|
16
16
|
import EditIcon from '@mui/icons-material/Edit';
|
|
@@ -71,7 +71,7 @@ import AlertBox from './lib/components/Alert/Alert';
|
|
|
71
71
|
// });
|
|
72
72
|
// console.log(datsa);
|
|
73
73
|
const tabs = [
|
|
74
|
-
{ value: 'departments', label: 'Departments'
|
|
74
|
+
{ value: 'departments', label: 'Departments' },
|
|
75
75
|
{ value: 'resources', label: 'Resources', icon: GroupIcon },
|
|
76
76
|
{ value: 'events', label: 'Events', icon: CalendarTodayOutlinedIcon },
|
|
77
77
|
];
|
|
@@ -1075,7 +1075,20 @@ const Chat = () => {
|
|
|
1075
1075
|
return (
|
|
1076
1076
|
<>
|
|
1077
1077
|
<GlobalStyle />
|
|
1078
|
-
|
|
1078
|
+
|
|
1079
|
+
<div
|
|
1080
|
+
style={{
|
|
1081
|
+
display: 'flex',
|
|
1082
|
+
flexDirection: 'column',
|
|
1083
|
+
gap: '2rem',
|
|
1084
|
+
width: '50%',
|
|
1085
|
+
}}
|
|
1086
|
+
>
|
|
1087
|
+
<BmCustomTab
|
|
1088
|
+
value={activeTab}
|
|
1089
|
+
onValueChange={setActiveTab}
|
|
1090
|
+
tabs={tabs}
|
|
1091
|
+
/>
|
|
1079
1092
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
|
|
1080
1093
|
{sampleAppointmentTypes.map((type) => (
|
|
1081
1094
|
<BmHorizontalCard
|
|
@@ -1099,13 +1112,6 @@ const Chat = () => {
|
|
|
1099
1112
|
))}
|
|
1100
1113
|
</div>
|
|
1101
1114
|
|
|
1102
|
-
<BmCustomTab
|
|
1103
|
-
value={activeTab}
|
|
1104
|
-
onValueChange={setActiveTab}
|
|
1105
|
-
tabs={tabs}
|
|
1106
|
-
className="event-types-tabs"
|
|
1107
|
-
/>
|
|
1108
|
-
|
|
1109
1115
|
<div style={{ width: '100%', maxWidth: '900px', margin: '2rem auto' }}>
|
|
1110
1116
|
<div style={{ maxWidth: 400, margin: '2rem auto' }}>
|
|
1111
1117
|
<BmDepartmentCard
|
|
@@ -8,6 +8,7 @@ import EditIcon from '@mui/icons-material/Edit';
|
|
|
8
8
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
9
9
|
import Groups2OutlinedIcon from '@mui/icons-material/Groups2Outlined';
|
|
10
10
|
import PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined';
|
|
11
|
+
import { lowerCase } from 'lodash';
|
|
11
12
|
|
|
12
13
|
const RowContainer = styled.div`
|
|
13
14
|
position: relative;
|
|
@@ -195,7 +196,7 @@ const BmHorizontalCard = ({
|
|
|
195
196
|
<LocationOnOutlinedIcon fontSize="small" />
|
|
196
197
|
<span>
|
|
197
198
|
{location}
|
|
198
|
-
{location === 'physical' && address
|
|
199
|
+
{lowerCase(location) === 'physical' && address
|
|
199
200
|
? ` (${address.split(',')[0]}...)`
|
|
200
201
|
: ''}
|
|
201
202
|
</span>
|