@commenda/pathfinder 0.1.0 → 0.2.0
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/CHANGELOG.md +12 -0
- package/dist/components/accordion/AccordionSection.js +9 -3
- package/dist/components/address-input/AddressInput.js +1 -1
- package/dist/components/artifact-card/ArtifactCard.js +1 -1
- package/dist/components/artifact-panel/ArtifactPanel.js +81 -55
- package/dist/components/attachment/Attachment.d.ts +2 -6
- package/dist/components/attachment/Attachment.js +59 -36
- package/dist/components/attachment/AttachmentCard.d.ts +1 -1
- package/dist/components/attachment/AttachmentCard.js +56 -43
- package/dist/components/attachment/attachment-class-names.d.ts +1 -1
- package/dist/components/attachment/attachment-class-names.js +1 -1
- package/dist/components/attachment-group/AttachmentGroup.js +1 -1
- package/dist/components/avatar/avatar-helper.d.ts +1 -1
- package/dist/components/banner/Banner.js +5 -2
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/CalendarAgenda.js +1 -1
- package/dist/components/calendar/CalendarArtwork.js +16 -22
- package/dist/components/calendar/CalendarEventContent.js +2 -2
- package/dist/components/calendar/CalendarPopup.js +102 -82
- package/dist/components/calendar/CalendarToolbar.js +10 -10
- package/dist/components/card/Card.js +47 -41
- package/dist/components/checkbox/Checkbox.js +31 -13
- package/dist/components/choices/choice-motion.d.ts +12 -0
- package/dist/components/choices/choice-motion.js +22 -0
- package/dist/components/code-block/CodeBlock.js +3 -2
- package/dist/components/controls/control-class-names.d.ts +1 -0
- package/dist/components/controls/control-class-names.js +8 -8
- package/dist/components/controls/useHoverHighlight.d.ts +12 -0
- package/dist/components/controls/useHoverHighlight.js +51 -0
- package/dist/components/controls/useSelectionIndicator.d.ts +3 -4
- package/dist/components/controls/useSelectionIndicator.js +43 -28
- package/dist/components/data-grid/DataGrid.js +7 -7
- package/dist/components/data-grid/DataGridHeaders.js +1 -1
- package/dist/components/date-picker/DateCalendar.js +3 -3
- package/dist/components/date-picker/DatePicker.js +10 -10
- package/dist/components/date-picker/field/DateField.js +1 -1
- package/dist/components/description-list/DescriptionList.js +2 -2
- package/dist/components/dialog/ConfirmDialog.js +1 -1
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/distribution-bar/DistributionBar.js +45 -35
- package/dist/components/drag-handle/DragHandle.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.js +27 -26
- package/dist/components/dropdown/MenuContent.js +100 -69
- package/dist/components/dropdown/dropdown-types.d.ts +1 -0
- package/dist/components/dropdown/menu-motion.d.ts +2 -0
- package/dist/components/dropdown/menu-motion.js +4 -0
- package/dist/components/feedback/FeedbackIcon.d.ts +2 -1
- package/dist/components/feedback/FeedbackIcon.js +4 -4
- package/dist/components/feedback/FeedbackSurface.d.ts +3 -3
- package/dist/components/feedback/FeedbackSurface.js +49 -21
- package/dist/components/fields/FieldAction.d.ts +1 -0
- package/dist/components/fields/FieldAction.js +2 -2
- package/dist/components/icon-button/IconButton.js +37 -37
- package/dist/components/icons/index.js +776 -776
- package/dist/components/inline-reference/InlineReference.js +1 -8
- package/dist/components/list/List.js +2 -2
- package/dist/components/list/ListGroup.js +35 -30
- package/dist/components/list/ListTask.js +1 -1
- package/dist/components/list/SettingRow.js +1 -1
- package/dist/components/markdown/Markdown.js +11 -10
- package/dist/components/markdown/MarkdownTable.d.ts +1 -1
- package/dist/components/markdown/MarkdownTable.js +71 -54
- package/dist/components/otp/OTP.js +44 -43
- package/dist/components/output-sections/OutputRow.js +2 -3
- package/dist/components/overlays/OverlayFrame.js +2 -2
- package/dist/components/overlays/overlay-class-names.d.ts +3 -3
- package/dist/components/overlays/overlay-class-names.js +1 -1
- package/dist/components/phone-input/CountryPicker.js +11 -8
- package/dist/components/popover/Popover.js +2 -2
- package/dist/components/question-card/QuestionOptions.js +3 -3
- package/dist/components/radio-group/RadioGroup.js +59 -50
- package/dist/components/search/Search.js +51 -47
- package/dist/components/segmented-control/SegmentedControl.js +7 -6
- package/dist/components/selection/ChoiceField.js +1 -1
- package/dist/components/selection/ChoiceList.js +2 -1
- package/dist/components/selection/SearchableChoice.js +129 -114
- package/dist/components/selection/SelectedTags.js +1 -1
- package/dist/components/selection/SimpleChoice.js +95 -77
- package/dist/components/selection/choice-styles.d.ts +2 -2
- package/dist/components/selection/choice-styles.js +1 -1
- package/dist/components/sheet/Sheet.js +7 -7
- package/dist/components/side-nav/SideNav.d.ts +2 -5
- package/dist/components/side-nav/SideNav.js +98 -56
- package/dist/components/side-nav/SideNavItemView.d.ts +1 -1
- package/dist/components/side-nav/SideNavItemView.js +83 -98
- package/dist/components/side-nav/index.d.ts +2 -0
- package/dist/components/side-nav/index.js +1 -1
- package/dist/components/split-button/SplitButton.js +3 -2
- package/dist/components/stepper/StepMarker.js +32 -28
- package/dist/components/stepper/Stepper.js +30 -22
- package/dist/components/suggested-prompt/SuggestedPrompt.js +1 -1
- package/dist/components/switch/Switch.d.ts +1 -1
- package/dist/components/switch/Switch.js +38 -28
- package/dist/components/table/Table.js +134 -110
- package/dist/components/table/TableColumnHeader.js +20 -2
- package/dist/components/table/TableColumnResize.js +1 -1
- package/dist/components/table/TableColumnsMenu.js +1 -0
- package/dist/components/table/TableFilterChip.js +1 -1
- package/dist/components/table/TableFilterEditor.js +6 -6
- package/dist/components/table/TableFilters.js +1 -0
- package/dist/components/table/TableOptionMenu.d.ts +1 -1
- package/dist/components/table/TableOptionMenu.js +16 -17
- package/dist/components/table/TablePagination.js +1 -0
- package/dist/components/table/TableSelectionBar.js +4 -1
- package/dist/components/table/index.js +6 -6
- package/dist/components/table/table-column-style.js +0 -1
- package/dist/components/table/table-types.d.ts +5 -0
- package/dist/components/table/useTableData.js +2 -2
- package/dist/components/tabs/Tabs.js +61 -53
- package/dist/components/tabs/tab-class-names.d.ts +1 -1
- package/dist/components/tabs/tab-class-names.js +1 -1
- package/dist/components/tabular/TableEditCell.js +3 -1
- package/dist/components/tabular/tabular-class-names.d.ts +1 -0
- package/dist/components/tabular/tabular-class-names.js +1 -0
- package/dist/components/tabular/useCellEdit.js +1 -1
- package/dist/components/tabular/useTabularPinning.js +7 -6
- package/dist/components/tag/Tag.js +1 -1
- package/dist/components/tag-input/TagInput.js +64 -53
- package/dist/components/tag-input/useTagMotion.d.ts +6 -0
- package/dist/components/tag-input/useTagMotion.js +36 -0
- package/dist/components/text-area/TextArea.js +2 -1
- package/dist/components/thread/ThreadReply.js +10 -7
- package/dist/components/tool-call/ToolCall.js +2 -2
- package/dist/components/tree/TreeItemView.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -37
- package/dist/styles.css +1 -1
- package/package.json +5 -1
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/components/date-picker/date-values.d.ts +0 -23
- package/dist/components/date-picker/date-values.js +0 -52
- package/dist/components/table/TableHeaderPin.d.ts +0 -6
- package/dist/components/table/TableHeaderPin.js +0 -66
|
@@ -4,74 +4,87 @@ import { IconButton as t } from "../icon-button/IconButton.js";
|
|
|
4
4
|
import { FolderPlusIcon as n } from "../icons/FolderPlusIcon.js";
|
|
5
5
|
import { ProgressRing as r } from "../status-icons/ProgressRing.js";
|
|
6
6
|
import { XCloseIcon as i } from "../icons/XCloseIcon.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import l from "
|
|
12
|
-
import
|
|
7
|
+
import { Popover as a } from "../popover/Popover.js";
|
|
8
|
+
import { FileTypeHelper as o } from "../file-types/file-type-helper.js";
|
|
9
|
+
import { FileUploadHelper as s } from "../file-upload/file-upload-helper.js";
|
|
10
|
+
import { Download01Icon as c } from "../icons/Download01Icon.js";
|
|
11
|
+
import { FolderCheckIcon as l } from "../icons/FolderCheckIcon.js";
|
|
12
|
+
import u from "clsx";
|
|
13
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
14
|
//#region src/components/attachment/AttachmentCard.tsx
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
function p({ item: p, onPreview: m, onRetry: h, onRemove: g, onDownload: _, saveConfig: v, className: y, previewConfig: b }) {
|
|
16
|
+
let x = p.upload, S = !x || x.status === "ready", C = x?.status === "failed", w = C ? h : S ? m : void 0, T = p.kind === "folder" ? "folder" : p.kind === "image" || p.mediaType?.startsWith("image/") ? "image" : o.fromFilename(p.filename), E = C ? x.error : x?.status === "uploading" ? "Uploading…" : [p.kind === "folder" ? "Folder" : p.filename.split(".").at(-1)?.toUpperCase(), p.size === void 0 ? void 0 : s.size(p.size)].filter(Boolean).join(" · ");
|
|
17
|
+
return /* @__PURE__ */ f("div", {
|
|
17
18
|
"data-pf-attachment": "",
|
|
18
19
|
"data-layout": "card",
|
|
19
|
-
"data-status":
|
|
20
|
-
className:
|
|
20
|
+
"data-status": x?.status ?? "ready",
|
|
21
|
+
className: u("pf:box-border pf:relative pf:flex pf:w-full pf:min-w-0 pf:min-h-[64px] pf:items-center pf:gap-lg pf:rounded-lg pf:border-[0.5px] pf:border-solid pf:bg-background pf:p-lg pf:font-body pf:[@media(hover:hover)]:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200 pf:transition-colors pf:duration-120 pf:ease-[cubic-bezier(0.23,1,0.32,1)] pf:motion-reduce:transition-none", C ? "pf:border-red-300" : "pf:border-soft-pearl-300", y),
|
|
21
22
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ d(e, {
|
|
23
24
|
size: 40,
|
|
24
|
-
kind:
|
|
25
|
+
kind: T
|
|
25
26
|
}),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ f("div", {
|
|
27
28
|
className: "pf:min-w-0 pf:flex-1",
|
|
28
|
-
children: [S ? /* @__PURE__ */
|
|
29
|
+
children: [w ? b && S ? /* @__PURE__ */ d(a, {
|
|
30
|
+
mode: "preview",
|
|
31
|
+
title: p.filename,
|
|
32
|
+
loadingConfig: { isLoading: b.isLoading ?? !1 },
|
|
33
|
+
trigger: /* @__PURE__ */ d("button", {
|
|
34
|
+
type: "button",
|
|
35
|
+
onClick: () => {
|
|
36
|
+
w(p);
|
|
37
|
+
},
|
|
38
|
+
className: "pf:block pf:w-full pf:truncate pf:border-0 pf:bg-transparent pf:p-0 pf:text-start pf:font-body pf:text-label-13-strong pf:text-soft-pearl-1000 pf:cursor-pointer pf:after:absolute pf:after:inset-0 pf:after:rounded-lg pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700",
|
|
39
|
+
children: p.filename
|
|
40
|
+
}),
|
|
41
|
+
children: b.content
|
|
42
|
+
}) : /* @__PURE__ */ d("button", {
|
|
29
43
|
type: "button",
|
|
30
44
|
onClick: () => {
|
|
31
|
-
|
|
45
|
+
w(p);
|
|
32
46
|
},
|
|
33
|
-
title: f.filename,
|
|
34
47
|
className: "pf:block pf:w-full pf:truncate pf:border-0 pf:bg-transparent pf:p-0 pf:text-start pf:font-body pf:text-label-13-strong pf:text-soft-pearl-1000 pf:cursor-pointer pf:after:absolute pf:after:inset-0 pf:after:rounded-lg pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700",
|
|
35
|
-
children:
|
|
36
|
-
}) : /* @__PURE__ */
|
|
37
|
-
title:
|
|
48
|
+
children: p.filename
|
|
49
|
+
}) : /* @__PURE__ */ d("div", {
|
|
50
|
+
title: p.filename,
|
|
38
51
|
className: "pf:truncate pf:text-label-13-strong pf:text-soft-pearl-1000",
|
|
39
|
-
children:
|
|
40
|
-
}), /* @__PURE__ */
|
|
41
|
-
role:
|
|
42
|
-
className:
|
|
43
|
-
children:
|
|
52
|
+
children: p.filename
|
|
53
|
+
}), /* @__PURE__ */ d("div", {
|
|
54
|
+
role: C ? "status" : void 0,
|
|
55
|
+
className: u("pf:mt-xxs pf:text-copy-12 pf:wrap-anywhere", C ? "pf:text-red-800" : "pf:text-soft-pearl-800"),
|
|
56
|
+
children: E
|
|
44
57
|
})]
|
|
45
58
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ f("div", {
|
|
47
60
|
className: "pf:relative pf:flex pf:shrink-0 pf:items-center pf:gap-xs",
|
|
48
61
|
children: [
|
|
49
|
-
|
|
50
|
-
value:
|
|
51
|
-
label: `Uploading ${
|
|
62
|
+
x?.status === "uploading" && /* @__PURE__ */ d(r, {
|
|
63
|
+
value: x.progress,
|
|
64
|
+
label: `Uploading ${p.filename}`
|
|
52
65
|
}),
|
|
53
|
-
|
|
66
|
+
S && v && /* @__PURE__ */ d(t, {
|
|
54
67
|
size: "sm",
|
|
55
|
-
label:
|
|
56
|
-
disabled:
|
|
57
|
-
onClick: () =>
|
|
58
|
-
children:
|
|
68
|
+
label: v.isSaved ? "Saved to Documents" : "Save to Documents",
|
|
69
|
+
disabled: v.isSaved ? !v.onOpen : !v.onSave,
|
|
70
|
+
onClick: () => v.isSaved ? v.onOpen?.(p) : v.onSave?.(p),
|
|
71
|
+
children: v.isSaved ? /* @__PURE__ */ d(l, {}) : /* @__PURE__ */ d(n, {})
|
|
59
72
|
}),
|
|
60
|
-
|
|
73
|
+
S && _ && /* @__PURE__ */ d(t, {
|
|
61
74
|
size: "sm",
|
|
62
|
-
label: `Download ${
|
|
75
|
+
label: `Download ${p.filename}`,
|
|
63
76
|
onClick: () => {
|
|
64
|
-
|
|
77
|
+
_(p);
|
|
65
78
|
},
|
|
66
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ d(c, {})
|
|
67
80
|
}),
|
|
68
|
-
|
|
81
|
+
g && /* @__PURE__ */ d(t, {
|
|
69
82
|
size: "sm",
|
|
70
|
-
label: `Remove ${
|
|
83
|
+
label: `Remove ${p.filename}`,
|
|
71
84
|
onClick: () => {
|
|
72
|
-
|
|
85
|
+
g(p);
|
|
73
86
|
},
|
|
74
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ d(i, {})
|
|
75
88
|
})
|
|
76
89
|
]
|
|
77
90
|
})
|
|
@@ -79,4 +92,4 @@ function f({ item: f, onPreview: p, onRetry: m, onRemove: h, onDownload: g, save
|
|
|
79
92
|
});
|
|
80
93
|
}
|
|
81
94
|
//#endregion
|
|
82
|
-
export {
|
|
95
|
+
export { p as AttachmentCard };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const attachmentShellClass = "pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong";
|
|
1
|
+
export declare const attachmentShellClass = "pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:[@media(hover:hover)]:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200 pf:transition-colors pf:duration-120 pf:ease-[cubic-bezier(0.23,1,0.32,1)] pf:motion-reduce:transition-none pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong";
|
|
2
2
|
export declare const attachmentBodyClass = "pf:flex pf:min-w-0 pf:flex-1 pf:items-center pf:gap-sm pf:border-0 pf:bg-transparent pf:p-0 pf:font-body pf:text-label-12-strong pf:text-inherit pf:text-start pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700 pf:rounded-xs";
|
|
3
3
|
export declare const attachmentRemoveClass = "pf:flex pf:shrink-0 pf:size-xl pf:items-center pf:justify-center pf:rounded-xs pf:border-0 pf:bg-transparent pf:p-0 pf:text-soft-pearl-800 pf:cursor-pointer pf:hover:text-soft-pearl-1000 pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/components/attachment/attachment-class-names.ts
|
|
2
|
-
var e = "pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong", t = "pf:flex pf:min-w-0 pf:flex-1 pf:items-center pf:gap-sm pf:border-0 pf:bg-transparent pf:p-0 pf:font-body pf:text-label-12-strong pf:text-inherit pf:text-start pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700 pf:rounded-xs", n = "pf:flex pf:shrink-0 pf:size-xl pf:items-center pf:justify-center pf:rounded-xs pf:border-0 pf:bg-transparent pf:p-0 pf:text-soft-pearl-800 pf:cursor-pointer pf:hover:text-soft-pearl-1000 pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700";
|
|
2
|
+
var e = "pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:[@media(hover:hover)]:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200 pf:transition-colors pf:duration-120 pf:ease-[cubic-bezier(0.23,1,0.32,1)] pf:motion-reduce:transition-none pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong", t = "pf:flex pf:min-w-0 pf:flex-1 pf:items-center pf:gap-sm pf:border-0 pf:bg-transparent pf:p-0 pf:font-body pf:text-label-12-strong pf:text-inherit pf:text-start pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700 pf:rounded-xs", n = "pf:flex pf:shrink-0 pf:size-xl pf:items-center pf:justify-center pf:rounded-xs pf:border-0 pf:bg-transparent pf:p-0 pf:text-soft-pearl-800 pf:cursor-pointer pf:hover:text-soft-pearl-1000 pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { t as attachmentBodyClass, n as attachmentRemoveClass, e as attachmentShellClass };
|
|
@@ -56,7 +56,7 @@ var c = ({ items: c, align: l = "start", maxRows: u = 3, getPreview: d, onRemove
|
|
|
56
56
|
trigger: /* @__PURE__ */ s("button", {
|
|
57
57
|
type: "button",
|
|
58
58
|
"aria-label": `Show ${String(C.length)} more attachments`,
|
|
59
|
-
className: a("pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong", "pf:border-[0.5px] pf:border-soft-pearl-300 pf:px-sm pf:cursor-pointer pf:text-soft-pearl-1000 pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700"),
|
|
59
|
+
className: a("pf:box-border pf:inline-flex pf:h-[var(--pf-control-sm)] pf:min-w-0 pf:max-w-[min(240px,100%)] pf:shrink-0 pf:items-center pf:gap-sm pf:rounded-sm pf:border-solid pf:bg-background pf:[@media(hover:hover)]:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200 pf:transition-colors pf:duration-120 pf:ease-[cubic-bezier(0.23,1,0.32,1)] pf:motion-reduce:transition-none pf:pl-sm pf:pr-xs pf:font-body pf:text-label-12-strong", "pf:border-[0.5px] pf:border-soft-pearl-300 pf:px-sm pf:cursor-pointer pf:text-soft-pearl-1000 pf:focus-visible:outline-2 pf:focus-visible:outline-blue-700"),
|
|
60
60
|
children: ["+", C.length]
|
|
61
61
|
}),
|
|
62
62
|
children: /* @__PURE__ */ o("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AvatarIdentity, AvatarSize } from './avatar-types.js';
|
|
2
2
|
export declare class AvatarHelper {
|
|
3
3
|
static readonly tones: readonly ["clay", "apricot", "ochre", "olive", "sage", "dusk", "plum", "rose"];
|
|
4
|
-
static getTone(identity: AvatarIdentity): "
|
|
4
|
+
static getTone(identity: AvatarIdentity): "neutral" | "clay" | "apricot" | "ochre" | "olive" | "sage" | "dusk" | "plum" | "rose";
|
|
5
5
|
static getName(identity: AvatarIdentity, unknownLabel?: string): string;
|
|
6
6
|
static getInitials(identity: AvatarIdentity, size: AvatarSize): string;
|
|
7
7
|
}
|
|
@@ -13,9 +13,12 @@ var u = ({ description: u, title: d, tone: f = "neutral", actionConfig: p, dismi
|
|
|
13
13
|
dismissConfig: m,
|
|
14
14
|
children: (o) => /* @__PURE__ */ l("div", {
|
|
15
15
|
role: i(f === "announcement" ? "info" : f, h),
|
|
16
|
-
className: s("pf:relative pf:box-border pf:flex pf:items-
|
|
16
|
+
className: s("pf:relative pf:box-border pf:flex pf:items-center pf:gap-[10px] pf:border-0 pf:border-b-[0.5px] pf:border-solid pf:py-[10px] pf:font-body", f === "announcement" ? "pf:px-[40px]" : "pf:ps-xl pf:pe-lg", r[f === "announcement" ? "info" : f], g),
|
|
17
17
|
children: [
|
|
18
|
-
f !== "announcement" && /* @__PURE__ */ c(a, {
|
|
18
|
+
f !== "announcement" && /* @__PURE__ */ c(a, {
|
|
19
|
+
tone: f,
|
|
20
|
+
className: "pf:mt-0"
|
|
21
|
+
}),
|
|
19
22
|
/* @__PURE__ */ l("div", {
|
|
20
23
|
className: s("pf:flex pf:min-w-0 pf:flex-1 pf:flex-wrap pf:items-center pf:gap-md pf:text-copy-13 pf:wrap-anywhere", f === "announcement" ? "pf:justify-center pf:text-center pf:text-blue-900" : "pf:text-soft-pearl-900"),
|
|
21
24
|
children: [/* @__PURE__ */ l("span", { children: [d && /* @__PURE__ */ l("strong", {
|
|
@@ -33,7 +33,7 @@ var f = s(({ variant: s = "primary", size: f = "md", destructive: p = !1, loadin
|
|
|
33
33
|
destructive: p,
|
|
34
34
|
disabled: v,
|
|
35
35
|
loading: O
|
|
36
|
-
}), b),
|
|
36
|
+
}), s !== "link" && s !== "link-subtle" && "pf:motion-safe:transition-[background-color,border-color,color,scale]! pf:motion-safe:duration-150! pf:motion-safe:ease-[cubic-bezier(0.23,1,0.32,1)] pf:motion-safe:not-focus-visible:not-data-disabled:active:scale-[0.98] pf:motion-safe:active:duration-100! pf:focus-visible:transition-none!", b),
|
|
37
37
|
children: [
|
|
38
38
|
O ? /* @__PURE__ */ u(r, { size: j }) : k ? /* @__PURE__ */ u(n, {
|
|
39
39
|
size: j,
|
|
@@ -14,7 +14,7 @@ var g = ({ event: s, config: g, state: _ }) => {
|
|
|
14
14
|
let v = g.eventConfig?.getMenu?.(s);
|
|
15
15
|
return /* @__PURE__ */ h("div", {
|
|
16
16
|
"data-draft": s.status?.appearance === "draft" ? "" : void 0,
|
|
17
|
-
className: "pf:data-draft:
|
|
17
|
+
className: "pf:data-draft:bg-soft-pearl-100 pf:group/event pf:relative pf:flex pf:min-w-0 pf:flex-wrap pf:items-center pf:gap-md pf:px-[10px] pf:py-md pf:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200",
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ m("span", {
|
|
20
20
|
"aria-hidden": "true",
|
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CheckIcon as e } from "../icons/CheckIcon.js";
|
|
2
|
+
import { IconButton as t } from "../icon-button/IconButton.js";
|
|
3
3
|
import { AlertCircleIcon as n } from "../icons/AlertCircleIcon.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import { cloneElement as r, isValidElement as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
6
|
//#region src/components/calendar/CalendarArtwork.tsx
|
|
8
|
-
var
|
|
7
|
+
var o = ({ flag: e }) => i(e) ? /* @__PURE__ */ a("span", {
|
|
9
8
|
"aria-hidden": "true",
|
|
10
9
|
className: "pf:inline-flex pf:size-lg pf:shrink-0 pf:items-center pf:justify-center pf:leading-none",
|
|
11
|
-
children:
|
|
10
|
+
children: r(e, {
|
|
12
11
|
size: 12,
|
|
13
12
|
width: 12,
|
|
14
13
|
height: 12
|
|
15
14
|
})
|
|
16
|
-
}) : null,
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
className: `pf:inline-flex pf:size-xl pf:shrink-0 pf:items-center pf:justify-center pf:rounded-xs pf:border-0 pf:bg-transparent pf:p-0 ${r} ${a === "filed" ? "pf:text-green-700" : "pf:text-red-700"}`,
|
|
26
|
-
children: o(a === "filed" ? t : n, {
|
|
27
|
-
size: 12,
|
|
28
|
-
tone: "inherit"
|
|
29
|
-
})
|
|
15
|
+
}) : null, s = ({ event: r }) => {
|
|
16
|
+
let i = r.status?.appearance;
|
|
17
|
+
return i !== "filed" && i !== "overdue" ? null : /* @__PURE__ */ a(t, {
|
|
18
|
+
label: `${i === "filed" ? "Completed" : "Overdue"}: ${r.title}`,
|
|
19
|
+
size: "xs",
|
|
20
|
+
className: i === "filed" ? "pf:[&.pf-icon-button]:text-green-700" : "pf:[&.pf-icon-button]:text-red-700",
|
|
21
|
+
children: a(i === "filed" ? e : n, {
|
|
22
|
+
size: 12,
|
|
23
|
+
tone: "inherit"
|
|
30
24
|
})
|
|
31
25
|
});
|
|
32
26
|
};
|
|
33
27
|
//#endregion
|
|
34
|
-
export {
|
|
28
|
+
export { o as CalendarFlag, s as CalendarStatusMark };
|
|
@@ -10,7 +10,7 @@ var c = a(function({ event: r, className: a, ...c }, l) {
|
|
|
10
10
|
ref: l,
|
|
11
11
|
type: "button",
|
|
12
12
|
"aria-label": r.title || "Untitled event",
|
|
13
|
-
className: i("pf:box-border pf:flex pf:h-2xl pf:w-full pf:min-w-0 pf:cursor-pointer pf:items-center pf:gap-xs pf:rounded-xs pf:border-0 pf:bg-transparent pf:py-0 pf:ps-[3px] pf:pe-sm pf:text-start pf:font-body pf:text-[12px] pf:leading-[16px] pf:font-medium pf:hover:bg-soft-pearl-200 pf:aria-expanded:bg-soft-pearl-300", t, r.status?.appearance === "filed" || r.status?.appearance === "draft" ? "pf:text-soft-pearl-800" : "pf:text-soft-pearl-1000", (r.status?.appearance === "extended" || r.status?.appearance === "draft") && "pf:outline pf:outline-dashed pf:outline-soft-pearl-500 pf:-outline-offset-1", r.status?.appearance === "draft" && "pf:bg-soft-pearl-100", a),
|
|
13
|
+
className: i("pf:box-border pf:flex pf:h-2xl pf:w-full pf:min-w-0 pf:cursor-pointer pf:items-center pf:gap-xs pf:rounded-xs pf:border-0 pf:bg-transparent pf:py-0 pf:ps-[3px] pf:pe-sm pf:text-start pf:font-body pf:text-[12px] pf:leading-[16px] pf:font-medium pf:hover:bg-soft-pearl-200 pf:aria-expanded:bg-soft-pearl-300 pf:group-hover/calendar-row:bg-transparent pf:group-focus-within/calendar-row:bg-transparent", t, r.status?.appearance === "filed" || r.status?.appearance === "draft" ? "pf:text-soft-pearl-800" : "pf:text-soft-pearl-1000", (r.status?.appearance === "extended" || r.status?.appearance === "draft") && "pf:outline pf:outline-dashed pf:outline-soft-pearl-500 pf:-outline-offset-1", r.status?.appearance === "draft" && "pf:bg-soft-pearl-100", a),
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ o("span", {
|
|
16
16
|
"aria-hidden": "true",
|
|
@@ -25,7 +25,7 @@ var c = a(function({ event: r, className: a, ...c }, l) {
|
|
|
25
25
|
]
|
|
26
26
|
});
|
|
27
27
|
}), l = ({ event: e, children: t }) => /* @__PURE__ */ s("div", {
|
|
28
|
-
className: "pf:relative pf:flex pf:min-w-0 pf:items-center pf:gap-xxs",
|
|
28
|
+
className: "pf:group/calendar-row pf:relative pf:flex pf:min-w-0 pf:items-center pf:gap-xxs pf:rounded-xs pf:hover:bg-soft-pearl-200 pf:focus-within:bg-soft-pearl-200 pf:[&:has([aria-expanded=true])]:bg-soft-pearl-300 pf:motion-safe:transition-colors pf:duration-120",
|
|
29
29
|
children: [t, /* @__PURE__ */ o(r, { event: e })]
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
@@ -1,116 +1,136 @@
|
|
|
1
1
|
import { Button as e } from "../button/Button.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Popover as t } from "../popover/Popover.js";
|
|
3
|
+
import { Dropdown as n } from "../dropdown/Dropdown.js";
|
|
4
|
+
import { Avatar as r } from "../avatar/Avatar.js";
|
|
5
|
+
import { ChevronLeftIcon as i } from "../icons/ChevronLeftIcon.js";
|
|
6
6
|
import { Badge as a } from "../badge/Badge.js";
|
|
7
7
|
import { CalendarDateHelper as o } from "./calendar-date-helper.js";
|
|
8
8
|
import { CalendarFlag as s } from "./CalendarArtwork.js";
|
|
9
9
|
import { CalendarEventContent as c } from "./CalendarEventContent.js";
|
|
10
|
-
import {
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { Popover as p } from "@base-ui/react/popover";
|
|
10
|
+
import { useLayoutEffect as l, useRef as u, useState as d } from "react";
|
|
11
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
13
12
|
//#region src/components/calendar/CalendarPopup.tsx
|
|
14
|
-
var
|
|
15
|
-
let [
|
|
16
|
-
|
|
13
|
+
var h = ({ trigger: e, title: n, children: r, onOpenChange: i }) => {
|
|
14
|
+
let [a, o] = d(!1), s = (e) => {
|
|
15
|
+
o(e), i?.(e);
|
|
17
16
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
open:
|
|
20
|
-
onOpenChange:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: [/* @__PURE__ */ f("div", {
|
|
29
|
-
className: "pf:mb-lg pf:flex pf:items-start pf:gap-md",
|
|
30
|
-
children: [/* @__PURE__ */ d(p.Title, {
|
|
31
|
-
className: "pf:m-0 pf:min-w-0 pf:flex-1 pf:break-words pf:text-[14px] pf:font-medium",
|
|
32
|
-
children: r
|
|
33
|
-
}), /* @__PURE__ */ d(p.Close, { render: /* @__PURE__ */ d(t, {
|
|
34
|
-
label: "Close preview",
|
|
35
|
-
size: "xs",
|
|
36
|
-
tooltip: !1,
|
|
37
|
-
children: /* @__PURE__ */ d(n, {})
|
|
38
|
-
}) })]
|
|
39
|
-
}), typeof i == "function" ? i(() => {
|
|
40
|
-
c(!1);
|
|
41
|
-
}) : i]
|
|
42
|
-
})
|
|
43
|
-
}) })]
|
|
17
|
+
return /* @__PURE__ */ p(t, {
|
|
18
|
+
open: a,
|
|
19
|
+
onOpenChange: s,
|
|
20
|
+
trigger: e,
|
|
21
|
+
title: n,
|
|
22
|
+
closeConfig: { label: "Close preview" },
|
|
23
|
+
positionConfig: { align: "start" },
|
|
24
|
+
children: typeof r == "function" ? r(() => {
|
|
25
|
+
s(!1);
|
|
26
|
+
}) : r
|
|
44
27
|
});
|
|
45
|
-
},
|
|
28
|
+
}, g = ({ event: t, config: i, locale: c }) => /* @__PURE__ */ m(f, { children: [i?.renderPreview ? i.renderPreview(t) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
46
29
|
className: "pf:mb-xl pf:flex pf:items-center pf:gap-md pf:break-words pf:text-[12px] pf:text-soft-pearl-800",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
48
|
-
}), /* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ p(s, { flag: t.entity.flag }), t.entity.label]
|
|
31
|
+
}), /* @__PURE__ */ m("dl", {
|
|
49
32
|
className: "pf:m-0 pf:grid pf:grid-cols-[80px_minmax(0,1fr)] pf:items-center pf:gap-x-lg pf:gap-y-lg pf:border-t pf:border-soft-pearl-300 pf:pt-xl pf:text-[12px] pf:[&>dd]:m-0 pf:[&>dd]:break-words pf:[&>dt]:text-soft-pearl-800",
|
|
50
33
|
children: [
|
|
51
|
-
t.status && /* @__PURE__ */ f
|
|
34
|
+
t.status && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("dt", { children: "Status" }), /* @__PURE__ */ p("dd", { children: /* @__PURE__ */ p(a, {
|
|
52
35
|
label: t.status.label,
|
|
53
36
|
tone: t.status.tone
|
|
54
37
|
}) })] }),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ p("dt", { children: "Due date" }),
|
|
39
|
+
/* @__PURE__ */ p("dd", { children: o.label(t.date, c) }),
|
|
40
|
+
/* @__PURE__ */ p("dt", { children: "Category" }),
|
|
41
|
+
/* @__PURE__ */ p("dd", { children: t.category.label }),
|
|
42
|
+
/* @__PURE__ */ p("dt", { children: "Assignee" }),
|
|
43
|
+
/* @__PURE__ */ p("dd", { children: t.assignee ? /* @__PURE__ */ m("span", {
|
|
61
44
|
className: "pf:flex pf:items-center pf:gap-md",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ p(r, {
|
|
63
46
|
identity: t.assignee,
|
|
64
47
|
size: 24
|
|
65
48
|
}), t.assignee.name ?? t.assignee.email ?? "Unknown"]
|
|
66
49
|
}) : "Unassigned" })
|
|
67
50
|
]
|
|
68
|
-
})] }), /* @__PURE__ */
|
|
69
|
-
className: "pf:mt-
|
|
70
|
-
children: [
|
|
51
|
+
})] }), (i?.onOpen || i?.getMenu) && /* @__PURE__ */ m("div", {
|
|
52
|
+
className: "pf:mt-lg pf:flex pf:flex-wrap pf:items-center pf:gap-md",
|
|
53
|
+
children: [i.onOpen && /* @__PURE__ */ p(e, {
|
|
71
54
|
size: "sm",
|
|
72
55
|
variant: "secondary",
|
|
73
56
|
onClick: () => {
|
|
74
|
-
|
|
57
|
+
i.onOpen?.(t);
|
|
75
58
|
},
|
|
76
59
|
children: "Open record"
|
|
77
|
-
}),
|
|
78
|
-
menu:
|
|
79
|
-
trigger: /* @__PURE__ */
|
|
60
|
+
}), i.getMenu && /* @__PURE__ */ p(n, {
|
|
61
|
+
menu: i.getMenu(t),
|
|
62
|
+
trigger: /* @__PURE__ */ p(e, {
|
|
80
63
|
variant: "tertiary",
|
|
81
64
|
size: "sm",
|
|
82
65
|
children: "Record actions"
|
|
83
66
|
})
|
|
84
67
|
})]
|
|
85
|
-
})] }),
|
|
86
|
-
let [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
68
|
+
})] }), _ = ({ events: t, locale: n, config: r }) => {
|
|
69
|
+
let [a, o] = d(), s = u(null), h = u(null), _ = u(), v = u(null), y = u(!1), b = (e, t) => {
|
|
70
|
+
y.current = !0, a && (_.current = a.id), v.current = t > 0 ? {
|
|
71
|
+
direction: e ? 1 : -1,
|
|
72
|
+
height: s.current?.offsetHeight ?? 0
|
|
73
|
+
} : null, o(e);
|
|
74
|
+
};
|
|
75
|
+
return l(() => {
|
|
76
|
+
let e = s.current;
|
|
77
|
+
if (!e || !y.current) return;
|
|
78
|
+
a ? h.current?.focus({ preventScroll: !0 }) : Array.from(e.querySelectorAll("[data-event-id]")).find((e) => e.dataset.eventId === _.current)?.focus({ preventScroll: !0 });
|
|
79
|
+
let t = v.current;
|
|
80
|
+
if (!t || typeof e.animate != "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
81
|
+
let n = e.offsetHeight, r = e.animate([{
|
|
82
|
+
opacity: 0,
|
|
83
|
+
transform: `translateX(${String(t.direction * 6)}px)`,
|
|
84
|
+
height: `${String(t.height)}px`
|
|
85
|
+
}, {
|
|
86
|
+
opacity: 1,
|
|
87
|
+
transform: "translateX(0)",
|
|
88
|
+
height: `${String(n)}px`
|
|
89
|
+
}], {
|
|
90
|
+
duration: 160,
|
|
91
|
+
easing: "cubic-bezier(0.23,1,0.32,1)"
|
|
92
|
+
});
|
|
93
|
+
return () => {
|
|
94
|
+
r.cancel();
|
|
95
|
+
};
|
|
96
|
+
}, [a]), /* @__PURE__ */ p("div", {
|
|
97
|
+
ref: s,
|
|
98
|
+
className: "pf:min-w-0 pf:overflow-clip pf:p-px",
|
|
99
|
+
children: a ? /* @__PURE__ */ m(f, { children: [
|
|
100
|
+
/* @__PURE__ */ m(e, {
|
|
101
|
+
ref: h,
|
|
102
|
+
size: "sm",
|
|
103
|
+
variant: "link",
|
|
104
|
+
leadingIcon: /* @__PURE__ */ p(i, {}),
|
|
105
|
+
onClick: (e) => {
|
|
106
|
+
b(void 0, e.detail);
|
|
107
|
+
},
|
|
108
|
+
children: [
|
|
109
|
+
"All filings (",
|
|
110
|
+
t.length,
|
|
111
|
+
")"
|
|
112
|
+
]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ p("h3", {
|
|
115
|
+
className: "pf:mt-md pf:mb-lg pf:break-words pf:text-label-13-strong",
|
|
116
|
+
children: a.title
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ p(g, {
|
|
119
|
+
event: a,
|
|
120
|
+
locale: n,
|
|
121
|
+
config: r
|
|
122
|
+
})
|
|
123
|
+
] }) : /* @__PURE__ */ p("div", {
|
|
124
|
+
className: "pf:flex pf:flex-col pf:gap-xs",
|
|
125
|
+
children: t.map((e) => /* @__PURE__ */ p(c, {
|
|
126
|
+
"data-event-id": e.id,
|
|
127
|
+
event: e,
|
|
128
|
+
onClick: (t) => {
|
|
129
|
+
b(e, t.detail);
|
|
130
|
+
}
|
|
131
|
+
}, e.id))
|
|
104
132
|
})
|
|
105
|
-
] }) : /* @__PURE__ */ d("div", {
|
|
106
|
-
className: "pf:flex pf:flex-col pf:gap-xs",
|
|
107
|
-
children: t.map((e) => /* @__PURE__ */ d(c, {
|
|
108
|
-
event: e,
|
|
109
|
-
onClick: () => {
|
|
110
|
-
a(e);
|
|
111
|
-
}
|
|
112
|
-
}, e.id))
|
|
113
133
|
});
|
|
114
134
|
};
|
|
115
135
|
//#endregion
|
|
116
|
-
export {
|
|
136
|
+
export { _ as CalendarDayPreview, g as CalendarEventPreview, h as CalendarPopup };
|
|
@@ -3,10 +3,10 @@ import { IconButton as t } from "../icon-button/IconButton.js";
|
|
|
3
3
|
import { ChevronRightIcon as n } from "../icons/ChevronRightIcon.js";
|
|
4
4
|
import { ChevronLeftIcon as r } from "../icons/ChevronLeftIcon.js";
|
|
5
5
|
import { PlusIcon as i } from "../icons/PlusIcon.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { SplitButton as a } from "../split-button/SplitButton.js";
|
|
7
|
+
import { CalendarDateHelper as o } from "./calendar-date-helper.js";
|
|
8
|
+
import { MultiSelect as s } from "../multi-select/MultiSelect.js";
|
|
9
|
+
import { SegmentedControl as c } from "../segmented-control/SegmentedControl.js";
|
|
10
10
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/calendar/CalendarToolbar.tsx
|
|
12
12
|
var d = ({ config: d, state: f }) => {
|
|
@@ -32,7 +32,7 @@ var d = ({ config: d, state: f }) => {
|
|
|
32
32
|
size: "sm",
|
|
33
33
|
disabled: f.month === "1000-01",
|
|
34
34
|
onClick: () => {
|
|
35
|
-
f.changeMonth(
|
|
35
|
+
f.changeMonth(o.moveMonth(f.month, -1));
|
|
36
36
|
},
|
|
37
37
|
children: /* @__PURE__ */ l(r, {})
|
|
38
38
|
}), /* @__PURE__ */ l(t, {
|
|
@@ -40,7 +40,7 @@ var d = ({ config: d, state: f }) => {
|
|
|
40
40
|
size: "sm",
|
|
41
41
|
disabled: f.month === "9999-12",
|
|
42
42
|
onClick: () => {
|
|
43
|
-
f.changeMonth(
|
|
43
|
+
f.changeMonth(o.moveMonth(f.month, 1));
|
|
44
44
|
},
|
|
45
45
|
children: /* @__PURE__ */ l(n, {})
|
|
46
46
|
})]
|
|
@@ -48,14 +48,14 @@ var d = ({ config: d, state: f }) => {
|
|
|
48
48
|
/* @__PURE__ */ l("h2", {
|
|
49
49
|
"aria-live": "polite",
|
|
50
50
|
className: "pf:m-0 pf:me-auto pf:text-[18px] pf:leading-[24px] pf:font-medium",
|
|
51
|
-
children:
|
|
51
|
+
children: o.format(`${f.month}-01`, f.locale, {
|
|
52
52
|
month: "long",
|
|
53
53
|
year: "numeric"
|
|
54
54
|
})
|
|
55
55
|
}),
|
|
56
56
|
d.entityFilterConfig && /* @__PURE__ */ l("div", {
|
|
57
57
|
className: "pf:w-[176px] pf:max-w-full",
|
|
58
|
-
children: /* @__PURE__ */ l(
|
|
58
|
+
children: /* @__PURE__ */ l(s, {
|
|
59
59
|
label: d.entityFilterConfig.label ?? "Filter entities",
|
|
60
60
|
hideLabel: !0,
|
|
61
61
|
placeholder: "All entities",
|
|
@@ -68,7 +68,7 @@ var d = ({ config: d, state: f }) => {
|
|
|
68
68
|
onValueChange: f.changeEntities
|
|
69
69
|
})
|
|
70
70
|
}),
|
|
71
|
-
/* @__PURE__ */ l(
|
|
71
|
+
/* @__PURE__ */ l(c, {
|
|
72
72
|
label: "Calendar view",
|
|
73
73
|
size: "sm",
|
|
74
74
|
value: f.view,
|
|
@@ -83,7 +83,7 @@ var d = ({ config: d, state: f }) => {
|
|
|
83
83
|
label: "Agenda"
|
|
84
84
|
}]
|
|
85
85
|
}),
|
|
86
|
-
m && (p.length > 1 ? /* @__PURE__ */ l(
|
|
86
|
+
m && (p.length > 1 ? /* @__PURE__ */ l(a, {
|
|
87
87
|
label: m.label,
|
|
88
88
|
size: "sm",
|
|
89
89
|
leadingIcon: /* @__PURE__ */ l(i, {}),
|