import { SvelteComponent } from 'svelte'; import { HTMLAnchorAttributes, HTMLAttributes, HTMLBaseAttributes, HTMLButtonAttributes, HTMLFormAttributes, HTMLLabelAttributes } from 'svelte/elements'; import { CSS, DefaultProps, SvelteUITheme } from '../../styles'; import { Component, LiteralUnion } from '../../internal'; interface BoxPropsInternal extends DefaultProps, HTMLAttributes { root?: LiteralUnion; css?: CSS | ((theme: SvelteUITheme) => CSS); // @TODO: follow this issue - https://github.com/sveltejs/language-tools/issues/1825 // since it will possibly add this feature in the future, which will remove all // current errors we have with `data-*` props being passed to Box [key: `data-${string}`]: any; } export type BoxProps = BoxPropsInternal & HTMLBaseAttributes & HTMLAnchorAttributes & HTMLButtonAttributes & HTMLFormAttributes & HTMLLabelAttributes;