@kwantis-id3/frontend-library 1.3.0-rc.0 → 1.3.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/dist/esm/index.js +96 -73
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DataGrid/DataGridInterfaces.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/SkeletonCard.d.ts +2 -0
- package/dist/esm/types/components/Skeleton/SkeletonInterfaces.d.ts +14 -0
- package/dist/esm/types/components/Skeleton/SkeletonItem.d.ts +2 -0
- package/dist/esm/types/components/Skeleton/SkeletonStyled.d.ts +10 -0
- package/dist/esm/types/components/Skeleton/index.d.ts +3 -0
- package/dist/esm/types/components/Stack/Stack.d.ts +2 -0
- package/dist/esm/types/components/Stack/StackInterfaces.d.ts +17 -0
- package/dist/esm/types/components/Stack/StackStyled.d.ts +10 -0
- package/dist/esm/types/components/Stack/index.d.ts +2 -0
- package/dist/esm/types/components/Table/TableInterfaces.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +2 -0
- package/dist/index.d.ts +38 -3
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { TCellValues } from "../Table";
|
|
|
3
3
|
export type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
|
|
4
4
|
columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
|
|
5
5
|
data: Row[] | undefined;
|
|
6
|
-
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
7
6
|
};
|
|
8
7
|
export type TDataGridRow<Cell extends TCellValues> = {
|
|
9
8
|
[key: string]: Cell;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TSkeletonVariant = "circle" | "text" | "rect" | "rounded";
|
|
3
|
+
export type TSkeletonProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
/** Visual variant of the skeleton placeholder */
|
|
5
|
+
variant?: TSkeletonVariant;
|
|
6
|
+
/** Width of the skeleton. Accepts any valid CSS length string or a number (treated as px) */
|
|
7
|
+
width?: string | number;
|
|
8
|
+
/** Height of the skeleton. Accepts any valid CSS length string or a number (treated as px) */
|
|
9
|
+
height?: string | number;
|
|
10
|
+
/** Controls whether the shimmer animation plays */
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
/** Forwarded ref to the underlying DOM element */
|
|
13
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TSkeletonVariant } from "./SkeletonInterfaces";
|
|
2
|
+
export declare const SkeletonStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
} & {
|
|
6
|
+
$variant: TSkeletonVariant;
|
|
7
|
+
$width: string;
|
|
8
|
+
$height: string;
|
|
9
|
+
$animated: boolean;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
export type TStackProps = PropsWithChildren & React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
/** Direction of the stack */
|
|
4
|
+
direction?: "row" | "column";
|
|
5
|
+
/** Spacing between the items in the stack */
|
|
6
|
+
spacing?: string;
|
|
7
|
+
/** Width of the stack */
|
|
8
|
+
width?: string;
|
|
9
|
+
/** If true, the stack will be centered both vertically and horizontally */
|
|
10
|
+
centered?: boolean;
|
|
11
|
+
/** If true, the stack items will wrap to the next line when they overflow */
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
/** Ref forward to the underlying DOM element */
|
|
14
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
+
/** Allows rendering the stack as a different HTML element or component */
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const StackStyled: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
$direction: string;
|
|
6
|
+
$spacing: string;
|
|
7
|
+
$width: string;
|
|
8
|
+
$centered?: boolean;
|
|
9
|
+
$wrap?: boolean;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,7 +3,6 @@ export type TCellValues = string | number | boolean | null;
|
|
|
3
3
|
export type TTableProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = {
|
|
4
4
|
columns: ColumnDef<Row, Cell>[];
|
|
5
5
|
data: Row[] | undefined;
|
|
6
|
-
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
7
6
|
};
|
|
8
7
|
export type TTableCell<T extends TCellValues> = {
|
|
9
8
|
value: T;
|
package/dist/index.d.ts
CHANGED
|
@@ -461,7 +461,6 @@ type TCellValues = string | number | boolean | null;
|
|
|
461
461
|
type TTableProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = {
|
|
462
462
|
columns: ColumnDef<Row, Cell>[];
|
|
463
463
|
data: Row[] | undefined;
|
|
464
|
-
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
465
464
|
};
|
|
466
465
|
type TTableCell<T extends TCellValues> = {
|
|
467
466
|
value: T;
|
|
@@ -485,7 +484,6 @@ declare const renderCell: (value: string | number | boolean | null) => _emotion_
|
|
|
485
484
|
type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
|
|
486
485
|
columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
|
|
487
486
|
data: Row[] | undefined;
|
|
488
|
-
onFilteredRowsChange?: (rows: Row[]) => void;
|
|
489
487
|
};
|
|
490
488
|
type TDataGridRow<Cell extends TCellValues> = {
|
|
491
489
|
[key: string]: Cell;
|
|
@@ -774,6 +772,43 @@ type TAIBubbleProps = Omit<TPopoverProps, "trigger" | "children" | "topBarLeft"
|
|
|
774
772
|
|
|
775
773
|
declare const AIBubble: ({ url, externalUrl, placement, align, color, bubbleSize, iconSize, collapsedSize, showCloseButton, showExpandButton, ...rest }: TAIBubbleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
776
774
|
|
|
775
|
+
type TStackProps = PropsWithChildren & react__default.HTMLAttributes<HTMLDivElement> & {
|
|
776
|
+
/** Direction of the stack */
|
|
777
|
+
direction?: "row" | "column";
|
|
778
|
+
/** Spacing between the items in the stack */
|
|
779
|
+
spacing?: string;
|
|
780
|
+
/** Width of the stack */
|
|
781
|
+
width?: string;
|
|
782
|
+
/** If true, the stack will be centered both vertically and horizontally */
|
|
783
|
+
centered?: boolean;
|
|
784
|
+
/** If true, the stack items will wrap to the next line when they overflow */
|
|
785
|
+
wrap?: boolean;
|
|
786
|
+
/** Ref forward to the underlying DOM element */
|
|
787
|
+
ref?: react__default.Ref<HTMLDivElement>;
|
|
788
|
+
/** Allows rendering the stack as a different HTML element or component */
|
|
789
|
+
as?: react__default.ElementType;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
declare function Stack({ direction, spacing, width, centered, wrap, style, children, ref, as, ...rest }: TStackProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
793
|
+
|
|
794
|
+
type TSkeletonVariant = "circle" | "text" | "rect" | "rounded";
|
|
795
|
+
type TSkeletonProps = react__default.HTMLAttributes<HTMLDivElement> & {
|
|
796
|
+
/** Visual variant of the skeleton placeholder */
|
|
797
|
+
variant?: TSkeletonVariant;
|
|
798
|
+
/** Width of the skeleton. Accepts any valid CSS length string or a number (treated as px) */
|
|
799
|
+
width?: string | number;
|
|
800
|
+
/** Height of the skeleton. Accepts any valid CSS length string or a number (treated as px) */
|
|
801
|
+
height?: string | number;
|
|
802
|
+
/** Controls whether the shimmer animation plays */
|
|
803
|
+
animated?: boolean;
|
|
804
|
+
/** Forwarded ref to the underlying DOM element */
|
|
805
|
+
ref?: react__default.Ref<HTMLDivElement>;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
declare function SkeletonItem({ variant, width, height, animated, style, ref, ...rest }: TSkeletonProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
809
|
+
|
|
810
|
+
declare const SkeletonCard: FC;
|
|
811
|
+
|
|
777
812
|
/**
|
|
778
813
|
* emotion.js doesn't support transient options out of the box.
|
|
779
814
|
*
|
|
@@ -823,4 +858,4 @@ declare const getActiveColor: (color: string) => string;
|
|
|
823
858
|
|
|
824
859
|
declare function usePrefersColorScheme(): "light" | "dark";
|
|
825
860
|
|
|
826
|
-
export { AIBubble, Accordion, AccordionGroup, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, Checkbox, ControlledTreeView, DataGrid, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewGrid, MultiViewList, Popover, SingleSelect, SingleSelectProps, Slider, Switch, TAIBubbleProps, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TCheckboxProps, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDataGridProps, TDataGridRow, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewGridProps, TMultiViewListProps, TPopoverActions, TPopoverPosition, TPopoverProps, TRenderTriggerProps, TSliderProps, TSwitchProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, commonColors, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, transientOptions, useIsMobile, usePrefersColorScheme, useThemeContext };
|
|
861
|
+
export { AIBubble, Accordion, AccordionGroup, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, Checkbox, ControlledTreeView, DataGrid, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewGrid, MultiViewList, Popover, SingleSelect, SingleSelectProps, SkeletonCard, SkeletonItem, Slider, Stack, Switch, TAIBubbleProps, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TCheckboxProps, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDataGridProps, TDataGridRow, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewGridProps, TMultiViewListProps, TPopoverActions, TPopoverPosition, TPopoverProps, TRenderTriggerProps, TSkeletonProps, TSkeletonVariant, TSliderProps, TStackProps, TSwitchProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, commonColors, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, transientOptions, useIsMobile, usePrefersColorScheme, useThemeContext };
|