@ui-organized/vue 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +135 -2
- package/dist/components/Accordion/Accordion.types.d.ts +28 -0
- package/dist/components/Accordion/Accordion.vue.d.ts +13 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Alert/Alert.types.d.ts +23 -0
- package/dist/components/Alert/Alert.vue.d.ts +16 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +18 -0
- package/dist/components/AlertDialog/AlertDialog.vue.d.ts +24 -0
- package/dist/components/AlertDialog/AlertDialogCancel.vue.d.ts +12 -0
- package/dist/components/AlertDialog/AlertDialogConfirm.vue.d.ts +15 -0
- package/dist/components/AlertDialog/AlertDialogContent.vue.d.ts +16 -0
- package/dist/components/AlertDialog/AlertDialogDescription.vue.d.ts +12 -0
- package/dist/components/AlertDialog/AlertDialogFooter.vue.d.ts +12 -0
- package/dist/components/AlertDialog/AlertDialogTitle.vue.d.ts +12 -0
- package/dist/components/AlertDialog/AlertDialogTrigger.vue.d.ts +15 -0
- package/dist/components/AlertDialog/index.d.ts +9 -0
- package/dist/components/AngleSlider/AngleSlider.types.d.ts +35 -0
- package/dist/components/AngleSlider/AngleSlider.vue.d.ts +16 -0
- package/dist/components/AngleSlider/AngleSliderValue.vue.d.ts +2 -0
- package/dist/components/AngleSlider/index.d.ts +3 -0
- package/dist/components/Avatar/Avatar.types.d.ts +12 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +16 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +20 -0
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +14 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Button/Button.types.d.ts +33 -0
- package/dist/components/Button/Button.vue.d.ts +17 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Calendar/Calendar.types.d.ts +38 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +11 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Card/Card.types.d.ts +6 -0
- package/dist/components/Card/Card.vue.d.ts +14 -0
- package/dist/components/Card/CardBody.vue.d.ts +12 -0
- package/dist/components/Card/CardFooter.vue.d.ts +12 -0
- package/dist/components/Card/CardHeader.vue.d.ts +12 -0
- package/dist/components/Card/index.d.ts +5 -0
- package/dist/components/Carousel/Carousel.types.d.ts +48 -0
- package/dist/components/Carousel/Carousel.vue.d.ts +20 -0
- package/dist/components/Carousel/index.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +27 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +15 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Chip/Chip.types.d.ts +30 -0
- package/dist/components/Chip/Chip.vue.d.ts +23 -0
- package/dist/components/Chip/ChipSegment.vue.d.ts +15 -0
- package/dist/components/Chip/chipContext.d.ts +3 -0
- package/dist/components/Chip/index.d.ts +4 -0
- package/dist/components/Clipboard/Clipboard.types.d.ts +25 -0
- package/dist/components/Clipboard/Clipboard.vue.d.ts +13 -0
- package/dist/components/Clipboard/index.d.ts +3 -0
- package/dist/components/Collapsible/Collapsible.types.d.ts +27 -0
- package/dist/components/Collapsible/Collapsible.vue.d.ts +24 -0
- package/dist/components/Collapsible/CollapsibleContent.vue.d.ts +15 -0
- package/dist/components/Collapsible/CollapsibleTrigger.vue.d.ts +13 -0
- package/dist/components/Collapsible/index.d.ts +4 -0
- package/dist/components/ColorPicker/ChannelField.vue.d.ts +14 -0
- package/dist/components/ColorPicker/ColorPicker.types.d.ts +60 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +27 -0
- package/dist/components/ColorPicker/FormatInputs.vue.d.ts +17 -0
- package/dist/components/ColorPicker/channelFields.d.ts +35 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/Combobox/Combobox.types.d.ts +45 -0
- package/dist/components/Combobox/Combobox.vue.d.ts +18 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.types.d.ts +38 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +25 -0
- package/dist/components/ContextMenu/ContextMenuCheckboxItem.vue.d.ts +22 -0
- package/dist/components/ContextMenu/ContextMenuContent.vue.d.ts +15 -0
- package/dist/components/ContextMenu/ContextMenuGroup.vue.d.ts +12 -0
- package/dist/components/ContextMenu/ContextMenuGroupLabel.vue.d.ts +12 -0
- package/dist/components/ContextMenu/ContextMenuItem.vue.d.ts +19 -0
- package/dist/components/ContextMenu/ContextMenuRadioGroup.vue.d.ts +19 -0
- package/dist/components/ContextMenu/ContextMenuRadioItem.vue.d.ts +15 -0
- package/dist/components/ContextMenu/ContextMenuSeparator.vue.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenuTrigger.vue.d.ts +12 -0
- package/dist/components/ContextMenu/index.d.ts +11 -0
- package/dist/components/DateField/DateFieldBase.types.d.ts +44 -0
- package/dist/components/DateField/DateFieldBase.vue.d.ts +12 -0
- package/dist/components/DateField/DatePopover.types.d.ts +10 -0
- package/dist/components/DateField/DatePopover.vue.d.ts +14 -0
- package/dist/components/DateField/datePopoverPositioning.d.ts +26 -0
- package/dist/components/DateField/openDatePicker.d.ts +8 -0
- package/dist/components/DateField/setNativeInputValue.d.ts +13 -0
- package/dist/components/DateField/useCoarsePointer.d.ts +14 -0
- package/dist/components/DateInput/DateInput.types.d.ts +41 -0
- package/dist/components/DateInput/DateInput.vue.d.ts +10 -0
- package/dist/components/DateInput/index.d.ts +3 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +54 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +21 -0
- package/dist/components/DatePicker/index.d.ts +23 -0
- package/dist/components/DateRangeInput/DateRangeInput.types.d.ts +53 -0
- package/dist/components/DateRangeInput/DateRangeInput.vue.d.ts +30 -0
- package/dist/components/DateRangeInput/index.d.ts +3 -0
- package/dist/components/DateTimeInput/DateTimeInput.types.d.ts +41 -0
- package/dist/components/DateTimeInput/DateTimeInput.vue.d.ts +10 -0
- package/dist/components/DateTimeInput/index.d.ts +3 -0
- package/dist/components/Dialog/Dialog.types.d.ts +16 -0
- package/dist/components/Dialog/Dialog.vue.d.ts +24 -0
- package/dist/components/Dialog/DialogClose.vue.d.ts +15 -0
- package/dist/components/Dialog/DialogContent.vue.d.ts +15 -0
- package/dist/components/Dialog/DialogDescription.vue.d.ts +12 -0
- package/dist/components/Dialog/DialogFooter.vue.d.ts +12 -0
- package/dist/components/Dialog/DialogTitle.vue.d.ts +12 -0
- package/dist/components/Dialog/DialogTrigger.vue.d.ts +15 -0
- package/dist/components/Dialog/index.d.ts +8 -0
- package/dist/components/Divider/Divider.types.d.ts +6 -0
- package/dist/components/Divider/Divider.vue.d.ts +7 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Editable/Editable.types.d.ts +43 -0
- package/dist/components/Editable/Editable.vue.d.ts +18 -0
- package/dist/components/Editable/index.d.ts +3 -0
- package/dist/components/Field/Field.types.d.ts +16 -0
- package/dist/components/Field/Field.vue.d.ts +19 -0
- package/dist/components/Field/FieldControl.vue.d.ts +2 -0
- package/dist/components/Field/FieldDescription.vue.d.ts +12 -0
- package/dist/components/Field/FieldErrorMessage.vue.d.ts +13 -0
- package/dist/components/Field/FieldLabel.vue.d.ts +12 -0
- package/dist/components/Field/Fieldset.vue.d.ts +12 -0
- package/dist/components/Field/FieldsetLegend.vue.d.ts +12 -0
- package/dist/components/Field/index.d.ts +9 -0
- package/dist/components/FieldError/FieldError.types.d.ts +10 -0
- package/dist/components/FieldError/FieldError.vue.d.ts +14 -0
- package/dist/components/FieldError/index.d.ts +2 -0
- package/dist/components/FileUpload/FileUpload.types.d.ts +54 -0
- package/dist/components/FileUpload/FileUpload.vue.d.ts +28 -0
- package/dist/components/FileUpload/FileUploadLabel.vue.d.ts +12 -0
- package/dist/components/FileUpload/FileUploadTrigger.vue.d.ts +7 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FloatingPanel/FloatingPanel.types.d.ts +39 -0
- package/dist/components/FloatingPanel/FloatingPanel.vue.d.ts +25 -0
- package/dist/components/FloatingPanel/FloatingPanelBody.vue.d.ts +12 -0
- package/dist/components/FloatingPanel/FloatingPanelClose.vue.d.ts +12 -0
- package/dist/components/FloatingPanel/FloatingPanelContent.vue.d.ts +13 -0
- package/dist/components/FloatingPanel/FloatingPanelHeader.vue.d.ts +12 -0
- package/dist/components/FloatingPanel/FloatingPanelTitle.vue.d.ts +12 -0
- package/dist/components/FloatingPanel/FloatingPanelTrigger.vue.d.ts +12 -0
- package/dist/components/FloatingPanel/index.d.ts +9 -0
- package/dist/components/HoverCard/HoverCard.types.d.ts +24 -0
- package/dist/components/HoverCard/HoverCard.vue.d.ts +23 -0
- package/dist/components/HoverCard/HoverCardContent.vue.d.ts +17 -0
- package/dist/components/HoverCard/HoverCardTrigger.vue.d.ts +15 -0
- package/dist/components/HoverCard/index.d.ts +4 -0
- package/dist/components/Icon/Icon.types.d.ts +29 -0
- package/dist/components/Icon/Icon.vue.d.ts +6 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/warnMissingIconSet.d.ts +12 -0
- package/dist/components/ImageCropper/ImageCropper.types.d.ts +36 -0
- package/dist/components/ImageCropper/ImageCropper.vue.d.ts +28 -0
- package/dist/components/ImageCropper/index.d.ts +3 -0
- package/dist/components/Input/Input.types.d.ts +20 -0
- package/dist/components/Input/Input.vue.d.ts +11 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Listbox/Listbox.types.d.ts +39 -0
- package/dist/components/Listbox/Listbox.vue.d.ts +14 -0
- package/dist/components/Listbox/ListboxOptions.vue.d.ts +7 -0
- package/dist/components/Listbox/index.d.ts +3 -0
- package/dist/components/Marquee/Marquee.types.d.ts +37 -0
- package/dist/components/Marquee/Marquee.vue.d.ts +18 -0
- package/dist/components/Marquee/index.d.ts +3 -0
- package/dist/components/Menu/Menu.types.d.ts +46 -0
- package/dist/components/Menu/Menu.vue.d.ts +25 -0
- package/dist/components/Menu/MenuCheckboxItem.vue.d.ts +22 -0
- package/dist/components/Menu/MenuContent.vue.d.ts +17 -0
- package/dist/components/Menu/MenuGroup.vue.d.ts +12 -0
- package/dist/components/Menu/MenuGroupLabel.vue.d.ts +12 -0
- package/dist/components/Menu/MenuItem.vue.d.ts +19 -0
- package/dist/components/Menu/MenuRadioGroup.vue.d.ts +19 -0
- package/dist/components/Menu/MenuRadioItem.vue.d.ts +15 -0
- package/dist/components/Menu/MenuSeparator.vue.d.ts +2 -0
- package/dist/components/Menu/MenuTrigger.vue.d.ts +15 -0
- package/dist/components/Menu/index.d.ts +11 -0
- package/dist/components/Menubar/Menubar.types.d.ts +4 -0
- package/dist/components/Menubar/Menubar.vue.d.ts +16 -0
- package/dist/components/Menubar/index.d.ts +3 -0
- package/dist/components/Menubar/menubarContext.d.ts +2 -0
- package/dist/components/Meter/Meter.types.d.ts +36 -0
- package/dist/components/Meter/Meter.vue.d.ts +8 -0
- package/dist/components/Meter/index.d.ts +3 -0
- package/dist/components/Navigation/NavItem.vue.d.ts +25 -0
- package/dist/components/Navigation/NavProvider.vue.d.ts +15 -0
- package/dist/components/Navigation/NavSubItem.vue.d.ts +8 -0
- package/dist/components/Navigation/Navigation.types.d.ts +60 -0
- package/dist/components/Navigation/Sidebar.vue.d.ts +38 -0
- package/dist/components/Navigation/index.d.ts +8 -0
- package/dist/components/Navigation/navContext.d.ts +19 -0
- package/dist/components/NumberField/NumberField.types.d.ts +44 -0
- package/dist/components/NumberField/NumberField.vue.d.ts +15 -0
- package/dist/components/NumberField/index.d.ts +3 -0
- package/dist/components/Pagination/Pagination.types.d.ts +12 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +14 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +22 -0
- package/dist/components/PasswordInput/PasswordInput.vue.d.ts +14 -0
- package/dist/components/PasswordInput/index.d.ts +3 -0
- package/dist/components/PinInput/PinInput.types.d.ts +50 -0
- package/dist/components/PinInput/PinInput.vue.d.ts +21 -0
- package/dist/components/PinInput/index.d.ts +3 -0
- package/dist/components/Popover/Popover.types.d.ts +22 -0
- package/dist/components/Popover/Popover.vue.d.ts +24 -0
- package/dist/components/Popover/PopoverClose.vue.d.ts +15 -0
- package/dist/components/Popover/PopoverContent.vue.d.ts +17 -0
- package/dist/components/Popover/PopoverDescription.vue.d.ts +12 -0
- package/dist/components/Popover/PopoverTitle.vue.d.ts +12 -0
- package/dist/components/Popover/PopoverTrigger.vue.d.ts +15 -0
- package/dist/components/Popover/index.d.ts +7 -0
- package/dist/components/Popover/positioning.d.ts +41 -0
- package/dist/components/Progress/Progress.types.d.ts +26 -0
- package/dist/components/Progress/Progress.vue.d.ts +9 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/QRCode/QRCode.types.d.ts +27 -0
- package/dist/components/QRCode/QRCode.vue.d.ts +20 -0
- package/dist/components/QRCode/index.d.ts +3 -0
- package/dist/components/Radio/Radio.types.d.ts +31 -0
- package/dist/components/Radio/Radio.vue.d.ts +13 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Range/Range.types.d.ts +63 -0
- package/dist/components/Range/Range.vue.d.ts +17 -0
- package/dist/components/Range/index.d.ts +3 -0
- package/dist/components/RatingGroup/RatingGroup.types.d.ts +38 -0
- package/dist/components/RatingGroup/RatingGroup.vue.d.ts +17 -0
- package/dist/components/RatingGroup/index.d.ts +3 -0
- package/dist/components/ScrollArea/ScrollArea.types.d.ts +7 -0
- package/dist/components/ScrollArea/ScrollArea.vue.d.ts +16 -0
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.types.d.ts +27 -0
- package/dist/components/SearchInput/SearchInput.vue.d.ts +16 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +41 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +13 -0
- package/dist/components/SegmentedControl/index.d.ts +3 -0
- package/dist/components/Select/Select.types.d.ts +44 -0
- package/dist/components/Select/Select.vue.d.ts +17 -0
- package/dist/components/Select/SelectTrigger.vue.d.ts +15 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Sheet/Sheet.types.d.ts +19 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +25 -0
- package/dist/components/Sheet/SheetClose.vue.d.ts +15 -0
- package/dist/components/Sheet/SheetContent.vue.d.ts +15 -0
- package/dist/components/Sheet/SheetDescription.vue.d.ts +12 -0
- package/dist/components/Sheet/SheetFooter.vue.d.ts +12 -0
- package/dist/components/Sheet/SheetTitle.vue.d.ts +12 -0
- package/dist/components/Sheet/SheetTrigger.vue.d.ts +15 -0
- package/dist/components/Sheet/index.d.ts +9 -0
- package/dist/components/SignaturePad/SignaturePad.types.d.ts +43 -0
- package/dist/components/SignaturePad/SignaturePad.vue.d.ts +21 -0
- package/dist/components/SignaturePad/index.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +12 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +8 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Splitter/Splitter.types.d.ts +33 -0
- package/dist/components/Splitter/Splitter.vue.d.ts +14 -0
- package/dist/components/Splitter/index.d.ts +3 -0
- package/dist/components/Steps/Steps.types.d.ts +30 -0
- package/dist/components/Steps/Steps.vue.d.ts +18 -0
- package/dist/components/Steps/index.d.ts +3 -0
- package/dist/components/Switch/Switch.types.d.ts +25 -0
- package/dist/components/Switch/Switch.vue.d.ts +15 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.types.d.ts +23 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +13 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tag/Tag.types.d.ts +18 -0
- package/dist/components/Tag/Tag.vue.d.ts +17 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/TagsInput/TagsInput.types.d.ts +41 -0
- package/dist/components/TagsInput/TagsInput.vue.d.ts +16 -0
- package/dist/components/TagsInput/index.d.ts +3 -0
- package/dist/components/TextArea/TextArea.types.d.ts +28 -0
- package/dist/components/TextArea/TextArea.vue.d.ts +13 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/Timer/Timer.types.d.ts +27 -0
- package/dist/components/Timer/Timer.vue.d.ts +16 -0
- package/dist/components/Timer/index.d.ts +3 -0
- package/dist/components/Toast/Toast.types.d.ts +16 -0
- package/dist/components/Toast/ToastProvider.vue.d.ts +13 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/toaster.d.ts +17 -0
- package/dist/components/Toggle/Toggle.types.d.ts +34 -0
- package/dist/components/Toggle/Toggle.vue.d.ts +24 -0
- package/dist/components/Toggle/ToggleGroup.vue.d.ts +23 -0
- package/dist/components/Toggle/index.d.ts +4 -0
- package/dist/components/Toolbar/Toolbar.types.d.ts +4 -0
- package/dist/components/Toolbar/Toolbar.vue.d.ts +16 -0
- package/dist/components/Toolbar/ToolbarGroup.vue.d.ts +12 -0
- package/dist/components/Toolbar/index.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +31 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +29 -0
- package/dist/components/Tooltip/TooltipProvider.vue.d.ts +13 -0
- package/dist/components/Tooltip/delays.d.ts +15 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tour/Tour.types.d.ts +73 -0
- package/dist/components/Tour/Tour.vue.d.ts +13 -0
- package/dist/components/Tour/index.d.ts +3 -0
- package/dist/components/TreeView/TreeNode.vue.d.ts +9 -0
- package/dist/components/TreeView/TreeView.types.d.ts +36 -0
- package/dist/components/TreeView/TreeView.vue.d.ts +17 -0
- package/dist/components/TreeView/index.d.ts +3 -0
- package/dist/context/IconProvider.types.d.ts +16 -0
- package/dist/context/IconProvider.vue.d.ts +16 -0
- package/dist/context/iconContext.d.ts +20 -0
- package/dist/icons/entry-heroicons.d.ts +30 -0
- package/dist/icons/entry-heroicons.js +127 -0
- package/dist/icons/entry-lucide.d.ts +40 -0
- package/dist/icons/entry-lucide.js +62 -0
- package/dist/icons/entry-tabler.d.ts +30 -0
- package/dist/icons/entry-tabler.js +86 -0
- package/dist/icons/glyph.d.ts +17 -0
- package/dist/icons/heroicons.d.ts +11 -0
- package/dist/icons/lucide.d.ts +25 -0
- package/dist/icons/registry.d.ts +22 -0
- package/dist/icons/tabler.d.ts +16 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.js +7814 -0
- package/dist/props.d.ts +50 -0
- package/dist/registry-DyLcm8o3.js +10 -0
- package/dist/styles.css +6045 -0
- package/dist/types.d.ts +10 -0
- package/package.json +103 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
/** Unique value identifier for this tab. */
|
|
4
|
+
value: string | number;
|
|
5
|
+
/** Tab label. A string, or a component for anything richer. */
|
|
6
|
+
label: string | Component;
|
|
7
|
+
/** Panel content for this tab. */
|
|
8
|
+
content: string | Component;
|
|
9
|
+
/** Whether this tab is disabled. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface TabsProps {
|
|
13
|
+
/** Tab definitions including labels and panel content. */
|
|
14
|
+
tabs: TabItem[];
|
|
15
|
+
/** Active tab value. Use `v-model` for two-way binding. */
|
|
16
|
+
modelValue?: string | number;
|
|
17
|
+
/** Initial active tab value for uncontrolled usage. Defaults to first tab. */
|
|
18
|
+
defaultValue?: string | number;
|
|
19
|
+
/** Whether tabs render horizontally or vertically. Defaults to 'horizontal'. */
|
|
20
|
+
orientation?: "horizontal" | "vertical";
|
|
21
|
+
/** Tab sizing. 'default' uses body-large type, 'small' uses body-medium. */
|
|
22
|
+
size?: "default" | "small";
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TabsProps } from "./Tabs.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Tabs/Tabs.css";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<TabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: string) => any;
|
|
5
|
+
valueChange: (value: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
onValueChange?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
size: "default" | "small";
|
|
11
|
+
orientation: "horizontal" | "vertical";
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IconName } from "../Icon/Icon.types.js";
|
|
2
|
+
import type { ControlSize } from "@ui-organized/core";
|
|
3
|
+
import type { IconComponent } from "../../icons/registry.js";
|
|
4
|
+
export interface TagProps {
|
|
5
|
+
/** Status color variant. */
|
|
6
|
+
variant?: "success" | "info" | "info-secondary" | "caution" | "error";
|
|
7
|
+
/** Size variant. Defaults to 'md'. */
|
|
8
|
+
size?: ControlSize;
|
|
9
|
+
/**
|
|
10
|
+
* When true (default), renders a solid filled tag with high-contrast text.
|
|
11
|
+
* When false, renders a subdued tinted-background tag with colored text.
|
|
12
|
+
*/
|
|
13
|
+
emphasized?: boolean;
|
|
14
|
+
/** Optional icon — rendered at 16px across every tag size. */
|
|
15
|
+
icon?: IconName | IconComponent;
|
|
16
|
+
/** Which side of the label the icon sits on. Defaults to 'left'. */
|
|
17
|
+
iconPosition?: "left" | "right";
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TagProps } from "./Tag.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Tag/Tag.css";
|
|
3
|
+
declare var __VLS_4: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_4) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<TagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{}>, {
|
|
8
|
+
iconPosition: "left" | "right";
|
|
9
|
+
emphasized: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface TagsInputProps {
|
|
2
|
+
/** Accessible label text rendered above the control. */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Helper text rendered below the control. Hidden when an error is shown. */
|
|
5
|
+
helperText?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Error state. Pass a string to show an error message.
|
|
8
|
+
* Pass `true` to mark the field invalid without a message.
|
|
9
|
+
*/
|
|
10
|
+
error?: string | boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Controlled list of tags. Use `v-model` for two-way binding.
|
|
13
|
+
*
|
|
14
|
+
* Spelled `modelValue` rather than React's `value` — Ark Vue names the
|
|
15
|
+
* tags-input machine's controlled value for `v-model`, and this package
|
|
16
|
+
* follows Ark.
|
|
17
|
+
*/
|
|
18
|
+
modelValue?: string[];
|
|
19
|
+
/** Initial tags for the uncontrolled case. */
|
|
20
|
+
defaultValue?: string[];
|
|
21
|
+
/** Placeholder shown in the entry field. */
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
/** Size variant. Defaults to 'md'. */
|
|
24
|
+
size?: "sm" | "md" | "lg";
|
|
25
|
+
/** Maximum number of tags. Further entries are rejected once reached. */
|
|
26
|
+
max?: number;
|
|
27
|
+
/** Allows a double-click to edit an existing tag in place. Defaults to true. */
|
|
28
|
+
editable?: boolean;
|
|
29
|
+
/** Splits pasted or typed text into several tags. Defaults to ','. */
|
|
30
|
+
delimiter?: string;
|
|
31
|
+
/** Creates tags from pasted text. Defaults to false. */
|
|
32
|
+
addOnPaste?: boolean;
|
|
33
|
+
/** Marks the field required and shows the required indicator. */
|
|
34
|
+
required?: boolean;
|
|
35
|
+
/** Disables the control. */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Makes the tags read-only while keeping them focusable. */
|
|
38
|
+
readOnly?: boolean;
|
|
39
|
+
/** Form field name for the hidden inputs. */
|
|
40
|
+
name?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TagsInputProps } from "./TagsInput.types.js";
|
|
2
|
+
import "@ui-organized/core/components/TagsInput/TagsInput.css";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<TagsInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: string[]) => any;
|
|
5
|
+
valueChange: (value: string[]) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<TagsInputProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
8
|
+
onValueChange?: ((value: string[]) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
required: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
readOnly: boolean;
|
|
13
|
+
editable: boolean;
|
|
14
|
+
addOnPaste: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ControlSize } from "@ui-organized/core";
|
|
2
|
+
export interface TextAreaProps {
|
|
3
|
+
/** The control's value. Use `v-model` for two-way binding. */
|
|
4
|
+
modelValue?: string | number;
|
|
5
|
+
/** Accessible label text rendered above the control. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Helper text rendered below the control. Hidden when an error is shown.
|
|
9
|
+
* Commonly used as a character counter (e.g. "Characters 0/500").
|
|
10
|
+
*/
|
|
11
|
+
helperText?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Error state. Pass a string to show an error message.
|
|
14
|
+
* Pass `true` to mark the field invalid without a message.
|
|
15
|
+
*/
|
|
16
|
+
error?: string | boolean;
|
|
17
|
+
/** Size variant. Defaults to 'md'. */
|
|
18
|
+
size?: ControlSize;
|
|
19
|
+
/**
|
|
20
|
+
* Native resize affordance. Defaults to 'both' (horizontal resizing is capped
|
|
21
|
+
* at the field's container width). Use 'vertical', 'horizontal', or 'none'.
|
|
22
|
+
*/
|
|
23
|
+
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
24
|
+
/** Marks the control required. */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** Disables the control. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TextAreaProps } from "./TextArea.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Input/Input.css";
|
|
3
|
+
import "@ui-organized/core/components/TextArea/TextArea.css";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<TextAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<TextAreaProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
required: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
resize: "none" | "vertical" | "horizontal" | "both";
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ControlSize } from "@ui-organized/core";
|
|
2
|
+
export type TimerPart = "days" | "hours" | "minutes" | "seconds" | "milliseconds";
|
|
3
|
+
export interface TimerProps {
|
|
4
|
+
/**
|
|
5
|
+
* Which units to display, in order. Defaults to
|
|
6
|
+
* `["hours", "minutes", "seconds"]`.
|
|
7
|
+
*/
|
|
8
|
+
parts?: TimerPart[];
|
|
9
|
+
/** Counts down to `targetMs` instead of up from it. Defaults to false. */
|
|
10
|
+
countdown?: boolean;
|
|
11
|
+
/** Where the timer starts, in milliseconds. */
|
|
12
|
+
startMs?: number;
|
|
13
|
+
/** Where the timer stops, in milliseconds. */
|
|
14
|
+
targetMs?: number;
|
|
15
|
+
/** Starts as soon as it mounts. Defaults to false. */
|
|
16
|
+
autoStart?: boolean;
|
|
17
|
+
/** Milliseconds between ticks. Lower this to show milliseconds. Defaults to 1000. */
|
|
18
|
+
interval?: number;
|
|
19
|
+
/** Renders start / pause / reset buttons. Defaults to false. */
|
|
20
|
+
showControls?: boolean;
|
|
21
|
+
/** Size variant. Defaults to 'md'. */
|
|
22
|
+
size?: ControlSize;
|
|
23
|
+
/** Visual treatment. `boxed` puts each unit on its own tile. Defaults to 'default'. */
|
|
24
|
+
variant?: "default" | "boxed";
|
|
25
|
+
/** Shows the unit name under each value. Defaults to false. */
|
|
26
|
+
showLabels?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TimerProps } from "./Timer.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Timer/Timer.css";
|
|
3
|
+
import type { TimerPart } from "./Timer.types.js";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<TimerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
complete: () => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<TimerProps> & Readonly<{
|
|
7
|
+
onComplete?: (() => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
size: import("@ui-organized/core").ControlSize;
|
|
10
|
+
showControls: boolean;
|
|
11
|
+
parts: TimerPart[];
|
|
12
|
+
countdown: boolean;
|
|
13
|
+
autoStart: boolean;
|
|
14
|
+
showLabels: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Semantic status driving a toast's accent color and icon. Set via `add({ type })`. */
|
|
2
|
+
export type ToastStatus = "info" | "success" | "warning" | "error";
|
|
3
|
+
/** Options accepted by `useToastManager().add(...)`. */
|
|
4
|
+
export interface ToastOptions {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Status (`info`/`success`/`warning`/`error`) — drives the accent + icon. */
|
|
8
|
+
type?: string;
|
|
9
|
+
/** Auto-dismiss after this many ms. */
|
|
10
|
+
duration?: number;
|
|
11
|
+
/** An inline action button (e.g. "Undo"). */
|
|
12
|
+
actionProps?: {
|
|
13
|
+
children?: string;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "@ui-organized/core/components/Toast/Toast.css";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SystemGlyph } from "@ui-organized/core";
|
|
2
|
+
import type { ToastOptions, ToastStatus } from "./Toast.types.js";
|
|
3
|
+
export declare const toaster: import("@ark-ui/vue").CreateToasterReturn<import("vue").VNodeChild>;
|
|
4
|
+
export declare const STATUS_ICON: Record<ToastStatus, SystemGlyph>;
|
|
5
|
+
/** Map a toast's free-form `type` to one of our four statuses. */
|
|
6
|
+
export declare function resolveStatus(type: string | undefined): ToastStatus;
|
|
7
|
+
/**
|
|
8
|
+
* Returns `{ add, close, update }` for imperative toasts.
|
|
9
|
+
*
|
|
10
|
+
* Named `useToastManager` to match the other libraries, though it is not a
|
|
11
|
+
* composable and can be called anywhere — there is no state behind it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useToastManager(): {
|
|
14
|
+
add(options: ToastOptions): string;
|
|
15
|
+
close(id: string): void;
|
|
16
|
+
update(id: string, options: ToastOptions): void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IconComponent, IconName } from "../Icon/Icon.types.js";
|
|
2
|
+
import type { ControlSize } from "@ui-organized/core";
|
|
3
|
+
export interface ToggleProps {
|
|
4
|
+
/** Whether the toggle is on (standalone usage). Use `v-model:pressed`. */
|
|
5
|
+
pressed?: boolean;
|
|
6
|
+
/** Initial pressed state for uncontrolled standalone usage. */
|
|
7
|
+
defaultPressed?: boolean;
|
|
8
|
+
/** Identifies this toggle within a `<ToggleGroup>`; turns it into a group item. */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** Whether the toggle should ignore user interaction. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Size variant. Defaults to 'md'. */
|
|
13
|
+
size?: ControlSize;
|
|
14
|
+
/** Optional leading icon. */
|
|
15
|
+
icon?: IconName | IconComponent;
|
|
16
|
+
}
|
|
17
|
+
export interface ToggleGroupProps {
|
|
18
|
+
/**
|
|
19
|
+
* Pressed values. Use `v-model` for two-way binding.
|
|
20
|
+
*
|
|
21
|
+
* Spelled `modelValue` rather than React's `value` because Ark Vue names the
|
|
22
|
+
* toggle-group machine's controlled value for `v-model`; this package follows
|
|
23
|
+
* Ark, the way Listbox, Tabs and RadioGroup already do.
|
|
24
|
+
*/
|
|
25
|
+
modelValue?: string[];
|
|
26
|
+
/** Initial pressed values for uncontrolled usage. */
|
|
27
|
+
defaultValue?: string[];
|
|
28
|
+
/** Allow more than one toggle pressed at once. Defaults to single-select. */
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
/** Disable the whole group. */
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Layout orientation. Defaults to 'horizontal'. */
|
|
33
|
+
orientation?: "horizontal" | "vertical";
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ToggleProps } from "./Toggle.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Toggle/Toggle.css";
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: () => unknown;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<ToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:pressed": (pressed: boolean) => any;
|
|
8
|
+
pressedChange: (pressed: boolean) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
10
|
+
"onUpdate:pressed"?: ((pressed: boolean) => any) | undefined;
|
|
11
|
+
onPressedChange?: ((pressed: boolean) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: import("@ui-organized/core").ControlSize;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
pressed: boolean;
|
|
16
|
+
defaultPressed: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ToggleGroupProps } from "./Toggle.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Toggle/Toggle.css";
|
|
3
|
+
declare var __VLS_10: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<ToggleGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string[]) => any;
|
|
9
|
+
valueChange: (value: string[]) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<ToggleGroupProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
12
|
+
onValueChange?: ((value: string[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
multiple: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ToolbarProps } from "./Toolbar.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Toolbar/Toolbar.css";
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<ToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarProps> & Readonly<{}>, {
|
|
8
|
+
orientation: "horizontal" | "vertical";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
export type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
3
|
+
export type TooltipAlign = "start" | "center" | "end";
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
/** Content shown in the tooltip bubble. A string, or a component. */
|
|
6
|
+
content: string | Component;
|
|
7
|
+
/** Side of the trigger to position against. Defaults to 'top'. */
|
|
8
|
+
side?: TooltipSide;
|
|
9
|
+
/** Alignment along the chosen side. Defaults to 'center'. */
|
|
10
|
+
align?: TooltipAlign;
|
|
11
|
+
/** Gap between the trigger and bubble, in px. Defaults to 6. */
|
|
12
|
+
sideOffset?: number;
|
|
13
|
+
/** Delay before opening, in ms. Falls back to a wrapping TooltipProvider. */
|
|
14
|
+
delay?: number;
|
|
15
|
+
/** Delay before closing, in ms. Falls back to a wrapping TooltipProvider. */
|
|
16
|
+
closeDelay?: number;
|
|
17
|
+
/** When true, renders the trigger without a tooltip. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Open state. Use `v-model:open` for two-way binding. */
|
|
20
|
+
open?: boolean;
|
|
21
|
+
/** Initial open state for uncontrolled usage. */
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
/** DOM element to teleport into. Defaults to `body`. */
|
|
24
|
+
container?: HTMLElement | null;
|
|
25
|
+
}
|
|
26
|
+
export interface TooltipProviderProps {
|
|
27
|
+
/** Default delay before opening, in ms, for descendant tooltips. */
|
|
28
|
+
delay?: number;
|
|
29
|
+
/** Default delay before closing, in ms, for descendant tooltips. */
|
|
30
|
+
closeDelay?: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TooltipProps } from "./Tooltip.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Tooltip/Tooltip.css";
|
|
3
|
+
declare var __VLS_1: {}, __VLS_16: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_16) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
openChange: (open: boolean) => any;
|
|
11
|
+
"update:open": (open: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
13
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
14
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
open: boolean;
|
|
18
|
+
defaultOpen: boolean;
|
|
19
|
+
side: import("./Tooltip.types.js").TooltipSide;
|
|
20
|
+
align: import("./Tooltip.types.js").TooltipAlign;
|
|
21
|
+
sideOffset: number;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TooltipProviderProps } from "./Tooltip.types.js";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared open/close delays for descendant tooltips.
|
|
3
|
+
*
|
|
4
|
+
* Ark UI has no app-level delay provider — delays are per-tooltip Root props —
|
|
5
|
+
* so this facade supplies the contract itself, exactly as the React and Svelte
|
|
6
|
+
* packages do. Provided as a ref so a provider driven by reactive props keeps
|
|
7
|
+
* its descendants current.
|
|
8
|
+
*/
|
|
9
|
+
import { type Ref } from "vue";
|
|
10
|
+
export interface TooltipDelays {
|
|
11
|
+
delay?: number;
|
|
12
|
+
closeDelay?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function provideTooltipDelays(delays: Ref<TooltipDelays>): void;
|
|
15
|
+
export declare function useTooltipDelays(): Ref<TooltipDelays> | undefined;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface TourStepAction {
|
|
2
|
+
/** Button text. */
|
|
3
|
+
label: string;
|
|
4
|
+
/** What the button does. Defaults to 'next'. */
|
|
5
|
+
action?: "next" | "prev" | "dismiss" | "skip";
|
|
6
|
+
}
|
|
7
|
+
export interface TourStep {
|
|
8
|
+
/** Unique id across the tour. This is what `stepId` names. */
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Step heading.
|
|
12
|
+
*
|
|
13
|
+
* A plain string rather than a component: the machine hands this straight to
|
|
14
|
+
* Ark's Title part as its content, and anything richer would need a slot the
|
|
15
|
+
* part does not offer per step.
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/** Step body copy. A plain string, for the same reason as `title`. */
|
|
19
|
+
description: string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the element to highlight. Omit it for a centred step with no
|
|
22
|
+
* target, which the machine treats as a modal `dialog` step.
|
|
23
|
+
*/
|
|
24
|
+
target?: () => HTMLElement | null;
|
|
25
|
+
/**
|
|
26
|
+
* How the step is presented. `tooltip` anchors to the target, `dialog`
|
|
27
|
+
* centres, `floating` sits unanchored, `wait` pauses for an app event.
|
|
28
|
+
* Inferred from `target` when omitted.
|
|
29
|
+
*/
|
|
30
|
+
type?: "tooltip" | "dialog" | "wait" | "floating";
|
|
31
|
+
/** Where the card sits relative to its target. */
|
|
32
|
+
placement?: "top" | "bottom" | "left" | "right" | "center";
|
|
33
|
+
/** Buttons in the card's action row. Defaults to Back and Next. */
|
|
34
|
+
actions?: TourStepAction[];
|
|
35
|
+
/** Dims the rest of the page behind this step. Defaults to true. */
|
|
36
|
+
backdrop?: boolean;
|
|
37
|
+
/** Points an arrow at the target. Defaults to true for anchored steps. */
|
|
38
|
+
arrow?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface TourProps {
|
|
41
|
+
/** The steps, in order. */
|
|
42
|
+
steps: TourStep[];
|
|
43
|
+
/**
|
|
44
|
+
* The step to show, by id. Set it to a step's id to open the tour there, and
|
|
45
|
+
* to another id to jump.
|
|
46
|
+
*
|
|
47
|
+
* Opening and navigating are controlled; **closing is not**. The machine
|
|
48
|
+
* exposes no programmatic close, so setting this back to `null` does not shut
|
|
49
|
+
* the tour — people close it with the card's close button, Escape, or a
|
|
50
|
+
* `dismiss` action, and that arrives as `stepChange` with `null`. Keep this
|
|
51
|
+
* prop wired to that event and the two stay in step.
|
|
52
|
+
*
|
|
53
|
+
* Open it *after* mount. The watcher that drives the machine is a client-side
|
|
54
|
+
* one, so opening on an anchored step during the first render measures a null
|
|
55
|
+
* target: the spotlight collapses and the card is parked off-screen. Opening
|
|
56
|
+
* from a click is always safe.
|
|
57
|
+
*/
|
|
58
|
+
stepId: string | null;
|
|
59
|
+
/** Corner radius of the spotlight cutout, in pixels. Defaults to 4. */
|
|
60
|
+
spotlightRadius?: number;
|
|
61
|
+
/** Blocks interaction with the page behind the tour. Defaults to false. */
|
|
62
|
+
preventInteraction?: boolean;
|
|
63
|
+
/** Closes when clicking outside the card. Defaults to true. */
|
|
64
|
+
closeOnInteractOutside?: boolean;
|
|
65
|
+
/** Closes on Escape. Defaults to true. */
|
|
66
|
+
closeOnEscape?: boolean;
|
|
67
|
+
/** Size variant. Defaults to 'md'. */
|
|
68
|
+
size?: "sm" | "md" | "lg";
|
|
69
|
+
/** Card treatment. `compact` tightens the padding. Defaults to 'default'. */
|
|
70
|
+
variant?: "default" | "compact";
|
|
71
|
+
/** Shows the "step N of M" counter. Defaults to true. */
|
|
72
|
+
showProgress?: boolean;
|
|
73
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TourProps } from "./Tour.types.js";
|
|
2
|
+
import "@ui-organized/core/components/Tour/Tour.css";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<TourProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
stepChange: (stepId: string | null) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<TourProps> & Readonly<{
|
|
6
|
+
onStepChange?: ((stepId: string | null) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
closeOnEscape: boolean;
|
|
9
|
+
closeOnInteractOutside: boolean;
|
|
10
|
+
preventInteraction: boolean;
|
|
11
|
+
showProgress: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|