@@ -5871,6 +5871,7 @@ const makeEventKey = (eventKey, href = null) => {
5871
5871
if (eventKey != null) return String(eventKey);
5872
5872
return href || null;
5873
5873
};
5874
+ var SelectableContext$1 = SelectableContext;
5874
5875
5875
5876
const NavContext$1 = /*#__PURE__*/React__namespace.createContext(null);
5876
5877
NavContext$1.displayName = 'NavContext';
@@ -5898,7 +5899,7 @@ function useDropdownItem({
5898
5899
disabled,
5899
5900
onClick
5900
5901
}) {
5901
- const onSelectCtx = React.useContext(SelectableContext);
5902
+ const onSelectCtx = React.useContext(SelectableContext$1 );
5902
5903
const navContext = React.useContext(NavContext$2);
5903
5904
const {
5904
5905
activeKey
@@ -5994,7 +5995,7 @@ function Dropdown$2({
5994
5995
const lastShow = usePrevious(show);
5995
5996
const lastSourceEvent = React.useRef(null);
5996
5997
const focusInDropdown = React.useRef(false);
5997
- const onSelectCtx = React.useContext(SelectableContext);
5998
+ const onSelectCtx = React.useContext(SelectableContext$1 );
5998
5999
const toggle = React.useCallback((nextShow, event, source = event == null ? void 0 : event.type) => {
5999
6000
onToggle(nextShow, {
6000
6001
originalEvent: event,
@@ -6120,7 +6121,7 @@ function Dropdown$2({
6120
6121
break;
6121
6122
}
6122
6123
});
6123
- return /*#__PURE__*/jsxRuntime.jsx(SelectableContext.Provider, {
6124
+ return /*#__PURE__*/jsxRuntime.jsx(SelectableContext$1 .Provider, {
6124
6125
value: handleSelect,
6125
6126
children: /*#__PURE__*/jsxRuntime.jsx(DropdownContext$3.Provider, {
6126
6127
value: context,
@@ -6845,7 +6846,7 @@ const Form$2 = /*#__PURE__*/React__namespace.forwardRef(({
6845
6846
}));
6846
6847
Form$2.displayName = 'Form';
6847
6848
Form$2.propTypes = propTypes$8;
6848
- var BootstrapForm = Object.assign(Form$2, {
6849
+ var Form$3 = Object.assign(Form$2, {
6849
6850
Group: BootstrapFormGroup,
6850
6851
Control: FormControl$2,
6851
6852
Floating: FormFloating$1,
@@ -6929,7 +6930,7 @@ function useNavItem({
6929
6930
role,
6930
6931
disabled
6931
6932
}) {
6932
- const parentOnSelect = React.useContext(SelectableContext);
6933
+ const parentOnSelect = React.useContext(SelectableContext$1 );
6933
6934
const navContext = React.useContext(NavContext$2);
6934
6935
const tabContext = React.useContext(TabContext$1);
6935
6936
let isActive = active;
@@ -7021,7 +7022,7 @@ const Nav$2 = /*#__PURE__*/React__namespace.forwardRef((_ref, ref) => {
7021
7022
// and don't want to reset the set in the effect
7022
7023
const forceUpdate = useForceUpdate();
7023
7024
const needsRefocusRef = React.useRef(false);
7024
- const parentOnSelect = React.useContext(SelectableContext);
7025
+ const parentOnSelect = React.useContext(SelectableContext$1 );
7025
7026
const tabContext = React.useContext(TabContext$1);
7026
7027
let getControlledId, getControllerId;
7027
7028
if (tabContext) {
@@ -7082,7 +7083,7 @@ const Nav$2 = /*#__PURE__*/React__namespace.forwardRef((_ref, ref) => {
7082
7083
needsRefocusRef.current = false;
7083
7084
});
7084
7085
const mergedRef = useMergedRefs(ref, listNode);
7085
- return /*#__PURE__*/jsxRuntime.jsx(SelectableContext.Provider, {
7086
+ return /*#__PURE__*/jsxRuntime.jsx(SelectableContext$1 .Provider, {
7086
7087
value: handleSelect,
7087
7088
children: /*#__PURE__*/jsxRuntime.jsx(NavContext$2.Provider, {
7088
7089
value: {
@@ -8453,7 +8454,7 @@ const Navbar = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
8453
8454
}), [bsPrefix, expanded, expand, onToggle]);
8454
8455
return /*#__PURE__*/jsxRuntime.jsx(NavbarContext.Provider, {
8455
8456
value: navbarContext,
8456
- children: /*#__PURE__*/jsxRuntime.jsx(SelectableContext.Provider, {
8457
+ children: /*#__PURE__*/jsxRuntime.jsx(SelectableContext$1 .Provider, {
8457
8458
value: handleCollapse,
8458
8459
children: /*#__PURE__*/jsxRuntime.jsx(Component, {
8459
8460
ref: ref,
@@ -23433,7 +23434,7 @@ FormRichText.Feedback = Feedback$1;
23433
23434
23434
23435
var FormDateTime = function (_a) {
23435
23436
var className = _a.className, rest = __rest(_a, ["className"]);
23436
- return (React.createElement(BootstrapForm .Control, __assign$1({ as: "input", type: "datetime-local", className: className }, rest)));
23437
+ return (React.createElement(Form$3 .Control, __assign$1({ as: "input", type: "datetime-local", className: className }, rest)));
23437
23438
};
23438
23439
FormDateTime.Feedback = Feedback$1;
23439
23440
@@ -27067,7 +27068,7 @@ FormAsyncTypeahead.Feedback = Feedback$1;
27067
27068
27068
27069
var Form$1 = function (_a) {
27069
27070
var children = _a.children, rest = __rest(_a, ["children"]);
27070
- return React.createElement(BootstrapForm , __assign$1({}, rest), children);
27071
+ return React.createElement(Form$3 , __assign$1({}, rest), children);
27071
27072
};
27072
27073
Form$1.Group = FormGroup;
27073
27074
Form$1.Label = FormLabel;
@@ -29321,10 +29322,46 @@ var Tabs = function (_a) {
29321
29322
};
29322
29323
Tabs.Button = TabButton;
29323
29324
29325
+ var CommentItem = function (_a) {
29326
+ var inbound = _a.inbound, text = _a.text, className = _a.className, createdAt = _a.createdAt, createdBy = _a.createdBy, onDelete = _a.onDelete, rest = __rest(_a, ["inbound", "text", "className", "createdAt", "createdBy", "onDelete"]);
29327
+ var itemClass = classNames(className, 'w-75 border rounded p-3 mt-3', inbound ? 'bg-secondary' : 'text-white bg-primary');
29328
+ var localeFormat = new Intl.DateTimeFormat('default', {
29329
+ dateStyle: 'short',
29330
+ timeStyle: 'short',
29331
+ });
29332
+ return (React.createElement("div", { className: classNames('d-flex', inbound ? 'justify-content-start' : 'justify-content-end') },
29333
+ React.createElement("div", __assign$1({ className: itemClass }, rest),
29334
+ text,
29335
+ React.createElement("div", { className: "d-flex justify-content-between mt-2 opacity-75" },
29336
+ React.createElement("span", null,
29337
+ "From: ",
29338
+ createdBy),
29339
+ React.createElement("div", null,
29340
+ React.createElement("span", { className: classNames(!inbound ? "me-2" : null) }, localeFormat.format(createdAt)),
29341
+ !inbound ? (React.createElement("span", { className: "text-decoration-underline cursor-pointer", onClick: onDelete }, "Delete")) : null)))));
29342
+ };
29343
+
29344
+ var CommentInput = function (_a) {
29345
+ var onSubmit = _a.onSubmit, rest = __rest(_a, ["onSubmit"]);
29346
+ return (React.createElement("div", null,
29347
+ React.createElement(Subtitle, { text: "Comments:", className: "mb-2" }),
29348
+ React.createElement(Form$3.Control, __assign$1({ as: "textarea", placeholder: "Leave a comment..." }, rest)),
29349
+ React.createElement("div", { className: "d-flex justify-content-end mt-2" },
29350
+ React.createElement(Button, { onClick: onSubmit }, "Comment"))));
29351
+ };
29352
+
29353
+ var Comments = function (_a) {
29354
+ var children = _a.children, rest = __rest(_a, ["children"]);
29355
+ return React.createElement("div", __assign$1({}, rest), children);
29356
+ };
29357
+ Comments.Input = CommentInput;
29358
+ Comments.Item = CommentItem;
29359
+
29324
29360
exports.Breadcrumbs = Breadcrumbs;
29325
29361
exports.Button = Button;
29326
29362
exports.Card = Card;
29327
29363
exports.Chip = Chip;
29364
+ exports.Comments = Comments;
29328
29365
exports.FilterButton = FilterButton;
29329
29366
exports.Footer = Footer;
29330
29367
exports.Form = Form$1;
0 commit comments