stratosphere-ui 1.0.0 → 1.0.2
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/components/Alert/Alert.d.ts +14 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AlertMessages/AlertMessagesProvider.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/CardActions.d.ts +3 -0
- package/dist/components/Card/CardBody.d.ts +3 -0
- package/dist/components/Card/CardTitle.d.ts +3 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Form/FormTextarea.d.ts +1 -1
- package/dist/components/Link/Link.d.ts +8 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +7 -0
- package/dist/components/Progress/RadialProgress.d.ts +7 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Stat/Stat.d.ts +3 -0
- package/dist/components/Stat/StatActions.d.ts +3 -0
- package/dist/components/Stat/StatDesc.d.ts +3 -0
- package/dist/components/Stat/StatFigure.d.ts +3 -0
- package/dist/components/Stat/StatTitle.d.ts +3 -0
- package/dist/components/Stat/StatValue.d.ts +3 -0
- package/dist/components/Stat/Stats.d.ts +7 -0
- package/dist/components/Stat/index.d.ts +7 -0
- package/dist/components/Steps/Step.d.ts +7 -0
- package/dist/components/Steps/Steps.d.ts +7 -0
- package/dist/components/Steps/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/stratosphere-ui.js +9413 -9271
- package/package.json +3 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentProps, FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export declare const ALERT_COLORS: readonly ["info", "success", "warning", "error"];
|
|
4
|
+
export type AlertColor = (typeof ALERT_COLORS)[number];
|
|
5
|
+
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
6
|
+
actionButtons?: ({
|
|
7
|
+
id: string;
|
|
8
|
+
} & ButtonProps)[];
|
|
9
|
+
color?: AlertColor;
|
|
10
|
+
description?: string;
|
|
11
|
+
icon: FC<ComponentProps<'svg'>>;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Alert: ({ actionButtons, className, color, description, icon: Icon, title, ...props }: AlertProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export type AlertColor = (typeof ALERT_COLORS)[number];
|
|
2
|
+
import { AlertColor } from '../Alert';
|
|
4
3
|
export interface AlertMessage {
|
|
5
4
|
color?: AlertColor;
|
|
6
5
|
title: string;
|
|
@@ -7,6 +7,7 @@ export type ButtonShape = (typeof BUTTON_SHAPES)[number];
|
|
|
7
7
|
export type ButtonSize = (typeof BUTTON_SIZES)[number];
|
|
8
8
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
9
|
active?: boolean;
|
|
10
|
+
as?: 'a' | 'button';
|
|
10
11
|
block?: boolean;
|
|
11
12
|
color?: ButtonColor;
|
|
12
13
|
disabled?: boolean;
|
|
@@ -19,4 +20,4 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
19
20
|
size?: ButtonSize;
|
|
20
21
|
wide?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
bordered?: boolean;
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
imageFull?: boolean;
|
|
6
|
+
normal?: boolean;
|
|
7
|
+
side?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Card: ({ bordered, className, compact, imageFull, normal, side, ...props }: CardProps) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ export declare const TEXTAREA_COLORS: readonly ["ghost", "primary", "secondary",
|
|
|
6
6
|
export declare const TEXTAREA_SIZES: readonly ["lg", "md", "sm", "xs"];
|
|
7
7
|
export type TextareaColor = (typeof TEXTAREA_COLORS)[number];
|
|
8
8
|
export type TextareaSize = (typeof TEXTAREA_SIZES)[number];
|
|
9
|
-
export interface FormTextareaProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<
|
|
9
|
+
export interface FormTextareaProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLTextAreaElement>, 'name' | 'size'> {
|
|
10
10
|
bordered?: boolean;
|
|
11
11
|
color?: TextareaColor;
|
|
12
12
|
hideErrorMessage?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const LINK_COLORS: readonly ["neutral", "primary", "secondary", "accent", "success", "info", "warning", "error"];
|
|
3
|
+
export type LinkColor = (typeof LINK_COLORS)[number];
|
|
4
|
+
export interface LinkProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
color?: LinkColor;
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Link: ({ className, color, hover, ...props }: LinkProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const LOADING_SHAPES: readonly ["spinner", "dots", "ring", "ball", "bars", "infinity"];
|
|
3
|
+
export type LoadingShape = (typeof LOADING_SHAPES)[number];
|
|
4
|
+
export declare const LOADING_SIZES: readonly ["xs", "sm", "md", "lg"];
|
|
5
|
+
export type LoadingSize = (typeof LOADING_SIZES)[number];
|
|
6
|
+
export interface LoadingProps extends HTMLAttributes<HTMLSpanElement> {
|
|
7
|
+
shape?: LoadingShape;
|
|
8
|
+
size?: LoadingSize;
|
|
9
|
+
}
|
|
10
|
+
export declare const Loading: ({ className, shape, size, ...props }: LoadingProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Loading';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const PROGRESS_COLORS: readonly ["primary", "secondary", "accent", "info", "success", "warning", "error"];
|
|
3
|
+
export type ProgressColor = (typeof PROGRESS_COLORS)[number];
|
|
4
|
+
export interface ProgressProps extends HTMLAttributes<HTMLProgressElement> {
|
|
5
|
+
color?: ProgressColor;
|
|
6
|
+
}
|
|
7
|
+
export declare const Progress: ({ className, color, ...props }: ProgressProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface RadialProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
size?: string;
|
|
4
|
+
thickness?: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const RadialProgress: ({ className, size, style, thickness, value, ...props }: RadialProgressProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const STATS_LAYOUTS: readonly ["horizontal", "vertical"];
|
|
3
|
+
export type StatsLayout = (typeof STATS_LAYOUTS)[number];
|
|
4
|
+
export interface StatsProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
layout?: StatsLayout;
|
|
6
|
+
}
|
|
7
|
+
export declare const Stats: ({ className, layout, ...props }: StatsProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const STEP_COLORS: readonly ["primary", "secondary", "accent", "info", "success", "warning", "error"];
|
|
3
|
+
export type StepColor = (typeof STEP_COLORS)[number];
|
|
4
|
+
export interface StepProps extends HTMLAttributes<HTMLLIElement> {
|
|
5
|
+
color?: StepColor;
|
|
6
|
+
}
|
|
7
|
+
export declare const Step: ({ className, color, ...props }: StepProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const STEPS_DIRECTIONS: readonly ["horizontal", "vertical"];
|
|
3
|
+
export type StepsDirection = (typeof STEPS_DIRECTIONS)[number];
|
|
4
|
+
export interface StepsProps extends HTMLAttributes<HTMLUListElement> {
|
|
5
|
+
direction?: StepsDirection;
|
|
6
|
+
}
|
|
7
|
+
export declare const Steps: ({ className, direction, ...props }: StepsProps) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface TabData {
|
|
|
6
6
|
id: string;
|
|
7
7
|
paths?: string[];
|
|
8
8
|
}
|
|
9
|
-
export declare const TAB_SIZES:
|
|
9
|
+
export declare const TAB_SIZES: readonly ["xs", "sm", "md", "lg"];
|
|
10
10
|
export type TabSize = (typeof TAB_SIZES)[number];
|
|
11
11
|
export interface TabsProps extends Omit<HTMLProps<HTMLDivElement>, 'as' | 'onChange' | 'ref' | 'size'> {
|
|
12
12
|
bordered?: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const TOOLTIP_POSITIONS: readonly ["top", "bottom", "left", "right"];
|
|
3
|
+
export type TooltipPosition = (typeof TOOLTIP_POSITIONS)[number];
|
|
4
|
+
export declare const TOOLTIP_COLORS: readonly ["primary", "secondary", "accent", "info", "warning", "success", "error"];
|
|
5
|
+
export type TooltipColor = (typeof TOOLTIP_COLORS)[number];
|
|
6
|
+
export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
color?: TooltipColor;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
position?: TooltipPosition;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tooltip: ({ className, color, open, position, text, ...props }: TooltipProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
export * from './Alert';
|
|
1
2
|
export * from './AlertMessages';
|
|
2
3
|
export * from './Badge';
|
|
3
4
|
export * from './Button';
|
|
5
|
+
export * from './Card';
|
|
4
6
|
export * from './Disclosure';
|
|
5
7
|
export * from './DropdownMenu';
|
|
6
8
|
export * from './Form';
|
|
7
9
|
export * from './FullScreenLoader';
|
|
8
10
|
export * from './Icons';
|
|
11
|
+
export * from './Link';
|
|
12
|
+
export * from './Loading';
|
|
9
13
|
export * from './LoadingCard';
|
|
10
14
|
export * from './Modal';
|
|
11
15
|
export * from './Pagination';
|
|
12
16
|
export * from './PasswordInput';
|
|
13
17
|
export * from './Popover';
|
|
18
|
+
export * from './Progress';
|
|
14
19
|
export * from './Select';
|
|
20
|
+
export * from './Stat';
|
|
21
|
+
export * from './Steps';
|
|
15
22
|
export * from './Table';
|
|
16
23
|
export * from './Tabs';
|
|
24
|
+
export * from './Tooltip';
|
|
17
25
|
export * from './TypeaheadSelect';
|