@livestorm/ui-vue 3.0.0 → 4.0.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/README.md +3 -3
- package/components-vite.js +2 -2
- package/dist/UiButton-uyW8EHRJ.mjs +602 -0
- package/dist/UiTimelineItem-EiOEi1yF.mjs +7293 -0
- package/dist/UiTooltip-DZcPD6_N.mjs +158 -0
- package/dist/a11y-CaZxRWzo.mjs +6 -0
- package/dist/breakpoints.mjs +4 -9
- package/dist/bus.mjs +5 -5
- package/dist/components.mjs +236 -231
- package/dist/i18n-B8QOMuFD.mjs +46 -0
- package/dist/index.mjs +4 -91
- package/dist/integrations.mjs +3 -14
- package/dist/layouts.mjs +228 -236
- package/dist/responsive.mjs +31 -36
- package/dist/slot.mjs +11 -17
- package/dist/toastDSV2-D3xDZPe5.mjs +105 -0
- package/dist/types/index.d.ts +19 -1
- package/dist/types/src/components/Toast/ToastMessage.vue.d.ts +17 -7
- package/dist/types/src/components/Toast/toastDSV2.d.ts +89 -64
- package/dist/types/src/components/UiActionBar/types.d.ts +2 -0
- package/dist/types/src/components/UiAvatar/UiAvatar.vue.d.ts +4 -2
- package/dist/types/src/components/UiAvatarList/UiAvatarList.vue.d.ts +3 -2
- package/dist/types/src/components/UiBanner/UiBanner.vue.d.ts +13 -1
- package/dist/types/src/components/UiButton/UiButton.vue.d.ts +95 -35
- package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +8 -2
- package/dist/types/src/components/UiButtonGroup/types.d.ts +4 -0
- package/dist/types/src/components/UiChoice/UiChoice.vue.d.ts +71 -0
- package/dist/types/src/components/UiChoice/index.d.ts +2 -0
- package/dist/types/src/components/UiChoice/types.d.ts +7 -0
- package/dist/types/src/components/UiColorField/UiColorField.vue.d.ts +1 -1
- package/dist/types/src/components/UiColorPicker/UiColorPicker.vue.d.ts +2 -2
- package/dist/types/src/components/UiCombobox/UiCombobox.types.d.ts +47 -0
- package/dist/types/src/components/UiCombobox/UiCombobox.vue.d.ts +40 -0
- package/dist/types/src/components/UiCombobox/index.d.ts +2 -0
- package/dist/types/src/components/UiDataTable/UiDataTable.types.d.ts +46 -0
- package/dist/types/src/components/UiDataTable/UiDataTable.vue.d.ts +136 -0
- package/dist/types/src/components/UiDataTable/index.d.ts +5 -0
- package/dist/types/src/components/UiDrawer/UiDrawer.vue.d.ts +28 -0
- package/dist/types/src/components/UiDrawer/UiDrawerContent.vue.d.ts +18 -0
- package/dist/types/src/components/UiDrawer/UiDrawerTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiDropdown/DropdownItemCheckbox.vue.d.ts +3 -0
- package/dist/types/src/components/UiDropdown/UiDropdownContent.vue.d.ts +10 -0
- package/dist/types/src/components/UiDropdown/UiDropdownGroup.vue.d.ts +17 -0
- package/dist/types/src/components/UiDropdown/UiDropdownItem.vue.d.ts +8 -5
- package/dist/types/src/components/UiDropdown/UiDropdownTrigger.vue.d.ts +21 -5
- package/dist/types/src/components/UiDropdown/index.d.ts +1 -0
- package/dist/types/src/components/UiEmojiPickerList/UiEmojiPickerList.vue.d.ts +22 -0
- package/dist/types/src/components/UiEmptyState/UiEmptyState.vue.d.ts +8 -3
- package/dist/types/src/components/UiFieldWrapper/UiFieldWrapper.vue.d.ts +2 -2
- package/dist/types/src/components/UiInputCheckbox/CheckboxGlyph.vue.d.ts +17 -0
- package/dist/types/src/components/UiInputCheckbox/UiInputCheckbox.vue.d.ts +35 -4
- package/dist/types/src/components/UiInputRadio/RadioGlyph.vue.d.ts +19 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +21 -8
- package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +6 -1
- package/dist/types/src/components/UiInputRadio/types.d.ts +1 -1
- package/dist/types/src/components/UiInputSelect/UiInputSelect.vue.d.ts +5 -5
- package/dist/types/src/components/UiInputTextarea/UiInputTextarea.vue.d.ts +5 -5
- package/dist/types/src/components/UiListItem/UiListItem.vue.d.ts +18 -4
- package/dist/types/src/components/UiLoader/UiSpinnerIcon.vue.d.ts +3 -0
- package/dist/types/src/components/UiMenu/UiMenuContent.vue.d.ts +15 -2
- package/dist/types/src/components/UiMenu/UiMenuItem.vue.d.ts +9 -3
- package/dist/types/src/components/UiNestedOptions/UiNestedOptions.vue.d.ts +13 -0
- package/dist/types/src/components/UiPage/UiPage.vue.d.ts +79 -15
- package/dist/types/src/components/UiPagination/UiPagination.vue.d.ts +36 -0
- package/dist/types/src/components/UiPagination/index.d.ts +2 -0
- package/dist/types/src/components/UiPagination/types.d.ts +4 -0
- package/dist/types/src/components/UiPane/UiPane.vue.d.ts +22 -0
- package/dist/types/src/components/UiPane/UiPaneContent.vue.d.ts +75 -0
- package/dist/types/src/components/UiPane/UiPaneTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiPane/index.d.ts +5 -0
- package/dist/types/src/components/UiRating/UiRating.vue.d.ts +62 -0
- package/dist/types/src/components/UiRating/types.d.ts +1 -0
- package/dist/types/src/components/UiRoomButton/UiRoomButton.vue.d.ts +5 -3
- package/dist/types/src/components/UiRoomCountdown/UiRoomCountdown.vue.d.ts +32 -0
- package/dist/types/src/components/UiShell/UiShell.vue.d.ts +3 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenu.vue.d.ts +22 -1
- package/dist/types/src/components/UiSideMenu/UiSideMenuItemContent.vue.d.ts +2 -2
- package/dist/types/src/components/UiSwitch/UiSwitch.vue.d.ts +10 -5
- package/dist/types/src/components/UiTable/UiTable.vue.d.ts +13 -4
- package/dist/types/src/components/UiTable/UiTableActionsCell.vue.d.ts +49 -0
- package/dist/types/src/components/UiTable/UiTableActionsHeaderCell.vue.d.ts +3 -0
- package/dist/types/src/components/UiTable/UiTableBody.vue.d.ts +11 -1
- package/dist/types/src/components/UiTable/UiTableCell.vue.d.ts +16 -1
- package/dist/types/src/components/UiTable/UiTableHeaderCell.vue.d.ts +31 -2
- package/dist/types/src/components/UiTable/UiTableRow.vue.d.ts +32 -2
- package/dist/types/src/components/UiTable/context.d.ts +3 -0
- package/dist/types/src/components/UiTable/index.d.ts +4 -0
- package/dist/types/src/components/UiTabs/UiTabs.vue.d.ts +3 -0
- package/dist/types/src/components/UiTag/UiTag.types.d.ts +25 -0
- package/dist/types/src/components/UiTag/UiTag.vue.d.ts +5 -26
- package/dist/types/src/components/UiTag/index.d.ts +2 -1
- package/dist/types/src/components/UiTextField/UiTextField.vue.d.ts +10 -5
- package/dist/types/src/components/UiTooltip/UiTooltipProvider.vue.d.ts +1 -0
- package/dist/types/src/components/UiTooltip/UiTooltipTrigger.vue.d.ts +2 -2
- package/dist/types/src/composables/storedThemingApplies.d.ts +17 -0
- package/dist/types/src/composables/useButtonStyles.d.ts +1 -0
- package/dist/types/src/composables/useChoiceboxSurface.d.ts +11 -0
- package/dist/types/src/composables/useContentMode.d.ts +7 -9
- package/dist/types/src/composables/useControlModes.d.ts +7 -0
- package/dist/types/src/composables/useControlShape.d.ts +24 -0
- package/dist/types/src/composables/useFieldFocusEvents.d.ts +12 -0
- package/dist/types/src/composables/useIconSize.d.ts +2 -0
- package/dist/types/src/composables/usePullGesture.d.ts +42 -0
- package/dist/types/src/composables/useThemeAndModes.d.ts +4 -0
- package/dist/types/src/theming/colorScale.d.ts +165 -0
- package/dist/types/src/theming/legacyColorScale.d.ts +27 -0
- package/dist/types/src/theming/presetColors.d.ts +11 -0
- package/dist/types/src/theming/primitiveTokens.d.ts +2 -0
- package/dist/types/src/utils/effectiveOpacity.d.ts +2 -0
- package/dist/types/src/utils/numbers.d.ts +1 -2
- package/dist/types/src/utils/tokenColor.d.ts +2 -0
- package/dist/ui-vue.css +2 -1
- package/dist/utils.mjs +165 -194
- package/index.d.ts +18 -0
- package/index.js +36 -0
- package/package.json +26 -21
- package/src/components/Toast/LayoutToasts.vue +19 -11
- package/src/components/Toast/ToastMessage.vue +125 -68
- package/src/components/Toast/toastDSV2.ts +238 -67
- package/src/components/UiActionBar/UiActionBar.vue +4 -3
- package/src/components/UiActionBar/UiActionBarItem.vue +9 -6
- package/src/components/UiActionBar/types.ts +13 -0
- package/src/components/UiAvatar/UiAvatar.vue +8 -2
- package/src/components/UiAvatarList/UiAvatarList.vue +51 -20
- package/src/components/UiBadge/UiBadge.vue +1 -1
- package/src/components/UiBanner/UiBanner.vue +71 -21
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +1 -1
- package/src/components/UiButton/UiButton.vue +92 -25
- package/src/components/UiButtonGroup/UiButtonGroup.vue +21 -17
- package/src/components/UiButtonGroup/UiButtonGroupItem.vue +33 -15
- package/src/components/UiButtonGroup/types.ts +19 -0
- package/src/components/UiCard/UiCard.vue +20 -23
- package/src/components/UiChoice/UiChoice.vue +187 -0
- package/src/components/UiChoice/index.ts +2 -0
- package/src/components/UiChoice/types.ts +11 -0
- package/src/components/UiColorField/UiColorField.vue +2 -2
- package/src/components/UiColorPicker/UiColorPicker.vue +11 -8
- package/src/components/UiCombobox/UiCombobox.types.ts +52 -0
- package/src/components/UiCombobox/UiCombobox.vue +296 -0
- package/src/components/UiCombobox/index.ts +2 -0
- package/src/components/UiDataTable/UiDataTable.types.ts +47 -0
- package/src/components/UiDataTable/UiDataTable.vue +422 -0
- package/src/components/UiDataTable/index.ts +12 -0
- package/src/components/UiDialog/UiDialogContent.vue +22 -7
- package/src/components/UiDrawer/UiDrawer.vue +16 -0
- package/src/components/UiDrawer/UiDrawerContent.vue +42 -0
- package/src/components/UiDrawer/UiDrawerTrigger.vue +17 -0
- package/src/components/UiDropdown/DropdownItemCheckbox.vue +10 -0
- package/src/components/UiDropdown/UiDropdownContent.vue +32 -21
- package/src/components/UiDropdown/UiDropdownGroup.vue +23 -0
- package/src/components/UiDropdown/UiDropdownItem.vue +38 -18
- package/src/components/UiDropdown/UiDropdownSeparator.vue +1 -1
- package/src/components/UiDropdown/UiDropdownTrigger.vue +138 -43
- package/src/components/UiDropdown/index.ts +1 -0
- package/src/components/UiEmojiPickerList/UiEmojiPickerList.vue +122 -0
- package/src/components/UiEmptyState/UiEmptyState.vue +16 -4
- package/src/components/UiFieldWrapper/UiFieldWrapper.vue +9 -3
- package/src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue +2 -2
- package/src/components/UiInputCheckbox/CheckboxGlyph.vue +78 -0
- package/src/components/UiInputCheckbox/UiInputCheckbox.vue +213 -177
- package/src/components/UiInputEmoji/UiInputEmoji.vue +18 -95
- package/src/components/UiInputRadio/RadioGlyph.vue +45 -0
- package/src/components/UiInputRadio/UiInputRadio.vue +177 -169
- package/src/components/UiInputRadio/UiInputRadioGroup.vue +15 -5
- package/src/components/UiInputRadio/types.ts +1 -2
- package/src/components/UiInputSelect/UiInputSelect.vue +9 -7
- package/src/components/UiInputTextarea/UiInputTextarea.vue +20 -35
- package/src/components/UiLabel/UiLabel.vue +1 -1
- package/src/components/UiListItem/UiListItem.vue +55 -9
- package/src/components/UiLoader/UiLoader.vue +4 -20
- package/src/components/UiLoader/UiSpinnerIcon.vue +21 -0
- package/src/components/UiMenu/UiMenuContent.vue +24 -3
- package/src/components/UiMenu/UiMenuGroup.vue +1 -1
- package/src/components/UiMenu/UiMenuItem.vue +14 -3
- package/src/components/UiMenu/UiMenuSubContent.vue +1 -1
- package/src/components/UiMenu/UiMenuSubTrigger.vue +1 -1
- package/src/components/UiNestedOptions/UiNestedOptions.vue +6 -0
- package/src/components/UiPage/UiPage.vue +190 -32
- package/src/components/UiPagination/UiPagination.vue +99 -0
- package/src/components/UiPagination/index.ts +2 -0
- package/src/components/UiPagination/types.ts +28 -0
- package/src/components/UiPane/UiPane.vue +20 -0
- package/src/components/UiPane/UiPaneContent.vue +232 -0
- package/src/components/UiPane/UiPaneTrigger.vue +14 -0
- package/src/components/UiPane/index.ts +12 -0
- package/src/components/UiPopover/UiPopoverContent.vue +21 -1
- package/src/components/UiProgress/UiProgress.vue +2 -2
- package/src/components/UiRating/UiRating.vue +258 -0
- package/src/components/UiRating/types.ts +1 -0
- package/src/components/UiRoomButton/UiRoomButton.vue +10 -41
- package/src/components/UiRoomCountdown/UiRoomCountdown.vue +376 -0
- package/src/components/UiShell/UiShell.vue +9 -3
- package/src/components/UiSideMenu/UiSideMenu.vue +155 -18
- package/src/components/UiSideMenu/UiSideMenuItemContent.vue +20 -16
- package/src/components/UiStepper/UiStepper.vue +3 -16
- package/src/components/UiStepper/UiStepperDescription.vue +1 -13
- package/src/components/UiStepper/UiStepperIndicator.vue +11 -48
- package/src/components/UiStepper/UiStepperItem.vue +1 -8
- package/src/components/UiStepper/UiStepperSeparator.vue +5 -16
- package/src/components/UiStepper/UiStepperTitle.vue +1 -10
- package/src/components/UiSwitch/UiSwitch.vue +44 -28
- package/src/components/UiTable/UiTable.vue +98 -8
- package/src/components/UiTable/UiTableActionsCell.vue +135 -0
- package/src/components/UiTable/UiTableActionsHeaderCell.vue +19 -0
- package/src/components/UiTable/UiTableBody.vue +16 -1
- package/src/components/UiTable/UiTableCell.vue +33 -16
- package/src/components/UiTable/UiTableHeader.vue +6 -5
- package/src/components/UiTable/UiTableHeaderCell.vue +61 -9
- package/src/components/UiTable/UiTableRow.vue +46 -10
- package/src/components/UiTable/context.ts +5 -0
- package/src/components/UiTable/index.ts +4 -0
- package/src/components/UiTabs/UiTabs.vue +56 -61
- package/src/components/UiTag/UiTag.types.ts +28 -0
- package/src/components/UiTag/UiTag.vue +24 -42
- package/src/components/UiTag/index.ts +2 -0
- package/src/components/UiTextField/UiTextField.vue +21 -36
- package/src/components/UiTooltip/UiTooltipContent.vue +1 -1
- package/src/components/UiTooltip/UiTooltipProvider.vue +3 -0
- package/src/components/UiTooltip/UiTooltipTrigger.vue +16 -1
- package/src/composables/storedThemingApplies.ts +19 -0
- package/src/composables/useButtonStyles.ts +9 -13
- package/src/composables/useChoiceboxSurface.ts +36 -0
- package/src/composables/useContentMode.ts +29 -16
- package/src/composables/useControlModes.ts +11 -0
- package/src/composables/useControlShape.ts +34 -0
- package/src/composables/useFieldFocusEvents.ts +30 -0
- package/src/composables/useIconSize.ts +15 -0
- package/src/composables/usePullGesture.ts +142 -0
- package/src/composables/useThemeAndModes.ts +28 -1
- package/src/css/body.css +16 -1
- package/src/css/fonts.css +39 -5
- package/src/global.d.ts +36 -0
- package/src/theming/colorScale.ts +173 -0
- package/src/theming/legacyColorScale.ts +58 -0
- package/src/theming/presetColors.ts +33 -0
- package/src/theming/primitiveTokens.ts +71 -0
- package/src/utils/effectiveOpacity.ts +8 -0
- package/src/utils/i18n.ts +6 -0
- package/src/utils/numbers.ts +1 -1
- package/src/utils/responsive.d.ts +14 -0
- package/src/utils/tokenColor.ts +9 -0
- package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-LpdvGf5X.mjs +0 -6093
- package/dist/a11y-BhF_nl7L.mjs +0 -159
- package/dist/i18n-Cktw9hIu.mjs +0 -49
- package/dist/toastDSV2-wMh-UMzW.mjs +0 -74
- package/dist/types/src/components/UiAvatar/index.d.ts +0 -1
- package/dist/types/src/components/UiAvatarList/index.d.ts +0 -1
- package/dist/types/src/components/UiBadge/index.d.ts +0 -1
- package/dist/types/src/components/UiBanner/index.d.ts +0 -2
- package/dist/types/src/components/UiButtonGroup/index.d.ts +0 -3
- package/dist/types/src/components/UiCarousel/index.d.ts +0 -2
- package/dist/types/src/components/UiColorField/index.d.ts +0 -2
- package/dist/types/src/components/UiDialog/MarketplaceHeaderExample.vue.d.ts +0 -28
- package/dist/types/src/components/UiDialog/index.d.ts +0 -7
- package/dist/types/src/components/UiFieldWrapper/index.d.ts +0 -1
- package/dist/types/src/components/UiInputCheckbox/index.d.ts +0 -2
- package/dist/types/src/components/UiInputEmoji/index.d.ts +0 -1
- package/dist/types/src/components/UiInputRadio/index.d.ts +0 -3
- package/dist/types/src/components/UiInputSelect/index.d.ts +0 -2
- package/dist/types/src/components/UiInputTextarea/index.d.ts +0 -2
- package/dist/types/src/components/UiMenu/index.d.ts +0 -10
- package/dist/types/src/components/UiProgress/index.d.ts +0 -2
- package/dist/types/src/components/UiSwitch/index.d.ts +0 -2
- package/dist/types/src/components/UiTabs/index.d.ts +0 -2
- package/dist/types/src/components/UiTimeline/index.d.ts +0 -2
- package/dist/types/src/components/UiTooltip/index.d.ts +0 -4
- package/dist/types/src/mixins/DynamicAction.d.ts +0 -30
- package/dist/useThemeAndModes-BzYwSOEv.mjs +0 -108
- package/src/components/UiAvatar/index.js +0 -1
- package/src/components/UiAvatarList/index.js +0 -1
- package/src/components/UiBadge/index.ts +0 -2
- package/src/components/UiBanner/index.ts +0 -2
- package/src/components/UiButtonGroup/index.ts +0 -3
- package/src/components/UiCarousel/index.ts +0 -2
- package/src/components/UiColorField/index.ts +0 -2
- package/src/components/UiDialog/MarketplaceHeaderExample.vue +0 -217
- package/src/components/UiDialog/index.ts +0 -18
- package/src/components/UiFieldWrapper/index.ts +0 -1
- package/src/components/UiInputCheckbox/index.ts +0 -2
- package/src/components/UiInputEmoji/index.ts +0 -1
- package/src/components/UiInputRadio/index.ts +0 -3
- package/src/components/UiInputSelect/index.ts +0 -2
- package/src/components/UiInputTextarea/index.ts +0 -2
- package/src/components/UiMenu/index.ts +0 -10
- package/src/components/UiProgress/index.ts +0 -2
- package/src/components/UiSwitch/index.ts +0 -2
- package/src/components/UiTabs/index.ts +0 -5
- package/src/components/UiTag/index.js +0 -1
- package/src/components/UiTimeline/index.ts +0 -2
- package/src/components/UiTooltip/index.js +0 -4
- package/src/mixins/DynamicAction.js +0 -61
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { DropdownMenuItemProps } from 'reka-ui';
|
|
2
|
+
export interface UiMenuItemProps extends DropdownMenuItemProps {
|
|
3
|
+
/** `danger` marks a destructive action such as Remove or Delete. */
|
|
4
|
+
variant?: 'default' | 'danger';
|
|
5
|
+
}
|
|
2
6
|
declare var __VLS_8: {};
|
|
3
7
|
type __VLS_Slots = {} & {
|
|
4
8
|
default?: (props: typeof __VLS_8) => any;
|
|
5
9
|
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<UiMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
11
|
select: (event: Event) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<UiMenuItemProps> & Readonly<{
|
|
9
13
|
onSelect?: ((event: Event) => any) | undefined;
|
|
10
|
-
}>, {
|
|
14
|
+
}>, {
|
|
15
|
+
variant: "default" | "danger";
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
18
|
declare const _default: typeof __VLS_export;
|
|
13
19
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -13,13 +13,6 @@ declare const HEADROOM_GAP_PX: {
|
|
|
13
13
|
};
|
|
14
14
|
type HeadroomGap = keyof typeof HEADROOM_GAP_PX;
|
|
15
15
|
type __VLS_Props = {
|
|
16
|
-
/**
|
|
17
|
-
* Extra classes for the inner content `<section>`. Use to override the
|
|
18
|
-
* default surface, e.g. `bg-surface-neutral-300` instead of the standard
|
|
19
|
-
* `bg-surface-neutral-bg-main`. Appended after the defaults so it wins on
|
|
20
|
-
* conflicting utilities.
|
|
21
|
-
*/
|
|
22
|
-
pageContentClasses?: string;
|
|
23
16
|
/**
|
|
24
17
|
* Page title surfaced as the label of UiShell's fallback mobile menu topbar
|
|
25
18
|
* (shown on a headerless page that has a side menu). Lets a page name its
|
|
@@ -27,14 +20,60 @@ type __VLS_Props = {
|
|
|
27
20
|
*/
|
|
28
21
|
title?: string;
|
|
29
22
|
/**
|
|
30
|
-
* The shape of the page inside the content card.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
23
|
+
* The shape of the page inside the content card. Padded shapes use the
|
|
24
|
+
* page padding P (16px below md, 24px from md), which the page exposes to
|
|
25
|
+
* its content as `var(--ui-page-padding)`. P applies inside the card only:
|
|
26
|
+
* the page header and the tabs above it keep their own spacing.
|
|
27
|
+
* - `document` (default): the card scrolls as a single column and pads
|
|
28
|
+
* its content with P on every side. Forms, settings, content blocks.
|
|
29
|
+
* - `list`: like `document`, but the content is padded with P at the top
|
|
30
|
+
* only: toolbars, tables and pagination run from card edge to card edge
|
|
31
|
+
* and pad their sides with `--ui-page-inline`. The content is held to the
|
|
32
|
+
* card height, so a child that may shrink (`flex-1 min-h-0`) becomes the
|
|
33
|
+
* scroll region and a table header in it stays in view; anything taller
|
|
34
|
+
* still scrolls the card.
|
|
33
35
|
* - `app`: the card fills the available height and never scrolls itself;
|
|
34
|
-
* the page owns its
|
|
35
|
-
*
|
|
36
|
+
* the page owns its scroll regions and layout, so the content is not
|
|
37
|
+
* padded. Each region pads itself with `var(--ui-page-padding)`.
|
|
38
|
+
*
|
|
39
|
+
* Edge-to-edge bands (toolbars, pagination) read `--ui-page-inline` for
|
|
40
|
+
* their side padding. UiDataTable pads its scroll region with it, so a
|
|
41
|
+
* wide table scrolls from card edge to card edge. It is set to P on a
|
|
42
|
+
* `list` page only and left unset everywhere else, so a band
|
|
43
|
+
* picks its inset with one class:
|
|
44
|
+
* - `px-(--ui-page-inline)`: P on a list page, 0 elsewhere.
|
|
45
|
+
* - `px-(--ui-page-inline,var(--spacing-space-4))`: P on a list page, the
|
|
46
|
+
* band's own inset elsewhere.
|
|
47
|
+
*
|
|
48
|
+
* A page with a `leftSlot` keeps the split layout insets instead of P: its
|
|
49
|
+
* header slot aligns with the aside, not with the content.
|
|
50
|
+
*/
|
|
51
|
+
variant?: 'document' | 'list' | 'app';
|
|
52
|
+
/**
|
|
53
|
+
* Column split when a leftSlot is present: `third` (default) gives the
|
|
54
|
+
* aside 1/3 and the card 2/3; `half` splits them evenly; `fill` lets the
|
|
55
|
+
* aside take all remaining width while the card hugs its content — for
|
|
56
|
+
* app pages whose card is a fixed-width side panel (e.g. the room's
|
|
57
|
+
* interactions sidepane).
|
|
58
|
+
*/
|
|
59
|
+
leftSlotRatio?: 'third' | 'half' | 'fill';
|
|
60
|
+
/**
|
|
61
|
+
* How the content card sits in the frame.
|
|
62
|
+
* - `anchored` (default): the dashboard page card — flush to the bottom and
|
|
63
|
+
* right edges, rounded top-left, page-card chrome (level-3 elevation).
|
|
64
|
+
* - `floating`: a detached card with a thin gutter on every side, rounded
|
|
65
|
+
* all around, elevated-card chrome (level-2 elevation + inner glow +
|
|
66
|
+
* container border). The room's panel treatment.
|
|
36
67
|
*/
|
|
37
|
-
|
|
68
|
+
frame?: 'anchored' | 'floating';
|
|
69
|
+
/**
|
|
70
|
+
* Viewport gate for the leftSlot: `lg` (default) renders the aside only
|
|
71
|
+
* from the lg breakpoint — the dashboard behavior, where the aside is
|
|
72
|
+
* secondary. `none` keeps the aside at every width, for app pages whose
|
|
73
|
+
* aside is primary content (the room's stage, the lobby's session
|
|
74
|
+
* information) and must never unmount with the viewport.
|
|
75
|
+
*/
|
|
76
|
+
leftSlotBreakpoint?: 'lg' | 'none';
|
|
38
77
|
/**
|
|
39
78
|
* Headroom above the content card, letting the shell background show
|
|
40
79
|
* through. Sizes map to px via `HEADROOM_GAP_PX`.
|
|
@@ -45,11 +84,32 @@ type __VLS_Props = {
|
|
|
45
84
|
* on a page that would otherwise get the default.
|
|
46
85
|
*/
|
|
47
86
|
headroomGap?: HeadroomGap;
|
|
87
|
+
/**
|
|
88
|
+
* Drops the content padding a `document` or `list` page gets by default, so the
|
|
89
|
+
* page's content reaches the card edges. Only for pages whose layout is
|
|
90
|
+
* edge-to-edge by design: full-bleed bands, or scroll regions that must
|
|
91
|
+
* sit against the card edge. Has no effect on `app` pages, which never get
|
|
92
|
+
* the padding.
|
|
93
|
+
*/
|
|
94
|
+
flush?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The fill of an anchored content card.
|
|
97
|
+
* - `container` (default): the white content surface.
|
|
98
|
+
* - `background`: the grey page background, for screens whose content is
|
|
99
|
+
* already cards or regions, so they do not sit in a second white box.
|
|
100
|
+
* A floating card keeps its elevated fill.
|
|
101
|
+
*/
|
|
102
|
+
surface?: 'container' | 'background';
|
|
48
103
|
};
|
|
49
104
|
type __VLS_Slots = {
|
|
50
105
|
banner?(): Slot;
|
|
51
106
|
pageHeader?(): Slot;
|
|
52
107
|
pageTabs?(): Slot;
|
|
108
|
+
/**
|
|
109
|
+
* Summary on the page background, between the page header (and tabs) and
|
|
110
|
+
* the content card, e.g. stat cards. It shares the page header's edges.
|
|
111
|
+
*/
|
|
112
|
+
pageSummary?(): Slot;
|
|
53
113
|
leftSlot?(): Slot;
|
|
54
114
|
header?(): Slot;
|
|
55
115
|
footer?(): Slot;
|
|
@@ -57,9 +117,13 @@ type __VLS_Slots = {
|
|
|
57
117
|
};
|
|
58
118
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
59
119
|
title: string;
|
|
60
|
-
variant: "document" | "app";
|
|
61
|
-
|
|
120
|
+
variant: "document" | "list" | "app";
|
|
121
|
+
frame: "anchored" | "floating";
|
|
122
|
+
flush: boolean;
|
|
123
|
+
leftSlotRatio: "third" | "half" | "fill";
|
|
124
|
+
leftSlotBreakpoint: "lg" | "none";
|
|
62
125
|
headroomGap: HeadroomGap;
|
|
126
|
+
surface: "container" | "background";
|
|
63
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
128
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
65
129
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { UiPaginationColor } from './types';
|
|
2
|
+
interface UiPaginationProps {
|
|
3
|
+
/** Controlled current page. Bind with `v-model:page`. */
|
|
4
|
+
page?: number;
|
|
5
|
+
/** Initial page when uncontrolled. */
|
|
6
|
+
defaultPage?: number;
|
|
7
|
+
/** Number of items per page. */
|
|
8
|
+
itemsPerPage?: number;
|
|
9
|
+
/** Total number of items across all pages. */
|
|
10
|
+
total: number;
|
|
11
|
+
/** Number of sibling pages shown around the current page. */
|
|
12
|
+
siblingCount?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Always show the first and last page, with an ellipsis in between when needed. */
|
|
15
|
+
showEdges?: boolean;
|
|
16
|
+
color?: UiPaginationColor;
|
|
17
|
+
previousLabel?: string;
|
|
18
|
+
nextLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<UiPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:page": (value: number) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<UiPaginationProps> & Readonly<{
|
|
23
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
color: UiPaginationColor;
|
|
27
|
+
page: number;
|
|
28
|
+
defaultPage: number;
|
|
29
|
+
itemsPerPage: number;
|
|
30
|
+
siblingCount: number;
|
|
31
|
+
showEdges: boolean;
|
|
32
|
+
previousLabel: string;
|
|
33
|
+
nextLabel: string;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type UiPaginationColor = 'neutral' | 'neutral-invert' | 'primary' | 'success' | 'warning' | 'error';
|
|
2
|
+
export declare const PAGINATION_IDLE_CLASSES: Record<UiPaginationColor, string>;
|
|
3
|
+
export declare const PAGINATION_ACTIVE_CLASSES: Record<UiPaginationColor, string>;
|
|
4
|
+
export declare const PAGINATION_RAIL_CLASSES: Record<UiPaginationColor, string>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DialogRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
9
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
defaultOpen: boolean;
|
|
12
|
+
open: boolean;
|
|
13
|
+
modal: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { DialogContentProps } from 'reka-ui';
|
|
2
|
+
export type UiPaneSize = 'sm' | 'lg';
|
|
3
|
+
export type UiPaneOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
export interface UiPaneContentProps extends DialogContentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Header title, also used as the pane's accessible name
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Density of the header, padding and title
|
|
11
|
+
* @values sm, lg
|
|
12
|
+
*/
|
|
13
|
+
size?: UiPaneSize;
|
|
14
|
+
/**
|
|
15
|
+
* Layout of the footer actions: in a row, or stacked full width
|
|
16
|
+
* @values horizontal, vertical
|
|
17
|
+
*/
|
|
18
|
+
orientation?: UiPaneOrientation;
|
|
19
|
+
hideClose?: boolean;
|
|
20
|
+
closeButtonAriaLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Removes the body padding, for full-bleed content
|
|
23
|
+
*/
|
|
24
|
+
noPadding?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When false, a click outside or Escape no longer closes the pane:
|
|
27
|
+
* only the close button or the consumer's own actions do
|
|
28
|
+
*/
|
|
29
|
+
dismissible?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Any CSS width, for content with a fixed width of its own (an email's 600px column).
|
|
32
|
+
* Still capped to the viewport.
|
|
33
|
+
*/
|
|
34
|
+
width?: string;
|
|
35
|
+
}
|
|
36
|
+
declare var __VLS_35: {}, __VLS_48: {}, __VLS_50: {};
|
|
37
|
+
type __VLS_Slots = {} & {
|
|
38
|
+
header?: (props: typeof __VLS_35) => any;
|
|
39
|
+
} & {
|
|
40
|
+
default?: (props: typeof __VLS_48) => any;
|
|
41
|
+
} & {
|
|
42
|
+
footer?: (props: typeof __VLS_50) => any;
|
|
43
|
+
};
|
|
44
|
+
declare const __VLS_base: import("vue").DefineComponent<UiPaneContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
46
|
+
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
47
|
+
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
48
|
+
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
49
|
+
openAutoFocus: (event: Event) => any;
|
|
50
|
+
closeAutoFocus: (event: Event) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<UiPaneContentProps> & Readonly<{
|
|
52
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
53
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
54
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
55
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
56
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
57
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
orientation: UiPaneOrientation;
|
|
60
|
+
size: UiPaneSize;
|
|
61
|
+
title: string;
|
|
62
|
+
width: string;
|
|
63
|
+
hideClose: boolean;
|
|
64
|
+
closeButtonAriaLabel: string;
|
|
65
|
+
noPadding: boolean;
|
|
66
|
+
dismissible: boolean;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DialogTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as UiPane } from './UiPane.vue';
|
|
2
|
+
export { default as UiPaneTrigger } from './UiPaneTrigger.vue';
|
|
3
|
+
export { default as UiPaneContent } from './UiPaneContent.vue';
|
|
4
|
+
export type { UiPaneContentProps, UiPaneOrientation, UiPaneSize } from './UiPaneContent.vue';
|
|
5
|
+
export { DialogClose, type DialogRootProps, type DialogRootEmits, type DialogContentProps, type DialogContentEmits, } from 'reka-ui';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { RatingSize } from './types';
|
|
2
|
+
interface UiRatingProps {
|
|
3
|
+
/**
|
|
4
|
+
* The selected star, from 1 to `max`. `null` means no selection.
|
|
5
|
+
* @default null
|
|
6
|
+
*/
|
|
7
|
+
modelValue?: number | null;
|
|
8
|
+
/**
|
|
9
|
+
* Number of stars
|
|
10
|
+
* @default 5
|
|
11
|
+
*/
|
|
12
|
+
max?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Caption under each star, in star order. The caption is also the star's
|
|
15
|
+
* accessible name; a star without one is named by its number.
|
|
16
|
+
*/
|
|
17
|
+
labels?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Size of the stars
|
|
20
|
+
* @default 'md'
|
|
21
|
+
*/
|
|
22
|
+
size?: RatingSize;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the rating only displays its value. The stars stay focusable so
|
|
25
|
+
* the value can be read, but cannot be changed.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
readonly?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the rating is disabled
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether a rating is required
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Name attribute, submitted with the form via a hidden input
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
}
|
|
44
|
+
declare function focus(): void;
|
|
45
|
+
declare const __VLS_export: import("vue").DefineComponent<UiRatingProps, {
|
|
46
|
+
focus: typeof focus;
|
|
47
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (value: number) => any;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<UiRatingProps> & Readonly<{
|
|
50
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
size: RatingSize;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
required: boolean;
|
|
55
|
+
max: number;
|
|
56
|
+
name: string;
|
|
57
|
+
modelValue: number | null;
|
|
58
|
+
readonly: boolean;
|
|
59
|
+
labels: string[];
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
|
+
declare const _default: typeof __VLS_export;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RatingSize = 'sm' | 'md' | 'lg';
|
|
@@ -4,20 +4,22 @@ type __VLS_Props = {
|
|
|
4
4
|
icon?: string;
|
|
5
5
|
tooltip?: string;
|
|
6
6
|
tooltipSide?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
tooltipDisabled?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
active?: boolean;
|
|
9
10
|
loading?: boolean;
|
|
10
11
|
};
|
|
11
|
-
declare var
|
|
12
|
+
declare var __VLS_25: {}, __VLS_38: {};
|
|
12
13
|
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_25) => any;
|
|
14
15
|
} & {
|
|
15
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_38) => any;
|
|
16
17
|
};
|
|
17
18
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
19
|
tooltipSide: "top" | "bottom" | "left" | "right";
|
|
19
20
|
variant: "ghost" | "glass" | "solid";
|
|
20
21
|
color: "neutral" | "danger" | "primary" | "success";
|
|
22
|
+
tooltipDisabled: boolean;
|
|
21
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
seconds?: number;
|
|
3
|
+
label?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
finished?: boolean;
|
|
6
|
+
live?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
action?: (props: typeof __VLS_7) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
finished: () => any;
|
|
14
|
+
tick: (remaining: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onFinished?: (() => any) | undefined;
|
|
17
|
+
onTick?: ((remaining: number) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
size: "sm" | "md" | "lg";
|
|
20
|
+
label: string;
|
|
21
|
+
seconds: number;
|
|
22
|
+
finished: boolean;
|
|
23
|
+
live: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
openMenuLabel?: string;
|
|
3
|
+
/** The shell canvas (gradient and overlays). Off when the host paints its own surface. */
|
|
4
|
+
showBackground?: boolean;
|
|
3
5
|
};
|
|
4
6
|
declare var __VLS_1: {}, __VLS_3: {
|
|
5
7
|
isOpen: boolean;
|
|
@@ -13,6 +15,7 @@ type __VLS_Slots = {} & {
|
|
|
13
15
|
};
|
|
14
16
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
17
|
openMenuLabel: string;
|
|
18
|
+
showBackground: boolean;
|
|
16
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,6 +11,10 @@ type __VLS_Slots = {
|
|
|
11
11
|
collapsedMenuExtra?(props: {
|
|
12
12
|
close: () => void;
|
|
13
13
|
}): Slot;
|
|
14
|
+
/** Tooltip shown under the logo while it is pulled, with the stage reached so far. */
|
|
15
|
+
logoPullHint?(props: {
|
|
16
|
+
stage: number;
|
|
17
|
+
}): Slot;
|
|
14
18
|
};
|
|
15
19
|
type __VLS_Props = {
|
|
16
20
|
topMenuItems?: SideMenuItemProps[];
|
|
@@ -34,6 +38,16 @@ type __VLS_Props = {
|
|
|
34
38
|
*/
|
|
35
39
|
moreBadge?: number | boolean;
|
|
36
40
|
showLivestormLogo?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Pointer travel (px, ascending) at which pulling the logo, in any
|
|
43
|
+
* direction, reaches each stage; `logoPull` emits the stage reached on
|
|
44
|
+
* release. Empty disables the gesture.
|
|
45
|
+
*/
|
|
46
|
+
logoPullStages?: number[];
|
|
47
|
+
/** Travel (px) after which the pulled logo starts resisting; defaults to the last stage. */
|
|
48
|
+
logoPullResistFrom?: number;
|
|
49
|
+
/** Visible travel the resisting logo tends toward; defaults to five times the last stage. */
|
|
50
|
+
logoPullMaxOffset?: number;
|
|
37
51
|
logoAlt?: string;
|
|
38
52
|
closeMenuLabel?: string;
|
|
39
53
|
mainNavigationLabel?: string;
|
|
@@ -43,8 +57,15 @@ type __VLS_Props = {
|
|
|
43
57
|
skipToMainContentLabel?: string;
|
|
44
58
|
organizationId?: string;
|
|
45
59
|
};
|
|
46
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
logoPull: (stage: number) => any;
|
|
62
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
63
|
+
onLogoPull?: ((stage: number) => any) | undefined;
|
|
64
|
+
}>, {
|
|
47
65
|
showLivestormLogo: boolean;
|
|
66
|
+
logoPullStages: number[];
|
|
67
|
+
logoPullResistFrom: number;
|
|
68
|
+
logoPullMaxOffset: number;
|
|
48
69
|
logoAlt: string;
|
|
49
70
|
closeMenuLabel: string;
|
|
50
71
|
mainNavigationLabel: string;
|
|
@@ -21,11 +21,11 @@ type __VLS_Props = SideMenuItemProps & {
|
|
|
21
21
|
*/
|
|
22
22
|
alwaysShowLabel?: boolean;
|
|
23
23
|
};
|
|
24
|
-
declare var __VLS_7: {},
|
|
24
|
+
declare var __VLS_7: {}, __VLS_14: {};
|
|
25
25
|
type __VLS_Slots = {} & {
|
|
26
26
|
avatar?: (props: typeof __VLS_7) => any;
|
|
27
27
|
} & {
|
|
28
|
-
default?: (props: typeof
|
|
28
|
+
default?: (props: typeof __VLS_14) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
31
|
badge: number | boolean;
|
|
@@ -65,6 +65,10 @@ interface UiSwitchProps {
|
|
|
65
65
|
* Switch id attribute
|
|
66
66
|
*/
|
|
67
67
|
id?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Accessible name for the switch, for switches rendered without a label
|
|
70
|
+
*/
|
|
71
|
+
ariaLabel?: string;
|
|
68
72
|
}
|
|
69
73
|
declare var __VLS_18: {}, __VLS_26: {};
|
|
70
74
|
type __VLS_Slots = {} & {
|
|
@@ -77,26 +81,27 @@ declare const __VLS_base: import("vue").DefineComponent<UiSwitchProps, {
|
|
|
77
81
|
blur: () => void | undefined;
|
|
78
82
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
83
|
"update:modelValue": (value: boolean) => any;
|
|
80
|
-
blur: (event: FocusEvent) => any;
|
|
81
84
|
focus: (event: FocusEvent) => any;
|
|
85
|
+
blur: (event: FocusEvent) => any;
|
|
82
86
|
}, string, import("vue").PublicProps, Readonly<UiSwitchProps> & Readonly<{
|
|
83
87
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
84
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
85
88
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
89
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
86
90
|
}>, {
|
|
87
91
|
size: SwitchSize;
|
|
92
|
+
ariaLabel: string;
|
|
88
93
|
label: string;
|
|
89
94
|
icon: string;
|
|
90
95
|
disabled: boolean;
|
|
91
96
|
color: SwitchColor;
|
|
92
97
|
error: boolean;
|
|
93
|
-
description: string;
|
|
94
98
|
name: string;
|
|
99
|
+
description: string;
|
|
95
100
|
modelValue: boolean;
|
|
96
|
-
|
|
101
|
+
fullWidth: boolean;
|
|
97
102
|
labelInfo: string;
|
|
103
|
+
id: string;
|
|
98
104
|
showBg: boolean;
|
|
99
|
-
fullWidth: boolean;
|
|
100
105
|
switchPosition: SwitchPosition;
|
|
101
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
102
107
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
+
import { type UiTableSize } from './context';
|
|
1
2
|
export interface UiTableProps {
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Row heights: `md` = 40px header / 48px rows, `lg` = 48px header / 64px rows.
|
|
5
|
+
* @default 'md'
|
|
6
|
+
*/
|
|
7
|
+
size?: UiTableSize;
|
|
8
|
+
/**
|
|
9
|
+
* Alternating row backgrounds. Preferred over row dividers for readability.
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
zebra?: boolean;
|
|
4
13
|
}
|
|
5
14
|
declare var __VLS_1: {};
|
|
6
15
|
type __VLS_Slots = {} & {
|
|
7
16
|
default?: (props: typeof __VLS_1) => any;
|
|
8
17
|
};
|
|
9
18
|
declare const __VLS_base: import("vue").DefineComponent<UiTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiTableProps> & Readonly<{}>, {
|
|
10
|
-
|
|
11
|
-
|
|
19
|
+
size: UiTableSize;
|
|
20
|
+
zebra: boolean;
|
|
12
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
23
|
declare const _default: typeof __VLS_export;
|