@vokril/ui-solid 0.33.5 → 0.35.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 +39 -0
- package/README.md +40 -0
- package/dist/Alert-DCIet3Ol.cjs +1 -0
- package/dist/Alert-DyBaU25r.js +59 -0
- package/dist/Badge-BXLrs2z-.cjs +1 -0
- package/dist/Badge-BguTObKo.js +99 -0
- package/dist/CommandPalette-3wKYPO9u.cjs +2 -0
- package/dist/CommandPalette-BnZwM7DE.js +4130 -0
- package/dist/PageSkeleton-3f-2SBNK.cjs +30 -0
- package/dist/{PageSkeleton-BRuqaDzr.js → PageSkeleton-lfENszyc.js} +516 -569
- package/dist/{StatusBarNotificationBell-DE1jIaBt.js → StatusBarNotificationBell-GbkAwC4w.js} +4242 -4154
- package/dist/StatusBarNotificationBell-fegn26_s.cjs +53 -0
- package/dist/_internal/contract/browser/workspace.d.cts +5 -0
- package/dist/_internal/contract/browser/workspace.d.ts +5 -0
- package/dist/_internal/contract/notification.d.cts +30 -4
- package/dist/_internal/contract/notification.d.ts +30 -4
- package/dist/_internal/contract/notificationCatalog.d.cts +15 -1
- package/dist/_internal/contract/notificationCatalog.d.ts +15 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +38 -36
- package/dist/index.cjs +1 -1
- package/dist/index.js +430 -428
- package/dist/notificationCatalog-DmwTAO09.cjs +1 -0
- package/dist/notificationCatalog-otJ1LHFH.js +72 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +1 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +1 -0
- package/dist/notifications/fireNotification.d.cts +14 -7
- package/dist/notifications/fireNotification.d.ts +14 -7
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/notifications/nativeEngine.d.cts +8 -1
- package/dist/notifications/nativeEngine.d.ts +8 -1
- package/dist/notifications/notificationService.d.cts +2 -1
- package/dist/notifications/notificationService.d.ts +2 -1
- package/dist/notifications/notifications.notifications.d.cts +0 -1
- package/dist/notifications/notifications.notifications.d.ts +0 -1
- package/dist/notifications/toast.d.cts +19 -3
- package/dist/notifications/toast.d.ts +19 -3
- package/dist/notifications/toastFilterPolicy.d.cts +15 -1
- package/dist/notifications/toastFilterPolicy.d.ts +15 -1
- package/dist/overlay/ConfirmDialog.d.cts +36 -0
- package/dist/overlay/ConfirmDialog.d.ts +36 -0
- package/dist/overlay/dialogNudge.d.cts +16 -0
- package/dist/overlay/dialogNudge.d.ts +16 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +1 -1
- package/dist/server/Alert-DWGobTUk.js +45 -0
- package/dist/server/Alert-DulmzLv9.cjs +1 -0
- package/dist/server/Badge-C1Jn--DR.js +68 -0
- package/dist/server/Badge-wsDCVlA8.cjs +1 -0
- package/dist/server/CommandPalette-B3EE1iMo.js +3376 -0
- package/dist/server/CommandPalette-DKURJBBZ.cjs +1 -0
- package/dist/server/PageSkeleton-CP8EmxyS.cjs +30 -0
- package/dist/server/{PageSkeleton-CFs7AdTA.js → PageSkeleton-HhO6CRZ8.js} +392 -431
- package/dist/server/{StatusBarNotificationBell-y5cPAlMY.js → StatusBarNotificationBell-BfBGKXDG.js} +4256 -4168
- package/dist/server/StatusBarNotificationBell-CB919YAX.cjs +52 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +38 -36
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +294 -292
- package/dist/server/notificationCatalog-BKcY-o-R.js +57 -0
- package/dist/server/notificationCatalog-DR3ZggWn.cjs +1 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +8 -9
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +34 -18
- package/dist/solid/notifications/fireNotification.js +9 -5
- package/dist/solid/notifications/notificationOverlaySnapshot.js +1 -0
- package/dist/solid/notifications/notificationService.js +1 -0
- package/dist/solid/notifications/notifications.notifications.js +8 -0
- package/dist/solid/notifications/toast.js +70 -31
- package/dist/solid/notifications/toastFilterPolicy.js +8 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +54 -10
- package/dist/solid/overlay/ConfirmDialog.module.css.js +6 -0
- package/dist/solid/overlay/DangerousActionDialog.jsx +8 -3
- package/dist/solid/overlay/DangerousActionDialog.module.css.js +1 -0
- package/dist/solid/overlay/dialogNudge.js +18 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/CommandPalette-BKa5pT_B.js +0 -4029
- package/dist/CommandPalette-Bq5ydWBA.cjs +0 -2
- package/dist/PageSkeleton-Cz2bckO4.cjs +0 -30
- package/dist/StatusBarNotificationBell-CLrNtOO9.cjs +0 -50
- package/dist/notificationCatalog-CRERhjp6.js +0 -168
- package/dist/notificationCatalog-DqTkd7M6.cjs +0 -1
- package/dist/server/CommandPalette-BU9QCOyy.cjs +0 -1
- package/dist/server/CommandPalette-Dj08M64T.js +0 -3305
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +0 -30
- package/dist/server/StatusBarNotificationBell-fLacxZ0X.cjs +0 -49
- package/dist/server/notificationCatalog-CEDltsJS.cjs +0 -1
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +0 -122
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Accessor, JSX } from 'solid-js';
|
|
2
|
+
import { type BadgeTone } from '../feedback/Badge.js';
|
|
2
3
|
import type { ActionPlace } from './actionPlace.js';
|
|
3
4
|
/** A checkbox under a confirmation's message — "do not ask me again" (reference `ICheckbox`). */
|
|
4
5
|
export interface ConfirmCheckbox {
|
|
@@ -21,6 +22,12 @@ export interface ConfirmationResult extends ConfirmCheckboxResult {
|
|
|
21
22
|
/** Whether the confirm button answered it. */
|
|
22
23
|
readonly confirmed: boolean;
|
|
23
24
|
}
|
|
25
|
+
/** A tag above a confirmation's title — the context it is asked in (an environment such as Production, a scope). */
|
|
26
|
+
export interface ConfirmBadge {
|
|
27
|
+
readonly label: string;
|
|
28
|
+
/** Default 'neutral'. */
|
|
29
|
+
readonly tone?: BadgeTone;
|
|
30
|
+
}
|
|
24
31
|
export interface ConfirmDialogProps {
|
|
25
32
|
/**
|
|
26
33
|
* Whether the dialog shows. One opening is one question: the countdown, the checkbox and the first focus start over
|
|
@@ -33,7 +40,27 @@ export interface ConfirmDialogProps {
|
|
|
33
40
|
message: string | JSX.Element;
|
|
34
41
|
confirmLabel?: string;
|
|
35
42
|
cancelLabel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* `danger`: the question confirms something destructive or security-loosening. The confirm button is red, the
|
|
45
|
+
* first focus is the safe button, and the backdrop does not answer: a click on it nudges the box (a short pop and a
|
|
46
|
+
* ring) and the question stays until a button or Escape answers it — a stray click beside a red question is not a
|
|
47
|
+
* "no", and it must not look like nothing happened. `default`: a click on the backdrop cancels.
|
|
48
|
+
*/
|
|
36
49
|
variant?: 'default' | 'danger';
|
|
50
|
+
/** Tags above the title — the context the question is asked in (e.g. the environment). */
|
|
51
|
+
badges?: readonly ConfirmBadge[];
|
|
52
|
+
/** Facts about what confirming changes — one per line, under the message. */
|
|
53
|
+
details?: readonly string[];
|
|
54
|
+
/**
|
|
55
|
+
* What the user must know before confirming — one per line, in a callout under the details (danger-toned in a
|
|
56
|
+
* `danger` question, warning-toned otherwise) and part of the question's description.
|
|
57
|
+
*/
|
|
58
|
+
warnings?: readonly string[];
|
|
59
|
+
/**
|
|
60
|
+
* An acknowledgement, not a question: one button (`confirmLabel`, "Close" by default) answers it with `onConfirm`;
|
|
61
|
+
* Escape and the backdrop dismiss it with `onCancel`. For the result of a verb the user asked for.
|
|
62
|
+
*/
|
|
63
|
+
acknowledge?: boolean;
|
|
37
64
|
/**
|
|
38
65
|
* The thing being confirmed ITSELF — shown in a read-only block.
|
|
39
66
|
*
|
|
@@ -86,7 +113,16 @@ export interface ConfirmOptions {
|
|
|
86
113
|
message: string | JSX.Element;
|
|
87
114
|
confirmLabel?: string;
|
|
88
115
|
cancelLabel?: string;
|
|
116
|
+
/** `danger`: red confirm, safe first focus, and the backdrop nudges instead of cancelling (see {@link ConfirmDialogProps.variant}). */
|
|
89
117
|
variant?: 'default' | 'danger';
|
|
118
|
+
/** Tags above the title (see {@link ConfirmDialogProps.badges}). */
|
|
119
|
+
badges?: readonly ConfirmBadge[];
|
|
120
|
+
/** Facts about what confirming changes, one per line (see {@link ConfirmDialogProps.details}). */
|
|
121
|
+
details?: readonly string[];
|
|
122
|
+
/** What to know before confirming, in a callout (see {@link ConfirmDialogProps.warnings}). */
|
|
123
|
+
warnings?: readonly string[];
|
|
124
|
+
/** An acknowledgement with one button (see {@link ConfirmDialogProps.acknowledge}). */
|
|
125
|
+
acknowledge?: boolean;
|
|
90
126
|
/** The thing being confirmed itself (SQL etc.) — shown in a read-only block. */
|
|
91
127
|
code?: string;
|
|
92
128
|
/** Seconds the confirm button stays disabled. If absent, there is no delay. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The answer a question that cannot be waved away gives to a click on its backdrop: the box nudges — a short "pop"
|
|
3
|
+
* and a ring — instead of closing, so the user sees the dialog still waits for a button (the static-backdrop pattern
|
|
4
|
+
* of desktop and web dialog kits). Dangerous confirmations hold their backdrop this way: a stray click beside a red
|
|
5
|
+
* question must not count as an answer, and must not look like nothing happened either.
|
|
6
|
+
*
|
|
7
|
+
* The mark is an attribute (`data-nudge`) the dialog's stylesheet draws: the pop is an animation, so the app's reduced
|
|
8
|
+
* motion setting stills it (`tokens.css`) and the ring alone says it. Every nudge starts over — a second click while
|
|
9
|
+
* the first is still drawn pops again — and the mark goes after {@link NUDGE_HOLD_MS}.
|
|
10
|
+
*/
|
|
11
|
+
/** How long the mark stays — longer than the pop, so the ring is seen under reduced motion too. */
|
|
12
|
+
export declare const NUDGE_HOLD_MS = 600;
|
|
13
|
+
/** The attribute the dialog stylesheets draw. */
|
|
14
|
+
export declare const NUDGE_ATTRIBUTE = "data-nudge";
|
|
15
|
+
/** Nudge the dialog box: mark it, start its animation over, and take the mark off after {@link NUDGE_HOLD_MS}. */
|
|
16
|
+
export declare function nudgeDialog(dialog: HTMLElement): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The answer a question that cannot be waved away gives to a click on its backdrop: the box nudges — a short "pop"
|
|
3
|
+
* and a ring — instead of closing, so the user sees the dialog still waits for a button (the static-backdrop pattern
|
|
4
|
+
* of desktop and web dialog kits). Dangerous confirmations hold their backdrop this way: a stray click beside a red
|
|
5
|
+
* question must not count as an answer, and must not look like nothing happened either.
|
|
6
|
+
*
|
|
7
|
+
* The mark is an attribute (`data-nudge`) the dialog's stylesheet draws: the pop is an animation, so the app's reduced
|
|
8
|
+
* motion setting stills it (`tokens.css`) and the ring alone says it. Every nudge starts over — a second click while
|
|
9
|
+
* the first is still drawn pops again — and the mark goes after {@link NUDGE_HOLD_MS}.
|
|
10
|
+
*/
|
|
11
|
+
/** How long the mark stays — longer than the pop, so the ring is seen under reduced motion too. */
|
|
12
|
+
export declare const NUDGE_HOLD_MS = 600;
|
|
13
|
+
/** The attribute the dialog stylesheets draw. */
|
|
14
|
+
export declare const NUDGE_ATTRIBUTE = "data-nudge";
|
|
15
|
+
/** Nudge the dialog box: mark it, start its animation over, and take the mark off after {@link NUDGE_HOLD_MS}. */
|
|
16
|
+
export declare function nudgeDialog(dialog: HTMLElement): void;
|
package/dist/overlay/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-3wKYPO9u.cjs"),r=require("../Modal-zPqB1ufV.cjs"),p=require("../OverlayScrollArea-Cr0VAApT.cjs"),a=require("../GuidedTour-BTvAeAfT.cjs"),i=require("../createDialogShellFocus-DFEaujn4.cjs"),n=require("../nativeTitleHold-B7Ou-W9b.cjs"),M=require("../Input-CHtvL4_4.cjs"),t=require("../anchoredLayout-CBjQ1etD.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),T=require("../useFloatingDropdown-D5UayoN6.cjs"),d=require("../ownerWindow-BCmJFMbR.cjs"),D=require("../ownerAnimationFrame-T6jf6qYC.cjs"),s=require("../prefersReducedMotion-DYR56SKZ.cjs"),u=require("../kitHost-u0-mKvEK.cjs"),c=require("../dialogFocusRestore-DP5b1bDo.cjs"),O=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),l=require("../Popover-CLTXG8W0.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=r.ActionPlaceRow;exports.Modal=r.Modal;exports.collectFocusableElements=r.collectFocusableElements;exports.modalTitlebarHeight=r.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=r.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=r.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=r.trapTabFocusWithin;exports.OverlayScrollArea=p.OverlayScrollArea;exports.Disclosure=a.Disclosure;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.HoverTooltip=i.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=i.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=i.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=i.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=i.TOOLTIP_VIEWPORT_MARGIN;exports.computeTooltipPointerPosition=i.computeTooltipPointerPosition;exports.createDialogShellFocus=i.createDialogShellFocus;exports.COLD_DELAY_MS=n.COLD_DELAY_MS;exports.COOLDOWN_MS=n.COOLDOWN_MS;exports.DEFAULT_MARGIN=n.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=n.DEFAULT_OFFSET;exports.WARM_DELAY_MS=n.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=n.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=n.createTooltipCoordinator;exports.tooltipCoordinator=n.tooltipCoordinator;exports.OverlayPortal=M.OverlayPortal;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;exports.OVERLAY_DEFAULT_GAP=t.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=t.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=t.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=t.POPOVER_VIEWPORT_MARGIN;exports.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.layout2d=t.layout2d;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=T.useFloatingDropdown;exports.ownerWindow=d.ownerWindow;exports.requestOwnerAnimationFrame=D.requestOwnerAnimationFrame;exports.modalBackgroundExemption=s.modalBackgroundExemption;exports.neutralizeBackground=s.neutralizeBackground;exports.ModalDefaultsProvider=u.ModalDefaultsProvider;exports.useModalDefaults=u.useModalDefaults;exports.restoreFocusTo=c.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=c.shouldRestoreFocusOnDialogClose;exports.DesktopContextMenuContext=O.DesktopContextMenuContext;exports.useDesktopContextMenu=O.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=l.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=l.MENU_ITEM_SELECTOR;exports.Popover=l.Popover;exports.isPopoverNavigationKey=l.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=l.resolvePopoverFocusForKey;
|
package/dist/overlay/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as d, j as m, k as D, N as E, O as P, P as _, S as A, l as v, m as S, n as g, o as x, p as I, q as f, r as F, s as C, T as y, t as R, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-
|
|
1
|
+
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as d, j as m, k as D, N as E, O as P, P as _, S as A, l as v, m as S, n as g, o as x, p as I, q as f, r as F, s as C, T as y, t as R, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-BnZwM7DE.js";
|
|
2
2
|
import { A as $, M as ee, c as ae, m as oe, r as se, a as te, t as re } from "../Modal-CjPn7xsM.js";
|
|
3
3
|
import { O as ie } from "../OverlayScrollArea-CrrPFLq9.js";
|
|
4
4
|
import { D as ue, G as pe, P as Oe, a as ce, p as Me } from "../GuidedTour-CwbGGSIW.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ssr as s, ssrAttribute as o, escape as e, createComponent as c } from "solid-js/web";
|
|
2
|
+
import { Show as r } from "solid-js";
|
|
3
|
+
const i = "vk_alert_vmoDU", l = "vk_toneInfo_QV0x-", _ = "vk_toneSuccess_tvYKa", v = "vk_toneWarning_qgbD1", d = "vk_toneDanger_0NmW5", u = "vk_box_KZK1Z", b = "vk_bare_3cIeV", f = "vk_icon_ByVKM", g = "vk_body_f2hrp", k = "vk_title_-a0fr", m = "vk_content_bCCOz", t = {
|
|
4
|
+
alert: i,
|
|
5
|
+
toneInfo: l,
|
|
6
|
+
toneSuccess: _,
|
|
7
|
+
toneWarning: v,
|
|
8
|
+
toneDanger: d,
|
|
9
|
+
box: u,
|
|
10
|
+
bare: b,
|
|
11
|
+
icon: f,
|
|
12
|
+
body: g,
|
|
13
|
+
title: k,
|
|
14
|
+
content: m
|
|
15
|
+
};
|
|
16
|
+
var S = ["<span", ' aria-hidden="true">', "</span>"], h = ["<div", ">", "</div>"], x = ["<div", ">", "<div", ">", "<div", ">", "</div></div></div>"];
|
|
17
|
+
const y = {
|
|
18
|
+
info: t.toneInfo,
|
|
19
|
+
success: t.toneSuccess,
|
|
20
|
+
warning: t.toneWarning,
|
|
21
|
+
danger: t.toneDanger
|
|
22
|
+
}, A = {
|
|
23
|
+
box: t.box,
|
|
24
|
+
bare: t.bare
|
|
25
|
+
};
|
|
26
|
+
function W(n) {
|
|
27
|
+
return s(x, o("class", e([t.alert, y[n.tone ?? "info"], A[n.variant ?? "box"], n.class].filter((a) => !!a).join(" "), !0), !1) + o("role", n.urgency === "polite" ? "status" : "alert", !1), e(c(r, {
|
|
28
|
+
get when() {
|
|
29
|
+
return n.icon !== void 0;
|
|
30
|
+
},
|
|
31
|
+
get children() {
|
|
32
|
+
return s(S, o("class", e(t.icon, !0), !1), e(n.icon));
|
|
33
|
+
}
|
|
34
|
+
})), o("class", e(t.body, !0), !1), e(c(r, {
|
|
35
|
+
get when() {
|
|
36
|
+
return n.title !== void 0;
|
|
37
|
+
},
|
|
38
|
+
get children() {
|
|
39
|
+
return s(h, o("class", e(t.title, !0), !1), e(n.title));
|
|
40
|
+
}
|
|
41
|
+
})), o("class", e(t.content, !0), !1), e(n.children));
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
W as A
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),s=require("solid-js"),r="vk_alert_vmoDU",a="vk_toneInfo_QV0x-",i="vk_toneSuccess_tvYKa",l="vk_toneWarning_qgbD1",u="vk_toneDanger_0NmW5",_="vk_box_KZK1Z",v="vk_bare_3cIeV",b="vk_icon_ByVKM",d="vk_body_f2hrp",f="vk_title_-a0fr",g="vk_content_bCCOz",t={alert:r,toneInfo:a,toneSuccess:i,toneWarning:l,toneDanger:u,box:_,bare:v,icon:b,body:d,title:f,content:g};var A=["<span",' aria-hidden="true">',"</span>"],k=["<div",">","</div>"],S=["<div",">","<div",">","<div",">","</div></div></div>"];const h={info:t.toneInfo,success:t.toneSuccess,warning:t.toneWarning,danger:t.toneDanger},m={box:t.box,bare:t.bare};function x(n){const o=()=>[t.alert,h[n.tone??"info"],m[n.variant??"box"],n.class].filter(c=>!!c).join(" ");return e.ssr(S,e.ssrAttribute("class",e.escape(o(),!0),!1)+e.ssrAttribute("role",n.urgency==="polite"?"status":"alert",!1),e.escape(e.createComponent(s.Show,{get when(){return n.icon!==void 0},get children(){return e.ssr(A,e.ssrAttribute("class",e.escape(t.icon,!0),!1),e.escape(n.icon))}})),e.ssrAttribute("class",e.escape(t.body,!0),!1),e.escape(e.createComponent(s.Show,{get when(){return n.title!==void 0},get children(){return e.ssr(k,e.ssrAttribute("class",e.escape(t.title,!0),!1),e.escape(n.title))}})),e.ssrAttribute("class",e.escape(t.content,!0),!1),e.escape(n.children))}exports.Alert=x;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ssr as l, ssrAttribute as o, escape as n, ssrStyle as r, createComponent as a, memo as u } from "solid-js/web";
|
|
2
|
+
import { createUniqueId as _, createMemo as d, onCleanup as v, Show as s } from "solid-js";
|
|
3
|
+
const f = "vk_badge_H207K", g = "vk_icon_pYYcO", m = "vk_dot_rH6r0", b = "vk_sm_wGIZ-", k = "vk_minWidth_COglg", h = "vk_uppercase_VXoV8", W = "vk_toneNeutral_X8HW3", S = "vk_toneBrand_yGkjl", B = "vk_toneInfo_wp-9H", w = "vk_toneSuccess_VG8jt", I = "vk_toneWarning_zPFLO", y = "vk_toneDanger_cRUoq", C = "vk_soft_8b-4T", D = "vk_outline_gFFWD", N = "vk_collapsible_DMKBX", A = "vk_label_veC9k", t = {
|
|
4
|
+
badge: f,
|
|
5
|
+
icon: g,
|
|
6
|
+
dot: m,
|
|
7
|
+
sm: b,
|
|
8
|
+
minWidth: k,
|
|
9
|
+
uppercase: h,
|
|
10
|
+
toneNeutral: W,
|
|
11
|
+
toneBrand: S,
|
|
12
|
+
toneInfo: B,
|
|
13
|
+
toneSuccess: w,
|
|
14
|
+
toneWarning: I,
|
|
15
|
+
toneDanger: y,
|
|
16
|
+
soft: C,
|
|
17
|
+
outline: D,
|
|
18
|
+
collapsible: N,
|
|
19
|
+
label: A
|
|
20
|
+
};
|
|
21
|
+
var H = ["<span", ' aria-hidden="true">', "</span>"], O = ["<span", ' aria-hidden="true"></span>'], T = ["<span", ">", "</span>"], V = ["<span", ' style="', '"', ">", "", "", "</span>"];
|
|
22
|
+
const $ = {
|
|
23
|
+
neutral: t.toneNeutral,
|
|
24
|
+
brand: t.toneBrand,
|
|
25
|
+
info: t.toneInfo,
|
|
26
|
+
success: t.toneSuccess,
|
|
27
|
+
warning: t.toneWarning,
|
|
28
|
+
danger: t.toneDanger
|
|
29
|
+
}, j = {
|
|
30
|
+
soft: t.soft,
|
|
31
|
+
outline: t.outline
|
|
32
|
+
};
|
|
33
|
+
function L(e) {
|
|
34
|
+
_();
|
|
35
|
+
const c = () => e.tooltip !== void 0 ? typeof e.tooltip == "function" ? e.tooltip() : e.tooltip : e.title;
|
|
36
|
+
return d(() => ({
|
|
37
|
+
content: c(),
|
|
38
|
+
placement: e.tooltipPlacement
|
|
39
|
+
})), v(() => {
|
|
40
|
+
}), l(V, o("class", n([t.badge, $[e.tone ?? "neutral"], j[e.variant ?? "soft"], e.size === "sm" ? t.sm : void 0, e.uppercase ? t.uppercase : void 0, e.minWidth ? t.minWidth : void 0, e.collapsible === !0 ? t.collapsible : void 0, e.class].filter((i) => !!i).join(" "), !0), !1), r(e.style), o("title", n(e.title, !0), !1), n(a(s, {
|
|
41
|
+
get when() {
|
|
42
|
+
return e.icon !== void 0;
|
|
43
|
+
},
|
|
44
|
+
get children() {
|
|
45
|
+
return l(H, o("class", n(t.icon, !0), !1), n(e.icon));
|
|
46
|
+
}
|
|
47
|
+
})), n(a(s, {
|
|
48
|
+
get when() {
|
|
49
|
+
return u(() => e.collapsible === !0)() && e.icon === void 0;
|
|
50
|
+
},
|
|
51
|
+
get children() {
|
|
52
|
+
return l(O, o("class", n(t.dot, !0), !1));
|
|
53
|
+
}
|
|
54
|
+
})), n(a(s, {
|
|
55
|
+
get when() {
|
|
56
|
+
return e.collapsible === !0;
|
|
57
|
+
},
|
|
58
|
+
get fallback() {
|
|
59
|
+
return e.children;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return l(T, o("class", n(t.label, !0), !1), n(e.children));
|
|
63
|
+
}
|
|
64
|
+
})));
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
L as B
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),o=require("solid-js"),l="vk_badge_H207K",i="vk_icon_pYYcO",r="vk_dot_rH6r0",u="vk_sm_wGIZ-",d="vk_minWidth_COglg",_="vk_uppercase_VXoV8",v="vk_toneNeutral_X8HW3",g="vk_toneBrand_yGkjl",b="vk_toneInfo_wp-9H",f="vk_toneSuccess_VG8jt",m="vk_toneWarning_zPFLO",k="vk_toneDanger_cRUoq",h="vk_soft_8b-4T",S="vk_outline_gFFWD",p="vk_collapsible_DMKBX",W="vk_label_veC9k",n={badge:l,icon:i,dot:r,sm:u,minWidth:d,uppercase:_,toneNeutral:v,toneBrand:g,toneInfo:b,toneSuccess:f,toneWarning:m,toneDanger:k,soft:h,outline:S,collapsible:p,label:W};var w=["<span",' aria-hidden="true">',"</span>"],A=["<span",' aria-hidden="true"></span>'],B=["<span",">","</span>"],C=["<span",' style="','"',">","","","</span>"];const I={neutral:n.toneNeutral,brand:n.toneBrand,info:n.toneInfo,success:n.toneSuccess,warning:n.toneWarning,danger:n.toneDanger},y={soft:n.soft,outline:n.outline};function D(t){o.createUniqueId();const s=()=>t.tooltip!==void 0?typeof t.tooltip=="function"?t.tooltip():t.tooltip:t.title;o.createMemo(()=>({content:s(),placement:t.tooltipPlacement})),o.onCleanup(()=>{});const a=()=>[n.badge,I[t.tone??"neutral"],y[t.variant??"soft"],t.size==="sm"?n.sm:void 0,t.uppercase?n.uppercase:void 0,t.minWidth?n.minWidth:void 0,t.collapsible===!0?n.collapsible:void 0,t.class].filter(c=>!!c).join(" ");return e.ssr(C,e.ssrAttribute("class",e.escape(a(),!0),!1),e.ssrStyle(t.style),e.ssrAttribute("title",e.escape(t.title,!0),!1),e.escape(e.createComponent(o.Show,{get when(){return t.icon!==void 0},get children(){return e.ssr(w,e.ssrAttribute("class",e.escape(n.icon,!0),!1),e.escape(t.icon))}})),e.escape(e.createComponent(o.Show,{get when(){return e.memo(()=>t.collapsible===!0)()&&t.icon===void 0},get children(){return e.ssr(A,e.ssrAttribute("class",e.escape(n.dot,!0),!1))}})),e.escape(e.createComponent(o.Show,{get when(){return t.collapsible===!0},get fallback(){return t.children},get children(){return e.ssr(B,e.ssrAttribute("class",e.escape(n.label,!0),!1),e.escape(t.children))}})))}exports.Badge=D;
|