From 7b59608f4858048d01c07b4b65ca87b07e73a36a Mon Sep 17 00:00:00 2001 From: grabkowski Date: Thu, 1 Apr 2021 16:59:30 +0200 Subject: [PATCH] fix(batch-selection): ts type definitions not properly exported add missing index.d.ts file add missing "hidden" type definition fix incorrect "colorTheme" types sort ts type definitions --- ...{batch-selection.component.d.ts => batch-selection.d.ts} | 6 ++++-- src/components/batch-selection/index.d.ts | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) rename src/components/batch-selection/{batch-selection.component.d.ts => batch-selection.d.ts} (81%) create mode 100644 src/components/batch-selection/index.d.ts diff --git a/src/components/batch-selection/batch-selection.component.d.ts b/src/components/batch-selection/batch-selection.d.ts similarity index 81% rename from src/components/batch-selection/batch-selection.component.d.ts rename to src/components/batch-selection/batch-selection.d.ts index 758162e487..827caf7f20 100644 --- a/src/components/batch-selection/batch-selection.component.d.ts +++ b/src/components/batch-selection/batch-selection.d.ts @@ -1,12 +1,14 @@ import * as React from "react"; export interface BatchSelectionProps { - /** Color of the background, transparent if not defined */ - colorTheme?: "dark" | "light" | "transparent-base" | "transparent-white"; /** Content to be rendered after selected count */ children: React.ReactNode; + /** Color of the background, transparent if not defined */ + colorTheme?: "dark" | "light" | "white" | "transparent"; /** If true disables all user interaction */ disabled?: boolean; + /** Hidden if true */ + hidden?: boolean; /** Number of selected elements */ selectedCount: number; } diff --git a/src/components/batch-selection/index.d.ts b/src/components/batch-selection/index.d.ts new file mode 100644 index 0000000000..3f03e67ec7 --- /dev/null +++ b/src/components/batch-selection/index.d.ts @@ -0,0 +1,2 @@ + +export { default } from "./batch-selection";