@kwantis-id3/frontend-library 1.2.1 → 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 +89 -66
- package/dist/esm/index.js.map +1 -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/index.d.ts +2 -0
- package/dist/index.d.ts +38 -1
- package/package.json +1 -1
|
@@ -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>, {}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -772,6 +772,43 @@ type TAIBubbleProps = Omit<TPopoverProps, "trigger" | "children" | "topBarLeft"
|
|
|
772
772
|
|
|
773
773
|
declare const AIBubble: ({ url, externalUrl, placement, align, color, bubbleSize, iconSize, collapsedSize, showCloseButton, showExpandButton, ...rest }: TAIBubbleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
774
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
|
+
|
|
775
812
|
/**
|
|
776
813
|
* emotion.js doesn't support transient options out of the box.
|
|
777
814
|
*
|
|
@@ -821,4 +858,4 @@ declare const getActiveColor: (color: string) => string;
|
|
|
821
858
|
|
|
822
859
|
declare function usePrefersColorScheme(): "light" | "dark";
|
|
823
860
|
|
|
824
|
-
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 };
|