@bettercms-ai/kit 4.0.0 → 4.2.0-next.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/dist/adapters/lossy.d.ts +4 -0
- package/dist/adapters/lossy.js +4 -0
- package/dist/adapters/lossy.js.map +1 -1
- package/dist/adapters/prod-types.d.ts +4 -0
- package/dist/adapters/prod-types.js +4 -1
- package/dist/adapters/prod-types.js.map +1 -1
- package/dist/adapters/schema.js +7 -0
- package/dist/adapters/schema.js.map +1 -1
- package/dist/context.d.ts +91 -0
- package/dist/context.js +58 -1
- package/dist/context.js.map +1 -1
- package/dist/controls/choice.d.ts +1 -1
- package/dist/controls/choice.js +21 -2
- package/dist/controls/choice.js.map +1 -1
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +3 -2
- package/dist/controls/index.js.map +1 -1
- package/dist/controls/link.d.ts +23 -2
- package/dist/controls/link.js +456 -4
- package/dist/controls/link.js.map +1 -1
- package/dist/controls/media-v16.d.ts +27 -0
- package/dist/controls/media-v16.js +261 -0
- package/dist/controls/media-v16.js.map +1 -0
- package/dist/controls/media.js +63 -1
- package/dist/controls/media.js.map +1 -1
- package/dist/controls/reference-services.d.ts +8 -0
- package/dist/controls/reference.js +78 -2
- package/dist/controls/reference.js.map +1 -1
- package/dist/controls/rich-text/ai-runs.d.ts +13 -0
- package/dist/controls/rich-text/ai-runs.js +71 -0
- package/dist/controls/rich-text/ai-runs.js.map +1 -0
- package/dist/controls/rich-text/block-tool.d.ts +31 -0
- package/dist/controls/rich-text/block-tool.js +62 -0
- package/dist/controls/rich-text/block-tool.js.map +1 -0
- package/dist/controls/rich-text/blocks.d.ts +6 -1
- package/dist/controls/rich-text/blocks.js +406 -24
- package/dist/controls/rich-text/blocks.js.map +1 -1
- package/dist/controls/rich-text/catalog.d.ts +45 -7
- package/dist/controls/rich-text/catalog.js +507 -37
- package/dist/controls/rich-text/catalog.js.map +1 -1
- package/dist/controls/rich-text/code-head.d.ts +30 -0
- package/dist/controls/rich-text/code-head.js +230 -0
- package/dist/controls/rich-text/code-head.js.map +1 -0
- package/dist/controls/rich-text/codec.d.ts +1 -1
- package/dist/controls/rich-text/codec.js +4 -1
- package/dist/controls/rich-text/codec.js.map +1 -1
- package/dist/controls/rich-text/dom.d.ts +27 -0
- package/dist/controls/rich-text/dom.js +77 -7
- package/dist/controls/rich-text/dom.js.map +1 -1
- package/dist/controls/rich-text/editor.js +243 -55
- package/dist/controls/rich-text/editor.js.map +1 -1
- package/dist/controls/rich-text/ops.js +1 -0
- package/dist/controls/rich-text/ops.js.map +1 -1
- package/dist/controls/rich-text/rewriteSelection.d.ts +25 -0
- package/dist/controls/rich-text/rewriteSelection.js +28 -0
- package/dist/controls/rich-text/rewriteSelection.js.map +1 -0
- package/dist/controls/rich-text/slash-preview.d.ts +8 -0
- package/dist/controls/rich-text/slash-preview.js +300 -0
- package/dist/controls/rich-text/slash-preview.js.map +1 -0
- package/dist/controls/rich-text/table-grid.d.ts +22 -0
- package/dist/controls/rich-text/table-grid.js +1057 -0
- package/dist/controls/rich-text/table-grid.js.map +1 -0
- package/dist/controls/rich-text/toolbar.js +61 -18
- package/dist/controls/rich-text/toolbar.js.map +1 -1
- package/dist/controls/text.d.ts +6 -0
- package/dist/controls/text.js +95 -5
- package/dist/controls/text.js.map +1 -1
- package/dist/core/facets.d.ts +1 -0
- package/dist/core/facets.js +1 -0
- package/dist/core/facets.js.map +1 -1
- package/dist/engine/array.d.ts +7 -0
- package/dist/engine/array.js +164 -45
- package/dist/engine/array.js.map +1 -1
- package/dist/engine/field-shell.d.ts +12 -0
- package/dist/engine/field-shell.js +222 -64
- package/dist/engine/field-shell.js.map +1 -1
- package/dist/engine/frame.js +42 -4
- package/dist/engine/frame.js.map +1 -1
- package/dist/engine/grouping.d.ts +71 -10
- package/dist/engine/grouping.js +227 -29
- package/dist/engine/grouping.js.map +1 -1
- package/dist/engine/item-list.js +2 -2
- package/dist/engine/item-list.js.map +1 -1
- package/dist/engine/kit-field.js +38 -4
- package/dist/engine/kit-field.js.map +1 -1
- package/dist/engine/schema-form.d.ts +2 -0
- package/dist/engine/schema-form.js +9 -2
- package/dist/engine/schema-form.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/kit.css +59 -0
- package/dist/lib/reduced-motion.d.ts +1 -0
- package/dist/lib/reduced-motion.js +19 -0
- package/dist/lib/reduced-motion.js.map +1 -0
- package/dist/schema/table.d.ts +2 -1
- package/dist/schema/table.js +5 -0
- package/dist/schema/table.js.map +1 -1
- package/dist/schema/types.d.ts +6 -0
- package/dist/schema/types.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +215 -0
- package/dist/tokens.css +274 -0
- package/dist/ui/block-icon-picker.d.ts +38 -0
- package/dist/ui/block-icon-picker.js +141 -0
- package/dist/ui/block-icon-picker.js.map +1 -0
- package/dist/ui/button.js +1 -0
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/code-language-menu.d.ts +24 -0
- package/dist/ui/code-language-menu.js +123 -0
- package/dist/ui/code-language-menu.js.map +1 -0
- package/dist/ui/content-fields.d.ts +47 -0
- package/dist/ui/content-fields.js +279 -0
- package/dist/ui/content-fields.js.map +1 -0
- package/dist/ui/controls.js +3 -2
- package/dist/ui/controls.js.map +1 -1
- package/dist/ui/floating-panel.js +3 -2
- package/dist/ui/floating-panel.js.map +1 -1
- package/dist/ui/foundations.d.ts +118 -0
- package/dist/ui/foundations.js +565 -0
- package/dist/ui/foundations.js.map +1 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/index.js +7 -1
- package/dist/ui/inspector.d.ts +412 -0
- package/dist/ui/inspector.js +1218 -0
- package/dist/ui/inspector.js.map +1 -0
- package/dist/ui/overlay.d.ts +7 -2
- package/dist/ui/overlay.js +55 -20
- package/dist/ui/overlay.js.map +1 -1
- package/dist/ui/shortcut-hint.js +1 -1
- package/dist/ui/shortcut-hint.js.map +1 -1
- package/dist/ui/tab.js +3 -2
- package/dist/ui/tab.js.map +1 -1
- package/dist/ui/toast.d.ts +5 -3
- package/dist/ui/toast.js +83 -11
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/tooltip-card.d.ts +45 -0
- package/dist/ui/tooltip-card.js +135 -0
- package/dist/ui/tooltip-card.js.map +1 -0
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -3,7 +3,9 @@ import { Spinner } from "./spinner.js";
|
|
|
3
3
|
import { Button, HintTooltip, IconButton, RevealLink, Sparkle, TooltipScope, buttonVariants, iconButtonVariants } from "./button.js";
|
|
4
4
|
import { ShortcutHint, ShortcutHintsProvider, platformKeys, shortcutHintsOn, useShortcutHints } from "./shortcut-hint.js";
|
|
5
5
|
import { Checkbox, ChoiceCard, ChoiceList, Progress, Radio, RadioGroup, Segmented, Slider, Switch, ToggleGroup, ToggleItem } from "./controls.js";
|
|
6
|
+
import { CARD_TOOLTIP_CLASS, CardTooltip, InfoTooltip } from "./tooltip-card.js";
|
|
6
7
|
import { FLOATING_LAYER, FlowBody, FlowClose, FlowFooter, FlowHeader, FlowLabel, FlowModal, HeaderStatus, HoverCard, HoverCardContent, HoverCardTrigger, Menu, MenuCheckItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Modal, ModalBody, ModalClose, ModalContent, ModalFooter, ModalHeader, ModalTrigger, MoreOptions, OptionRow, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Sheet, SheetClose, SheetContent, SheetTrigger, Tooltip, TooltipProvider, useFocusReturn } from "./overlay.js";
|
|
8
|
+
import { ColourSelect, CountRing, FieldCounter, FieldSweep, FocusDot, GroupHeader, INSPECTOR_EASE, ITEM_DELETE_CLASS, ITEM_LIST_ADD_CLASS, ITEM_ROW_CLASS, ITEM_ROW_GRIP_CLASS, ITEM_ROW_MORE_CLASS, ITEM_ROW_SUB_CLASS, ITEM_ROW_TITLE_CLASS, InfoGlyph, InlineRow, InspectorBody, InspectorCollapse, InspectorDivider, InspectorField, InspectorFields, InspectorGroup, InspectorLocked, InspectorNote, InspectorSeg, InspectorSwitch, ItemDeleteButton, ItemListAdd, ItemListCard, ItemListNote, ItemRow, ItemRowMore, LAYOUT_GLYPHS, LayoutOpt, OVER_LIMIT_CLASS, OVER_LIMIT_EDGE_CLASS, OVER_LIMIT_SHAKE_CLASS, RollNumber, SectionHeader, SelectCompact, SelectField, StepRow, StepSlider, ToggleCard, ToggleRow, ValueSlider, counterState, itemListNote, overLimitText, useOverLimit } from "./inspector.js";
|
|
7
9
|
import { Avatar, AvatarStack, Badge, Card, CardHeader, Dot, EmptyState, Kbd, PageHeader, Separator, SettingsSection, Skeleton, Stat, StatusMark, StatusPill, Table, Td, Th, Tr, avatarRingSpread, badgeVariants, colorFor, statusMap } from "./display.js";
|
|
8
10
|
import { AGENT_PRESENCE, presenceColor, presenceSlot, registerPresenceRoster } from "./presence.js";
|
|
9
11
|
import { Field, HelpMore, Input, Label, SearchInput, Textarea } from "./input.js";
|
|
@@ -11,8 +13,12 @@ import { Highlight, SEARCH_THRESHOLD, Select, filterOptions, matchPositions, mat
|
|
|
11
13
|
import { Autocomplete } from "./autocomplete.js";
|
|
12
14
|
import { ExpandedEditorModal } from "./expanded-editor-modal.js";
|
|
13
15
|
import { ChoiceSwitch, SEGMENTED_MAX, SEGMENTED_MAX_LABEL, fitsSegmented } from "./choice-switch.js";
|
|
16
|
+
import { AuthorField, TagsInput } from "./content-fields.js";
|
|
17
|
+
import { CODE_LANGUAGE_NAMES, CodeLanguageMenu, CodeLanguagePopover } from "./code-language-menu.js";
|
|
14
18
|
import { ActionTray, TrayMeta, TrayMore, actionTrayClass } from "./action-tray.js";
|
|
15
19
|
import { ModeBar, ModeBarDot, ModeBarLink } from "./mode-bar.js";
|
|
16
20
|
import { Tab, TabList, TabPanel, Tabs } from "./tab.js";
|
|
21
|
+
import { BUTTON_STYLES, BcmsMark, ButtonStylePicker, FoundationBadge, FoundationButton, FoundationCheckbox, FoundationTextField, InspectorPopover, ProBadge, SaveStatus, SearchClear, StatusIcon } from "./foundations.js";
|
|
17
22
|
import { KitToaster, kitToast, kitToastManager } from "./toast.js";
|
|
18
|
-
|
|
23
|
+
import { BlockIconPicker, BlockIconPickerPopover } from "./block-icon-picker.js";
|
|
24
|
+
export { AGENT_PRESENCE, ActionTray, AuthorField, Autocomplete, Avatar, AvatarStack, BUTTON_STYLES, Badge, BcmsMark, BlockIconPicker, BlockIconPickerPopover, Button, ButtonStylePicker, CARD_TOOLTIP_CLASS, CODE_LANGUAGE_NAMES, Card, CardHeader, CardTooltip, Checkbox, ChoiceCard, ChoiceList, ChoiceSwitch, CodeLanguageMenu, CodeLanguagePopover, ColourSelect, CountRing, Dot, EmptyState, ExpandedEditorModal, FLOATING_LAYER, Field, FieldCounter, FieldDescribedByContext, FieldLabelledByContext, FieldSweep, FlowBody, FlowClose, FlowFooter, FlowHeader, FlowLabel, FlowModal, FocusDot, FoundationBadge, FoundationButton, FoundationCheckbox, FoundationTextField, GroupHeader, HeaderStatus, HelpMore, Highlight, HintTooltip, HoverCard, HoverCardContent, HoverCardTrigger, INSPECTOR_EASE, ITEM_DELETE_CLASS, ITEM_LIST_ADD_CLASS, ITEM_ROW_CLASS, ITEM_ROW_GRIP_CLASS, ITEM_ROW_MORE_CLASS, ITEM_ROW_SUB_CLASS, ITEM_ROW_TITLE_CLASS, IconButton, InfoGlyph, InfoTooltip, InlineRow, Input, InspectorBody, InspectorCollapse, InspectorDivider, InspectorField, InspectorFields, InspectorGroup, InspectorLocked, InspectorNote, InspectorPopover, InspectorSeg, InspectorSwitch, ItemDeleteButton, ItemListAdd, ItemListCard, ItemListNote, ItemRow, ItemRowMore, Kbd, KitToaster, LAYOUT_GLYPHS, Label, LayoutOpt, Menu, MenuCheckItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Modal, ModalBody, ModalClose, ModalContent, ModalFooter, ModalHeader, ModalTrigger, ModeBar, ModeBarDot, ModeBarLink, MoreOptions, OVER_LIMIT_CLASS, OVER_LIMIT_EDGE_CLASS, OVER_LIMIT_SHAKE_CLASS, OptionRow, PageHeader, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, ProBadge, Progress, Radio, RadioGroup, RevealLink, RollNumber, SEARCH_THRESHOLD, SEGMENTED_MAX, SEGMENTED_MAX_LABEL, SaveStatus, SearchClear, SearchInput, SectionHeader, Segmented, Select, SelectCompact, SelectField, Separator, SettingsSection, Sheet, SheetClose, SheetContent, SheetTrigger, ShortcutHint, ShortcutHintsProvider, Skeleton, Slider, Sparkle, Spinner, Stat, StatusIcon, StatusMark, StatusPill, StepRow, StepSlider, Switch, Tab, TabList, TabPanel, Table, Tabs, TagsInput, Td, Textarea, Th, ToggleCard, ToggleGroup, ToggleItem, ToggleRow, Tooltip, TooltipProvider, TooltipScope, Tr, TrayMeta, TrayMore, ValueSlider, actionTrayClass, avatarRingSpread, badgeVariants, buttonVariants, colorFor, counterState, filterOptions, fitsSegmented, iconButtonVariants, itemListNote, kitToast, kitToastManager, matchPositions, matchScore, nodeText, overLimitText, platformKeys, presenceColor, presenceSlot, registerPresenceRoster, selectTriggerClass, shortcutHintsOn, statusMap, useFieldDescribedBy, useFieldId, useFieldLabelledBy, useFocusReturn, useOverLimit, useShortcutHints };
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inspector foundation · V1.6: the Visual Editor inspector's own building blocks, as prototype editor-v16 draws them
|
|
3
|
+
* (src/kit.jsx:59-250, kit.css:1-100, styles.css:153-218 + 286-289, editor.css:242-251 + 411-461, faq.css:48-49).
|
|
4
|
+
*
|
|
5
|
+
* <InspectorBody> groups stacked 32 apart, 24/16/32 padding, a 1px divider 20 under every group but the last
|
|
6
|
+
* <InspectorGroup> one group: header, then its fields 16 below
|
|
7
|
+
* <GroupHeader> Content tab group: 14/20 medium title + 13/18 supporting line
|
|
8
|
+
* <SectionHeader> Design / Settings group: 16 icon + 14/20 medium, trailing Reset · Locked · collapse chevron
|
|
9
|
+
* <InspectorFields> stacked fields 20 apart (`rows`: inline rows 12 apart)
|
|
10
|
+
* <InlineRow> label left, control right in a fixed 194 column
|
|
11
|
+
* <InspectorSeg> segmented control with the sliding pill
|
|
12
|
+
* <SelectCompact> / <SelectField> / <ColourSelect> grey field selects (32 compact, 34 full width)
|
|
13
|
+
* <StepSlider> / <StepRow> / <ValueSlider> the stop slider and the value-inside slider
|
|
14
|
+
* <ToggleRow> / <ToggleCard> / <InspectorSwitch> label-left switch rows, related ones in one grey card
|
|
15
|
+
* <ItemListCard> + <ItemRow> + <ItemListAdd> + <ItemListNote> the grey item list card
|
|
16
|
+
* <ItemDeleteButton> the red "Delete <noun>" that ends an item screen
|
|
17
|
+
* <InspectorField> + <FieldCounter> label row with the focus dot, the sweep, and the n / max counter
|
|
18
|
+
*
|
|
19
|
+
* Editor-scoped: these read the --kit-insp-* roles (tokens.css) and nothing else in the kit draws them unless a host
|
|
20
|
+
* asks (`KitLookProvider look="v16"` for the engine). Every other kit consumer keeps the V2 look.
|
|
21
|
+
*/
|
|
22
|
+
import * as React from "react";
|
|
23
|
+
/** The prototype's accordion curve (kit.jsx:60 ACC) and its sliding-pill spring (kit.jsx:59 PILL). */
|
|
24
|
+
export declare const INSPECTOR_EASE: readonly [0.22, 1, 0.36, 1];
|
|
25
|
+
/** Panel body (kit.css:6-8). `sub` = a drill-in screen (16 on top instead of 24). */
|
|
26
|
+
export declare function InspectorBody({ sub, className, children, ...rest }: React.HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
sub?: boolean;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/** One group in the body (kit.css:9, 13, 36). `locked` greys its fields and makes them read-only; `flash` runs the
|
|
30
|
+
* 1.2s violet flash a jump-to-group ends with. */
|
|
31
|
+
export declare function InspectorGroup({ locked, flash, className, children, ...rest }: React.HTMLAttributes<HTMLElement> & {
|
|
32
|
+
locked?: boolean;
|
|
33
|
+
flash?: boolean;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/** The fields of a group (kit.css:10-11): 20 apart, or 12 for a run of inline rows. */
|
|
36
|
+
export declare function InspectorFields({ rows, className, children, ...rest }: React.HTMLAttributes<HTMLDivElement> & {
|
|
37
|
+
rows?: boolean;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
/** The 1px rule between groups, for a host that stacks groups outside <InspectorBody> (kit.css:8). */
|
|
40
|
+
export declare function InspectorDivider({ className }: {
|
|
41
|
+
className?: string;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
/** Fields a role cannot edit (kit.css:36-37): one disabled fieldset at .45. */
|
|
44
|
+
export declare function InspectorLocked({ on, children }: {
|
|
45
|
+
on?: boolean;
|
|
46
|
+
children: React.ReactNode;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export interface GroupHeaderProps {
|
|
49
|
+
title: React.ReactNode;
|
|
50
|
+
/** supporting line under the title */
|
|
51
|
+
sub?: React.ReactNode;
|
|
52
|
+
/** trailing controls (link, comment, ⋯) */
|
|
53
|
+
actions?: React.ReactNode;
|
|
54
|
+
/** id of the title element, for aria-labelledby on the group */
|
|
55
|
+
titleId?: string;
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
/** Level-1 content group header (kit.jsx:66-68, kit.css:16-19; the inspector's ink is insp.css:19-20). */
|
|
59
|
+
export declare function GroupHeader({ title, sub, actions, titleId, className }: GroupHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export interface SectionHeaderProps {
|
|
61
|
+
/** 16px leading glyph */
|
|
62
|
+
icon?: React.ReactNode;
|
|
63
|
+
title: React.ReactNode;
|
|
64
|
+
/** what sits at the end of the row */
|
|
65
|
+
trailing?: "reset" | "locked" | "collapse";
|
|
66
|
+
onReset?: () => void;
|
|
67
|
+
/** the Reset is shown but inert (a read-only panel, a locked section, a save in flight) */
|
|
68
|
+
resetDisabled?: boolean;
|
|
69
|
+
/** with trailing="collapse" */
|
|
70
|
+
open?: boolean;
|
|
71
|
+
onToggle?: () => void;
|
|
72
|
+
/** description, always 4 under the title row */
|
|
73
|
+
desc?: React.ReactNode;
|
|
74
|
+
/** extra trailing content, before the Reset / chevron */
|
|
75
|
+
actions?: React.ReactNode;
|
|
76
|
+
titleId?: string;
|
|
77
|
+
/** aria-controls for the collapse button */
|
|
78
|
+
controls?: string;
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
/** Design / Settings group header (kit.jsx:72-91, kit.css:22-33). Static unless trailing="collapse". */
|
|
82
|
+
export declare function SectionHeader({ icon, title, trailing, onReset, resetDisabled, open, onToggle, desc, actions, titleId, controls, className }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
/** The quiet note under a group's fields (insp.css:32 `.adv-note`): 12/16 in the sub colour. */
|
|
84
|
+
export declare function InspectorNote({ id, className, children }: {
|
|
85
|
+
id?: string;
|
|
86
|
+
className?: string;
|
|
87
|
+
children: React.ReactNode;
|
|
88
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export declare const LAYOUT_GLYPHS: {
|
|
90
|
+
readonly centred: import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
readonly left: import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
readonly stacked: import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
readonly two: import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
readonly three: import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
readonly split: import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
readonly formLeft: import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
readonly row: import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
readonly grid: import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
readonly scroll: import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
};
|
|
101
|
+
export type LayoutGlyphName = keyof typeof LAYOUT_GLYPHS;
|
|
102
|
+
/** A layout glyph, then the option's label: `<LayoutOpt i="two">Two columns</LayoutOpt>`. */
|
|
103
|
+
export declare function LayoutOpt({ i, children }: {
|
|
104
|
+
i: LayoutGlyphName;
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
/** Collapsible body for a SectionHeader with trailing="collapse" (kit.jsx:248-252): height, then a 4px rise out of a
|
|
108
|
+
* 4px blur, both on the accordion curve. Instant with reduced motion. */
|
|
109
|
+
export declare function InspectorCollapse({ open, id, rows, className, children }: {
|
|
110
|
+
open: boolean;
|
|
111
|
+
id?: string;
|
|
112
|
+
rows?: boolean;
|
|
113
|
+
className?: string;
|
|
114
|
+
children: React.ReactNode;
|
|
115
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
export interface InspectorFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
117
|
+
label: React.ReactNode;
|
|
118
|
+
/** id for the label element (aria-labelledby on the control) */
|
|
119
|
+
labelId?: string;
|
|
120
|
+
htmlFor?: string;
|
|
121
|
+
/** the info tooltip after the label: its body text */
|
|
122
|
+
info?: React.ReactNode;
|
|
123
|
+
/** right side of the label row (counter, actions) */
|
|
124
|
+
meta?: React.ReactNode;
|
|
125
|
+
/** P-FDOT: this is the field a canvas click opened. Draws the 6px violet dot after the label. */
|
|
126
|
+
current?: boolean;
|
|
127
|
+
/** P-FDOT: run the violet sweep once (change the value to run it again, e.g. a click counter) */
|
|
128
|
+
flash?: boolean | number | string;
|
|
129
|
+
/** over its limit / invalid: the footer turns red */
|
|
130
|
+
state?: "over" | "bad";
|
|
131
|
+
/** under the control: hint left, counter right */
|
|
132
|
+
hint?: React.ReactNode;
|
|
133
|
+
counter?: React.ReactNode;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The inspector field shell (editor.css:411-431, kit.css:506-515): label row 13/16 medium, min 20 high, the control 8
|
|
137
|
+
* under it, then an optional 12/16 footer. `current` puts the focus dot after the label (order: label · dot · spacer ·
|
|
138
|
+
* meta); `flash` runs the left-to-right violet sweep behind the whole field (a plain fade with reduced motion).
|
|
139
|
+
*/
|
|
140
|
+
export declare function InspectorField({ label, labelId, htmlFor, info, meta, current, flash, state, hint, counter, className, children, ...rest }: InspectorFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
/** The 6px violet dot after a field's label while it is the one a canvas click opened (kit.css:513-515). */
|
|
142
|
+
export declare function FocusDot({ className }: {
|
|
143
|
+
className?: string;
|
|
144
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
145
|
+
/** The soft violet fill that sweeps across a field a canvas click opened (kit.css:506-511). Sits behind the field, 6/8
|
|
146
|
+
* outside it; the parent must be `relative isolate`. */
|
|
147
|
+
export declare function FieldSweep({ className }: {
|
|
148
|
+
className?: string;
|
|
149
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
150
|
+
/** How close a count is to its limit, by the prototype's rule (state.js:93 countLevel): "near" above 91% of the
|
|
151
|
+
* limit, "over" past it. */
|
|
152
|
+
export declare function counterState(n: number, max?: number): "ok" | "near" | "over";
|
|
153
|
+
/** The 12px progress ring beside a counter that is near or over its limit (content.jsx:307-309, content.css:617): a
|
|
154
|
+
* grey track, an amber arc that fills with the count, red when over. Springs in and out (wrap it in AnimatePresence). */
|
|
155
|
+
export declare function CountRing({ value, max, className }: {
|
|
156
|
+
value: number;
|
|
157
|
+
max: number;
|
|
158
|
+
className?: string;
|
|
159
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
160
|
+
/** The field counter "42 / 60" (content.jsx:310-320; content.css:614-616; insp.css:163-164): 12/16 tabular, amber and
|
|
161
|
+
* medium when near the limit, red over it, with the ring beside it in both states. Without `max` it is the bare count. */
|
|
162
|
+
export declare function FieldCounter({ value, max, ring, size, className }: {
|
|
163
|
+
value: number;
|
|
164
|
+
max?: number;
|
|
165
|
+
ring?: boolean; /** 11/14 in the inspector (insp.css:30), 12/16 in the content editor (editor.css:425) */
|
|
166
|
+
size?: 11 | 12;
|
|
167
|
+
className?: string;
|
|
168
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
169
|
+
/** A number that rolls (ui.jsx:371-378 `Roll`, faq.css:90-91), digit by digit (M20): each digit sits in its own 1ch
|
|
170
|
+
* tabular cell, keyed by its place from the right, so only a digit that changed moves: the new one rises in from below
|
|
171
|
+
* while the old one lifts out (transform + opacity, 160ms in, 120ms out, no blur). The number itself never remounts,
|
|
172
|
+
* and fast typing never queues: the latest value is always the one entering. Reduced motion: an instant swap. */
|
|
173
|
+
export declare function RollNumber({ value, className }: {
|
|
174
|
+
value: number | string;
|
|
175
|
+
className?: string;
|
|
176
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
177
|
+
/** The line under a field that is over its limit, in the prototype's words (content.jsx:318). */
|
|
178
|
+
export declare const overLimitText: (max: number) => string;
|
|
179
|
+
/** The red inset edge over a field's control box while its count is over the limit (content.css:618). Drawn on the
|
|
180
|
+
* box's ::after, so the input's own focus border cannot hide it. The box must be `relative`. */
|
|
181
|
+
export declare const OVER_LIMIT_EDGE_CLASS = "after:pointer-events-none after:absolute after:inset-0 after:rounded-[6px] after:shadow-[inset_0_0_0_1px_var(--kit-insp-ring-over)]";
|
|
182
|
+
/** One 0.32s shake as the count goes over (content.css:618-619); none under reduced motion. */
|
|
183
|
+
export declare const OVER_LIMIT_SHAKE_CLASS = "motion-safe:animate-[kit-insp-shake_0.32s_ease] motion-reduce:animate-none";
|
|
184
|
+
/** The edge and the shake together, for a box that is known to have just gone over. Prefer `useOverLimit`. */
|
|
185
|
+
export declare const OVER_LIMIT_CLASS = "after:pointer-events-none after:absolute after:inset-0 after:rounded-[6px] after:shadow-[inset_0_0_0_1px_var(--kit-insp-ring-over)] motion-safe:animate-[kit-insp-shake_0.32s_ease] motion-reduce:animate-none";
|
|
186
|
+
/**
|
|
187
|
+
* M20: the props for a field's control box (spread them on it). The edge shows while `over`; the shake class is added
|
|
188
|
+
* only when the count CROSSES the limit after mount, and leaves when its animation ends, so the shake plays once per
|
|
189
|
+
* crossing: never per keystroke, and never again when the box is hidden and shown while still over. A field that
|
|
190
|
+
* mounts already over shows the edge with no shake (nothing animates on first paint). Reduced motion (the OS, or a
|
|
191
|
+
* host <MotionConfig reducedMotion="always">): the edge only.
|
|
192
|
+
*/
|
|
193
|
+
export declare function useOverLimit(over: boolean): {
|
|
194
|
+
className: string | undefined;
|
|
195
|
+
onAnimationEnd: (e: React.AnimationEvent<HTMLElement>) => void;
|
|
196
|
+
};
|
|
197
|
+
/** Label left, control right in a fixed 194 column (kit.jsx:137, kit.css:50-55, 501-502). `meta` is the quiet current
|
|
198
|
+
* value after the label ("M · 8 px"); `info` adds the info tooltip. */
|
|
199
|
+
export declare function InlineRow({ label, meta, info, labelId, className, children, }: {
|
|
200
|
+
label: React.ReactNode;
|
|
201
|
+
meta?: React.ReactNode;
|
|
202
|
+
info?: React.ReactNode;
|
|
203
|
+
labelId?: string;
|
|
204
|
+
className?: string;
|
|
205
|
+
children: React.ReactNode;
|
|
206
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
207
|
+
export interface InspectorSegOption<T extends string> {
|
|
208
|
+
value: T;
|
|
209
|
+
label: React.ReactNode;
|
|
210
|
+
/** tooltip + accessible name (icon-only options need it) */
|
|
211
|
+
title?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Segmented control, 2–5 options, with the sliding pill (kit.jsx:114-120; styles.css:188-191, editor.css:287 + 458-461,
|
|
215
|
+
* insp.css:61). 36 high (32 with `small` or inside an InlineRow), 2 padding, grey track, white pill on the spring.
|
|
216
|
+
* A radiogroup: arrows move the choice.
|
|
217
|
+
*/
|
|
218
|
+
export declare function InspectorSeg<T extends string>({ options, value, onChange, small, disabled, className, "aria-label": ariaLabel, "aria-labelledby": labelledBy, }: {
|
|
219
|
+
options: InspectorSegOption<T>[];
|
|
220
|
+
value: T;
|
|
221
|
+
onChange: (v: T) => void;
|
|
222
|
+
small?: boolean;
|
|
223
|
+
disabled?: boolean;
|
|
224
|
+
className?: string;
|
|
225
|
+
"aria-label"?: string;
|
|
226
|
+
"aria-labelledby"?: string;
|
|
227
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
228
|
+
export interface InspectorOption<T extends string> {
|
|
229
|
+
value: T;
|
|
230
|
+
label: string;
|
|
231
|
+
/** second line in the menu */
|
|
232
|
+
desc?: string;
|
|
233
|
+
/** shown but not pickable (a choice this site cannot take) */
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
}
|
|
236
|
+
/** Compact dropdown for an Inline row (kit.jsx:140-150, kit.css:58-62): 32 high, grey, violet edge while open. The menu
|
|
237
|
+
* is at least as wide as the control. */
|
|
238
|
+
export declare function SelectCompact<T extends string>({ value, options, onPick, icon, label, disabled, className, }: {
|
|
239
|
+
value: T | undefined;
|
|
240
|
+
options: InspectorOption<T>[];
|
|
241
|
+
onPick: (v: T) => void;
|
|
242
|
+
icon?: React.ReactNode;
|
|
243
|
+
label: string;
|
|
244
|
+
disabled?: boolean;
|
|
245
|
+
className?: string;
|
|
246
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
247
|
+
/** Full-width select with its label above (kit.jsx:153-164; editor.css:416-417, 433; faq.css:59): 34 high. */
|
|
248
|
+
export declare function SelectField<T extends string>({ label, value, options, onPick, placeholder, icon, info, disabled, current, flash, className, }: {
|
|
249
|
+
label: React.ReactNode;
|
|
250
|
+
value: T | undefined;
|
|
251
|
+
options: InspectorOption<T>[];
|
|
252
|
+
onPick: (v: T) => void;
|
|
253
|
+
placeholder?: string;
|
|
254
|
+
icon?: React.ReactNode;
|
|
255
|
+
info?: React.ReactNode;
|
|
256
|
+
disabled?: boolean;
|
|
257
|
+
current?: boolean;
|
|
258
|
+
flash?: InspectorFieldProps["flash"];
|
|
259
|
+
className?: string;
|
|
260
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
261
|
+
export interface ColourOption<T extends string> {
|
|
262
|
+
value: T;
|
|
263
|
+
label: string;
|
|
264
|
+
/** the design token's name, shown in the pill ("surface/base") */
|
|
265
|
+
token: string;
|
|
266
|
+
/** any CSS colour: the swatch */
|
|
267
|
+
colour: string;
|
|
268
|
+
}
|
|
269
|
+
/** Colour select (kit.jsx:219-232, kit.css:77-79): value left, swatch + token pill right; the menu lists the theme
|
|
270
|
+
* colours with their tokens under a header, then an optional readability note. */
|
|
271
|
+
export declare function ColourSelect<T extends string>({ label, value, options, onPick, header, note, disabled, className, }: {
|
|
272
|
+
label: React.ReactNode;
|
|
273
|
+
value: T | undefined;
|
|
274
|
+
options: ColourOption<T>[];
|
|
275
|
+
onPick: (v: T) => void; /** the menu's heading; "" for none */
|
|
276
|
+
header?: string; /** the readability note under the options; null for none */
|
|
277
|
+
note?: React.ReactNode;
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
className?: string;
|
|
280
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
281
|
+
/** Step slider (kit.jsx:168-187, kit.css:65-73): filler + handle on the current stop, dots on the others. Click a stop,
|
|
282
|
+
* drag the handle, or use the arrow keys. `value` is the stop's index. */
|
|
283
|
+
export declare function StepSlider({ label, stops, value, onChange, disabled, className, "aria-labelledby": labelledBy, }: {
|
|
284
|
+
label?: string;
|
|
285
|
+
stops: string[];
|
|
286
|
+
value: number;
|
|
287
|
+
onChange: (index: number) => void;
|
|
288
|
+
disabled?: boolean;
|
|
289
|
+
className?: string;
|
|
290
|
+
"aria-labelledby"?: string;
|
|
291
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
292
|
+
/** Step slider in an Inline row: label + the current stop's name on the left (kit.jsx:211-213). */
|
|
293
|
+
export declare function StepRow({ label, stops, names, value, onChange, disabled, info, }: {
|
|
294
|
+
label: string;
|
|
295
|
+
stops: string[];
|
|
296
|
+
names?: string[];
|
|
297
|
+
value: number;
|
|
298
|
+
onChange: (index: number) => void;
|
|
299
|
+
disabled?: boolean;
|
|
300
|
+
info?: React.ReactNode;
|
|
301
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
302
|
+
/**
|
|
303
|
+
* Value slider (kit.jsx:191-209, kit.css:555-564): the step slider's track, filler and handle with the label left and
|
|
304
|
+
* the number right inside the track. origin "start" fills from the left; "center" fills out from a zero mark. Drag,
|
|
305
|
+
* click, arrow keys (Shift = ×10); double-click resets. `onStart` fires once before a gesture's first change (one undo step).
|
|
306
|
+
*/
|
|
307
|
+
export declare function ValueSlider({ label, value, min, max, origin, reset, format, onChange, onStart, disabled, className, }: {
|
|
308
|
+
label: string;
|
|
309
|
+
value: number;
|
|
310
|
+
min?: number;
|
|
311
|
+
max?: number;
|
|
312
|
+
origin?: "start" | "center";
|
|
313
|
+
reset?: number;
|
|
314
|
+
format?: (v: number) => string;
|
|
315
|
+
onChange: (v: number) => void;
|
|
316
|
+
onStart?: () => void;
|
|
317
|
+
disabled?: boolean;
|
|
318
|
+
className?: string;
|
|
319
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
320
|
+
/** The prototype switch (ui.jsx:132-141, editor.css:242-251): 34×20 (sm 28×16), inset-shadow track, grey knob with a
|
|
321
|
+
* 1px grip line. `deco` draws it inside another control (a menu row): no button, hidden from assistive tech. */
|
|
322
|
+
export declare function InspectorSwitch({ on, onChange, size, label, disabled, deco, className, "aria-labelledby": labelledBy, }: {
|
|
323
|
+
on: boolean;
|
|
324
|
+
onChange?: (on: boolean) => void;
|
|
325
|
+
size?: "sm" | "md";
|
|
326
|
+
label?: string;
|
|
327
|
+
disabled?: boolean;
|
|
328
|
+
deco?: boolean;
|
|
329
|
+
className?: string;
|
|
330
|
+
"aria-labelledby"?: string;
|
|
331
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
332
|
+
/** Toggle row (kit.jsx:241-243; styles.css:286-289, editor.css:445-447): label + supporting text left, switch right,
|
|
333
|
+
* top-aligned. */
|
|
334
|
+
export declare function ToggleRow({ label, desc, on, onChange, disabled, className, }: {
|
|
335
|
+
label: string;
|
|
336
|
+
desc?: React.ReactNode;
|
|
337
|
+
on: boolean;
|
|
338
|
+
onChange: (on: boolean) => void;
|
|
339
|
+
disabled?: boolean;
|
|
340
|
+
className?: string;
|
|
341
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
342
|
+
/** Related toggles share ONE grey card (kit.jsx:245, kit.css:84-85): #F5F5F5, radius 8, 12 padding, rows 14 apart. */
|
|
343
|
+
export declare function ToggleCard({ className, children, ...rest }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
344
|
+
/** The grey item list card (styles.css:200-201; faq.css:86): radius 12, 12/8/8 padding, rows in a 0-gap list, then the
|
|
345
|
+
* Add button and the note, 4 apart. Pass <ItemRow>s as children, `add` and `note` below them. */
|
|
346
|
+
export declare function ItemListCard({ add, note, listRef, className, children, ...rest }: React.HTMLAttributes<HTMLDivElement> & {
|
|
347
|
+
add?: React.ReactNode;
|
|
348
|
+
note?: React.ReactNode;
|
|
349
|
+
listRef?: React.Ref<HTMLDivElement>;
|
|
350
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
351
|
+
export declare const ITEM_ROW_CLASS = "group/li flex h-[46px] w-full min-w-0 cursor-pointer items-center gap-1 rounded-[6px] py-1 pl-0.5 pr-1 text-left transition-colors hover:bg-kit-insp-row-hover";
|
|
352
|
+
export declare const ITEM_ROW_GRIP_CLASS = "grid size-7 shrink-0 cursor-grab touch-none place-items-center rounded-[6px] text-kit-insp-quiet active:cursor-grabbing";
|
|
353
|
+
export declare const ITEM_ROW_MORE_CLASS = "grid size-7 shrink-0 place-items-center rounded-[6px] text-kit-insp-label transition-colors hover:bg-kit-insp-row-press aria-expanded:bg-kit-insp-row-press data-[popup-open]:bg-kit-insp-row-press";
|
|
354
|
+
export declare const ITEM_ROW_TITLE_CLASS = "truncate text-[13px] font-medium leading-[18px] tracking-[-0.1625px] text-kit-insp-ink";
|
|
355
|
+
export declare const ITEM_ROW_SUB_CLASS = "truncate text-[11.5px] leading-[14px] text-kit-insp-sub";
|
|
356
|
+
export interface ItemRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
357
|
+
title: React.ReactNode;
|
|
358
|
+
/** second line; `empty` is shown, quieter, when there is none */
|
|
359
|
+
sub?: React.ReactNode;
|
|
360
|
+
empty?: React.ReactNode;
|
|
361
|
+
/** opens the item (the title area is the button) */
|
|
362
|
+
onOpen?: () => void;
|
|
363
|
+
/** aria-label of the open button */
|
|
364
|
+
openLabel?: string;
|
|
365
|
+
/** props for the drag grip (a host's sortable handle); omit to hide the grip */
|
|
366
|
+
grip?: React.ButtonHTMLAttributes<HTMLButtonElement> | false;
|
|
367
|
+
/** before the title: a thumbnail or a section icon */
|
|
368
|
+
leading?: React.ReactNode;
|
|
369
|
+
/** after the title: a tag or a quiet meta */
|
|
370
|
+
tag?: React.ReactNode;
|
|
371
|
+
meta?: React.ReactNode;
|
|
372
|
+
/** the ⋯ control (a MenuTrigger using ITEM_ROW_MORE_CLASS), or props for a plain button */
|
|
373
|
+
more?: React.ReactNode;
|
|
374
|
+
/** 44 high (page outline rows) */
|
|
375
|
+
compact?: boolean;
|
|
376
|
+
dragging?: boolean;
|
|
377
|
+
/** a row is being dragged over this one: the 2px violet line on its top edge */
|
|
378
|
+
over?: boolean;
|
|
379
|
+
error?: boolean;
|
|
380
|
+
selected?: boolean;
|
|
381
|
+
}
|
|
382
|
+
/** One row of the item list card (styles.css:202-214, 258-261): 46 high, grip 28, title 13/18 medium over an 11.5/14
|
|
383
|
+
* sub-line, ⋯ 28. Hover greys the row; `over` draws the drop line; `dragging` fades it. */
|
|
384
|
+
export declare function ItemRow({ title, sub, empty, onOpen, openLabel, grip, leading, tag, meta, more, compact, dragging, over, error, selected, className, ...rest }: ItemRowProps): import("react/jsx-runtime").JSX.Element;
|
|
385
|
+
/** A plain ⋯ button for an ItemRow whose menu the host opens itself. */
|
|
386
|
+
export declare function ItemRowMore({ label, className, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
387
|
+
label: string;
|
|
388
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
389
|
+
export declare const ITEM_LIST_ADD_CLASS = "h-10 w-full shrink-0 rounded-[6px] bg-kit-insp-btn text-[13px] font-medium leading-[18px] tracking-[-0.1625px] text-kit-insp-ink transition-[background-color,transform] duration-150 hover:bg-kit-insp-btn-hover active:scale-[0.98] disabled:cursor-not-allowed disabled:bg-kit-insp-btn-off disabled:text-kit-insp-faint disabled:active:scale-100 aria-disabled:cursor-not-allowed aria-disabled:bg-kit-insp-btn-off aria-disabled:text-kit-insp-faint data-[popup-open]:bg-kit-insp-btn-on motion-reduce:transition-none motion-reduce:active:scale-100";
|
|
390
|
+
/** The Add button inside the card (styles.css:215-217, faq.css:96-97, page.css:11): full width, 40 high. */
|
|
391
|
+
export declare function ItemListAdd({ className, children, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
|
|
392
|
+
/** The card's note line, in the prototype's words (inspector.jsx:254): "3 of 6 questions. Drag to reorder." ·
|
|
393
|
+
* "6 of 6 questions. Remove one to add another." · "3 questions. Drag to reorder." */
|
|
394
|
+
export declare function itemListNote(count: number, noun: string, max?: number | null, opts?: {
|
|
395
|
+
sortable?: boolean;
|
|
396
|
+
}): string;
|
|
397
|
+
/** The note under the Add button (styles.css:218): 12/18, 4 padding. */
|
|
398
|
+
export declare function ItemListNote({ className, children, ...rest }: React.HTMLAttributes<HTMLParagraphElement>): import("react/jsx-runtime").JSX.Element;
|
|
399
|
+
export declare const ITEM_DELETE_CLASS = "inline-flex h-8 items-center gap-1.5 self-start rounded-[6px] bg-kit-insp-delete-bg px-3 text-[13px] font-medium text-kit-insp-delete-fg transition-[background-color,transform] duration-150 hover:bg-kit-insp-delete-bg-hover active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-kit-insp-delete-bg disabled:active:scale-100 motion-reduce:transition-none motion-reduce:active:scale-100";
|
|
400
|
+
/**
|
|
401
|
+
* The red "Delete <noun>" that ends an item screen (inspector.jsx:663, faq.css:48-49, kit.css:183). When it cannot run
|
|
402
|
+
* (the list is at its minimum) pass `reason`: the button is disabled and the reason is its title and description.
|
|
403
|
+
*/
|
|
404
|
+
export declare function ItemDeleteButton({ noun, reason, icon, className, children, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
405
|
+
noun?: string;
|
|
406
|
+
reason?: string;
|
|
407
|
+
icon?: React.ReactNode;
|
|
408
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
409
|
+
/** The quiet ⓘ after a label, 16 box with a 14 glyph (kit.css:445-446), for hosts that draw their own label row. */
|
|
410
|
+
export declare function InfoGlyph({ className }: {
|
|
411
|
+
className?: string;
|
|
412
|
+
}): import("react/jsx-runtime").JSX.Element;
|