@livestorm/ui-vue 2.0.5 → 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 +9 -6
- 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 -222
- package/dist/i18n-B8QOMuFD.mjs +46 -0
- package/dist/index.mjs +4 -87
- 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 +23 -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/UiActionBar.vue.d.ts +3 -1
- package/dist/types/src/components/UiActionBar/UiActionBarItem.vue.d.ts +18 -3
- package/dist/types/src/components/UiActionBar/types.d.ts +5 -1
- 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 +102 -38
- package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +8 -2
- package/dist/types/src/components/UiButtonGroup/UiButtonGroupItem.vue.d.ts +3 -0
- package/dist/types/src/components/UiButtonGroup/types.d.ts +5 -1
- 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 +9 -4
- 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/UiInputEmoji/UiInputEmoji.vue.d.ts +45 -0
- package/dist/types/src/components/UiInputRadio/RadioGlyph.vue.d.ts +19 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +80 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +86 -0
- package/dist/types/src/components/UiInputRadio/types.d.ts +19 -0
- 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/UiLoader.vue.d.ts +6 -5
- package/dist/types/src/components/UiLoader/UiSpinnerIcon.vue.d.ts +3 -0
- package/dist/types/src/components/UiLogo/UiLogo.vue.d.ts +9 -3
- 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 +106 -8
- 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/UiProgress/UiProgress.vue.d.ts +1 -1
- 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 +114 -0
- package/dist/types/src/components/UiSwitch/types.d.ts +3 -0
- 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 +8 -2
- 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 +23 -0
- 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 +13 -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/constants/sizes.d.ts +1 -1
- 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 +22 -0
- package/index.js +44 -0
- package/package.json +28 -20
- package/src/components/Toast/LayoutToasts.vue +19 -11
- package/src/components/Toast/ToastMessage.vue +130 -73
- package/src/components/Toast/toastDSV2.ts +238 -67
- package/src/components/UiActionBar/UiActionBar.vue +15 -5
- package/src/components/UiActionBar/UiActionBarItem.vue +65 -38
- package/src/components/UiActionBar/types.ts +16 -1
- package/src/components/UiAvatar/UiAvatar.vue +9 -3
- package/src/components/UiAvatarList/UiAvatarList.vue +51 -20
- package/src/components/UiBadge/UiBadge.vue +1 -1
- package/src/components/UiBanner/UiBanner.vue +77 -27
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +1 -1
- package/src/components/UiButton/UiButton.vue +96 -29
- package/src/components/UiButtonGroup/UiButtonGroup.vue +22 -16
- package/src/components/UiButtonGroup/UiButtonGroupItem.vue +44 -14
- package/src/components/UiButtonGroup/types.ts +20 -1
- package/src/components/UiCard/UiCard.vue +20 -23
- package/src/components/UiCarousel/UiCarousel.vue +2 -2
- 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 +16 -13
- 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/UiDialogClose.vue +1 -1
- 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 +45 -18
- package/src/components/UiDropdown/UiDropdownSeparator.vue +1 -1
- package/src/components/UiDropdown/UiDropdownTrigger.vue +139 -45
- 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 +10 -4
- 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 +96 -0
- package/src/components/UiInputRadio/RadioGlyph.vue +45 -0
- package/src/components/UiInputRadio/UiInputRadio.vue +382 -0
- package/src/components/UiInputRadio/UiInputRadioGroup.vue +166 -0
- package/src/components/UiInputRadio/types.ts +24 -0
- 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 +11 -29
- package/src/components/UiLoader/UiSpinnerIcon.vue +21 -0
- package/src/components/UiLogo/UiLogo.vue +41 -7
- 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 +2 -2
- package/src/components/UiNestedOptions/UiNestedOptions.vue +6 -0
- package/src/components/UiPage/UiPage.vue +273 -47
- package/src/components/UiPageHeader/UiPageHeader.vue +29 -9
- 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 +14 -45
- package/src/components/UiRoomCountdown/UiRoomCountdown.vue +376 -0
- package/src/components/UiShell/UiShell.vue +10 -4
- package/src/components/UiSideMenu/UiSideMenu.vue +158 -18
- package/src/components/UiSideMenu/UiSideMenuItemContent.vue +22 -18
- package/src/components/UiStepper/UiStepper.vue +3 -16
- package/src/components/UiStepper/UiStepperDescription.vue +1 -13
- package/src/components/UiStepper/UiStepperIndicator.vue +17 -57
- 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 +375 -0
- package/src/components/UiSwitch/types.ts +5 -0
- 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 +61 -63
- 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 +27 -47
- package/src/components/UiTimeline/README.md +6 -6
- package/src/components/UiTimeline/UiTimelineItem.vue +3 -3
- 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 +66 -0
- 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 +43 -0
- package/src/composables/usePullGesture.ts +142 -0
- package/src/composables/useThemeAndModes.ts +28 -1
- package/src/constants/sizes.ts +1 -1
- package/src/css/body.css +16 -1
- package/src/css/fonts.css +39 -5
- package/src/global.d.ts +44 -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-DJFdCn2R.mjs +0 -5456
- 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/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/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/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/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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import type { UiTableSize } from '../UiTable/context';
|
|
3
|
+
import type { UiDataTableColumn, UiDataTableSort } from './UiDataTable.types';
|
|
4
|
+
export interface UiDataTableProps<TData> {
|
|
5
|
+
/** Column definitions. Each column can be customized via `#cell-<id>` and `#header-<id>` slots. */
|
|
6
|
+
columns: UiDataTableColumn<TData>[];
|
|
7
|
+
/** Rows, already sorted/filtered by the consumer. */
|
|
8
|
+
data: TData[];
|
|
9
|
+
/**
|
|
10
|
+
* Row heights: `md` = 40px header / 48px rows, `lg` = 48px header / 64px rows.
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: UiTableSize;
|
|
14
|
+
/**
|
|
15
|
+
* Alternating row backgrounds. Preferred over row dividers.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
zebra?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Renders skeleton rows instead of data.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Number of skeleton rows while loading.
|
|
26
|
+
* @default 5
|
|
27
|
+
*/
|
|
28
|
+
skeletonRows?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Current sort, controlled by the consumer (`v-model:sorting`). The table
|
|
31
|
+
* only renders the affordance and emits; sorting the data stays consumer-side.
|
|
32
|
+
* @default null
|
|
33
|
+
*/
|
|
34
|
+
sorting?: UiDataTableSort | null;
|
|
35
|
+
/**
|
|
36
|
+
* Makes rows interactive: hover feedback, keyboard focus and `row-click` emits.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
rowClickable?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Turns each row into a link to the returned location. The first cell holds
|
|
42
|
+
* a router link stretched over the row, so Cmd/Ctrl click, middle click and
|
|
43
|
+
* keyboard focus behave like any link. The first column's content sits
|
|
44
|
+
* inside the link, so it must hold no interactive content. Content of other
|
|
45
|
+
* cells that must stay interactive above the link (tooltips, buttons) needs
|
|
46
|
+
* `relative z-10`; the selection checkbox and `#actions` already sit above
|
|
47
|
+
* it. Takes precedence over `rowClickable`.
|
|
48
|
+
*/
|
|
49
|
+
rowLink?: (row: TData) => RouteLocationRaw;
|
|
50
|
+
/**
|
|
51
|
+
* Adds a leftmost checkbox column with a select-all header. Selection is
|
|
52
|
+
* controlled through `v-model:selectedRowIds`; pass `getRowId` so ids stay
|
|
53
|
+
* stable across data changes.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
selectable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Selected row ids, controlled by the consumer (`v-model:selectedRowIds`).
|
|
59
|
+
* @default []
|
|
60
|
+
*/
|
|
61
|
+
selectedRowIds?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* How the `#actions` slot attaches to the row. `default` reveals it on
|
|
64
|
+
* hover, masking the cells behind bare action buttons; `floating` also
|
|
65
|
+
* reveals on hover but drops that backdrop for self-contained content
|
|
66
|
+
* like a UiActionBar; `menu` tucks it behind an always-visible trigger
|
|
67
|
+
* button that opens a popover on click.
|
|
68
|
+
* @default 'default'
|
|
69
|
+
*/
|
|
70
|
+
actionsVariant?: 'default' | 'floating' | 'menu';
|
|
71
|
+
/**
|
|
72
|
+
* Whether a row has trailing actions. Rows that return false get an empty
|
|
73
|
+
* actions cell, so nothing reveals over them on hover. All rows have
|
|
74
|
+
* actions when omitted.
|
|
75
|
+
*/
|
|
76
|
+
rowHasActions?: (row: TData) => boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Id of the row whose hover actions stay shown without hover or focus,
|
|
79
|
+
* e.g. while a menu opened from them is open. Matches `getRowId`.
|
|
80
|
+
* @default null
|
|
81
|
+
*/
|
|
82
|
+
revealedActionsRowId?: string | null;
|
|
83
|
+
/** Stable row identity; falls back to the row index. */
|
|
84
|
+
getRowId?: (row: TData, index: number) => string;
|
|
85
|
+
}
|
|
86
|
+
declare const __VLS_export: <TData extends Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
87
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<UiDataTableProps<TData> & {
|
|
88
|
+
"onUpdate:sorting"?: ((sort: UiDataTableSort | null) => any) | undefined;
|
|
89
|
+
"onUpdate:selectedRowIds"?: ((ids: string[]) => any) | undefined;
|
|
90
|
+
onRowClick?: ((row: TData) => any) | undefined;
|
|
91
|
+
}> & (typeof globalThis extends {
|
|
92
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
93
|
+
} ? P : {});
|
|
94
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
95
|
+
table: import("@tanstack/vue-table").VueTable<{
|
|
96
|
+
rowSortingFeature: import("@tanstack/vue-table").TableFeature;
|
|
97
|
+
rowSelectionFeature: import("@tanstack/vue-table").TableFeature;
|
|
98
|
+
}, TData>;
|
|
99
|
+
}>) => void;
|
|
100
|
+
attrs: any;
|
|
101
|
+
slots: {
|
|
102
|
+
/** Trailing row actions, revealed on row hover/focus. */
|
|
103
|
+
actions?: (props: {
|
|
104
|
+
row: TData;
|
|
105
|
+
}) => unknown;
|
|
106
|
+
/**
|
|
107
|
+
* Rows after the data rows, in a second body of the same table, e.g. a
|
|
108
|
+
* teaser for rows the plan hides. They share the column grid and the
|
|
109
|
+
* zebra of the data rows. Render a `UiTableCell` per column, after an
|
|
110
|
+
* empty one when `selectable`, and end each row with an empty
|
|
111
|
+
* `UiTableActionsCell` when `hasActions`. The body is positioned, so an
|
|
112
|
+
* overlay over these rows can sit in a `UiTableRow` with `zebra` off.
|
|
113
|
+
*/
|
|
114
|
+
'body-end'?: (props: {
|
|
115
|
+
columns: UiDataTableColumn<TData>[];
|
|
116
|
+
selectable: boolean;
|
|
117
|
+
hasActions: boolean;
|
|
118
|
+
actionsVariant: "default" | "floating" | "menu";
|
|
119
|
+
}) => unknown;
|
|
120
|
+
} & Partial<Record<`cell-${string}`, (props: {
|
|
121
|
+
row: TData;
|
|
122
|
+
value: unknown;
|
|
123
|
+
}) => unknown>> & Partial<Record<`header-${string}`, (props: {
|
|
124
|
+
column: UiDataTableColumn<TData>;
|
|
125
|
+
}) => unknown>>;
|
|
126
|
+
emit: ((evt: "update:sorting", sort: UiDataTableSort | null) => void) & ((evt: "update:selectedRowIds", ids: string[]) => void) & ((evt: "rowClick", row: TData) => void);
|
|
127
|
+
}>) => import("vue").VNode & {
|
|
128
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
129
|
+
};
|
|
130
|
+
declare const _default: typeof __VLS_export;
|
|
131
|
+
export default _default;
|
|
132
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
133
|
+
[K in keyof T]: T[K];
|
|
134
|
+
} : {
|
|
135
|
+
[K in keyof T as K]: T[K];
|
|
136
|
+
}) & {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as UiDataTable } from './UiDataTable.vue';
|
|
2
|
+
export type { UiDataTableProps } from './UiDataTable.vue';
|
|
3
|
+
export type { UiDataTableColumn, UiDataTableSort } from './UiDataTable.types';
|
|
4
|
+
export { FlexRender, tableFeatures, useTable, } from '@tanstack/vue-table';
|
|
5
|
+
export type { ColumnDef, SortingState } from '@tanstack/vue-table';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DrawerRootProps } from 'vaul-vue';
|
|
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<DrawerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:open": (open: boolean) => any;
|
|
8
|
+
close: () => any;
|
|
9
|
+
animationEnd: (open: boolean) => any;
|
|
10
|
+
drag: (percentageDragged: number) => any;
|
|
11
|
+
release: (open: boolean) => any;
|
|
12
|
+
"update:activeSnapPoint": (val: string | number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<DrawerRootProps> & Readonly<{
|
|
14
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onAnimationEnd?: ((open: boolean) => any) | undefined;
|
|
17
|
+
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
18
|
+
onRelease?: ((open: boolean) => any) | undefined;
|
|
19
|
+
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface UiDrawerContentProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
}
|
|
4
|
+
declare var __VLS_36: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_36) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<UiDrawerContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiDrawerContentProps> & Readonly<{}>, {
|
|
9
|
+
title: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DrawerTriggerProps } from 'vaul-vue';
|
|
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<DrawerTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DrawerTriggerProps> & 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,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { SelectContentProps } from 'reka-ui';
|
|
2
|
+
declare const WIDTH_CLASSES: {
|
|
3
|
+
readonly auto: "";
|
|
4
|
+
readonly lg: "w-75";
|
|
5
|
+
};
|
|
2
6
|
interface Props extends SelectContentProps {
|
|
3
7
|
showScrollButtons?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 'auto' sizes the content to the trigger and its items; 'lg' gives items with descriptions a fixed 300px
|
|
10
|
+
* @default 'auto'
|
|
11
|
+
*/
|
|
12
|
+
width?: keyof typeof WIDTH_CLASSES;
|
|
4
13
|
/**
|
|
5
14
|
* The color semantic mode for the dropdown content
|
|
6
15
|
* @default 'light'
|
|
@@ -17,6 +26,7 @@ type __VLS_Slots = {} & {
|
|
|
17
26
|
};
|
|
18
27
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
28
|
position: "item-aligned" | "popper";
|
|
29
|
+
width: keyof typeof WIDTH_CLASSES;
|
|
20
30
|
side: "top" | "right" | "bottom" | "left";
|
|
21
31
|
sideOffset: number;
|
|
22
32
|
align: "center" | "start" | "end";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Heading read before the options of the group; leave it out for an untitled group. */
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_14: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_14) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -3,18 +3,23 @@ interface Props extends SelectItemProps {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
icon?: string;
|
|
6
|
+
/** `danger` marks an option that takes something away, such as removing access. */
|
|
7
|
+
variant?: 'default' | 'danger';
|
|
6
8
|
}
|
|
7
|
-
declare var
|
|
9
|
+
declare var __VLS_15: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {};
|
|
8
10
|
type __VLS_Slots = {} & {
|
|
9
|
-
|
|
11
|
+
leading?: (props: typeof __VLS_15) => any;
|
|
10
12
|
} & {
|
|
11
|
-
|
|
13
|
+
title?: (props: typeof __VLS_23) => any;
|
|
12
14
|
} & {
|
|
13
|
-
|
|
15
|
+
description?: (props: typeof __VLS_25) => any;
|
|
16
|
+
} & {
|
|
17
|
+
right?: (props: typeof __VLS_27) => any;
|
|
14
18
|
};
|
|
15
19
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
20
|
title: string;
|
|
17
21
|
icon: string;
|
|
22
|
+
variant: "default" | "danger";
|
|
18
23
|
description: string;
|
|
19
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -15,16 +15,31 @@ interface Props extends SelectTriggerProps {
|
|
|
15
15
|
color?: TColor;
|
|
16
16
|
/**
|
|
17
17
|
* Visual variant, named to match `UiButton`. `secondary` (default) is the
|
|
18
|
-
* bordered field look. `tertiary` drops the border + background
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* bordered field look. `tertiary` drops the border + background: the trigger
|
|
19
|
+
* shows only its value, coloured like a `UiButton` tertiary and set in the
|
|
20
|
+
* regular body text style, with a hover overlay. It suits a value picked
|
|
21
|
+
* inside a row, such as a role beside a person.
|
|
21
22
|
*/
|
|
22
23
|
variant?: TVariant;
|
|
23
24
|
error?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Shows the value as static text in the box of an editable trigger: same size, padding and
|
|
27
|
+
* border width, no fill, and an empty slot where the chevron would be, so its text ends where an
|
|
28
|
+
* editable trigger's value ends. It is not focusable and opens nothing; it renders as a `group`, so pass
|
|
29
|
+
* `aria-labelledby` (for example the row's name) to label it like the editable trigger.
|
|
30
|
+
* The value reads in the secondary text colour. Render it from the `value` slot.
|
|
31
|
+
*/
|
|
32
|
+
readonly?: boolean;
|
|
24
33
|
}
|
|
25
|
-
declare var
|
|
34
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_12: {}, __VLS_19: {};
|
|
26
35
|
type __VLS_Slots = {} & {
|
|
27
|
-
|
|
36
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
37
|
+
} & {
|
|
38
|
+
value?: (props: typeof __VLS_3) => any;
|
|
39
|
+
} & {
|
|
40
|
+
leading?: (props: typeof __VLS_12) => any;
|
|
41
|
+
} & {
|
|
42
|
+
value?: (props: typeof __VLS_19) => any;
|
|
28
43
|
};
|
|
29
44
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
30
45
|
size: TSize;
|
|
@@ -34,6 +49,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
34
49
|
error: boolean;
|
|
35
50
|
showIcon: boolean;
|
|
36
51
|
placeholder: string;
|
|
52
|
+
readonly: boolean;
|
|
37
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
55
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,5 +2,6 @@ export { default as UiDropdown } from './UiDropdown.vue';
|
|
|
2
2
|
export { default as UiDropdownTrigger } from './UiDropdownTrigger.vue';
|
|
3
3
|
export { default as UiDropdownContent } from './UiDropdownContent.vue';
|
|
4
4
|
export { default as UiDropdownItem } from './UiDropdownItem.vue';
|
|
5
|
+
export { default as UiDropdownGroup } from './UiDropdownGroup.vue';
|
|
5
6
|
export { default as UiDropdownSeparator } from './UiDropdownSeparator.vue';
|
|
6
7
|
export { SelectGroup, SelectLabel, SelectScrollUpButton, SelectScrollDownButton, SelectArrow, type SelectRootProps, type SelectRootEmits, type SelectContentProps, type SelectContentEmits, type SelectItemProps, type SelectTriggerProps, } from 'reka-ui';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface UiEmojiPickerListProps {
|
|
2
|
+
locale?: string;
|
|
3
|
+
searchPlaceholder?: string;
|
|
4
|
+
loadingLabel?: string;
|
|
5
|
+
emptyLabel?: string;
|
|
6
|
+
previewPlaceholder?: string;
|
|
7
|
+
skinToneLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<UiEmojiPickerListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
select: (emoji: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<UiEmojiPickerListProps> & Readonly<{
|
|
12
|
+
onSelect?: ((emoji: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
locale: string;
|
|
15
|
+
searchPlaceholder: string;
|
|
16
|
+
loadingLabel: string;
|
|
17
|
+
emptyLabel: string;
|
|
18
|
+
previewPlaceholder: string;
|
|
19
|
+
skinToneLabel: string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -5,19 +5,24 @@ export interface UiEmptyStateProps {
|
|
|
5
5
|
description?: string;
|
|
6
6
|
/** Optional illustration image URL */
|
|
7
7
|
image?: string;
|
|
8
|
+
/** Optional .lottie animation URL, takes precedence over `image` */
|
|
9
|
+
lottieSrc?: string;
|
|
8
10
|
/** Layout orientation. `vertical` stacks the illustration above the text; `horizontal` places it to the right. */
|
|
9
11
|
variant?: 'vertical' | 'horizontal';
|
|
10
12
|
}
|
|
11
|
-
declare var
|
|
13
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {};
|
|
12
14
|
type __VLS_Slots = {} & {
|
|
13
|
-
|
|
15
|
+
description?: (props: typeof __VLS_6) => any;
|
|
14
16
|
} & {
|
|
15
|
-
'
|
|
17
|
+
'primary-action'?: (props: typeof __VLS_8) => any;
|
|
18
|
+
} & {
|
|
19
|
+
'secondary-action'?: (props: typeof __VLS_10) => any;
|
|
16
20
|
};
|
|
17
21
|
declare const __VLS_base: import("vue").DefineComponent<UiEmptyStateProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiEmptyStateProps> & Readonly<{}>, {
|
|
18
22
|
image: string;
|
|
19
23
|
variant: "vertical" | "horizontal";
|
|
20
24
|
description: string;
|
|
25
|
+
lottieSrc: string;
|
|
21
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -21,10 +21,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
21
21
|
label: string;
|
|
22
22
|
required: boolean;
|
|
23
23
|
error: boolean;
|
|
24
|
-
id: string;
|
|
25
24
|
labelInfo: string;
|
|
26
|
-
helperMessage: string;
|
|
27
25
|
errorMessage: string;
|
|
26
|
+
id: string;
|
|
27
|
+
helperMessage: string;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CheckboxSize } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: CheckboxSize;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
size: CheckboxSize;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
error: boolean;
|
|
13
|
+
checked: boolean;
|
|
14
|
+
indeterminate: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CheckboxSize } from './types';
|
|
2
|
+
import type { ControlPosition } from '../UiChoice/types';
|
|
2
3
|
interface UiInputCheckboxProps {
|
|
3
4
|
/**
|
|
4
5
|
* The checkbox value (boolean for single checkbox, or value for array binding)
|
|
@@ -40,6 +41,11 @@ interface UiInputCheckboxProps {
|
|
|
40
41
|
* Info tooltip for the label
|
|
41
42
|
*/
|
|
42
43
|
labelInfo?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Icon class rendered between the checkbox and the text (e.g. `i-ph-bell`).
|
|
46
|
+
* In vertical orientation it sits above the text instead.
|
|
47
|
+
*/
|
|
48
|
+
icon?: string;
|
|
43
49
|
/**
|
|
44
50
|
* Description text below the label
|
|
45
51
|
*/
|
|
@@ -61,6 +67,10 @@ interface UiInputCheckboxProps {
|
|
|
61
67
|
* @default 'md'
|
|
62
68
|
*/
|
|
63
69
|
size?: CheckboxSize;
|
|
70
|
+
/**
|
|
71
|
+
* Accessible name for the input, for checkboxes rendered without a label
|
|
72
|
+
*/
|
|
73
|
+
ariaLabel?: string;
|
|
64
74
|
/**
|
|
65
75
|
* Layout orientation
|
|
66
76
|
* @default 'horizontal'
|
|
@@ -71,10 +81,25 @@ interface UiInputCheckboxProps {
|
|
|
71
81
|
* @default false
|
|
72
82
|
*/
|
|
73
83
|
showBg?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the checkbox stretches to fill its container instead of
|
|
86
|
+
* shrink-wrapping its content
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
fullWidth?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Which side of the text the checkbox sits on, in horizontal orientation
|
|
92
|
+
* @default 'start'
|
|
93
|
+
*/
|
|
94
|
+
controlPosition?: ControlPosition;
|
|
74
95
|
}
|
|
75
|
-
declare var
|
|
96
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_18: {};
|
|
76
97
|
type __VLS_Slots = {} & {
|
|
77
|
-
|
|
98
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
99
|
+
} & {
|
|
100
|
+
icon?: (props: typeof __VLS_8) => any;
|
|
101
|
+
} & {
|
|
102
|
+
label?: (props: typeof __VLS_18) => any;
|
|
78
103
|
};
|
|
79
104
|
declare const __VLS_base: import("vue").DefineComponent<UiInputCheckboxProps, {
|
|
80
105
|
focus: () => void | undefined;
|
|
@@ -82,21 +107,27 @@ declare const __VLS_base: import("vue").DefineComponent<UiInputCheckboxProps, {
|
|
|
82
107
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
108
|
"update:modelValue": (value: string | number | boolean | (string | number)[]) => any;
|
|
84
109
|
change: (event: Event) => any;
|
|
85
|
-
blur: (event: FocusEvent) => any;
|
|
86
110
|
focus: (event: FocusEvent) => any;
|
|
111
|
+
blur: (event: FocusEvent) => any;
|
|
112
|
+
"tooltip-clicked": () => any;
|
|
87
113
|
}, string, import("vue").PublicProps, Readonly<UiInputCheckboxProps> & Readonly<{
|
|
88
114
|
"onUpdate:modelValue"?: ((value: string | number | boolean | (string | number)[]) => any) | undefined;
|
|
89
115
|
onChange?: ((event: Event) => any) | undefined;
|
|
90
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
91
116
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
117
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
118
|
+
"onTooltip-clicked"?: (() => any) | undefined;
|
|
92
119
|
}>, {
|
|
93
120
|
orientation: "horizontal" | "vertical";
|
|
94
121
|
size: CheckboxSize;
|
|
122
|
+
ariaLabel: string;
|
|
123
|
+
icon: string;
|
|
95
124
|
disabled: boolean;
|
|
96
125
|
required: boolean;
|
|
97
126
|
error: boolean;
|
|
127
|
+
fullWidth: boolean;
|
|
98
128
|
checked: boolean;
|
|
99
129
|
indeterminate: boolean;
|
|
130
|
+
controlPosition: ControlPosition;
|
|
100
131
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
101
132
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
102
133
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
interface UiInputEmojiProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
searchPlaceholder?: string;
|
|
6
|
+
loadingLabel?: string;
|
|
7
|
+
emptyLabel?: string;
|
|
8
|
+
previewPlaceholder?: string;
|
|
9
|
+
skinToneLabel?: string;
|
|
10
|
+
sideOffset?: number;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare var __VLS_14: {
|
|
14
|
+
open: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_14) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<UiInputEmojiProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
select: (emoji: string) => any;
|
|
22
|
+
"update:open": (value: boolean) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<UiInputEmojiProps> & Readonly<{
|
|
24
|
+
onSelect?: ((emoji: string) => any) | undefined;
|
|
25
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
label: string;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
sideOffset: number;
|
|
30
|
+
open: boolean;
|
|
31
|
+
locale: string;
|
|
32
|
+
searchPlaceholder: string;
|
|
33
|
+
loadingLabel: string;
|
|
34
|
+
emptyLabel: string;
|
|
35
|
+
previewPlaceholder: string;
|
|
36
|
+
skinToneLabel: string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RadioValue } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
inputId: string;
|
|
4
|
+
value: RadioValue;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
error: boolean;
|
|
7
|
+
ariaDescribedby?: string;
|
|
8
|
+
radioClasses: string[];
|
|
9
|
+
indicatorClasses: string[];
|
|
10
|
+
}
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
12
|
+
el: () => HTMLElement | undefined;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
select: (event: Event) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { RadioValue } from './types';
|
|
2
|
+
import type { ControlPosition } from '../UiChoice/types';
|
|
3
|
+
interface UiInputRadioProps {
|
|
4
|
+
/**
|
|
5
|
+
* The value this option represents. `null` is a valid value;
|
|
6
|
+
* object values must be reference-stable.
|
|
7
|
+
*/
|
|
8
|
+
value: RadioValue;
|
|
9
|
+
/**
|
|
10
|
+
* The label text
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Description text below the label
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Info tooltip for the label
|
|
19
|
+
*/
|
|
20
|
+
labelInfo?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Icon class rendered between the radio and the text (e.g. `i-ph-bell`).
|
|
23
|
+
* In vertical orientation it sits above the text instead.
|
|
24
|
+
*/
|
|
25
|
+
icon?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this option is disabled
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Layout orientation of the radio relative to the label
|
|
33
|
+
* @default 'horizontal'
|
|
34
|
+
*/
|
|
35
|
+
orientation?: 'horizontal' | 'vertical';
|
|
36
|
+
/**
|
|
37
|
+
* Which side of the text the radio sits on, in horizontal orientation
|
|
38
|
+
* @default 'start'
|
|
39
|
+
*/
|
|
40
|
+
controlPosition?: ControlPosition;
|
|
41
|
+
/**
|
|
42
|
+
* Radio id attribute
|
|
43
|
+
*/
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
declare var __VLS_10: {}, __VLS_18: {}, __VLS_20: {}, __VLS_28: {};
|
|
47
|
+
type __VLS_Slots = {} & {
|
|
48
|
+
icon?: (props: typeof __VLS_10) => any;
|
|
49
|
+
} & {
|
|
50
|
+
label?: (props: typeof __VLS_18) => any;
|
|
51
|
+
} & {
|
|
52
|
+
label?: (props: typeof __VLS_20) => any;
|
|
53
|
+
} & {
|
|
54
|
+
content?: (props: typeof __VLS_28) => any;
|
|
55
|
+
};
|
|
56
|
+
declare const __VLS_base: import("vue").DefineComponent<UiInputRadioProps, {
|
|
57
|
+
focus: () => void | undefined;
|
|
58
|
+
blur: () => void | undefined;
|
|
59
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
select: (event: Event) => any;
|
|
61
|
+
}, string, import("vue").PublicProps, Readonly<UiInputRadioProps> & Readonly<{
|
|
62
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
orientation: "horizontal" | "vertical";
|
|
65
|
+
label: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
description: string;
|
|
69
|
+
labelInfo: string;
|
|
70
|
+
id: string;
|
|
71
|
+
controlPosition: ControlPosition;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
73
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|