@noix-dev/brix-vue 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +74 -2
- package/package.json +117 -3
- package/src/components/address-field/AddressField.vue +337 -0
- package/src/components/address-field/index.ts +1 -0
- package/src/components/appearance-picker/AppearancePicker.vue +502 -0
- package/src/components/appearance-picker/AppearanceSegment.vue +175 -0
- package/src/components/appearance-picker/index.ts +44 -0
- package/src/components/autofill/AutoFillDialog.vue +264 -0
- package/src/components/autofill/index.ts +1 -0
- package/src/components/badge/Badge.vue +23 -0
- package/src/components/badge/index.ts +106 -0
- package/src/components/build-stamp/BuildStamp.vue +62 -0
- package/src/components/build-stamp/index.ts +1 -0
- package/src/components/button/Button.vue +31 -0
- package/src/components/button/index.ts +122 -0
- package/src/components/card/Card.vue +29 -0
- package/src/components/card/CardAction.vue +17 -0
- package/src/components/card/CardContent.vue +14 -0
- package/src/components/card/CardDescription.vue +14 -0
- package/src/components/card/CardFooter.vue +22 -0
- package/src/components/card/CardHeader.vue +22 -0
- package/src/components/card/CardTitle.vue +29 -0
- package/src/components/card/index.ts +47 -0
- package/src/components/chart/BarChart.vue +123 -0
- package/src/components/chart/StackedBarChart.vue +149 -0
- package/src/components/chart/appearanceRevision.ts +22 -0
- package/src/components/chart/chartColor.ts +59 -0
- package/src/components/chart/index.ts +6 -0
- package/src/components/checkbox/Checkbox.vue +61 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/code-editor/CodeEditor.vue +352 -0
- package/src/components/code-editor/index.ts +9 -0
- package/src/components/code-editor/syntaxTheme.ts +110 -0
- package/src/components/colour-picker/ColourPicker.vue +421 -0
- package/src/components/colour-picker/index.ts +1 -0
- package/src/components/combobox/Combobox.vue +337 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/comments/CommentComposer.vue +302 -0
- package/src/components/comments/CommentMessage.vue +259 -0
- package/src/components/comments/CommentThread.vue +250 -0
- package/src/components/comments/commentBody.ts +185 -0
- package/src/components/comments/commentLevels.ts +139 -0
- package/src/components/comments/commentNode.ts +35 -0
- package/src/components/comments/composer.ts +20 -0
- package/src/components/comments/index.ts +29 -0
- package/src/components/confirm-dialog/ConfirmDialog.vue +153 -0
- package/src/components/confirm-dialog/index.ts +1 -0
- package/src/components/containers/Box.vue +42 -0
- package/src/components/containers/Section.vue +88 -0
- package/src/components/containers/SectionAction.vue +17 -0
- package/src/components/containers/SectionContent.vue +14 -0
- package/src/components/containers/SectionDescription.vue +14 -0
- package/src/components/containers/SectionHeader.vue +22 -0
- package/src/components/containers/SectionTitle.vue +17 -0
- package/src/components/containers/index.ts +9 -0
- package/src/components/data-table/ColumnMenu.vue +241 -0
- package/src/components/data-table/DataTable.vue +447 -0
- package/src/components/data-table/ExpandCaret.vue +34 -0
- package/src/components/data-table/SortableHead.vue +184 -0
- package/src/components/data-table/TableLoadingRow.vue +13 -0
- package/src/components/data-table/TableProgressRow.vue +26 -0
- package/src/components/data-table/columns.ts +13 -0
- package/src/components/data-table/index.ts +3 -0
- package/src/components/data-table/pinned.ts +19 -0
- package/src/components/data-table/rowActivation.ts +14 -0
- package/src/components/data-table/sort.ts +13 -0
- package/src/components/data-table/types.ts +23 -0
- package/src/components/date-picker/CalendarPanel.vue +432 -0
- package/src/components/date-picker/DateField.vue +293 -0
- package/src/components/date-picker/DatePicker.vue +147 -0
- package/src/components/date-picker/UntilDatePicker.vue +96 -0
- package/src/components/date-picker/dateFieldGuard.ts +87 -0
- package/src/components/date-picker/index.ts +4 -0
- package/src/components/date-picker/useDateField.ts +37 -0
- package/src/components/date-range-picker/DateRangePicker.vue +247 -0
- package/src/components/date-range-picker/index.ts +1 -0
- package/src/components/date-time-picker/DateTimePicker.vue +291 -0
- package/src/components/date-time-picker/index.ts +1 -0
- package/src/components/dialog/Dialog.vue +250 -0
- package/src/components/dialog/DialogSurface.vue +214 -0
- package/src/components/dialog/dialogEdges.ts +65 -0
- package/src/components/dialog/dialogSizes.ts +35 -0
- package/src/components/dialog/index.ts +12 -0
- package/src/components/dialog/toastHost.ts +18 -0
- package/src/components/dropdown/Dropdown.vue +101 -0
- package/src/components/dropdown/DropdownItems.vue +154 -0
- package/src/components/dropdown/dropdown.ts +64 -0
- package/src/components/dropdown/index.ts +2 -0
- package/src/components/file-preview/FilePreview.vue +78 -0
- package/src/components/file-preview/index.ts +1 -0
- package/src/components/file-upload/FileUpload.vue +234 -0
- package/src/components/file-upload/index.ts +1 -0
- package/src/components/filter-check-menu/FilterCheckMenu.vue +562 -0
- package/src/components/filter-check-menu/filterCheckOption.ts +10 -0
- package/src/components/filter-check-menu/index.ts +2 -0
- package/src/components/form-field/FormField.vue +74 -0
- package/src/components/form-field/index.ts +2 -0
- package/src/components/form-field/types.ts +5 -0
- package/src/components/frames/FrameCentred.vue +137 -0
- package/src/components/frames/FrameSidebar.vue +113 -0
- package/src/components/frames/FrameSplit.vue +109 -0
- package/src/components/frames/index.ts +3 -0
- package/src/components/icon/BellIcon.vue +27 -0
- package/src/components/icon/BoldIcon.vue +31 -0
- package/src/components/icon/CalendarDaysIcon.vue +33 -0
- package/src/components/icon/CheckIcon.vue +31 -0
- package/src/components/icon/ChevronDownIcon.vue +30 -0
- package/src/components/icon/ChevronLeftIcon.vue +31 -0
- package/src/components/icon/ChevronRightIcon.vue +31 -0
- package/src/components/icon/ChevronUpIcon.vue +30 -0
- package/src/components/icon/CircleAlertIcon.vue +29 -0
- package/src/components/icon/ClockIcon.vue +31 -0
- package/src/components/icon/Columns3Icon.vue +32 -0
- package/src/components/icon/FlipHorizontalIcon.vue +29 -0
- package/src/components/icon/ItalicIcon.vue +28 -0
- package/src/components/icon/LinkIcon.vue +27 -0
- package/src/components/icon/ListIcon.vue +29 -0
- package/src/components/icon/ListOrderedIcon.vue +28 -0
- package/src/components/icon/PenLineIcon.vue +31 -0
- package/src/components/icon/PlusIcon.vue +28 -0
- package/src/components/icon/RotateCcwIcon.vue +28 -0
- package/src/components/icon/RotateCwIcon.vue +28 -0
- package/src/components/icon/SearchIcon.vue +31 -0
- package/src/components/icon/StarIcon.vue +29 -0
- package/src/components/icon/TriangleAlertIcon.vue +29 -0
- package/src/components/icon/UnderlineIcon.vue +27 -0
- package/src/components/icon/Undo2Icon.vue +28 -0
- package/src/components/icon/XIcon.vue +31 -0
- package/src/components/icon/ZoomInIcon.vue +30 -0
- package/src/components/icon/ZoomOutIcon.vue +29 -0
- package/src/components/icon/index.ts +37 -0
- package/src/components/icon-picker/IconPicker.vue +560 -0
- package/src/components/icon-picker/index.ts +1 -0
- package/src/components/image-crop-dialog/CropRatioRow.vue +132 -0
- package/src/components/image-crop-dialog/CropVariantStrip.vue +277 -0
- package/src/components/image-crop-dialog/ImageCropDialog.vue +1541 -0
- package/src/components/image-crop-dialog/index.ts +16 -0
- package/src/components/image-upload/ImageUpload.vue +345 -0
- package/src/components/image-upload/index.ts +2 -0
- package/src/components/input/Input.vue +48 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/keycap/Keycap.vue +49 -0
- package/src/components/keycap/index.ts +1 -0
- package/src/components/label/Label.vue +26 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/menu/MenuCheckboxItem.vue +63 -0
- package/src/components/menu/MenuContent.vue +45 -0
- package/src/components/menu/MenuGroup.vue +22 -0
- package/src/components/menu/MenuItem.vue +34 -0
- package/src/components/menu/MenuLabel.vue +22 -0
- package/src/components/menu/MenuRadioGroup.vue +22 -0
- package/src/components/menu/MenuRadioItem.vue +50 -0
- package/src/components/menu/MenuRoot.vue +25 -0
- package/src/components/menu/MenuSeparator.vue +27 -0
- package/src/components/menu/MenuSub.vue +29 -0
- package/src/components/menu/MenuSubContent.vue +48 -0
- package/src/components/menu/MenuSubTrigger.vue +49 -0
- package/src/components/menu/MenuTrigger.vue +22 -0
- package/src/components/menu/index.ts +20 -0
- package/src/components/menu/menuClasses.ts +74 -0
- package/src/components/morph-select/MorphSelect.vue +150 -0
- package/src/components/morph-select/index.ts +1 -0
- package/src/components/nav/NavFlyout.vue +343 -0
- package/src/components/nav/NavGroup.vue +306 -0
- package/src/components/nav/NavItem.vue +243 -0
- package/src/components/nav/NavNodes.ts +66 -0
- package/src/components/nav/NavSection.vue +105 -0
- package/src/components/nav/NavSidebar.vue +137 -0
- package/src/components/nav/index.ts +5 -0
- package/src/components/nav/navChain.ts +112 -0
- package/src/components/nav/navClasses.ts +229 -0
- package/src/components/nav/navNode.ts +10 -0
- package/src/components/nav/navRegistry.ts +24 -0
- package/src/components/notification-list/NotificationList.vue +314 -0
- package/src/components/notification-list/index.ts +2 -0
- package/src/components/notification-list/notifications.ts +21 -0
- package/src/components/pagination/Pagination.vue +296 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pin-field/PinField.vue +332 -0
- package/src/components/pin-field/index.ts +1 -0
- package/src/components/popover-panel/PopoverPanel.vue +115 -0
- package/src/components/popover-panel/index.ts +5 -0
- package/src/components/rating/Rating.vue +201 -0
- package/src/components/rating/index.ts +1 -0
- package/src/components/record-avatar/RecordAvatar.vue +76 -0
- package/src/components/record-avatar/index.ts +1 -0
- package/src/components/result-window/ResultWindow.vue +399 -0
- package/src/components/result-window/index.ts +2 -0
- package/src/components/result-window/results.ts +75 -0
- package/src/components/rich-editor/RichEditor.vue +370 -0
- package/src/components/rich-editor/RichEditorLinkDialog.vue +133 -0
- package/src/components/rich-editor/index.ts +8 -0
- package/src/components/row-actions/RowActions.vue +262 -0
- package/src/components/row-actions/index.ts +2 -0
- package/src/components/row-actions/rowActions.ts +44 -0
- package/src/components/search-select/SearchSelect.vue +599 -0
- package/src/components/search-select/index.ts +2 -0
- package/src/components/search-select/types.ts +14 -0
- package/src/components/segmented-choice/SegmentedChoice.vue +136 -0
- package/src/components/segmented-choice/index.ts +2 -0
- package/src/components/segmented-choice/segmentedOption.ts +6 -0
- package/src/components/select/Select.vue +18 -0
- package/src/components/select/SelectContent.vue +73 -0
- package/src/components/select/SelectGroup.vue +21 -0
- package/src/components/select/SelectItem.vue +47 -0
- package/src/components/select/SelectItemText.vue +12 -0
- package/src/components/select/SelectLabel.vue +17 -0
- package/src/components/select/SelectScrollDownButton.vue +36 -0
- package/src/components/select/SelectScrollUpButton.vue +36 -0
- package/src/components/select/SelectSeparator.vue +19 -0
- package/src/components/select/SelectTrigger.vue +52 -0
- package/src/components/select/SelectValue.vue +12 -0
- package/src/components/select/index.ts +11 -0
- package/src/components/session/IdleTimer.vue +71 -0
- package/src/components/session/SessionDialogs.vue +177 -0
- package/src/components/session/index.ts +2 -0
- package/src/components/split-button/SplitButton.vue +122 -0
- package/src/components/split-button/index.ts +2 -0
- package/src/components/split-button/splitButtonItem.ts +7 -0
- package/src/components/switch/Switch.vue +60 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/table/Table.vue +51 -0
- package/src/components/table/TableBody.vue +14 -0
- package/src/components/table/TableCaption.vue +17 -0
- package/src/components/table/TableCell.vue +22 -0
- package/src/components/table/TableEmpty.vue +72 -0
- package/src/components/table/TableFooter.vue +17 -0
- package/src/components/table/TableHead.vue +22 -0
- package/src/components/table/TableHeader.vue +14 -0
- package/src/components/table/TableRow.vue +22 -0
- package/src/components/table/index.ts +9 -0
- package/src/components/tabs/Tabs.vue +173 -0
- package/src/components/tabs/index.ts +2 -0
- package/src/components/tabs/tabItem.ts +12 -0
- package/src/components/textarea/LimitedTextarea.vue +81 -0
- package/src/components/textarea/TextLimitCounter.vue +107 -0
- package/src/components/textarea/Textarea.vue +42 -0
- package/src/components/textarea/index.ts +4 -0
- package/src/components/textarea/textLimit.ts +43 -0
- package/src/components/time-picker/TimePicker.vue +522 -0
- package/src/components/time-picker/index.ts +1 -0
- package/src/components/toast/ToastHost.vue +276 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/update-notice/UpdateNotice.vue +103 -0
- package/src/components/update-notice/index.ts +1 -0
- package/src/components/user-menu/UserMenu.vue +154 -0
- package/src/components/user-menu/index.ts +1 -0
- package/src/index.ts +182 -0
- package/src/lib/cn.ts +21 -0
- package/src/lib/panelFocus.ts +65 -0
- package/src/lib/sessionMonitor.ts +390 -0
- package/src/lib/slotContent.ts +17 -0
- package/src/lib/updateCheck.ts +133 -0
- package/src/styles.css +82 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { TOAST_SUCCESS_MS, toast, useToasts, useUiLabels } from '@noix-dev/brix-core';
|
|
3
|
+
import { onBeforeUnmount, resolveComponent, useAttrs, watch } from 'vue';
|
|
4
|
+
import { CheckIcon, XIcon } from '../icon';
|
|
5
|
+
import { TOAST_HOST_ATTRIBUTE } from '../dialog/toastHost';
|
|
6
|
+
import { type ClassValue, cn } from '../../lib/cn';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The one toast stack of an app, top-right, newest on top. Successes close by themselves
|
|
10
|
+
* (paused while the pointer is on one or focus is inside one, so a keyboard user's link or close
|
|
11
|
+
* button does not expire under them); errors stay until closed. Nothing here takes focus. The queue every
|
|
12
|
+
* caller drives is `toast` from `@noix-dev/brix-core`; this is the one component that draws it.
|
|
13
|
+
*
|
|
14
|
+
* **A success that carries a link also stays until it is closed.** See `arm` for why: the
|
|
15
|
+
* viewport is teleported to `body`, so the link is one of the last tab stops on the page, and a
|
|
16
|
+
* six-second clock expires long before a keyboard user can reach it. Pausing on focus does not
|
|
17
|
+
* help with arriving.
|
|
18
|
+
*
|
|
19
|
+
* `duration` is how long a success stays, in milliseconds. `null` switches auto-dismiss off
|
|
20
|
+
* (errors never had it, nor has a success with a link). It is a prop, not a constant, so a page
|
|
21
|
+
* that has to *look at* a toast (the playground's contrast walk reads a page some 200 ms after
|
|
22
|
+
* opening it) can keep one up.
|
|
23
|
+
*
|
|
24
|
+
* COLOUR. Every colour here is a role, and no `dark:` variant survives. The surface is
|
|
25
|
+
* `--popover`, the role for something that floats over the page, which in dark is lighter than
|
|
26
|
+
* the page, so every figure for ink in a toast is taken against the panel and not the page. The
|
|
27
|
+
* tone is the 4px left edge and the glyph badge: `--success` / `--destructive` for the edge, a
|
|
28
|
+
* 10% wash of the same role with its `-on-wash` ink for the badge. The three greys became
|
|
29
|
+
* `--popover-foreground` (the title), `--muted-foreground` (the message and the close control) and
|
|
30
|
+
* `--primary` (the link). Figures and the reasoning are in the task report for this port.
|
|
31
|
+
*
|
|
32
|
+
* POSITION. `top-4 right-4`, fixed, and a consumer can move it: `<ToastHost class="top-14" />`
|
|
33
|
+
* clears a top bar. The root is a `Teleport`, which takes no `class` of its own, so
|
|
34
|
+
* `inheritAttrs` is off and the attributes are bound on the viewport instead, the element that is
|
|
35
|
+
* actually drawn. The class is merged with `cn()`, so `top-14` replaces `top-4` rather than
|
|
36
|
+
* sitting beside it where the stylesheet's order would pick the winner. A move to the **opposite
|
|
37
|
+
* edge** of either axis has to clear the default itself, because `top-*` and `bottom-*` are
|
|
38
|
+
* different merge groups (as are `left-*` and `right-*`) and a bare `bottom-4` therefore leaves
|
|
39
|
+
* the host pinned top *and* bottom, a full-height column with its toasts still at the top:
|
|
40
|
+
* `<ToastHost class="top-auto bottom-4" />` is the working form. Position stays an
|
|
41
|
+
* attribute: no prop, no state (ADR 0017).
|
|
42
|
+
*
|
|
43
|
+
* STACKING. The viewport is `z-[55]`: above `Dialog`'s panel and scrim (`z-50`), because a toast
|
|
44
|
+
* has to stay reachable over a dialog, and `data-toast-host` is what `Dialog` looks for so a
|
|
45
|
+
* press on a toast does not count as an outside press and throw the dialog's input away. The
|
|
46
|
+
* attribute is imported from the dialog family, not retyped — and the consumer's spread sits
|
|
47
|
+
* **above** it in the template rather than below, because `mergeProps` lets the later value win
|
|
48
|
+
* for an ordinary attribute, so a consumer's `data-testid` or marker would otherwise displace
|
|
49
|
+
* the two the dialog and the suites read. Class, style and listeners still flow either way:
|
|
50
|
+
* `mergeProps` concatenates those. The viewport is teleported to
|
|
51
|
+
* `body`, a sibling of the app root and of the dialog portals: a modal dialog `aria-hidden`s
|
|
52
|
+
* everything outside itself except live regions, and an error has to be announced even then.
|
|
53
|
+
*
|
|
54
|
+
* Glyphs are named slots (ADR 0013): `success-icon`, `error-icon` and `close-icon`.
|
|
55
|
+
*/
|
|
56
|
+
defineOptions({ inheritAttrs: false });
|
|
57
|
+
const attrs = useAttrs();
|
|
58
|
+
|
|
59
|
+
const props = withDefaults(defineProps<{ duration?: number | null }>(), {
|
|
60
|
+
duration: TOAST_SUCCESS_MS,
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const toasts = useToasts();
|
|
64
|
+
const labels = useUiLabels();
|
|
65
|
+
// Every app registers RouterLink globally; this package must not import vue-router itself.
|
|
66
|
+
const routerLink = resolveComponent('RouterLink');
|
|
67
|
+
|
|
68
|
+
const timers = new Map<number, ReturnType<typeof setTimeout>>();
|
|
69
|
+
// Toasts under the pointer: the list watcher must not re-arm these when the list changes.
|
|
70
|
+
const hovered = new Set<number>();
|
|
71
|
+
// Toasts with focus inside them: the same pause, for a keyboard user.
|
|
72
|
+
const focused = new Set<number>();
|
|
73
|
+
const paused = (id: number): boolean => hovered.has(id) || focused.has(id);
|
|
74
|
+
|
|
75
|
+
function disarm(id: number): void {
|
|
76
|
+
const timer = timers.get(id);
|
|
77
|
+
if (timer !== undefined) {
|
|
78
|
+
clearTimeout(timer);
|
|
79
|
+
timers.delete(id);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* A clock runs only for a success that is still in the queue, carries **no link**, and only
|
|
85
|
+
* while `duration` allows.
|
|
86
|
+
*
|
|
87
|
+
* The link is the reason this is not simply "a success". The viewport is teleported to `body`,
|
|
88
|
+
* so a toast's link and close button are the **last** tab stops on the page and nothing moves
|
|
89
|
+
* focus there. The pause-on-focus above is right, but it only helps once focus has arrived, and
|
|
90
|
+
* six seconds is not enough to tab the length of a page. A link nobody can reach is not an
|
|
91
|
+
* offer. So a success that carries one stays until it is dismissed — which is what an error
|
|
92
|
+
* already does, so it is the family's own logic rather than a new rule, and it does not depend
|
|
93
|
+
* on the application remembering to pass a `duration`.
|
|
94
|
+
*/
|
|
95
|
+
function arm(id: number): void {
|
|
96
|
+
disarm(id);
|
|
97
|
+
const ms = props.duration;
|
|
98
|
+
if (ms === null) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const item = toasts.value.find((entry) => entry.id === id);
|
|
102
|
+
if (item === undefined || item.kind !== 'success' || item.link !== null) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
timers.set(
|
|
106
|
+
id,
|
|
107
|
+
setTimeout(() => {
|
|
108
|
+
timers.delete(id);
|
|
109
|
+
toast.dismiss(id);
|
|
110
|
+
}, ms),
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function enter(id: number): void {
|
|
115
|
+
hovered.add(id);
|
|
116
|
+
disarm(id);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function leave(id: number): void {
|
|
120
|
+
hovered.delete(id);
|
|
121
|
+
if (!paused(id)) {
|
|
122
|
+
arm(id);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function focusIn(id: number): void {
|
|
127
|
+
focused.add(id);
|
|
128
|
+
disarm(id);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Focus moving between the toast's own controls is not leaving it.
|
|
133
|
+
*
|
|
134
|
+
* **No test pins this guard, and that is deliberate: it cannot be observed through the clock.**
|
|
135
|
+
* Measured in jsdom, moving focus from one control inside a toast to another:
|
|
136
|
+
*
|
|
137
|
+
* ```
|
|
138
|
+
* focusout target=slot-button related=close insideRoot=true
|
|
139
|
+
* focusin target=close related=slot-button
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* The two events land in the same task. Without the guard the `focusout` arms a timer and the
|
|
143
|
+
* `focusin` a line later calls `disarm`, so no time passes between them and the toast's life is
|
|
144
|
+
* identical either way — a link-free success with a focusable `success-icon` slot, two controls
|
|
145
|
+
* and real `.focus()` moves stays up for `TOAST_SUCCESS_MS * 3` with the guard **and** with it
|
|
146
|
+
* deleted. A case written against that sequence is a case that cannot fail, and this suite had
|
|
147
|
+
* one until it was measured.
|
|
148
|
+
*
|
|
149
|
+
* The guard stays because the handler's own contract is worth stating in code — a `focusout`
|
|
150
|
+
* into my own subtree is not a departure — and because the day a control inside a toast is
|
|
151
|
+
* removed while focused, or a consumer's slot focuses something asynchronously, the two events
|
|
152
|
+
* stop being adjacent. Do not read the absence of a test as permission to delete it; read this.
|
|
153
|
+
*/
|
|
154
|
+
function focusOut(id: number, event: FocusEvent): void {
|
|
155
|
+
const to = event.relatedTarget;
|
|
156
|
+
if (to instanceof Node && (event.currentTarget as Node | null)?.contains(to)) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
focused.delete(id);
|
|
160
|
+
if (!paused(id)) {
|
|
161
|
+
arm(id);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function sync(): void {
|
|
166
|
+
const live = new Set(toasts.value.map((item) => item.id));
|
|
167
|
+
for (const id of [...timers.keys()]) {
|
|
168
|
+
if (!live.has(id)) {
|
|
169
|
+
disarm(id);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
for (const id of [...hovered, ...focused]) {
|
|
173
|
+
if (!live.has(id)) {
|
|
174
|
+
hovered.delete(id);
|
|
175
|
+
focused.delete(id);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
for (const item of toasts.value) {
|
|
179
|
+
if (item.kind === 'success' && !timers.has(item.id) && !paused(item.id)) {
|
|
180
|
+
arm(item.id);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
watch(toasts, sync, { immediate: true });
|
|
186
|
+
// A clock already running was set with the old duration; every one starts over with the new.
|
|
187
|
+
watch(
|
|
188
|
+
() => props.duration,
|
|
189
|
+
() => {
|
|
190
|
+
for (const id of [...timers.keys()]) {
|
|
191
|
+
disarm(id);
|
|
192
|
+
}
|
|
193
|
+
sync();
|
|
194
|
+
},
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
onBeforeUnmount(() => {
|
|
198
|
+
for (const id of [...timers.keys()]) {
|
|
199
|
+
disarm(id);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
</script>
|
|
203
|
+
|
|
204
|
+
<template>
|
|
205
|
+
<Teleport to="body">
|
|
206
|
+
<div
|
|
207
|
+
v-if="toasts.length > 0"
|
|
208
|
+
v-bind="{ ...attrs, class: undefined }"
|
|
209
|
+
data-testid="toast-host"
|
|
210
|
+
:[TOAST_HOST_ATTRIBUTE]="''"
|
|
211
|
+
:class="
|
|
212
|
+
cn(
|
|
213
|
+
'pointer-events-none fixed top-4 right-4 z-[55] flex w-[20.6rem] max-w-[calc(100vw-2rem)] flex-col gap-2',
|
|
214
|
+
attrs.class as ClassValue,
|
|
215
|
+
)
|
|
216
|
+
"
|
|
217
|
+
>
|
|
218
|
+
<div
|
|
219
|
+
v-for="item in toasts"
|
|
220
|
+
:key="item.id"
|
|
221
|
+
:data-testid="`toast-${item.kind}`"
|
|
222
|
+
:data-toast-id="item.id"
|
|
223
|
+
:role="item.kind === 'error' ? 'alert' : 'status'"
|
|
224
|
+
:aria-live="item.kind === 'error' ? 'assertive' : 'polite'"
|
|
225
|
+
class="border-border bg-popover text-popover-foreground pointer-events-auto flex gap-2.5 rounded-xl border border-l-4 px-3 py-2.5 text-[12.5px] shadow-2xl"
|
|
226
|
+
:class="item.kind === 'error' ? 'border-l-destructive' : 'border-l-success'"
|
|
227
|
+
@mouseenter="item.kind === 'success' && enter(item.id)"
|
|
228
|
+
@mouseleave="item.kind === 'success' && leave(item.id)"
|
|
229
|
+
@focusin="item.kind === 'success' && focusIn(item.id)"
|
|
230
|
+
@focusout="item.kind === 'success' && focusOut(item.id, $event)"
|
|
231
|
+
>
|
|
232
|
+
<span
|
|
233
|
+
aria-hidden="true"
|
|
234
|
+
class="grid size-5 flex-none place-items-center rounded-full text-xs font-extrabold"
|
|
235
|
+
:class="
|
|
236
|
+
item.kind === 'error'
|
|
237
|
+
? 'bg-destructive/10 text-destructive-on-wash'
|
|
238
|
+
: 'bg-success/10 text-success-on-wash'
|
|
239
|
+
"
|
|
240
|
+
>
|
|
241
|
+
<slot v-if="item.kind === 'error'" name="error-icon">!</slot>
|
|
242
|
+
<slot v-else name="success-icon"
|
|
243
|
+
><CheckIcon class="size-3" stroke-width="3"
|
|
244
|
+
/></slot>
|
|
245
|
+
</span>
|
|
246
|
+
<div class="min-w-0 flex-1">
|
|
247
|
+
<b data-testid="toast-title" class="block font-semibold">{{ item.title }}</b>
|
|
248
|
+
<span
|
|
249
|
+
v-if="item.kind === 'error' || item.message"
|
|
250
|
+
data-testid="toast-message"
|
|
251
|
+
class="text-muted-foreground block text-xs"
|
|
252
|
+
>{{ item.message ?? labels.writeError }}</span
|
|
253
|
+
>
|
|
254
|
+
<component
|
|
255
|
+
:is="routerLink"
|
|
256
|
+
v-if="item.link"
|
|
257
|
+
:to="item.link.to"
|
|
258
|
+
data-testid="toast-link"
|
|
259
|
+
class="text-primary focus-visible:ring-ring focus-visible:ring-offset-background mt-1 block rounded-sm text-xs font-bold outline-none hover:underline focus-visible:ring-2 focus-visible:ring-offset-2"
|
|
260
|
+
@click="toast.dismiss(item.id)"
|
|
261
|
+
>{{ item.link.label ?? labels.toastOpen }}</component
|
|
262
|
+
>
|
|
263
|
+
</div>
|
|
264
|
+
<button
|
|
265
|
+
type="button"
|
|
266
|
+
data-testid="toast-close"
|
|
267
|
+
:aria-label="labels.dismiss"
|
|
268
|
+
class="text-muted-foreground hover:text-popover-foreground focus-visible:ring-ring focus-visible:ring-offset-background grid size-5 flex-none cursor-pointer place-items-center self-start rounded outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
|
|
269
|
+
@click="toast.dismiss(item.id)"
|
|
270
|
+
>
|
|
271
|
+
<slot name="close-icon"><XIcon class="size-3.5" /></slot>
|
|
272
|
+
</button>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</Teleport>
|
|
276
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToastHost } from './ToastHost.vue';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useUiLabels } from '@noix-dev/brix-core';
|
|
3
|
+
import { useAttrs } from 'vue';
|
|
4
|
+
import { XIcon } from '../icon';
|
|
5
|
+
import { type ClassValue, cn } from '../../lib/cn';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tells the reader a newer build is deployed. It takes one boolean and emits two events, and it
|
|
9
|
+
* never reloads the page itself: the page may hold unsaved input, so what a reload means is the
|
|
10
|
+
* application's call. `reload` and `dismiss` are what to listen for; pair them with
|
|
11
|
+
* `createUpdateCheck`, whose `available` is this component's prop and whose `dismiss` answers
|
|
12
|
+
* the second event.
|
|
13
|
+
*
|
|
14
|
+
* Bottom-left, `z-40`: above the page and below `Dialog` (`z-50`) and the toast stack. Absent
|
|
15
|
+
* until `available`, like a toast, so a page that has to look at it declares an open state.
|
|
16
|
+
*
|
|
17
|
+
* A consumer places it with `class`, as in `<UpdateNotice class="left-60" />`. The class is merged
|
|
18
|
+
* with `cn()`, so it replaces `left-4` rather than sitting beside it, where the stylesheet's order
|
|
19
|
+
* would pick the winner. A move to the **opposite edge** of either axis has to clear the default
|
|
20
|
+
* itself, because `bottom-*` and `top-*` are different merge groups (as are `left-*` and
|
|
21
|
+
* `right-*`) and a bare `top-4` therefore leaves the notice pinned bottom *and* top, stretched
|
|
22
|
+
* the height of the viewport: `<UpdateNotice class="bottom-auto top-4" />` is the working form.
|
|
23
|
+
* Position stays an attribute (ADR 0017).
|
|
24
|
+
*
|
|
25
|
+
* The consumer's spread sits **above** the component's own attributes in the template, not below:
|
|
26
|
+
* `mergeProps` lets the later value win for an ordinary attribute, and `role="status"` is the
|
|
27
|
+
* live region this family exists to announce from. Class, style and listeners still flow either
|
|
28
|
+
* way, because `mergeProps` concatenates those.
|
|
29
|
+
*
|
|
30
|
+
* The close glyph is a named slot, `close-icon` (ADR 0013), and the default is the drawn
|
|
31
|
+
* `XIcon`, where the upstream had the literal character.
|
|
32
|
+
*
|
|
33
|
+
* COLOUR. The ground is solid `--primary`. The title is `--primary-foreground` at full strength,
|
|
34
|
+
* the second line and the dismiss glyph are the same ink at 85%, and the reload button inverts
|
|
35
|
+
* the pair: a `--primary-foreground` ground with `--primary` ink.
|
|
36
|
+
*
|
|
37
|
+
* The 85% is the measured floor, not a taste. The upstream drew 75% and 60%; over the themes'
|
|
38
|
+
* declared values 75% fails 4.5:1 in three of six readings and 60% fails it in all six. 85% is
|
|
39
|
+
* the last share whose worst reading clears it (noix, dark, 4.54), and `contract.json` holds it
|
|
40
|
+
* as an `indicators` entry whose site is this file. It is an sRGB alpha, a class of the form
|
|
41
|
+
* `text-primary-foreground/85`, because the gate measures an sRGB composite: a perceptual
|
|
42
|
+
* `color-mix` is a different colour, and in dark it can read further from the ground than the
|
|
43
|
+
* pure ink does. The test holds the class and refuses the mix.
|
|
44
|
+
*
|
|
45
|
+
* The reload button needs no entry of its own. Contrast is symmetric, so the full-strength pair
|
|
46
|
+
* the gate already holds (`--primary-foreground` on `--primary`) is its reading backwards. The
|
|
47
|
+
* shadow is a mix of `--primary` in sRGB, never a hex, so it follows the theme.
|
|
48
|
+
*/
|
|
49
|
+
defineOptions({ inheritAttrs: false });
|
|
50
|
+
const attrs = useAttrs();
|
|
51
|
+
|
|
52
|
+
defineProps<{
|
|
53
|
+
/** Whether a newer build is known and not dismissed. False draws nothing. */
|
|
54
|
+
available: boolean;
|
|
55
|
+
}>();
|
|
56
|
+
defineEmits<{
|
|
57
|
+
/** The reader asked for the reload. Nothing has been reloaded. */
|
|
58
|
+
reload: [];
|
|
59
|
+
/** The reader waved the notice away. */
|
|
60
|
+
dismiss: [];
|
|
61
|
+
}>();
|
|
62
|
+
|
|
63
|
+
const labels = useUiLabels();
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<template>
|
|
67
|
+
<div
|
|
68
|
+
v-if="available"
|
|
69
|
+
v-bind="{ ...attrs, class: undefined }"
|
|
70
|
+
role="status"
|
|
71
|
+
data-testid="update-notice"
|
|
72
|
+
:class="
|
|
73
|
+
cn(
|
|
74
|
+
'bg-primary text-primary-foreground ring-primary-foreground/15 fixed bottom-4 left-4 z-40 flex max-w-[calc(100vw-2rem)] items-center gap-3 rounded-[10px] py-2.5 pr-3 pl-3.5 text-[13px] shadow-[0_8px_24px_color-mix(in_srgb,var(--primary)_30%,transparent)] ring-1',
|
|
75
|
+
attrs.class as ClassValue,
|
|
76
|
+
)
|
|
77
|
+
"
|
|
78
|
+
>
|
|
79
|
+
<div class="min-w-0">
|
|
80
|
+
<b data-testid="update-title" class="block font-bold">{{ labels.updateTitle }}</b>
|
|
81
|
+
<span data-testid="update-text" class="text-primary-foreground/85 block text-xs">{{
|
|
82
|
+
labels.updateText
|
|
83
|
+
}}</span>
|
|
84
|
+
</div>
|
|
85
|
+
<button
|
|
86
|
+
type="button"
|
|
87
|
+
data-testid="update-reload"
|
|
88
|
+
class="bg-primary-foreground text-primary hover:bg-primary-foreground/90 focus-visible:ring-primary-foreground focus-visible:ring-offset-primary flex-none cursor-pointer rounded-md px-3 py-1.5 text-[13px] font-semibold focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"
|
|
89
|
+
@click="$emit('reload')"
|
|
90
|
+
>
|
|
91
|
+
{{ labels.updateReload }}
|
|
92
|
+
</button>
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
data-testid="update-dismiss"
|
|
96
|
+
:aria-label="labels.dismiss"
|
|
97
|
+
class="text-primary-foreground/85 hover:text-primary-foreground focus-visible:ring-primary-foreground grid size-5 flex-none cursor-pointer place-items-center rounded focus-visible:ring-2 focus-visible:outline-none"
|
|
98
|
+
@click="$emit('dismiss')"
|
|
99
|
+
>
|
|
100
|
+
<slot name="close-icon"><XIcon class="size-3.5" stroke-width="2.4" /></slot>
|
|
101
|
+
</button>
|
|
102
|
+
</div>
|
|
103
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UpdateNotice } from './UpdateNotice.vue';
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import {
|
|
4
|
+
MenuContent,
|
|
5
|
+
MenuItem,
|
|
6
|
+
MenuRoot,
|
|
7
|
+
MenuSeparator,
|
|
8
|
+
MenuTrigger,
|
|
9
|
+
menuItemHintClass,
|
|
10
|
+
} from '../menu';
|
|
11
|
+
import { RecordAvatar } from '../record-avatar';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The person's account at the edge of the shell: a round avatar that opens a panel with who
|
|
15
|
+
* they are, a few rows, and, set apart at the bottom, the row for leaving.
|
|
16
|
+
*
|
|
17
|
+
* **It composes the package's `menu/` family and nothing private.** The root, trigger, panel,
|
|
18
|
+
* rows and separator are the published parts, so the keyboard contract a menu promises to
|
|
19
|
+
* assistive technology (ArrowDown opens it with focus on the first enabled row, the arrow keys
|
|
20
|
+
* move and stop at the ends, Home and End jump, Enter chooses, Escape closes and hands focus
|
|
21
|
+
* back) is supplied by them and not rebuilt here. There is no close helper of our own, on
|
|
22
|
+
* purpose: one that returns focus to the trigger unconditionally yanks focus back from
|
|
23
|
+
* whatever the person clicked elsewhere on the page. The menu parts hand focus back only when
|
|
24
|
+
* the menu was closed from the inside, **and only when the menu is not modal**: a modal menu
|
|
25
|
+
* swallows the outside click (the page behind is inert), so nothing else was clicked and the
|
|
26
|
+
* trigger is where focus belongs. A header menu should not swallow it, because the person who
|
|
27
|
+
* clicks another control means to use it with that one click, so the root is `modal=false` and
|
|
28
|
+
* the control they clicked keeps the focus it took. What it costs is named here so no one has to
|
|
29
|
+
* rediscover it: the body keeps scrolling behind the open panel, and a press outside lands on
|
|
30
|
+
* whatever it hit instead of being spent on closing the menu. A pointer click opens the panel with
|
|
31
|
+
* focus on the panel itself, and ArrowDown moves from there to the first row; ArrowDown on the
|
|
32
|
+
* trigger opens onto that row directly.
|
|
33
|
+
*
|
|
34
|
+
* **The avatar is round here, and this is the one case `RecordAvatar`'s own docblock makes
|
|
35
|
+
* room for.** That component argues a circle reads as a person's account, so a record gets a
|
|
36
|
+
* rounded square; this stands for exactly a person's account, so it takes `shape="round"`,
|
|
37
|
+
* in the trigger and in the identity alike.
|
|
38
|
+
*
|
|
39
|
+
* The identity is the picture, the name and the quiet line under it. Initials are drawn from
|
|
40
|
+
* the name (the first letter of its first two words) when there is no image: the caller
|
|
41
|
+
* derives nothing. The trigger shows the avatar only and is named for the person.
|
|
42
|
+
*
|
|
43
|
+
* Application state enters by props and leaves by events: it knows no store, route or sign-out
|
|
44
|
+
* call. `select` carries the id of the row chosen, the leaving row's included; a disabled row
|
|
45
|
+
* reports nothing. The leaving row is the destructive ink at rest, and while highlighted it
|
|
46
|
+
* takes the menu's ordinary highlighted ink (the menu rows' own classes decide that, as
|
|
47
|
+
* `RowActions`'s danger row does).
|
|
48
|
+
*
|
|
49
|
+
* ATTRIBUTES go to the trigger, which is the only element this family owns on the page: the
|
|
50
|
+
* root is the menu's own, which draws no element, so a consumer's `class`, `id`, `data-*` and
|
|
51
|
+
* `aria-*` would otherwise land nowhere (and Vue would warn about a fragment root). They merge
|
|
52
|
+
* with the trigger's own, and the trigger's `type`, `data-slot` and accessible name stay the
|
|
53
|
+
* family's. The panel is not reachable from outside, which is the same call `Dropdown` makes.
|
|
54
|
+
*
|
|
55
|
+
* A hint on a **disabled** row drops the quiet ink and keeps the size, for the reason
|
|
56
|
+
* `RowActions` gives and `DropdownItems` repeats: the row is already at `opacity-50`.
|
|
57
|
+
*/
|
|
58
|
+
defineOptions({ inheritAttrs: false });
|
|
59
|
+
|
|
60
|
+
const props = defineProps<{
|
|
61
|
+
name: string;
|
|
62
|
+
/** The quiet line under the name: a role, an address, a tenant. */
|
|
63
|
+
secondary?: string;
|
|
64
|
+
/** An image for the identity; initials are drawn from `name` when absent. */
|
|
65
|
+
image?: string;
|
|
66
|
+
items: { id: string; label: string; hint?: string; disabled?: boolean }[];
|
|
67
|
+
/** The row for leaving, drawn apart and in the destructive ink. */
|
|
68
|
+
leave?: { id: string; label: string };
|
|
69
|
+
}>();
|
|
70
|
+
|
|
71
|
+
const emit = defineEmits<{
|
|
72
|
+
(e: 'select', id: string): void;
|
|
73
|
+
(e: 'update:open', open: boolean): void;
|
|
74
|
+
}>();
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The quiet text beside a label. On a disabled row it is the row's own ink at the row's own fade
|
|
78
|
+
* and nothing more: muted ink under `opacity-50` is the pairing `RowActions` measured and
|
|
79
|
+
* rejected (see `hintClass` in `row-actions/RowActions.vue` for the figures, which are not
|
|
80
|
+
* restated here).
|
|
81
|
+
*/
|
|
82
|
+
function hintClass(disabled: boolean | undefined): string {
|
|
83
|
+
return disabled === true ? 'text-[11px]' : menuItemHintClass;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const initials = computed(() =>
|
|
87
|
+
props.name
|
|
88
|
+
.split(/\s+/)
|
|
89
|
+
.filter(Boolean)
|
|
90
|
+
.slice(0, 2)
|
|
91
|
+
.map((word) => Array.from(word)[0]?.toUpperCase() ?? '')
|
|
92
|
+
.join(''),
|
|
93
|
+
);
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<template>
|
|
97
|
+
<MenuRoot :modal="false" @update:open="(open: boolean) => emit('update:open', open)">
|
|
98
|
+
<MenuTrigger as-child>
|
|
99
|
+
<button
|
|
100
|
+
v-bind="{ ...$attrs, type: 'button' }"
|
|
101
|
+
data-slot="user-menu-trigger"
|
|
102
|
+
:aria-label="name"
|
|
103
|
+
class="focus-visible:ring-ring focus-visible:ring-offset-background rounded-full outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
|
|
104
|
+
>
|
|
105
|
+
<RecordAvatar
|
|
106
|
+
shape="round"
|
|
107
|
+
:src="image"
|
|
108
|
+
:initials="initials"
|
|
109
|
+
class="size-8 text-xs"
|
|
110
|
+
/>
|
|
111
|
+
</button>
|
|
112
|
+
</MenuTrigger>
|
|
113
|
+
<MenuContent>
|
|
114
|
+
<div data-slot="user-menu-identity" class="flex items-center gap-3 px-2.5 py-2">
|
|
115
|
+
<RecordAvatar shape="round" :src="image" :initials="initials" class="size-10" />
|
|
116
|
+
<div class="min-w-0">
|
|
117
|
+
<div class="text-popover-foreground truncate text-[13px] font-semibold">
|
|
118
|
+
{{ name }}
|
|
119
|
+
</div>
|
|
120
|
+
<div
|
|
121
|
+
v-if="secondary"
|
|
122
|
+
data-slot="user-menu-secondary"
|
|
123
|
+
class="text-muted-foreground truncate text-[11px]"
|
|
124
|
+
>
|
|
125
|
+
{{ secondary }}
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<MenuSeparator v-if="items.length > 0" />
|
|
130
|
+
<MenuItem
|
|
131
|
+
v-for="item in items"
|
|
132
|
+
:key="item.id"
|
|
133
|
+
:data-testid="`user-menu-${item.id}`"
|
|
134
|
+
:disabled="item.disabled"
|
|
135
|
+
@select="emit('select', item.id)"
|
|
136
|
+
>
|
|
137
|
+
<span>{{ item.label }}</span>
|
|
138
|
+
<span v-if="item.hint" data-slot="user-menu-hint" :class="hintClass(item.disabled)">
|
|
139
|
+
{{ item.hint }}
|
|
140
|
+
</span>
|
|
141
|
+
</MenuItem>
|
|
142
|
+
<template v-if="leave">
|
|
143
|
+
<MenuSeparator />
|
|
144
|
+
<MenuItem
|
|
145
|
+
:data-testid="`user-menu-${leave.id}`"
|
|
146
|
+
class="text-destructive"
|
|
147
|
+
@select="emit('select', leave.id)"
|
|
148
|
+
>
|
|
149
|
+
<span>{{ leave.label }}</span>
|
|
150
|
+
</MenuItem>
|
|
151
|
+
</template>
|
|
152
|
+
</MenuContent>
|
|
153
|
+
</MenuRoot>
|
|
154
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UserMenu } from './UserMenu.vue';
|