@cjlapao/ui-kit-vue 0.2.0 → 0.2.3
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/index.cjs +18 -25
- package/dist/index.css +37732 -13285
- package/dist/index.js +31192 -21036
- package/dist/types/common/chat/markdown.d.ts +8 -0
- package/dist/types/common/chat/storage.d.ts +48 -0
- package/dist/types/common/chat/stream.d.ts +43 -0
- package/dist/types/common/chat/types.d.ts +143 -0
- package/dist/types/common/connectionFlow/header.d.ts +56 -0
- package/dist/types/common/connectionFlow/icons.d.ts +15 -0
- package/dist/types/common/connectionFlow/index.d.ts +6 -0
- package/dist/types/common/connectionFlow/layout.d.ts +73 -0
- package/dist/types/common/connectionFlow/measure.d.ts +94 -0
- package/dist/types/common/connectionFlow/paint.d.ts +36 -0
- package/dist/types/common/connectionFlow/router.d.ts +131 -0
- package/dist/types/common/connectionFlow/tones.d.ts +79 -0
- package/dist/types/common/connectionFlow/types.d.ts +394 -0
- package/dist/types/common/gantt/drag.d.ts +221 -0
- package/dist/types/common/gantt/index.d.ts +11 -0
- package/dist/types/common/gantt/layout.d.ts +133 -0
- package/dist/types/common/gantt/sample.d.ts +15 -0
- package/dist/types/common/gantt/time.d.ts +77 -0
- package/dist/types/common/gantt/tokens.d.ts +73 -0
- package/dist/types/common/gantt/types.d.ts +216 -0
- package/dist/types/common/i18n/builtIn/de.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/en.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/es.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/fr.d.ts +2 -0
- package/dist/types/common/i18n/builtIn/index.d.ts +15 -0
- package/dist/types/common/i18n/builtIn/pt.d.ts +2 -0
- package/dist/types/common/i18n/catalog.d.ts +32 -0
- package/dist/types/common/i18n/createI18n.d.ts +2 -0
- package/dist/types/common/i18n/dates.d.ts +12 -0
- package/dist/types/common/i18n/detect.d.ts +29 -0
- package/dist/types/common/i18n/icu.d.ts +36 -0
- package/dist/types/common/i18n/index.d.ts +10 -0
- package/dist/types/common/i18n/provider.d.ts +7 -0
- package/dist/types/common/i18n/storage.d.ts +8 -0
- package/dist/types/common/i18n/types.d.ts +64 -0
- package/dist/types/common/i18n/warn.d.ts +5 -0
- package/dist/types/common/theme/Theme.d.ts +941 -3
- package/dist/types/common/theme/glass.d.ts +90 -11
- package/dist/types/common/theme/randomThemeColor.d.ts +4 -4
- package/dist/types/common/tooltip/placement.d.ts +103 -0
- package/dist/types/common/tooltip/tokens.d.ts +40 -0
- package/dist/types/common/types/TableSettings.d.ts +15 -0
- package/dist/types/common/types/Variables.d.ts +71 -1
- package/dist/types/common/utils/dates.d.ts +113 -0
- package/dist/types/common/utils/gravatar.d.ts +0 -10
- package/dist/types/common/utils/safeStorage.d.ts +28 -0
- package/dist/types/common/utils/sanitizeSvg.d.ts +44 -0
- package/dist/types/common/utils/smartVariables.d.ts +74 -18
- package/dist/types/common/utils/tableStorage.d.ts +38 -0
- package/dist/types/vue/src/chat/index.d.ts +4 -0
- package/dist/types/vue/src/components/AccessMatrix.test.d.ts +1 -0
- package/dist/types/vue/src/components/AccessMatrix.vue.d.ts +23 -1
- package/dist/types/vue/src/components/Accordion.test.d.ts +1 -0
- package/dist/types/vue/src/components/Accordion.vue.d.ts +42 -28
- package/dist/types/vue/src/components/ActivityFeed.test.d.ts +1 -0
- package/dist/types/vue/src/components/ActivityFeed.vue.d.ts +141 -0
- package/dist/types/vue/src/components/Alert.test.d.ts +1 -0
- package/dist/types/vue/src/components/Alert.vue.d.ts +59 -2
- package/dist/types/vue/src/components/ApiErrorState.test.d.ts +1 -0
- package/dist/types/vue/src/components/ApiErrorState.vue.d.ts +28 -8
- package/dist/types/vue/src/components/AppDivider.vue.d.ts +53 -4
- package/dist/types/vue/src/components/Badge.vue.d.ts +45 -13
- package/dist/types/vue/src/components/BadgeIcon.vue.d.ts +1 -1
- package/dist/types/vue/src/components/BreakdownCard.test.d.ts +1 -0
- package/dist/types/vue/src/components/BreakdownCard.vue.d.ts +81 -0
- package/dist/types/vue/src/components/Button.vue.d.ts +22 -11
- package/dist/types/vue/src/components/Chat.test.d.ts +1 -0
- package/dist/types/vue/src/components/Chat.vue.d.ts +80 -0
- package/dist/types/vue/src/components/Checkbox.test.d.ts +1 -0
- package/dist/types/vue/src/components/Checkbox.vue.d.ts +44 -29
- package/dist/types/vue/src/components/CollapsiblePanel.vue.d.ts +5 -5
- package/dist/types/vue/src/components/ColorSwatches.test.d.ts +1 -0
- package/dist/types/vue/src/components/ColorSwatches.vue.d.ts +42 -0
- package/dist/types/vue/src/components/Combobox.test.d.ts +1 -0
- package/dist/types/vue/src/components/Combobox.vue.d.ts +61 -12
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlow.vue.d.ts +153 -17
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowCanvas.vue.d.ts +28 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowHeader.vue.d.ts +33 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowNodeBody.vue.d.ts +32 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSkeleton.vue.d.ts +18 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSvg.vue.d.ts +52 -0
- package/dist/types/vue/src/components/ConnectionFlow/connectionFlow.test.d.ts +1 -0
- package/dist/types/vue/src/components/ConnectionFlow/index.d.ts +11 -4
- package/dist/types/vue/src/components/CustomIcon.vue.d.ts +35 -11
- package/dist/types/vue/src/components/DetailItemCard.vue.d.ts +37 -5
- package/dist/types/vue/src/components/DropdownButton.vue.d.ts +3 -3
- package/dist/types/vue/src/components/DropdownMenu.test.d.ts +1 -0
- package/dist/types/vue/src/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/types/vue/src/components/DynamicFormField.test.d.ts +1 -0
- package/dist/types/vue/src/components/DynamicFormField.vue.d.ts +61 -5
- package/dist/types/vue/src/components/DynamicImg.vue.d.ts +28 -3
- package/dist/types/vue/src/components/EmptyState.test.d.ts +1 -0
- package/dist/types/vue/src/components/EmptyState.vue.d.ts +104 -24
- package/dist/types/vue/src/components/FormField.vue.d.ts +2 -1
- package/dist/types/vue/src/components/Gantt/Gantt.test.d.ts +1 -0
- package/dist/types/vue/src/components/Gantt/Gantt.vue.d.ts +160 -0
- package/dist/types/vue/src/components/Gantt/GanttBodyRow.vue.d.ts +78 -0
- package/dist/types/vue/src/components/Gantt/GanttCell.vue.d.ts +28 -0
- package/dist/types/vue/src/components/Gantt/GanttLinkLayer.vue.d.ts +22 -0
- package/dist/types/vue/src/components/Gantt/GanttScale.vue.d.ts +7 -0
- package/dist/types/vue/src/components/Gantt/GanttTaskBar.vue.d.ts +53 -0
- package/dist/types/vue/src/components/Gantt/GanttToolbar.vue.d.ts +22 -0
- package/dist/types/vue/src/components/Gantt/index.d.ts +18 -0
- package/dist/types/vue/src/components/Gantt/labels.d.ts +3 -0
- package/dist/types/vue/src/components/Gantt/types.d.ts +11 -0
- package/dist/types/vue/src/components/Gantt/useGanttDrag.d.ts +105 -0
- package/dist/types/vue/src/components/GlassBackground.vue.d.ts +4 -3
- package/dist/types/vue/src/components/GlassPanel.vue.d.ts +2 -2
- package/dist/types/vue/src/components/HeaderGroup.vue.d.ts +19 -1
- package/dist/types/vue/src/components/HelpButton.test.d.ts +1 -0
- package/dist/types/vue/src/components/HelpButton.vue.d.ts +15 -6
- package/dist/types/vue/src/components/Hero.test.d.ts +1 -0
- package/dist/types/vue/src/components/Hero.vue.d.ts +52 -31
- package/dist/types/vue/src/components/IconButton.vue.d.ts +12 -6
- package/dist/types/vue/src/components/InfiniteScrollPanel.vue.d.ts +61 -14
- package/dist/types/vue/src/components/InfoRow.test.d.ts +1 -0
- package/dist/types/vue/src/components/InfoRow.vue.d.ts +67 -37
- package/dist/types/vue/src/components/InlinePanel.vue.d.ts +12 -18
- package/dist/types/vue/src/components/Input.test.d.ts +1 -0
- package/dist/types/vue/src/components/Input.vue.d.ts +42 -13
- package/dist/types/vue/src/components/InputGroup.test.d.ts +1 -0
- package/dist/types/vue/src/components/InputGroup.vue.d.ts +20 -5
- package/dist/types/vue/src/components/Loader.test.d.ts +1 -0
- package/dist/types/vue/src/components/Loader.vue.d.ts +30 -11
- package/dist/types/vue/src/components/MarkdownEditor.vue.d.ts +1 -1
- package/dist/types/vue/src/components/MetricBar.test.d.ts +1 -0
- package/dist/types/vue/src/components/MetricBar.vue.d.ts +16 -5
- package/dist/types/vue/src/components/Modal.vue.d.ts +18 -19
- package/dist/types/vue/src/components/MultiProgressBar.vue.d.ts +15 -2
- package/dist/types/vue/src/components/MultiSelectPills.test.d.ts +1 -0
- package/dist/types/vue/src/components/MultiSelectPills.vue.d.ts +47 -43
- package/dist/types/vue/src/components/MultiToggle.test.d.ts +1 -0
- package/dist/types/vue/src/components/MultiToggle.vue.d.ts +33 -6
- package/dist/types/vue/src/components/NotificationModal.test.d.ts +1 -0
- package/dist/types/vue/src/components/NotificationModal.vue.d.ts +19 -2
- package/dist/types/vue/src/components/PageHeader.test.d.ts +1 -0
- package/dist/types/vue/src/components/PageHeader.vue.d.ts +18 -0
- package/dist/types/vue/src/components/PagedPanel.test.d.ts +1 -0
- package/dist/types/vue/src/components/PagedPanel.vue.d.ts +39 -11
- package/dist/types/vue/src/components/Panel.vue.d.ts +18 -9
- package/dist/types/vue/src/components/PasswordInput.test.d.ts +1 -0
- package/dist/types/vue/src/components/PasswordInput.vue.d.ts +20 -3
- package/dist/types/vue/src/components/Picker.test.d.ts +1 -0
- package/dist/types/vue/src/components/Picker.vue.d.ts +3 -3
- package/dist/types/vue/src/components/Pill.vue.d.ts +63 -5
- package/dist/types/vue/src/components/Progress.test.d.ts +1 -0
- package/dist/types/vue/src/components/Progress.vue.d.ts +60 -11
- package/dist/types/vue/src/components/ProgressSpinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/ProgressSpinner.vue.d.ts +46 -0
- package/dist/types/vue/src/components/ScrollArea.test.d.ts +1 -0
- package/dist/types/vue/src/components/ScrollArea.vue.d.ts +52 -0
- package/dist/types/vue/src/components/SearchBar.vue.d.ts +2 -3
- package/dist/types/vue/src/components/Section.vue.d.ts +1 -1
- package/dist/types/vue/src/components/SectionCard.vue.d.ts +2 -2
- package/dist/types/vue/src/components/Select.test.d.ts +1 -0
- package/dist/types/vue/src/components/Select.vue.d.ts +41 -16
- package/dist/types/vue/src/components/SidePanel.vue.d.ts +1 -1
- package/dist/types/vue/src/components/SmartInput.vue.d.ts +49 -18
- package/dist/types/vue/src/components/SmartValue.vue.d.ts +20 -13
- package/dist/types/vue/src/components/SmartVariableBadge.vue.d.ts +17 -0
- package/dist/types/vue/src/components/Spinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/Spinner.vue.d.ts +12 -5
- package/dist/types/vue/src/components/SplitView.vue.d.ts +6 -6
- package/dist/types/vue/src/components/StartupStageStepper.vue.d.ts +1 -1
- package/dist/types/vue/src/components/StatChartTile.vue.d.ts +5 -0
- package/dist/types/vue/src/components/StatCountTile.vue.d.ts +5 -1
- package/dist/types/vue/src/components/StatGraphTile.vue.d.ts +1 -1
- package/dist/types/vue/src/components/StatTile.test.d.ts +1 -0
- package/dist/types/vue/src/components/StatTile.vue.d.ts +5 -1
- package/dist/types/vue/src/components/StatusSpinner.test.d.ts +1 -0
- package/dist/types/vue/src/components/StatusSpinner.vue.d.ts +10 -5
- package/dist/types/vue/src/components/Stepper.test.d.ts +1 -0
- package/dist/types/vue/src/components/Stepper.vue.d.ts +62 -25
- package/dist/types/vue/src/components/Table.test.d.ts +1 -0
- package/dist/types/vue/src/components/Table.vue.d.ts +67 -14
- package/dist/types/vue/src/components/Tabs.vue.d.ts +20 -3
- package/dist/types/vue/src/components/TagPicker.vue.d.ts +3 -3
- package/dist/types/vue/src/components/Textarea.vue.d.ts +8 -5
- package/dist/types/vue/src/components/TimelinePanel/TimelinePanel.vue.d.ts +4 -4
- package/dist/types/vue/src/components/Toggle.vue.d.ts +4 -4
- package/dist/types/vue/src/components/Toolbar.test.d.ts +1 -0
- package/dist/types/vue/src/components/Toolbar.vue.d.ts +62 -0
- package/dist/types/vue/src/components/Tooltip.test.d.ts +1 -0
- package/dist/types/vue/src/components/Tooltip.vue.d.ts +20 -3
- package/dist/types/vue/src/components/TooltipWrapper.vue.d.ts +24 -3
- package/dist/types/vue/src/components/TreeView/TreeFlowSvg.vue.d.ts +5 -5
- package/dist/types/vue/src/components/TreeView/TreeItemRow.vue.d.ts +2 -2
- package/dist/types/vue/src/components/TreeView/TreeView.vue.d.ts +4 -4
- package/dist/types/vue/src/components/UserAvatar.test.d.ts +1 -0
- package/dist/types/vue/src/components/UserAvatar.vue.d.ts +56 -6
- package/dist/types/vue/src/components/VariablePicker.vue.d.ts +23 -6
- package/dist/types/vue/src/components/__dbg.test.d.ts +1 -0
- package/dist/types/vue/src/components/index.d.ts +50 -31
- package/dist/types/vue/src/components/internal/InfoRowContent.vue.d.ts +52 -0
- package/dist/types/vue/src/components/internal/PagedPanelContent.vue.d.ts +47 -0
- package/dist/types/vue/src/connectionFlow/index.d.ts +1 -0
- package/dist/types/vue/src/contexts/IconContext.d.ts +8 -3
- package/dist/types/vue/src/i18n/I18nContext.d.ts +14 -0
- package/dist/types/vue/src/i18n/I18nProvider.test.d.ts +2 -0
- package/dist/types/vue/src/i18n/I18nProvider.vue.d.ts +35 -0
- package/dist/types/vue/src/i18n/index.d.ts +8 -0
- package/dist/types/vue/src/i18n/kit-components-spot.test.d.ts +1 -0
- package/dist/types/vue/src/i18n/useI18n.d.ts +44 -0
- package/dist/types/vue/src/index.d.ts +2 -2
- package/dist/types/vue/src/test-setup.d.ts +5 -0
- package/dist/types/vue/src/types/Icon.d.ts +11 -2
- package/dist/types/vue/src/types/TableSettings.d.ts +1 -0
- package/dist/types/vue/src/types/index.d.ts +1 -0
- package/dist/types/vue/src/utils/index.d.ts +1 -0
- package/dist/types/vue/src/utils/sanitizeSvg.d.ts +1 -0
- package/dist/types/vue/src/utils/tableStorage.d.ts +1 -0
- package/dist/ui-kit-vue.css +1 -1
- package/package.json +8 -3
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
-
import type
|
|
3
|
-
|
|
2
|
+
import { type ControlSize, type SurfaceVariant, type TrueColor } from "../theme/Theme";
|
|
3
|
+
/**
|
|
4
|
+
* The shared control scale. Was a component-local `sm | md | lg`, so a toggle
|
|
5
|
+
* could not line up with the `xs` or `xl` Button beside it.
|
|
6
|
+
*/
|
|
7
|
+
export type MultiToggleSize = ControlSize;
|
|
4
8
|
export type MultiToggleShape = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
5
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The track is a surface, so it takes the **Panel family** — the same eight
|
|
11
|
+
* variants, reading identically beside a `Panel` at the same tone.
|
|
12
|
+
*
|
|
13
|
+
* This replaces a component-local `theme | solid | soft`, which described the
|
|
14
|
+
* *indicator* rather than the track and had no relationship to anything else
|
|
15
|
+
* in the kit.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MULTI_TOGGLE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
18
|
+
export type MultiToggleVariant = SurfaceVariant;
|
|
19
|
+
/**
|
|
20
|
+
* How the active segment is drawn. This is what the old `variant` union was
|
|
21
|
+
* actually describing, now separated from the track's surface.
|
|
22
|
+
*/
|
|
23
|
+
export declare const MULTI_TOGGLE_INDICATORS: readonly ["solid", "soft", "tonal"];
|
|
24
|
+
export type MultiToggleIndicator = (typeof MULTI_TOGGLE_INDICATORS)[number];
|
|
6
25
|
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
|
|
7
26
|
export type MultiToggleOptionWidth = number | LiteralUnion<"auto">;
|
|
8
27
|
export type MultiToggleActiveWidthStrategy = "auto" | "max";
|
|
@@ -25,8 +44,15 @@ export interface MultiToggleProps {
|
|
|
25
44
|
adaptiveWidth?: boolean;
|
|
26
45
|
optionMaxWidth?: number | string;
|
|
27
46
|
activeWidthStrategy?: MultiToggleActiveWidthStrategy;
|
|
47
|
+
/** The track's surface, from the Panel family. @default "subtle" */
|
|
28
48
|
variant?: MultiToggleVariant;
|
|
29
|
-
/**
|
|
49
|
+
/** How the active segment is drawn. @default "solid" */
|
|
50
|
+
indicator?: MultiToggleIndicator;
|
|
51
|
+
/** Accent for the indicator, the active label and the focus ring. @default "blue" */
|
|
52
|
+
tone?: TrueColor;
|
|
53
|
+
/** Overrides the active option's text tone. */
|
|
54
|
+
accentTone?: TrueColor;
|
|
55
|
+
/** @deprecated Use `accentTone`. */
|
|
30
56
|
accentColor?: TrueColor;
|
|
31
57
|
disabled?: boolean;
|
|
32
58
|
}
|
|
@@ -37,13 +63,14 @@ declare const _default: import("vue").DefineComponent<MultiToggleProps, {}, {},
|
|
|
37
63
|
onChange?: ((value: string) => any) | undefined;
|
|
38
64
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
65
|
}>, {
|
|
66
|
+
rounded: MultiToggleShape;
|
|
67
|
+
size: MultiToggleSize;
|
|
40
68
|
color: TrueColor;
|
|
41
69
|
variant: MultiToggleVariant;
|
|
42
|
-
size: MultiToggleSize;
|
|
43
70
|
fullWidth: boolean;
|
|
44
|
-
rounded: MultiToggleShape;
|
|
45
71
|
showOnlyActiveLabel: boolean;
|
|
46
72
|
adaptiveWidth: boolean;
|
|
47
73
|
activeWidthStrategy: MultiToggleActiveWidthStrategy;
|
|
74
|
+
indicator: MultiToggleIndicator;
|
|
48
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
76
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { type IconName } from "../icons/registry";
|
|
2
|
+
import type { TrueColor } from "../theme/Theme";
|
|
3
|
+
/**
|
|
4
|
+
* The kit's shared severity vocabulary is `AlertIntent`
|
|
5
|
+
* (`info | success | warning | danger | neutral`). This component predates it
|
|
6
|
+
* and ships `error` rather than `danger`; the name is kept so call sites are
|
|
7
|
+
* not broken, and the mapping below is the single place the two meet.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NOTIFICATION_TYPES: readonly ["success", "error", "warning", "info"];
|
|
10
|
+
export type NotificationType = (typeof NOTIFICATION_TYPES)[number];
|
|
2
11
|
export interface NotificationModalProps {
|
|
3
12
|
isOpen: boolean;
|
|
4
13
|
title: string;
|
|
5
14
|
message?: string;
|
|
15
|
+
/** @default "info" */
|
|
6
16
|
type?: NotificationType;
|
|
17
|
+
/** @default "Close" */
|
|
7
18
|
actionLabel?: string;
|
|
8
19
|
secondaryActionLabel?: string;
|
|
20
|
+
/** Override the glyph the `type` would pick. */
|
|
21
|
+
icon?: IconName;
|
|
22
|
+
/** Override the tone the `type` would pick. */
|
|
23
|
+
tone?: TrueColor;
|
|
24
|
+
/** @default "sm" */
|
|
25
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
9
26
|
}
|
|
10
27
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NotificationModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
28
|
close: () => any;
|
|
@@ -17,7 +34,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Notificati
|
|
|
17
34
|
onSecondaryAction?: (() => any) | undefined;
|
|
18
35
|
}>, {
|
|
19
36
|
type: NotificationType;
|
|
20
|
-
|
|
37
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
21
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
22
39
|
default?: (props: {}) => any;
|
|
23
40
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
start?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
center?: (props: typeof __VLS_3) => any;
|
|
6
|
+
} & {
|
|
7
|
+
end?: (props: typeof __VLS_5) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { VNodeChild } from "vue";
|
|
2
2
|
import type { PanelProps } from "./Panel.vue";
|
|
3
|
-
|
|
3
|
+
import type { ControlSize, TrueColor } from "../theme/Theme";
|
|
4
|
+
/**
|
|
5
|
+
* The kit's three loader treatments, with `skeleton` the default — a
|
|
6
|
+
* placeholder shaped like the panel's own content keeps the block at its real
|
|
7
|
+
* height, where a spinner collapses it and the page jumps when the data lands.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PAGED_PANEL_LOADERS: readonly ["skeleton", "spinner", "progress"];
|
|
10
|
+
export type PagedPanelLoader = (typeof PAGED_PANEL_LOADERS)[number];
|
|
11
|
+
export interface PagedPanelProps extends Omit<PanelProps, "title" | "subtitle" | "loading" | "loaderType" | "progress"> {
|
|
4
12
|
/** One entry per page — rendered one at a time. */
|
|
5
13
|
pages: VNodeChild[];
|
|
6
14
|
/**
|
|
@@ -10,28 +18,48 @@ export interface PagedPanelProps extends Omit<PanelProps, "title" | "subtitle">
|
|
|
10
18
|
title?: VNodeChild | VNodeChild[];
|
|
11
19
|
/** Optional subtitle shown below the title (static). */
|
|
12
20
|
subtitle?: VNodeChild;
|
|
13
|
-
/**
|
|
21
|
+
/** Replaces the page with a loading treatment. */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/** How `loading` is drawn. @default "skeleton" */
|
|
24
|
+
loaderType?: PagedPanelLoader;
|
|
25
|
+
/** Determinate value for `loaderType="progress"`, 0–100. */
|
|
26
|
+
progress?: number;
|
|
27
|
+
/** Copy shown beside the spinner or progress bar. */
|
|
28
|
+
loadingLabel?: string;
|
|
29
|
+
/** Replaces the page with an error message. */
|
|
14
30
|
error?: string | null;
|
|
31
|
+
/** Copy for the default empty state. @default "No data available." */
|
|
32
|
+
emptyMessage?: string;
|
|
33
|
+
/** Accent for the nav buttons. @default "blue" */
|
|
34
|
+
tone?: TrueColor;
|
|
35
|
+
/** Scale of the nav buttons and header type. @default "md" */
|
|
36
|
+
size?: ControlSize;
|
|
37
|
+
/** Controlled page index. Omit for uncontrolled paging. */
|
|
38
|
+
page?: number;
|
|
15
39
|
/**
|
|
16
40
|
* When true, renders without the Panel wrapper (no border, background or
|
|
17
41
|
* shadow). Use this when embedding PagedPanel inside an existing Panel.
|
|
18
42
|
*/
|
|
19
43
|
bare?: boolean;
|
|
20
44
|
}
|
|
21
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PagedPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PagedPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
"update:page": (page: number) => any;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<PagedPanelProps> & Readonly<{
|
|
48
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
size: ControlSize;
|
|
51
|
+
loading: boolean;
|
|
52
|
+
tone: TrueColor;
|
|
53
|
+
loaderType: PagedPanelLoader;
|
|
22
54
|
bare: boolean;
|
|
23
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
|
-
|
|
25
|
-
page: number;
|
|
26
|
-
}) => any;
|
|
56
|
+
empty?: (props: {}) => any;
|
|
27
57
|
} & {
|
|
28
|
-
|
|
58
|
+
loading?: (props: {}) => any;
|
|
29
59
|
} & {
|
|
30
|
-
|
|
31
|
-
page: number;
|
|
32
|
-
}) => any;
|
|
60
|
+
empty?: (props: {}) => any;
|
|
33
61
|
} & {
|
|
34
|
-
|
|
62
|
+
loading?: (props: {}) => any;
|
|
35
63
|
}>;
|
|
36
64
|
export default _default;
|
|
37
65
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import type { CSSProperties, VNode } from "vue";
|
|
2
2
|
import type { ButtonProps } from "./Button.vue";
|
|
3
3
|
import type { LoaderProps } from "./Loader.vue";
|
|
4
|
-
import type { TrueColor } from "../theme/Theme";
|
|
5
|
-
|
|
4
|
+
import type { SurfaceCorner, SurfacePadding, SurfaceVariant, TrueColor } from "../theme/Theme";
|
|
5
|
+
/**
|
|
6
|
+
* Aliased from the shared theme rather than redeclared, so the Vue and React
|
|
7
|
+
* kits cannot drift. These were three separate hand-written unions; the corner
|
|
8
|
+
* one had no `rounded-xl` and its `pill` duplicated `rounded-lg`.
|
|
9
|
+
*/
|
|
10
|
+
export type PanelVariant = SurfaceVariant;
|
|
6
11
|
export type PanelTone = TrueColor;
|
|
7
12
|
export type PanelDecoration = "none" | "gradient" | "shapes" | "both";
|
|
8
13
|
export type PanelMediaPlacement = "top" | "start" | "end" | "overlay";
|
|
9
|
-
export type PanelPadding =
|
|
10
|
-
export type PanelCorner =
|
|
14
|
+
export type PanelPadding = SurfacePadding;
|
|
15
|
+
export type PanelCorner = SurfaceCorner;
|
|
11
16
|
export type PanelActionLayout = "auto" | "stacked" | "inline";
|
|
12
17
|
export type PanelLoaderType = Exclude<LoaderProps["variant"], undefined>;
|
|
13
18
|
export type PanelSpecularMode = "none" | "classic" | "halo";
|
|
@@ -97,19 +102,23 @@ export interface PanelProps {
|
|
|
97
102
|
*/
|
|
98
103
|
specularMode?: PanelSpecularMode;
|
|
99
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Re-exported from the theme for `CollapsiblePanel` and `TimelinePanel`, which
|
|
107
|
+
* import the map directly rather than taking a Panel.
|
|
108
|
+
*/
|
|
100
109
|
export declare const paddingStyles: Record<PanelPadding, string>;
|
|
101
110
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PanelProps> & Readonly<{}>, {
|
|
111
|
+
loading: boolean;
|
|
102
112
|
tone: TrueColor;
|
|
103
|
-
variant: PanelVariant;
|
|
104
113
|
disabled: boolean;
|
|
105
|
-
|
|
106
|
-
|
|
114
|
+
variant: PanelVariant;
|
|
115
|
+
corner: PanelCorner;
|
|
107
116
|
glassOpacity: "frosted" | "light" | "clear" | number;
|
|
117
|
+
vibrancy: "low" | "medium" | "high" | number;
|
|
108
118
|
specularMode: PanelSpecularMode;
|
|
109
|
-
padding: PanelPadding;
|
|
110
119
|
mediaPlacement: PanelMediaPlacement;
|
|
111
120
|
actionLayout: PanelActionLayout;
|
|
112
|
-
|
|
121
|
+
padding: PanelPadding;
|
|
113
122
|
flexBody: boolean;
|
|
114
123
|
loaderType: PanelLoaderType;
|
|
115
124
|
hoverShadow: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import type { InputProps } from "./Input.vue";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface PasswordInputProps extends Omit<InputProps, "type" | "trailingIcon" | "onTrailingIconClick"> {
|
|
3
|
+
/**
|
|
4
|
+
* Offer the reveal toggle at all. Turn it off for a field the user should
|
|
5
|
+
* never be able to read back (a stored secret being re-entered).
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
revealable?: boolean;
|
|
9
|
+
/** Controlled reveal state. Omit for uncontrolled. */
|
|
10
|
+
revealed?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<PasswordInputProps, {
|
|
4
13
|
el: import("vue").ComputedRef<HTMLInputElement | null>;
|
|
5
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:revealed": (revealed: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<PasswordInputProps> & Readonly<{
|
|
17
|
+
"onUpdate:revealed"?: ((revealed: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
revealable: boolean;
|
|
21
|
+
revealed: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
23
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -69,14 +69,14 @@ declare const _default: import("vue").DefineComponent<PickerProps, {}, {}, {}, {
|
|
|
69
69
|
onMultiChange?: ((ids: string[]) => any) | undefined;
|
|
70
70
|
"onUpdate:selectedIds"?: ((ids: string[]) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
|
-
color: TrueColor;
|
|
73
72
|
size: "sm" | "md";
|
|
73
|
+
loading: boolean;
|
|
74
|
+
color: TrueColor;
|
|
74
75
|
placeholder: string;
|
|
75
76
|
fullWidth: boolean;
|
|
76
|
-
loading: boolean;
|
|
77
77
|
fullHeight: boolean;
|
|
78
|
-
emptyMessage: string;
|
|
79
78
|
loadingMessage: string;
|
|
79
|
+
emptyMessage: string;
|
|
80
80
|
escapeBoundary: boolean;
|
|
81
81
|
multi: boolean;
|
|
82
82
|
maxPillsShown: number;
|
|
@@ -1,26 +1,84 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
-
import type { TrueColor } from "../theme/Theme";
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
import type { ControlSize, TrueColor } from "../theme/Theme";
|
|
3
|
+
import type { GlassOpacity, GlassVibrancy, SpecularMode } from "../theme/glass";
|
|
4
|
+
export declare const PILL_VARIANTS: readonly ["solid", "soft", "outline", "glass", "liquid-glass"];
|
|
5
|
+
export type PillVariant = (typeof PILL_VARIANTS)[number];
|
|
6
|
+
/** The shared control scale — it used to be its own four-step union. */
|
|
7
|
+
export type PillSize = ControlSize;
|
|
5
8
|
export type PillTone = TrueColor;
|
|
9
|
+
/**
|
|
10
|
+
* Corner scale for a pill. Deliberately not `SurfaceCorner` — that scale is
|
|
11
|
+
* tuned for cards, where `rounded-md` means 16px, which on a 24px-tall pill is
|
|
12
|
+
* almost a capsule anyway.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PILL_CORNERS: readonly ["none", "sm", "md", "lg", "full"];
|
|
15
|
+
export type PillCorner = (typeof PILL_CORNERS)[number];
|
|
6
16
|
export interface PillProps {
|
|
7
17
|
tone?: PillTone;
|
|
18
|
+
/** @default "soft" */
|
|
8
19
|
variant?: PillVariant;
|
|
20
|
+
/** @default "md" */
|
|
9
21
|
size?: PillSize;
|
|
22
|
+
/** @default "full" */
|
|
23
|
+
corner?: PillCorner;
|
|
10
24
|
uppercase?: boolean;
|
|
25
|
+
/** Glass fill transparency, for the see-through variants. @default "frosted" */
|
|
26
|
+
glassOpacity?: GlassOpacity;
|
|
27
|
+
/** Backdrop vibrancy, for the see-through variants. */
|
|
28
|
+
vibrancy?: GlassVibrancy;
|
|
29
|
+
/**
|
|
30
|
+
* Specular highlight. `liquid-glass` defaults to `classic`; plain `glass`
|
|
31
|
+
* defaults to none, which is the difference between the two.
|
|
32
|
+
*/
|
|
33
|
+
specularMode?: SpecularMode;
|
|
34
|
+
/** Icon before the label. A registry name, or a node via the slot. */
|
|
11
35
|
icon?: string | VNode;
|
|
36
|
+
/** Icon after the label. */
|
|
37
|
+
trailingIcon?: string | VNode;
|
|
38
|
+
/**
|
|
39
|
+
* Renders as a bare status dot with no label. Any content, icon or remove
|
|
40
|
+
* button is dropped, so it stays a dot.
|
|
41
|
+
*/
|
|
12
42
|
dot?: boolean;
|
|
43
|
+
/** Shows a remove button, which emits `remove`. */
|
|
44
|
+
removable?: boolean;
|
|
45
|
+
/** Accessible name for that button. @default "Remove" */
|
|
46
|
+
removeLabel?: string;
|
|
47
|
+
/** Makes the whole pill activatable — it renders as a real `<button>`. */
|
|
48
|
+
clickable?: boolean;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Truncates a long label instead of stretching the pill. */
|
|
51
|
+
maxWidth?: number | string;
|
|
52
|
+
/**
|
|
53
|
+
* Accessible name for a `dot`, which has no text of its own. Without one the
|
|
54
|
+
* dot is treated as decoration and hidden.
|
|
55
|
+
*/
|
|
56
|
+
label?: string;
|
|
13
57
|
}
|
|
14
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PillProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
58
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PillProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
59
|
+
click: (payload: MouseEvent) => any;
|
|
60
|
+
remove: () => any;
|
|
61
|
+
}, string, import("vue").PublicProps, Readonly<PillProps> & Readonly<{
|
|
62
|
+
onClick?: ((payload: MouseEvent) => any) | undefined;
|
|
63
|
+
onRemove?: (() => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
size: PillSize;
|
|
15
66
|
tone: PillTone;
|
|
67
|
+
clickable: boolean;
|
|
68
|
+
disabled: boolean;
|
|
16
69
|
variant: PillVariant;
|
|
70
|
+
corner: PillCorner;
|
|
71
|
+
glassOpacity: GlassOpacity;
|
|
72
|
+
vibrancy: GlassVibrancy;
|
|
17
73
|
dot: boolean;
|
|
18
|
-
size: PillSize;
|
|
19
74
|
uppercase: boolean;
|
|
75
|
+
removable: boolean;
|
|
20
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
21
77
|
icon?: (props: {}) => any;
|
|
22
78
|
} & {
|
|
23
79
|
default?: (props: {}) => any;
|
|
80
|
+
} & {
|
|
81
|
+
trailingIcon?: (props: {}) => any;
|
|
24
82
|
}>;
|
|
25
83
|
export default _default;
|
|
26
84
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,29 +1,78 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
export type ProgressSize =
|
|
4
|
-
export
|
|
5
|
-
export type
|
|
6
|
-
export
|
|
1
|
+
import type { ControlSize, TrueColor } from "../theme/Theme";
|
|
2
|
+
/** The shared control scale, so a bar lines up with the controls around it. */
|
|
3
|
+
export type ProgressSize = ControlSize;
|
|
4
|
+
export declare const PROGRESS_MOTIONS: readonly ["none", "shimmer", "pulse", "shimmer-pulse", "stripes", "stripes-shimmer"];
|
|
5
|
+
export type ProgressMotion = (typeof PROGRESS_MOTIONS)[number];
|
|
6
|
+
export declare const PROGRESS_MOTION_SPEEDS: readonly ["slow", "normal", "fast"];
|
|
7
|
+
export type ProgressMotionSpeed = (typeof PROGRESS_MOTION_SPEEDS)[number];
|
|
8
|
+
export declare const PROGRESS_MOTION_DIRECTIONS: readonly ["forward", "reverse"];
|
|
9
|
+
export type ProgressMotionDirection = (typeof PROGRESS_MOTION_DIRECTIONS)[number];
|
|
10
|
+
export declare const PROGRESS_CORNERS: readonly ["full", "rounded", "none"];
|
|
11
|
+
export type ProgressCorner = (typeof PROGRESS_CORNERS)[number];
|
|
7
12
|
export interface ProgressProps {
|
|
13
|
+
/** Current value, clamped between `min` and `max`. @default 0 */
|
|
8
14
|
value?: number;
|
|
15
|
+
/** @default 0 */
|
|
16
|
+
min?: number;
|
|
17
|
+
/** @default 100 */
|
|
18
|
+
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Work is happening but its extent is unknown — the bar sweeps instead of
|
|
21
|
+
* filling. `value` is ignored, and no `aria-valuenow` is published, which is
|
|
22
|
+
* what tells assistive technology the progress is indeterminate.
|
|
23
|
+
*/
|
|
24
|
+
indeterminate?: boolean;
|
|
25
|
+
/** @default "md" */
|
|
9
26
|
size?: ProgressSize;
|
|
10
|
-
|
|
27
|
+
/** @default "blue" */
|
|
28
|
+
color?: TrueColor;
|
|
29
|
+
/** Alias for `color`, matching the input family's `tone`. */
|
|
30
|
+
tone?: TrueColor;
|
|
31
|
+
/** @default "full" */
|
|
32
|
+
corner?: ProgressCorner;
|
|
11
33
|
motion?: ProgressMotion;
|
|
34
|
+
/** @default "normal" */
|
|
12
35
|
motionSpeed?: ProgressMotionSpeed;
|
|
36
|
+
/** @default "forward" */
|
|
13
37
|
motionDirection?: ProgressMotionDirection;
|
|
14
38
|
/**
|
|
15
|
-
*
|
|
39
|
+
* Caption above the bar. Also becomes the bar's accessible name — a
|
|
40
|
+
* `role="progressbar"` with no name is announced as just "progress bar".
|
|
41
|
+
*/
|
|
42
|
+
label?: string;
|
|
43
|
+
/** Show the value beside the label. @default false */
|
|
44
|
+
showValue?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Formats the displayed value and `aria-valuetext`. Defaults to a percentage
|
|
47
|
+
* of the `min`–`max` range.
|
|
48
|
+
*/
|
|
49
|
+
formatValue?: (value: number, percent: number) => string;
|
|
50
|
+
/** Classes for the filled bar. */
|
|
51
|
+
barClassName?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `motion="shimmer"` or `motion="none"`.
|
|
16
54
|
*/
|
|
17
55
|
showShimmer?: boolean;
|
|
18
56
|
}
|
|
19
|
-
declare const _default: import("vue").DefineComponent<ProgressProps, {
|
|
57
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {
|
|
20
58
|
el: import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
21
59
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
|
|
22
|
-
color: SpinnerColor;
|
|
23
60
|
size: ProgressSize;
|
|
24
61
|
value: number;
|
|
62
|
+
corner: ProgressCorner;
|
|
63
|
+
min: number;
|
|
64
|
+
max: number;
|
|
65
|
+
indeterminate: boolean;
|
|
25
66
|
motionSpeed: ProgressMotionSpeed;
|
|
26
67
|
motionDirection: ProgressMotionDirection;
|
|
68
|
+
showValue: boolean;
|
|
27
69
|
showShimmer: boolean;
|
|
28
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
70
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
71
|
+
label?: (props: {}) => any;
|
|
72
|
+
}>;
|
|
29
73
|
export default _default;
|
|
74
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ControlSize, type TrueColor } from "../theme/Theme";
|
|
2
|
+
import type { SpinnerThickness } from "./Spinner.vue";
|
|
3
|
+
/**
|
|
4
|
+
* The shared control scale, so a progress spinner lines up with the `Spinner`
|
|
5
|
+
* and `Button` next to it instead of speaking its own size language.
|
|
6
|
+
*/
|
|
7
|
+
export type ProgressSpinnerSize = ControlSize;
|
|
8
|
+
export type ProgressSpinnerColor = TrueColor;
|
|
9
|
+
export interface ProgressSpinnerProps {
|
|
10
|
+
/**
|
|
11
|
+
* Progress value. Omit it for an indeterminate spinner — the two modes are
|
|
12
|
+
* the same component with different ARIA, the way `role="progressbar"` is
|
|
13
|
+
* specified. Values outside `[min, max]` are clamped.
|
|
14
|
+
*/
|
|
15
|
+
value?: number;
|
|
16
|
+
/** @default 0 */
|
|
17
|
+
min?: number;
|
|
18
|
+
/** @default 100 */
|
|
19
|
+
max?: number;
|
|
20
|
+
/** @default "md" */
|
|
21
|
+
size?: ProgressSpinnerSize;
|
|
22
|
+
/** @default "blue" */
|
|
23
|
+
color?: ProgressSpinnerColor;
|
|
24
|
+
/** @default "normal" */
|
|
25
|
+
thickness?: SpinnerThickness;
|
|
26
|
+
/**
|
|
27
|
+
* One revolution in indeterminate mode. The dash animation runs at 3/4 of
|
|
28
|
+
* this, so a single value sets the whole tempo.
|
|
29
|
+
* @default "2s"
|
|
30
|
+
*/
|
|
31
|
+
animationDuration?: string;
|
|
32
|
+
/** Centre percentage readout, determinate mode only. @default true */
|
|
33
|
+
showValue?: boolean;
|
|
34
|
+
/** @default "Loading" */
|
|
35
|
+
ariaLabel?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: import("vue").DefineComponent<ProgressSpinnerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressSpinnerProps> & Readonly<{}>, {
|
|
38
|
+
size: ProgressSpinnerSize;
|
|
39
|
+
color: ProgressSpinnerColor;
|
|
40
|
+
thickness: SpinnerThickness;
|
|
41
|
+
min: number;
|
|
42
|
+
max: number;
|
|
43
|
+
showValue: boolean;
|
|
44
|
+
animationDuration: string;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A scrollable region with custom overlay scrollbars — PrimeVue's ScrollArea:
|
|
3
|
+
* the native scrollbar is hidden (scrolling itself stays completely native,
|
|
4
|
+
* so wheel, touch and keyboard all behave exactly as browsers do), and thin
|
|
5
|
+
* virtual bars track the content instead, sized by the visible fraction and
|
|
6
|
+
* shown per the `variant`. Same on every browser, unlike styling the native
|
|
7
|
+
* scrollbar.
|
|
8
|
+
*
|
|
9
|
+
* The viewport joins the tab order only while something actually overflows
|
|
10
|
+
* — a region that fits has no business one tab deep.
|
|
11
|
+
*
|
|
12
|
+
* (These notes live here rather than in the template because a template
|
|
13
|
+
* comment is a real node, and a comment beside the root makes the component
|
|
14
|
+
* multi-root — which silently breaks attribute inheritance.)
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Bar visibility behaviour — PrimeVue's `variant`:
|
|
18
|
+
* `auto` shows while hovered or scrolling (default), `hover` on hover only,
|
|
19
|
+
* `scroll` while scrolling and briefly after, `always` whenever the axis
|
|
20
|
+
* overflows, `hidden` never.
|
|
21
|
+
*/
|
|
22
|
+
type ScrollAreaVariant = "auto" | "hover" | "scroll" | "always" | "hidden";
|
|
23
|
+
interface ScrollAreaProps {
|
|
24
|
+
/** @default "auto" */
|
|
25
|
+
variant?: ScrollAreaVariant;
|
|
26
|
+
/** Fade the content at the edges it can scroll toward. @default false */
|
|
27
|
+
mask?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Tab order entry for the viewport while overflowing; the viewport leaves
|
|
30
|
+
* the tab order when the content fits. @default 0
|
|
31
|
+
*/
|
|
32
|
+
tabIndex?: number;
|
|
33
|
+
/** Classes for the content wrapper, styled apart from the frame. */
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
declare var __VLS_1: {};
|
|
37
|
+
type __VLS_Slots = {} & {
|
|
38
|
+
default?: (props: typeof __VLS_1) => any;
|
|
39
|
+
};
|
|
40
|
+
declare const __VLS_component: import("vue").DefineComponent<ScrollAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaProps> & Readonly<{}>, {
|
|
41
|
+
mask: boolean;
|
|
42
|
+
variant: ScrollAreaVariant;
|
|
43
|
+
tabIndex: number;
|
|
44
|
+
contentClassName: string;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -38,14 +38,13 @@ declare const _default: import("vue").DefineComponent<SearchBarProps, {}, {}, {}
|
|
|
38
38
|
onSearch?: ((query: string, signal?: AbortSignal | undefined) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
color: TrueColor;
|
|
41
|
-
variant: "default" | "gradient";
|
|
42
41
|
disabled: boolean;
|
|
43
|
-
|
|
42
|
+
variant: "default" | "gradient";
|
|
44
43
|
leadingIcon: string | VNode;
|
|
44
|
+
glowIntensity: "subtle" | "soft" | "medium" | "strong";
|
|
45
45
|
debounceMs: number;
|
|
46
46
|
autoSearch: boolean;
|
|
47
47
|
initialValue: string;
|
|
48
48
|
shouldClear: boolean;
|
|
49
|
-
glowIntensity: "subtle" | "soft" | "medium" | "strong";
|
|
50
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
50
|
export default _default;
|
|
@@ -52,8 +52,8 @@ export interface SectionProps {
|
|
|
52
52
|
noPadding?: boolean;
|
|
53
53
|
}
|
|
54
54
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionProps> & Readonly<{}>, {
|
|
55
|
-
variant: SectionVariant;
|
|
56
55
|
size: SectionSize;
|
|
56
|
+
variant: SectionVariant;
|
|
57
57
|
noPadding: boolean;
|
|
58
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
59
59
|
title?: (props: {}) => any;
|
|
@@ -19,9 +19,9 @@ export interface SectionCardProps {
|
|
|
19
19
|
bodyClassName?: string;
|
|
20
20
|
}
|
|
21
21
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SectionCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionCardProps> & Readonly<{}>, {
|
|
22
|
-
variant: SectionCardVariant;
|
|
23
|
-
size: SectionCardSize;
|
|
24
22
|
blur: boolean;
|
|
23
|
+
size: SectionCardSize;
|
|
24
|
+
variant: SectionCardVariant;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
26
26
|
actions?: (props: {}) => any;
|
|
27
27
|
} & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|