// Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import LabelButton from "./LabelButton.svelte"; import type { LabelButtonProps } from "./LabelButton"; import IconButton from "./IconButton.svelte"; import type { IconButtonProps } from "./IconButton"; import CommandIconButton from "./CommandIconButton.svelte"; import type { CommandIconButtonProps } from "./CommandIconButton"; import ColorPicker from "./ColorPicker.svelte"; import type { ColorPickerProps } from "./ColorPicker"; import ButtonGroup from "./ButtonGroup.svelte"; import type { ButtonGroupProps } from "./ButtonGroup"; import ButtonDropdown from "./ButtonDropdown.svelte"; import type { ButtonDropdownProps } from "./ButtonDropdown"; import DropdownMenu from "./DropdownMenu.svelte"; import type { DropdownMenuProps } from "./DropdownMenu"; import DropdownItem from "./DropdownItem.svelte"; import type { DropdownItemProps } from "./DropdownItem"; import WithDropdownMenu from "./WithDropdownMenu.svelte"; import type { WithDropdownMenuProps } from "./WithDropdownMenu"; import WithShortcut from "./WithShortcut.svelte"; import type { WithShortcutProps } from "./WithShortcut"; import { dynamicComponent } from "sveltelib/dynamicComponent"; export const labelButton = dynamicComponent( LabelButton ); export const iconButton = dynamicComponent( IconButton ); export const commandIconButton = dynamicComponent< typeof CommandIconButton, CommandIconButtonProps >(CommandIconButton); export const colorPicker = dynamicComponent( ColorPicker ); export const buttonGroup = dynamicComponent( ButtonGroup ); export const buttonDropdown = dynamicComponent< typeof ButtonDropdown, ButtonDropdownProps >(ButtonDropdown); export const dropdownMenu = dynamicComponent( DropdownMenu ); export const dropdownItem = dynamicComponent( DropdownItem ); export const withDropdownMenu = dynamicComponent< typeof WithDropdownMenu, WithDropdownMenuProps >(WithDropdownMenu); export const withShortcut = dynamicComponent( WithShortcut );