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.
Files changed (34) hide show
  1. package/dist/components/Alert/Alert.d.ts +14 -0
  2. package/dist/components/Alert/index.d.ts +1 -0
  3. package/dist/components/AlertMessages/AlertMessagesProvider.d.ts +1 -2
  4. package/dist/components/Button/Button.d.ts +2 -1
  5. package/dist/components/Card/Card.d.ts +9 -0
  6. package/dist/components/Card/CardActions.d.ts +3 -0
  7. package/dist/components/Card/CardBody.d.ts +3 -0
  8. package/dist/components/Card/CardTitle.d.ts +3 -0
  9. package/dist/components/Card/index.d.ts +4 -0
  10. package/dist/components/Form/FormTextarea.d.ts +1 -1
  11. package/dist/components/Link/Link.d.ts +8 -0
  12. package/dist/components/Link/index.d.ts +1 -0
  13. package/dist/components/Loading/Loading.d.ts +10 -0
  14. package/dist/components/Loading/index.d.ts +1 -0
  15. package/dist/components/Progress/Progress.d.ts +7 -0
  16. package/dist/components/Progress/RadialProgress.d.ts +7 -0
  17. package/dist/components/Progress/index.d.ts +2 -0
  18. package/dist/components/Stat/Stat.d.ts +3 -0
  19. package/dist/components/Stat/StatActions.d.ts +3 -0
  20. package/dist/components/Stat/StatDesc.d.ts +3 -0
  21. package/dist/components/Stat/StatFigure.d.ts +3 -0
  22. package/dist/components/Stat/StatTitle.d.ts +3 -0
  23. package/dist/components/Stat/StatValue.d.ts +3 -0
  24. package/dist/components/Stat/Stats.d.ts +7 -0
  25. package/dist/components/Stat/index.d.ts +7 -0
  26. package/dist/components/Steps/Step.d.ts +7 -0
  27. package/dist/components/Steps/Steps.d.ts +7 -0
  28. package/dist/components/Steps/index.d.ts +2 -0
  29. package/dist/components/Tabs/Tabs.d.ts +1 -1
  30. package/dist/components/Tooltip/Tooltip.d.ts +12 -0
  31. package/dist/components/Tooltip/index.d.ts +1 -0
  32. package/dist/components/index.d.ts +8 -0
  33. package/dist/stratosphere-ui.js +9413 -9271
  34. 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
- export declare const ALERT_COLORS: readonly ["info", "success", "warning", "error"];
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;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type CardActionsProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const CardActions: ({ className, ...props }: CardActionsProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type CardBodyProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const CardBody: ({ className, ...props }: CardBodyProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
3
+ export declare const CardTitle: ({ className, ...props }: CardTitleProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './Card';
2
+ export * from './CardActions';
3
+ export * from './CardBody';
4
+ export * from './CardTitle';
@@ -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<HTMLInputElement>, 'name' | 'size'> {
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,2 @@
1
+ export * from './Progress';
2
+ export * from './RadialProgress';
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const Stat: ({ className, ...props }: StatProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatActionsProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const StatActions: ({ className, ...props }: StatActionsProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatDescProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const StatDesc: ({ className, ...props }: StatDescProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatFigureProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const StatFigure: ({ className, ...props }: StatFigureProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatTitleProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const StatTitle: ({ className, ...props }: StatTitleProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type StatValueProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const StatValue: ({ className, ...props }: StatValueProps) => 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
+ export * from './Stats';
2
+ export * from './Stat';
3
+ export * from './StatActions';
4
+ export * from './StatDesc';
5
+ export * from './StatFigure';
6
+ export * from './StatTitle';
7
+ export * from './StatValue';
@@ -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;
@@ -0,0 +1,2 @@
1
+ export * from './Step';
2
+ export * from './Steps';
@@ -6,7 +6,7 @@ export interface TabData {
6
6
  id: string;
7
7
  paths?: string[];
8
8
  }
9
- export declare const TAB_SIZES: string[];
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';