@vokril/ui-solid 0.34.0 → 0.37.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 +40 -0
- package/dist/Alert-DCIet3Ol.cjs +1 -0
- package/dist/Alert-DyBaU25r.js +59 -0
- package/dist/{AttributeGrid-CNkALmJq.cjs → AttributeGrid-BNQaSpfE.cjs} +1 -1
- package/dist/{AttributeGrid-DnuTPJ_P.js → AttributeGrid-tjVwSI4h.js} +4 -4
- package/dist/Badge-BXLrs2z-.cjs +1 -0
- package/dist/Badge-BguTObKo.js +99 -0
- package/dist/{Button-lMUW5P3O.cjs → Button-D5Ihf90u.cjs} +1 -1
- package/dist/{Button-CX7mylBT.js → Button-DDkZzT-k.js} +1 -1
- package/dist/CommandPalette-CGfXynfl.js +4130 -0
- package/dist/CommandPalette-CdiIycaW.cjs +2 -0
- package/dist/{CopyButton-Dnd8_2Lj.cjs → CopyButton-Hb6c_Oq1.cjs} +1 -1
- package/dist/{CopyButton-BVvv5M8g.js → CopyButton-gHxA-WL_.js} +1 -1
- package/dist/{DateRangePicker-B7XbFZP_.js → DateRangePicker-B36NSGMS.js} +5 -5
- package/dist/{DateRangePicker-Cnzwgtx-.cjs → DateRangePicker-EEcp-IbM.cjs} +1 -1
- package/dist/Disclosure-0tZlCnkH.js +76 -0
- package/dist/Disclosure-DHNtLOWi.cjs +1 -0
- package/dist/GuidedTour-DicNwdq3.cjs +1 -0
- package/dist/GuidedTour-bcaKpXPX.js +412 -0
- package/dist/{HostPortal-Dm4BmY8M.cjs → HostPortal-C1xTPZYj.cjs} +1 -1
- package/dist/{HostPortal-De65s6CU.js → HostPortal-DsVQEH2q.js} +1 -1
- package/dist/{IconPicker-Cku0jy4r.js → IconPicker-7sF4n6vD.js} +4 -4
- package/dist/{IconPicker-pYYYpMF6.cjs → IconPicker-D60txter.cjs} +1 -1
- package/dist/{Input-CHtvL4_4.cjs → Input-DTm6v0fK.cjs} +1 -1
- package/dist/{Input-C3rEQffK.js → Input-agpwYeJd.js} +1 -1
- package/dist/{Modal-zPqB1ufV.cjs → Modal-C1vp7z7l.cjs} +1 -1
- package/dist/{Modal-CjPn7xsM.js → Modal-aKptl9ig.js} +2 -2
- package/dist/{PageSkeleton-BRuqaDzr.js → PageSkeleton-XNfK8xoY.js} +516 -569
- package/dist/PageSkeleton-jljSUpu1.cjs +30 -0
- package/dist/{SearchableSelect-C-lV1vSv.cjs → SearchableSelect-CXPSoFqf.cjs} +1 -1
- package/dist/{SearchableSelect-Du12kcI9.js → SearchableSelect-DFdGGNR6.js} +3 -3
- package/dist/{StatusBarNotificationBell-Lps0FfKd.js → StatusBarNotificationBell-CnmMzXzD.js} +41 -39
- package/dist/{StatusBarNotificationBell-pBGZ_2eb.cjs → StatusBarNotificationBell-MXX_K48w.cjs} +24 -24
- package/dist/{Stepper-rpu7lpzB.cjs → Stepper-BLKD4ub3.cjs} +1 -1
- package/dist/{Stepper-DzI-gtKd.js → Stepper-D0rrrtAN.js} +1 -1
- package/dist/{Textarea-DOzZCc-O.js → Textarea-CKJDNOaL.js} +1 -1
- package/dist/{Textarea-D4nYoQ0J.cjs → Textarea-Ds3bMrq9.cjs} +1 -1
- package/dist/{TimeSeriesChart-BJqQpeEJ.cjs → TimeSeriesChart-B9cqfs1M.cjs} +1 -1
- package/dist/{TimeSeriesChart-DvAhuyVl.js → TimeSeriesChart-DBARL8HG.js} +1 -1
- package/dist/ToggleButton-DaDfg2cC.js +2186 -0
- package/dist/ToggleButton-WoM2S_S4.cjs +1 -0
- package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
- package/dist/{server/appThemeDerivation-Be_oKljl.cjs → appThemeDerivation-Cgg74S4e.cjs} +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createDialogShellFocus-DFEaujn4.cjs → createDialogShellFocus-C2FKc2rv.cjs} +1 -1
- package/dist/{createDialogShellFocus-Z557MGDg.js → createDialogShellFocus-CgjiySLA.js} +2 -2
- package/dist/createResizableSidebar-BqW3Ozgd.cjs +1 -0
- package/dist/createResizableSidebar-CKbN032u.js +853 -0
- package/dist/de-BQbrl0SL.cjs +1 -0
- package/dist/{server/de-q3NXnC0J.js → de-CSWSMGCG.js} +45 -39
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +38 -36
- package/dist/forms/NumberInput.d.cts +5 -0
- package/dist/forms/NumberInput.d.ts +5 -0
- package/dist/forms/RadioGroup.d.cts +13 -0
- package/dist/forms/RadioGroup.d.ts +13 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
- package/dist/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +360 -353
- package/dist/layout/SettingsCard.d.cts +108 -0
- package/dist/layout/SettingsCard.d.ts +108 -0
- package/dist/layout/SettingsSubpageHeader.d.cts +29 -0
- package/dist/layout/SettingsSubpageHeader.d.ts +29 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.cts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +18 -14
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-DmwTAO09.cjs +1 -0
- package/dist/notificationCatalog-otJ1LHFH.js +72 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- 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 +85 -84
- package/dist/{rowSource-D8gyHbEE.cjs → rowSource-BWm-kZHe.cjs} +1 -1
- package/dist/{rowSource-_4IuosKj.js → rowSource-DEulMv5F.js} +1 -1
- package/dist/server/Alert-DWGobTUk.js +45 -0
- package/dist/server/Alert-DulmzLv9.cjs +1 -0
- package/dist/server/{AttributeGrid-B9j_c2wM.js → AttributeGrid-BmS2U5Gz.js} +4 -4
- package/dist/server/{AttributeGrid-BALCTvOI.cjs → AttributeGrid-fT5-b9ZJ.cjs} +1 -1
- package/dist/server/Badge-C1Jn--DR.js +68 -0
- package/dist/server/Badge-wsDCVlA8.cjs +1 -0
- package/dist/server/{Button-ft_8RNJj.js → Button-XL9Os1pR.js} +1 -1
- package/dist/server/{Button-DHefmmYz.cjs → Button-lNnNp0um.cjs} +1 -1
- package/dist/server/CommandPalette-C0MbWZHM.cjs +1 -0
- package/dist/server/CommandPalette-CgTnmrYx.js +3376 -0
- package/dist/server/{CopyButton-CiYcsQcI.js → CopyButton-BdU_8aZB.js} +1 -1
- package/dist/server/{CopyButton-D2q7tQ0m.cjs → CopyButton-BpbGM72h.cjs} +1 -1
- package/dist/server/{DateRangePicker-BeByF_wt.cjs → DateRangePicker-ClJHlO9g.cjs} +1 -1
- package/dist/server/{DateRangePicker-TIOF99wh.js → DateRangePicker-DGXmbyCR.js} +5 -5
- package/dist/server/Disclosure-CUvaGDTZ.cjs +1 -0
- package/dist/server/Disclosure-ClOFRW_3.js +55 -0
- package/dist/server/GuidedTour-CCkg6Paz.js +350 -0
- package/dist/server/GuidedTour-PETCExHX.cjs +1 -0
- package/dist/server/{HostPortal-CwyePpDX.cjs → HostPortal-BNGZ8nw4.cjs} +1 -1
- package/dist/server/{HostPortal-C4xdfRyM.js → HostPortal-CdhnKAWT.js} +1 -1
- package/dist/server/{IconPicker-DX5JVIOl.js → IconPicker-B5lUuCxR.js} +5 -5
- package/dist/server/{IconPicker-QZrwihNH.cjs → IconPicker-BfRZtScr.cjs} +1 -1
- package/dist/server/{Input-V9Szcw6w.js → Input-DFAn8kou.js} +1 -1
- package/dist/server/{Input-UX0Hk53M.cjs → Input-DOTXKwhw.cjs} +1 -1
- package/dist/server/{Modal-DNYwnQ0V.cjs → Modal-BI3FtG-d.cjs} +1 -1
- package/dist/server/{Modal-Cl_asviX.js → Modal-Cbmikig8.js} +2 -2
- package/dist/server/PageSkeleton--ssP7Di9.cjs +30 -0
- package/dist/server/{PageSkeleton-CFs7AdTA.js → PageSkeleton-DRPIcDHU.js} +393 -432
- package/dist/server/{SearchableSelect-BBu5cP6P.cjs → SearchableSelect-DsHkuiTW.cjs} +1 -1
- package/dist/server/{SearchableSelect-B2ZFnp6i.js → SearchableSelect-y0Fr7cPS.js} +3 -3
- package/dist/server/{StatusBarNotificationBell-D0UzYPs6.cjs → StatusBarNotificationBell-BrHZ2r3X.cjs} +23 -23
- package/dist/server/{StatusBarNotificationBell-DiVJ-EnY.js → StatusBarNotificationBell-CY16bTyI.js} +41 -39
- package/dist/server/{Stepper-C04rOZcI.cjs → Stepper-BOVzsqcG.cjs} +1 -1
- package/dist/server/{Stepper-CVAOsf3o.js → Stepper-DC34G5fk.js} +1 -1
- package/dist/server/{Textarea-DM4zpgWo.js → Textarea-CL2wYpW7.js} +1 -1
- package/dist/server/{Textarea-BG6F8taO.cjs → Textarea-D43xOjAJ.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-tWbSF6fJ.cjs → TimeSeriesChart-CL1GjjV5.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-kuuqH7we.js → TimeSeriesChart-CP-2M3R7.js} +1 -1
- package/dist/server/ToggleButton-BmvcLm_6.cjs +1 -0
- package/dist/server/ToggleButton-oDCxuzfp.js +1375 -0
- package/dist/server/VpRefresh-CEyHVNo-.cjs +1 -0
- package/dist/server/{VpRefresh-CjGV1jUv.js → VpRefresh-Dlqsm9Va.js} +17 -3
- package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
- package/dist/{appThemeDerivation-Be_oKljl.cjs → server/appThemeDerivation-Cgg74S4e.cjs} +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createDialogShellFocus-B10Toy2h.js → createDialogShellFocus-BXCNQyU9.js} +1 -1
- package/dist/server/{createDialogShellFocus-usbhq9Av.cjs → createDialogShellFocus-CKsZl9Uz.cjs} +1 -1
- package/dist/server/createResizableSidebar-B8zMo4jJ.js +599 -0
- package/dist/server/createResizableSidebar-DXFKY01F.cjs +1 -0
- package/dist/server/de-BQbrl0SL.cjs +1 -0
- package/dist/{de-q3NXnC0J.js → server/de-CSWSMGCG.js} +45 -39
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +38 -36
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +1 -1
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
- package/dist/server/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
- package/dist/server/index-CME-IDQX.cjs +1 -0
- package/dist/server/{index-BNXRPhpr.js → index-vTHpJ130.js} +3879 -3892
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +413 -406
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +18 -14
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- 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 +80 -79
- package/dist/server/{rowSource-Yw-xtlih.cjs → rowSource-BOt_vVGY.cjs} +1 -1
- package/dist/server/{rowSource-BSa7rgYJ.js → rowSource-WElLH5Tb.js} +1 -1
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +1 -1
- package/dist/server/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
- package/dist/server/tr-sOAsJS3P.cjs +1 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/forms/NumberInput.jsx +14 -6
- package/dist/solid/forms/NumberInput.module.css.js +3 -1
- package/dist/solid/forms/RadioGroup.jsx +14 -3
- package/dist/solid/forms/RadioGroup.module.css.js +6 -1
- package/dist/solid/i18n/locales/de.json +4 -1
- package/dist/solid/i18n/locales/tr.json +4 -1
- package/dist/solid/layout/SettingsCard.jsx +103 -0
- package/dist/solid/layout/SettingsCard.module.css.js +33 -0
- package/dist/solid/layout/SettingsSubpageHeader.jsx +31 -0
- package/dist/solid/layout/SettingsSubpageHeader.module.css.js +10 -0
- package/dist/solid/layout/index.js +2 -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/solid/tokens/palette/accessiblePalette.js +2 -2
- package/dist/solid/tokens/palette/palettes.js +8 -8
- package/dist/style.css +89 -89
- package/dist/theme.css +88 -88
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/palette/accessiblePalette.d.cts +2 -2
- package/dist/tokens/palette/accessiblePalette.d.ts +2 -2
- package/dist/tokens/tokens.css +88 -88
- package/dist/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
- package/dist/tr-sOAsJS3P.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +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/GuidedTour-BTvAeAfT.cjs +0 -1
- package/dist/GuidedTour-CwbGGSIW.js +0 -483
- package/dist/PageSkeleton-Cz2bckO4.cjs +0 -30
- package/dist/ToggleButton-BTu9tcCi.js +0 -2144
- package/dist/ToggleButton-iMcQGwDn.cjs +0 -1
- package/dist/createResizableSidebar-De-8HN0W.js +0 -504
- package/dist/createResizableSidebar-JB_GlEN7.cjs +0 -1
- package/dist/de-BqFZ0Ac8.cjs +0 -1
- 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/GuidedTour-DCoB90h1.cjs +0 -1
- package/dist/server/GuidedTour-pdx_4IrZ.js +0 -400
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +0 -30
- package/dist/server/ToggleButton-BbW2zC_f.js +0 -1344
- package/dist/server/ToggleButton-CQd_Jagp.cjs +0 -1
- package/dist/server/VpRefresh-Khu7XHaq.cjs +0 -1
- package/dist/server/createResizableSidebar-CeY4cES5.cjs +0 -1
- package/dist/server/createResizableSidebar-DA0AZVNV.js +0 -312
- package/dist/server/de-BqFZ0Ac8.cjs +0 -1
- package/dist/server/index-D0BVVt2h.cjs +0 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +0 -1
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +0 -122
- package/dist/server/tr-D7bwe7tl.cjs +0 -1
- package/dist/tr-D7bwe7tl.cjs +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
export type SettingsHeadingLevel = 2 | 3 | 4;
|
|
3
|
+
export interface SettingsCardProps {
|
|
4
|
+
/** The group's heading, above the card. Pre-translated by the caller. */
|
|
5
|
+
title?: JSX.Element | undefined;
|
|
6
|
+
/** A muted line under the heading. */
|
|
7
|
+
description?: JSX.Element | undefined;
|
|
8
|
+
/** A small muted count after the heading ("12"). */
|
|
9
|
+
count?: JSX.Element | undefined;
|
|
10
|
+
/** Controls on the right of the heading: an "Add" or a "Reset all" button. */
|
|
11
|
+
actions?: JSX.Element | undefined;
|
|
12
|
+
/** Heading level of `title`. Default 3: a settings page's own title is the `h2`. */
|
|
13
|
+
headingLevel?: SettingsHeadingLevel | undefined;
|
|
14
|
+
/** Accessible name of the group when it has no `title`. */
|
|
15
|
+
ariaLabel?: string | undefined;
|
|
16
|
+
/** The rows: `SettingsRow`, `SettingsAdvancedRow` or any element that should sit in the card. */
|
|
17
|
+
children: JSX.Element;
|
|
18
|
+
class?: string | undefined;
|
|
19
|
+
/** Class on the bordered card that holds the rows. */
|
|
20
|
+
cardClass?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A titled group of settings: a heading with an optional description and actions, then a bordered
|
|
24
|
+
* card whose rows are divided by a hairline. A settings page is a column of these cards.
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <SettingsCard title="Permissions" description="How often agents must ask you.">
|
|
28
|
+
* <SettingsRow label="Databases" description="Every connection.">
|
|
29
|
+
* <SearchableSelect … />
|
|
30
|
+
* </SettingsRow>
|
|
31
|
+
* <SettingsAdvancedRow summary="Tools and saved permissions">
|
|
32
|
+
* <SettingsRow label="Tools" description="48 tools" onOpen={openTools} />
|
|
33
|
+
* </SettingsAdvancedRow>
|
|
34
|
+
* </SettingsCard>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* With a `title` the group is a `section` named by its heading; without one it is a plain block
|
|
38
|
+
* (pass `ariaLabel` to still name it).
|
|
39
|
+
*/
|
|
40
|
+
export declare function SettingsCard(props: SettingsCardProps): JSX.Element;
|
|
41
|
+
export type SettingsRowTone = 'default' | 'subtle' | 'warning';
|
|
42
|
+
export interface SettingsRowProps {
|
|
43
|
+
/** The setting's name. Pre-translated by the caller. */
|
|
44
|
+
label: JSX.Element;
|
|
45
|
+
/** One muted sentence under the label: what the setting does, or why it is unavailable. */
|
|
46
|
+
description?: JSX.Element | undefined;
|
|
47
|
+
/** The control on the right: a `Toggle`, a `SearchableSelect`, a `SegmentedControl`, buttons, a value. */
|
|
48
|
+
children?: JSX.Element | undefined;
|
|
49
|
+
/** Content before the text: an icon or an avatar. */
|
|
50
|
+
leading?: JSX.Element | undefined;
|
|
51
|
+
/** Badges after the label, on its line. */
|
|
52
|
+
badges?: JSX.Element | undefined;
|
|
53
|
+
/** Marks the setting as changed from its default with a dot after the label. */
|
|
54
|
+
modified?: boolean | undefined;
|
|
55
|
+
/** Accessible name of the `modified` dot. Default: the translated "Modified". */
|
|
56
|
+
modifiedLabel?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Dims the label and description. The control is disabled by the caller (its own `disabled`),
|
|
59
|
+
* and the description should say why.
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean | undefined;
|
|
62
|
+
/** `subtle` paints a quiet note row; `warning` a row that needs attention. Default `default`. */
|
|
63
|
+
tone?: SettingsRowTone | undefined;
|
|
64
|
+
/** Full-width content under the row: an inline warning with its action, an editor. */
|
|
65
|
+
footer?: JSX.Element | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Makes the row lead to a subpage: an "Open" button at the end, named with the row's label
|
|
68
|
+
* ("Open Tools"). Moving focus back to it when the subpage closes is the host's job.
|
|
69
|
+
*/
|
|
70
|
+
onOpen?: (() => void) | undefined;
|
|
71
|
+
/** Text of the open button. Default: the translated "Open". */
|
|
72
|
+
openLabel?: string | undefined;
|
|
73
|
+
/** `id` of the open button, for the host to return focus to it. */
|
|
74
|
+
openButtonId?: string | undefined;
|
|
75
|
+
class?: string | undefined;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* One setting: label and description on the left, its control on the right. The package's
|
|
79
|
+
* controls take their accessible name from the label and their description from the muted line,
|
|
80
|
+
* as inside a `FormField`, so the control needs no `ariaLabel` of its own. On a narrow card the
|
|
81
|
+
* control wraps under the text.
|
|
82
|
+
*/
|
|
83
|
+
export declare function SettingsRow(props: SettingsRowProps): JSX.Element;
|
|
84
|
+
export interface SettingsAdvancedRowProps {
|
|
85
|
+
/** The toggle's text. Default: the translated "Advanced". */
|
|
86
|
+
label?: JSX.Element | undefined;
|
|
87
|
+
/** A muted line after the label naming what is inside ("Port, limits"). */
|
|
88
|
+
summary?: JSX.Element | undefined;
|
|
89
|
+
/** A badge after the summary, for example how many settings inside differ from their default. */
|
|
90
|
+
aside?: JSX.Element | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Controlled open state, with `onToggle`. A host's settings search should open the row while a
|
|
93
|
+
* match is inside it: closed rows are not rendered.
|
|
94
|
+
*/
|
|
95
|
+
open?: boolean | undefined;
|
|
96
|
+
onToggle?: ((open: boolean) => void) | undefined;
|
|
97
|
+
/** Uncontrolled initial state. Default false. */
|
|
98
|
+
defaultOpen?: boolean | undefined;
|
|
99
|
+
/** The rows it reveals, usually `SettingsRow`s. */
|
|
100
|
+
children: JSX.Element;
|
|
101
|
+
class?: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A row inside a `SettingsCard` that folds the card's less used settings away: "› Advanced",
|
|
105
|
+
* what is inside, and a badge. Opening it reveals its rows in the same card, indented. Built on
|
|
106
|
+
* `Disclosure`: a real button with `aria-expanded` and `aria-controls`.
|
|
107
|
+
*/
|
|
108
|
+
export declare function SettingsAdvancedRow(props: SettingsAdvancedRowProps): JSX.Element;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
export type SettingsHeadingLevel = 2 | 3 | 4;
|
|
3
|
+
export interface SettingsCardProps {
|
|
4
|
+
/** The group's heading, above the card. Pre-translated by the caller. */
|
|
5
|
+
title?: JSX.Element | undefined;
|
|
6
|
+
/** A muted line under the heading. */
|
|
7
|
+
description?: JSX.Element | undefined;
|
|
8
|
+
/** A small muted count after the heading ("12"). */
|
|
9
|
+
count?: JSX.Element | undefined;
|
|
10
|
+
/** Controls on the right of the heading: an "Add" or a "Reset all" button. */
|
|
11
|
+
actions?: JSX.Element | undefined;
|
|
12
|
+
/** Heading level of `title`. Default 3: a settings page's own title is the `h2`. */
|
|
13
|
+
headingLevel?: SettingsHeadingLevel | undefined;
|
|
14
|
+
/** Accessible name of the group when it has no `title`. */
|
|
15
|
+
ariaLabel?: string | undefined;
|
|
16
|
+
/** The rows: `SettingsRow`, `SettingsAdvancedRow` or any element that should sit in the card. */
|
|
17
|
+
children: JSX.Element;
|
|
18
|
+
class?: string | undefined;
|
|
19
|
+
/** Class on the bordered card that holds the rows. */
|
|
20
|
+
cardClass?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A titled group of settings: a heading with an optional description and actions, then a bordered
|
|
24
|
+
* card whose rows are divided by a hairline. A settings page is a column of these cards.
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <SettingsCard title="Permissions" description="How often agents must ask you.">
|
|
28
|
+
* <SettingsRow label="Databases" description="Every connection.">
|
|
29
|
+
* <SearchableSelect … />
|
|
30
|
+
* </SettingsRow>
|
|
31
|
+
* <SettingsAdvancedRow summary="Tools and saved permissions">
|
|
32
|
+
* <SettingsRow label="Tools" description="48 tools" onOpen={openTools} />
|
|
33
|
+
* </SettingsAdvancedRow>
|
|
34
|
+
* </SettingsCard>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* With a `title` the group is a `section` named by its heading; without one it is a plain block
|
|
38
|
+
* (pass `ariaLabel` to still name it).
|
|
39
|
+
*/
|
|
40
|
+
export declare function SettingsCard(props: SettingsCardProps): JSX.Element;
|
|
41
|
+
export type SettingsRowTone = 'default' | 'subtle' | 'warning';
|
|
42
|
+
export interface SettingsRowProps {
|
|
43
|
+
/** The setting's name. Pre-translated by the caller. */
|
|
44
|
+
label: JSX.Element;
|
|
45
|
+
/** One muted sentence under the label: what the setting does, or why it is unavailable. */
|
|
46
|
+
description?: JSX.Element | undefined;
|
|
47
|
+
/** The control on the right: a `Toggle`, a `SearchableSelect`, a `SegmentedControl`, buttons, a value. */
|
|
48
|
+
children?: JSX.Element | undefined;
|
|
49
|
+
/** Content before the text: an icon or an avatar. */
|
|
50
|
+
leading?: JSX.Element | undefined;
|
|
51
|
+
/** Badges after the label, on its line. */
|
|
52
|
+
badges?: JSX.Element | undefined;
|
|
53
|
+
/** Marks the setting as changed from its default with a dot after the label. */
|
|
54
|
+
modified?: boolean | undefined;
|
|
55
|
+
/** Accessible name of the `modified` dot. Default: the translated "Modified". */
|
|
56
|
+
modifiedLabel?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Dims the label and description. The control is disabled by the caller (its own `disabled`),
|
|
59
|
+
* and the description should say why.
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean | undefined;
|
|
62
|
+
/** `subtle` paints a quiet note row; `warning` a row that needs attention. Default `default`. */
|
|
63
|
+
tone?: SettingsRowTone | undefined;
|
|
64
|
+
/** Full-width content under the row: an inline warning with its action, an editor. */
|
|
65
|
+
footer?: JSX.Element | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Makes the row lead to a subpage: an "Open" button at the end, named with the row's label
|
|
68
|
+
* ("Open Tools"). Moving focus back to it when the subpage closes is the host's job.
|
|
69
|
+
*/
|
|
70
|
+
onOpen?: (() => void) | undefined;
|
|
71
|
+
/** Text of the open button. Default: the translated "Open". */
|
|
72
|
+
openLabel?: string | undefined;
|
|
73
|
+
/** `id` of the open button, for the host to return focus to it. */
|
|
74
|
+
openButtonId?: string | undefined;
|
|
75
|
+
class?: string | undefined;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* One setting: label and description on the left, its control on the right. The package's
|
|
79
|
+
* controls take their accessible name from the label and their description from the muted line,
|
|
80
|
+
* as inside a `FormField`, so the control needs no `ariaLabel` of its own. On a narrow card the
|
|
81
|
+
* control wraps under the text.
|
|
82
|
+
*/
|
|
83
|
+
export declare function SettingsRow(props: SettingsRowProps): JSX.Element;
|
|
84
|
+
export interface SettingsAdvancedRowProps {
|
|
85
|
+
/** The toggle's text. Default: the translated "Advanced". */
|
|
86
|
+
label?: JSX.Element | undefined;
|
|
87
|
+
/** A muted line after the label naming what is inside ("Port, limits"). */
|
|
88
|
+
summary?: JSX.Element | undefined;
|
|
89
|
+
/** A badge after the summary, for example how many settings inside differ from their default. */
|
|
90
|
+
aside?: JSX.Element | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Controlled open state, with `onToggle`. A host's settings search should open the row while a
|
|
93
|
+
* match is inside it: closed rows are not rendered.
|
|
94
|
+
*/
|
|
95
|
+
open?: boolean | undefined;
|
|
96
|
+
onToggle?: ((open: boolean) => void) | undefined;
|
|
97
|
+
/** Uncontrolled initial state. Default false. */
|
|
98
|
+
defaultOpen?: boolean | undefined;
|
|
99
|
+
/** The rows it reveals, usually `SettingsRow`s. */
|
|
100
|
+
children: JSX.Element;
|
|
101
|
+
class?: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A row inside a `SettingsCard` that folds the card's less used settings away: "› Advanced",
|
|
105
|
+
* what is inside, and a badge. Opening it reveals its rows in the same card, indented. Built on
|
|
106
|
+
* `Disclosure`: a real button with `aria-expanded` and `aria-controls`.
|
|
107
|
+
*/
|
|
108
|
+
export declare function SettingsAdvancedRow(props: SettingsAdvancedRowProps): JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import type { SettingsHeadingLevel } from './SettingsCard.cjs';
|
|
3
|
+
export interface SettingsSubpageHeaderProps {
|
|
4
|
+
/** The subpage's title. Pre-translated by the caller. */
|
|
5
|
+
title: JSX.Element;
|
|
6
|
+
/** A muted line under the title: what the subpage is for. */
|
|
7
|
+
description?: JSX.Element | undefined;
|
|
8
|
+
/** Goes back to the page the subpage was opened from. */
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
/** Text of the back button, usually the parent page's name. Default: the translated "Back". */
|
|
11
|
+
backLabel?: string | undefined;
|
|
12
|
+
/** Controls on the right of the title: a "Reset all" or an "Add" button. */
|
|
13
|
+
actions?: JSX.Element | undefined;
|
|
14
|
+
/** Heading level of `title`. Default 2, the level of the page it replaces. */
|
|
15
|
+
headingLevel?: SettingsHeadingLevel | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Moves focus to the title when the header mounts, so a screen reader announces the new
|
|
18
|
+
* subpage. Default true; pass false when the host restores focus elsewhere.
|
|
19
|
+
*/
|
|
20
|
+
focusOnMount?: boolean | undefined;
|
|
21
|
+
class?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The top of a settings subpage opened in place from a `SettingsRow`'s "Open" button: a back
|
|
25
|
+
* button, the title and its description, and actions on the right. The title takes focus when
|
|
26
|
+
* the subpage appears. Going back and moving focus to the row that opened the subpage is the
|
|
27
|
+
* host's job (`SettingsRow.openButtonId`).
|
|
28
|
+
*/
|
|
29
|
+
export declare function SettingsSubpageHeader(props: SettingsSubpageHeaderProps): JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import type { SettingsHeadingLevel } from './SettingsCard.js';
|
|
3
|
+
export interface SettingsSubpageHeaderProps {
|
|
4
|
+
/** The subpage's title. Pre-translated by the caller. */
|
|
5
|
+
title: JSX.Element;
|
|
6
|
+
/** A muted line under the title: what the subpage is for. */
|
|
7
|
+
description?: JSX.Element | undefined;
|
|
8
|
+
/** Goes back to the page the subpage was opened from. */
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
/** Text of the back button, usually the parent page's name. Default: the translated "Back". */
|
|
11
|
+
backLabel?: string | undefined;
|
|
12
|
+
/** Controls on the right of the title: a "Reset all" or an "Add" button. */
|
|
13
|
+
actions?: JSX.Element | undefined;
|
|
14
|
+
/** Heading level of `title`. Default 2, the level of the page it replaces. */
|
|
15
|
+
headingLevel?: SettingsHeadingLevel | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Moves focus to the title when the header mounts, so a screen reader announces the new
|
|
18
|
+
* subpage. Default true; pass false when the host restores focus elsewhere.
|
|
19
|
+
*/
|
|
20
|
+
focusOnMount?: boolean | undefined;
|
|
21
|
+
class?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The top of a settings subpage opened in place from a `SettingsRow`'s "Open" button: a back
|
|
25
|
+
* button, the title and its description, and actions on the right. The title takes focus when
|
|
26
|
+
* the subpage appears. Going back and moving focus to the row that opened the subpage is the
|
|
27
|
+
* host's job (`SettingsRow.openButtonId`).
|
|
28
|
+
*/
|
|
29
|
+
export declare function SettingsSubpageHeader(props: SettingsSubpageHeaderProps): JSX.Element;
|
package/dist/layout/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-BqW3Ozgd.cjs"),a=require("../Stepper-BLKD4ub3.cjs"),r=require("../createVirtualWindow-C8_UuF7B.cjs");exports.PageHeader=e.PageHeader;exports.PageHeaderIcon=e.PageHeaderIcon;exports.ResizableSplitPane=e.ResizableSplitPane;exports.ResizeHandle=e.ResizeHandle;exports.SettingsAdvancedRow=e.SettingsAdvancedRow;exports.SettingsCard=e.SettingsCard;exports.SettingsRow=e.SettingsRow;exports.SettingsSubpageHeader=e.SettingsSubpageHeader;exports.createResizableSidebar=e.createResizableSidebar;exports.createVirtualScroller=e.createVirtualScroller;exports.Accordion=a.Accordion;exports.Breadcrumb=a.Breadcrumb;exports.Stepper=a.Stepper;exports.Tabs=a.Tabs;exports.createVirtualWindow=r.createVirtualWindow;
|
package/dist/layout/index.d.cts
CHANGED
package/dist/layout/index.d.ts
CHANGED
package/dist/layout/index.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { A as
|
|
3
|
-
import { c as
|
|
1
|
+
import { P as s, a as r, R as t, b as i, S as o, c as d, d as c, e as S, f as n, g } from "../createResizableSidebar-CKbN032u.js";
|
|
2
|
+
import { A as b, B as p, S as R, T as f } from "../Stepper-D0rrrtAN.js";
|
|
3
|
+
import { c as u } from "../createVirtualWindow-CGPw2jm_.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
b as Accordion,
|
|
6
|
+
p as Breadcrumb,
|
|
7
|
+
s as PageHeader,
|
|
8
|
+
r as PageHeaderIcon,
|
|
9
|
+
t as ResizableSplitPane,
|
|
10
|
+
i as ResizeHandle,
|
|
11
|
+
o as SettingsAdvancedRow,
|
|
12
|
+
d as SettingsCard,
|
|
13
|
+
c as SettingsRow,
|
|
14
|
+
S as SettingsSubpageHeader,
|
|
15
|
+
R as Stepper,
|
|
16
|
+
f as Tabs,
|
|
17
|
+
n as createResizableSidebar,
|
|
18
|
+
g as createVirtualScroller,
|
|
19
|
+
u as createVirtualWindow
|
|
16
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper-BLKD4ub3.cjs"),a=require("../tablistKeyboard-DtVKTEWz.cjs"),t=require("../createSelectionIndicator-DaZspPf1.cjs");exports.Accordion=e.Accordion;exports.Breadcrumb=e.Breadcrumb;exports.Stepper=e.Stepper;exports.Tabs=e.Tabs;exports.tabId=e.tabId;exports.tabPanelAria=e.tabPanelAria;exports.tabPanelId=e.tabPanelId;exports.createTablistKeyboardHandler=a.createTablistKeyboardHandler;exports.isTablistNavigationKey=a.isTablistNavigationKey;exports.resolveTablistNavigationTarget=a.resolveTablistNavigationTarget;exports.rovingTabIndex=a.rovingTabIndex;exports.createSelectionIndicator=t.createSelectionIndicator;
|
package/dist/navigation/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-
|
|
1
|
+
import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-D0rrrtAN.js";
|
|
2
2
|
import { c as d, i as l, r as T, a as p } from "../tablistKeyboard-AxJcXuc5.js";
|
|
3
3
|
import { c as m } from "../createSelectionIndicator-BnxXUMlT.js";
|
|
4
4
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("solid-js/web"),z="vk_track_8sxq6",k="vk_size2xs_PFVQU",g="vk_sizeXs_uv795",S="vk_sizeSm_PXflS",b="vk_sizeMd_D7fn9",x="vk_fill_WzdHy",N="vk_toneBrand_Tv6r-",h="vk_toneSuccess_zqjLa",A="vk_toneWarning_xuA11",M="vk_toneDanger_eWHhk",y="vk_toneNeutral_-Ko2R",D="vk_indeterminate_94QkD",i={track:z,size2xs:k,sizeXs:g,sizeSm:S,sizeMd:b,fill:x,toneBrand:N,toneSuccess:h,toneWarning:A,toneDanger:M,toneNeutral:y,indeterminate:D};var W=s.template("<div role=progressbar><span>");const X={brand:i.toneBrand,success:i.toneSuccess,warning:i.toneWarning,danger:i.toneDanger,neutral:i.toneNeutral},B={"2xs":i.size2xs,xs:i.sizeXs,sm:i.sizeSm,md:i.sizeMd};function L(t){const a=()=>{if(t.indeterminate)return 0;const n=t.max??100;return n<=0?0:Math.max(0,Math.min(100,t.value/n*100))},r=()=>t.indeterminate===!0;return(()=>{var n=W(),o=n.firstChild;return s.effect(e=>{var c=`${i.track} ${B[t.size??"md"]} ${X[t.tone??"brand"]} ${r()?i.indeterminate:""} ${t.class??""}`,v=r()?void 0:Math.round(a()),d=r()?void 0:0,u=r()?void 0:100,l=r()?"true":void 0,m=t.ariaLabel,f=i.fill,_=r()?void 0:{"--progress-pct":`${a()}%`};return c!==e.e&&s.className(n,e.e=c),v!==e.t&&s.setAttribute(n,"aria-valuenow",e.t=v),d!==e.a&&s.setAttribute(n,"aria-valuemin",e.a=d),u!==e.o&&s.setAttribute(n,"aria-valuemax",e.o=u),l!==e.i&&s.setAttribute(n,"aria-busy",e.i=l),m!==e.n&&s.setAttribute(n,"aria-label",e.n=m),f!==e.s&&s.className(o,e.s=f),e.h=s.style(o,_,e.h),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),n})()}function P(t,a){return{...t,category:t.category??t.id.split(".")[0]??"general",build:a}}function q(t,a,r){return{id:t,notification:a,resolve:n=>a.build(r,n)}}exports.Progress=L;exports.defineNotification=P;exports.defineNotificationScenario=q;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { effect as k, className as z, setAttribute as r, style as g, template as S } from "solid-js/web";
|
|
2
|
+
const x = "vk_track_8sxq6", b = "vk_size2xs_PFVQU", h = "vk_sizeXs_uv795", N = "vk_sizeSm_PXflS", M = "vk_sizeMd_D7fn9", y = "vk_fill_WzdHy", D = "vk_toneBrand_Tv6r-", W = "vk_toneSuccess_zqjLa", X = "vk_toneWarning_xuA11", A = "vk_toneDanger_eWHhk", B = "vk_toneNeutral_-Ko2R", L = "vk_indeterminate_94QkD", i = {
|
|
3
|
+
track: x,
|
|
4
|
+
size2xs: b,
|
|
5
|
+
sizeXs: h,
|
|
6
|
+
sizeSm: N,
|
|
7
|
+
sizeMd: M,
|
|
8
|
+
fill: y,
|
|
9
|
+
toneBrand: D,
|
|
10
|
+
toneSuccess: W,
|
|
11
|
+
toneWarning: X,
|
|
12
|
+
toneDanger: A,
|
|
13
|
+
toneNeutral: B,
|
|
14
|
+
indeterminate: L
|
|
15
|
+
};
|
|
16
|
+
var P = /* @__PURE__ */ S("<div role=progressbar><span>");
|
|
17
|
+
const C = {
|
|
18
|
+
brand: i.toneBrand,
|
|
19
|
+
success: i.toneSuccess,
|
|
20
|
+
warning: i.toneWarning,
|
|
21
|
+
danger: i.toneDanger,
|
|
22
|
+
neutral: i.toneNeutral
|
|
23
|
+
}, q = {
|
|
24
|
+
"2xs": i.size2xs,
|
|
25
|
+
xs: i.sizeXs,
|
|
26
|
+
sm: i.sizeSm,
|
|
27
|
+
md: i.sizeMd
|
|
28
|
+
};
|
|
29
|
+
function E(n) {
|
|
30
|
+
const a = () => {
|
|
31
|
+
if (n.indeterminate) return 0;
|
|
32
|
+
const t = n.max ?? 100;
|
|
33
|
+
return t <= 0 ? 0 : Math.max(0, Math.min(100, n.value / t * 100));
|
|
34
|
+
}, s = () => n.indeterminate === !0;
|
|
35
|
+
return (() => {
|
|
36
|
+
var t = P(), o = t.firstChild;
|
|
37
|
+
return k((e) => {
|
|
38
|
+
var c = `${i.track} ${q[n.size ?? "md"]} ${C[n.tone ?? "brand"]} ${s() ? i.indeterminate : ""} ${n.class ?? ""}`, v = s() ? void 0 : Math.round(a()), d = s() ? void 0 : 0, l = s() ? void 0 : 100, u = s() ? "true" : void 0, m = n.ariaLabel, _ = i.fill, f = s() ? void 0 : {
|
|
39
|
+
"--progress-pct": `${a()}%`
|
|
40
|
+
};
|
|
41
|
+
return c !== e.e && z(t, e.e = c), v !== e.t && r(t, "aria-valuenow", e.t = v), d !== e.a && r(t, "aria-valuemin", e.a = d), l !== e.o && r(t, "aria-valuemax", e.o = l), u !== e.i && r(t, "aria-busy", e.i = u), m !== e.n && r(t, "aria-label", e.n = m), _ !== e.s && z(o, e.s = _), e.h = g(o, f, e.h), e;
|
|
42
|
+
}, {
|
|
43
|
+
e: void 0,
|
|
44
|
+
t: void 0,
|
|
45
|
+
a: void 0,
|
|
46
|
+
o: void 0,
|
|
47
|
+
i: void 0,
|
|
48
|
+
n: void 0,
|
|
49
|
+
s: void 0,
|
|
50
|
+
h: void 0
|
|
51
|
+
}), t;
|
|
52
|
+
})();
|
|
53
|
+
}
|
|
54
|
+
function H(n, a) {
|
|
55
|
+
return {
|
|
56
|
+
...n,
|
|
57
|
+
category: n.category ?? n.id.split(".")[0] ?? "general",
|
|
58
|
+
build: a
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function Q(n, a, s) {
|
|
62
|
+
return {
|
|
63
|
+
id: n,
|
|
64
|
+
notification: a,
|
|
65
|
+
resolve: (t) => a.build(s, t)
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
E as P,
|
|
70
|
+
Q as a,
|
|
71
|
+
H as d
|
|
72
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-MXX_K48w.cjs"),e=require("../notificationCatalog-DmwTAO09.cjs"),t=require("../useSettingsSubscription-DKjCwmRd.cjs");exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=i.ACCEPT_PRIMARY_ACTION_NOTIFICATION;exports.CLEAR_NOTIFICATION=i.CLEAR_NOTIFICATION;exports.HIDE_NOTIFICATION_TOASTS=i.HIDE_NOTIFICATION_TOASTS;exports.LogFilterBar=i.LogFilterBar;exports.NOTIFICATION_SOURCES=i.NOTIFICATION_SOURCES;exports.NOTIFICATION_SOURCE_IDS=i.NOTIFICATION_SOURCE_IDS;exports.NO_NOTIFICATION_OVERLAY=i.NO_NOTIFICATION_OVERLAY;exports.NotificationHost=i.NotificationHost;exports.NotificationItem=i.NotificationItem;exports.NotificationPanel=i.NotificationPanel;exports.NotificationService=i.NotificationService;exports.NotificationTimeline=i.NotificationTimeline;exports.NotificationsCenter=i.NotificationsCenter;exports.SEVERITY_ORDER=i.SEVERITY_ORDER;exports.SEVERITY_TONES=i.SEVERITY_TONES;exports.StatusBarNotificationBell=i.StatusBarNotificationBell;exports.appWindowNotificationOverlay=i.appWindowNotificationOverlay;exports.applyNotificationRules=i.applyNotificationRules;exports.cardRemindKey=i.cardRemindKey;exports.clearCompiledRuleRegexCache=i.clearCompiledRuleRegexCache;exports.compileNotificationSearchMatcher=i.compileNotificationSearchMatcher;exports.createNativeNotificationEngine=i.createNativeNotificationEngine;exports.createNotificationPreviewRuntime=i.createNotificationPreviewRuntime;exports.decideFilter=i.decideFilter;exports.deleteWebhookUrl=i.deleteWebhookUrl;exports.deriveImplicitRemindKey=i.deriveImplicitRemindKey;exports.dismissKey=i.dismissKey;exports.dismissableToastIds=i.dismissableToastIds;exports.entryVendorMatch=i.entryVendorMatch;exports.exportTimelineAsCsv=i.exportTimelineAsCsv;exports.exportTimelineAsJson=i.exportTimelineAsJson;exports.filterNotificationTimeline=i.filterNotificationTimeline;exports.filteredPriority=i.filteredPriority;exports.focusFirstNotificationEntry=i.focusFirstNotificationEntry;exports.getSmtpPass=i.getSmtpPass;exports.getWebhookUrl=i.getWebhookUrl;exports.groupTimelineEntries=i.groupTimelineEntries;exports.hiddenRunningProgress=i.hiddenRunningProgress;exports.isInQuietHours=i.isInQuietHours;exports.isKeyDismissed=i.isKeyDismissed;exports.isKeyRemindSuppressed=i.isKeyRemindSuppressed;exports.isNotificationSourceId=i.isNotificationSourceId;exports.isNotificationSticky=i.isNotificationSticky;exports.isOnToastStack=i.isOnToastStack;exports.isProgressRunning=i.isProgressRunning;exports.isSourceMuted=i.isSourceMuted;exports.isSpamDropHandle=i.isSpamDropHandle;exports.listNotificationSources=i.listNotificationSources;exports.nextQuietHoursStart=i.nextQuietHoursStart;exports.pruneOrphanWebhookSecrets=i.pruneOrphanWebhookSecrets;exports.registerFenceAliases=i.registerFenceAliases;exports.registerNotificationCommands=i.registerNotificationCommands;exports.remindLater=i.remindLater;exports.resolveCatalogPreviewPriority=i.resolveCatalogPreviewPriority;exports.resolveNotificationDuration=i.resolveNotificationDuration;exports.resolveNotificationSource=i.resolveNotificationSource;exports.resolveSeverityTone=i.resolveSeverityTone;exports.restoreAllKeys=i.restoreAllKeys;exports.restoreKey=i.restoreKey;exports.setSmtpPass=i.setSmtpPass;exports.setSourceMuted=i.setSourceMuted;exports.setWebhookUrl=i.setWebhookUrl;exports.shouldFireOsNative=i.shouldFireOsNative;exports.toTimelineActions=i.toTimelineActions;exports.unmuteAllSources=i.unmuteAllSources;exports.defineNotification=e.defineNotification;exports.defineNotificationScenario=e.defineNotificationScenario;exports.notificationSettings=t.notificationSettings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as f, f as d, g as I, h as S, S as T, i as m, j as u, k as O, l as p, m as R, n as A, o as C, p as y, q as E, r as g, s as v, t as _, u as h, v as F, w as P, x, y as K, z as k, B as D, D as b, E as H, F as M, G as U, I as W, J as L, K as V, M as Y, O as w, P as B, Q, R as J, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ai, a0 as ei, a1 as si, a2 as ti, a3 as oi, a4 as ri, a5 as ni, a6 as ci, a7 as li, a8 as Ni, a9 as fi, aa as di } from "../StatusBarNotificationBell-
|
|
2
|
-
import { d as Si, a as Ti } from "../notificationCatalog-
|
|
1
|
+
import { A as e, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as f, f as d, g as I, h as S, S as T, i as m, j as u, k as O, l as p, m as R, n as A, o as C, p as y, q as E, r as g, s as v, t as _, u as h, v as F, w as P, x, y as K, z as k, B as D, D as b, E as H, F as M, G as U, I as W, J as L, K as V, M as Y, O as w, P as B, Q, R as J, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ai, a0 as ei, a1 as si, a2 as ti, a3 as oi, a4 as ri, a5 as ni, a6 as ci, a7 as li, a8 as Ni, a9 as fi, aa as di } from "../StatusBarNotificationBell-CnmMzXzD.js";
|
|
2
|
+
import { d as Si, a as Ti } from "../notificationCatalog-otJ1LHFH.js";
|
|
3
3
|
import { n as ui } from "../useSettingsSubscription-DLEk4k4j.js";
|
|
4
4
|
export {
|
|
5
5
|
e as ACCEPT_PRIMARY_ACTION_NOTIFICATION,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Accessor, JSX } from 'solid-js';
|
|
2
|
+
import { type BadgeTone } from '../feedback/Badge.cjs';
|
|
2
3
|
import type { ActionPlace } from './actionPlace.cjs';
|
|
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. */
|
|
@@ -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;
|