mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
chore: remove Truncate since it does not exist in Carbon v11
This commit is contained in:
parent
90a0baf676
commit
5833536199
13 changed files with 3 additions and 191 deletions
19
types/Truncate/Truncate.svelte.d.ts
vendored
19
types/Truncate/Truncate.svelte.d.ts
vendored
|
@ -1,19 +0,0 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
type RestProps = SvelteHTMLElements["p"];
|
||||
|
||||
export interface TruncateProps extends RestProps {
|
||||
/**
|
||||
* @default "end"
|
||||
*/
|
||||
clamp?: "end" | "front";
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class Truncate extends SvelteComponentTyped<
|
||||
TruncateProps,
|
||||
Record<string, any>,
|
||||
{ default: {} }
|
||||
> {}
|
12
types/Truncate/truncate.d.ts
vendored
12
types/Truncate/truncate.d.ts
vendored
|
@ -1,12 +0,0 @@
|
|||
interface TruncateOptions {
|
||||
clamp?: "end" | "front";
|
||||
}
|
||||
|
||||
export function TruncateAction(
|
||||
node: HTMLElement,
|
||||
options?: TruncateOptions
|
||||
): {
|
||||
update: (options?: TruncateOptions) => void;
|
||||
};
|
||||
|
||||
export default TruncateAction;
|
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
|
@ -142,8 +142,6 @@ export { default as TooltipFooter } from "./Tooltip/TooltipFooter.svelte";
|
|||
export { default as TooltipDefinition } from "./TooltipDefinition/TooltipDefinition.svelte";
|
||||
export { default as TooltipIcon } from "./TooltipIcon/TooltipIcon.svelte";
|
||||
export { default as TreeView } from "./TreeView/TreeView.svelte";
|
||||
export { default as Truncate } from "./Truncate/Truncate.svelte";
|
||||
export { default as truncate } from "./Truncate/truncate";
|
||||
export { default as Header } from "./UIShell/Header.svelte";
|
||||
export { default as HeaderAction } from "./UIShell/HeaderAction.svelte";
|
||||
export { default as HeaderActionLink } from "./UIShell/HeaderActionLink.svelte";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue