@stella-source/stellasource-dsl 0.0.22 → 0.0.23

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 (78) hide show
  1. package/dist/cjs/index.js +52561 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/types/components/Button/Button.d.ts +4 -0
  4. package/dist/cjs/types/components/Button/Button.stories.d.ts +32 -0
  5. package/dist/cjs/types/components/Button/styles.d.ts +9 -0
  6. package/dist/cjs/types/components/Button/types.d.ts +22 -0
  7. package/dist/cjs/types/components/HelperText/HelperText.d.ts +4 -0
  8. package/dist/cjs/types/components/HelperText/HelperText.stories.d.ts +6 -0
  9. package/dist/cjs/types/components/HelperText/styles.d.ts +11 -0
  10. package/dist/cjs/types/components/HelperText/types.d.ts +13 -0
  11. package/dist/cjs/types/components/IconButton/IconButton.d.ts +4 -0
  12. package/dist/cjs/types/components/IconButton/IconButton.stories.d.ts +22 -0
  13. package/dist/cjs/types/components/IconButton/styles.d.ts +6 -0
  14. package/dist/cjs/types/components/IconButton/types.d.ts +15 -0
  15. package/dist/cjs/types/components/Label/Label.d.ts +4 -0
  16. package/dist/cjs/types/components/Label/Label.stories.d.ts +15 -0
  17. package/dist/cjs/types/components/Label/styles.d.ts +9 -0
  18. package/dist/cjs/types/components/Label/types.d.ts +23 -0
  19. package/dist/cjs/types/components/Loader/Loader.d.ts +4 -0
  20. package/dist/cjs/types/components/Loader/Loader.stories.d.ts +11 -0
  21. package/dist/cjs/types/components/Loader/styles.d.ts +5 -0
  22. package/dist/cjs/types/components/Loader/types.d.ts +5 -0
  23. package/dist/cjs/types/components/StellaIcon/StellaIcon.d.ts +4 -0
  24. package/dist/cjs/types/components/StellaIcon/StellaIcon.stories.d.ts +20 -0
  25. package/dist/cjs/types/components/StellaIcon/helpers.d.ts +10 -0
  26. package/dist/cjs/types/components/StellaIcon/types.d.ts +16 -0
  27. package/dist/cjs/types/components/TextField(UC)/TextField.d.ts +4 -0
  28. package/dist/cjs/types/components/TextField(UC)/TextField.stories.d.ts +6 -0
  29. package/dist/cjs/types/components/TextField(UC)/styles.d.ts +10 -0
  30. package/dist/cjs/types/components/TextField(UC)/types.d.ts +57 -0
  31. package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +5 -0
  32. package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +23 -0
  33. package/dist/cjs/types/components/Tooltip/types.d.ts +15 -0
  34. package/dist/cjs/types/images/StellaIcon.d.ts +10 -0
  35. package/dist/cjs/types/index.d.ts +2 -0
  36. package/dist/cjs/types/shared/tokens/color.d.ts +18 -0
  37. package/dist/cjs/types/shared/tokens/index.d.ts +20 -0
  38. package/dist/cjs/types/shared/utils/testing.d.ts +61 -0
  39. package/dist/esm/index.esm.js +52559 -0
  40. package/dist/esm/index.esm.js.map +1 -0
  41. package/dist/esm/types/components/Button/Button.d.ts +4 -0
  42. package/dist/esm/types/components/Button/Button.stories.d.ts +32 -0
  43. package/dist/esm/types/components/Button/styles.d.ts +9 -0
  44. package/dist/esm/types/components/Button/types.d.ts +22 -0
  45. package/dist/esm/types/components/HelperText/HelperText.d.ts +4 -0
  46. package/dist/esm/types/components/HelperText/HelperText.stories.d.ts +6 -0
  47. package/dist/esm/types/components/HelperText/styles.d.ts +11 -0
  48. package/dist/esm/types/components/HelperText/types.d.ts +13 -0
  49. package/dist/esm/types/components/IconButton/IconButton.d.ts +4 -0
  50. package/dist/esm/types/components/IconButton/IconButton.stories.d.ts +22 -0
  51. package/dist/esm/types/components/IconButton/styles.d.ts +6 -0
  52. package/dist/esm/types/components/IconButton/types.d.ts +15 -0
  53. package/dist/esm/types/components/Label/Label.d.ts +4 -0
  54. package/dist/esm/types/components/Label/Label.stories.d.ts +15 -0
  55. package/dist/esm/types/components/Label/styles.d.ts +9 -0
  56. package/dist/esm/types/components/Label/types.d.ts +23 -0
  57. package/dist/esm/types/components/Loader/Loader.d.ts +4 -0
  58. package/dist/esm/types/components/Loader/Loader.stories.d.ts +11 -0
  59. package/dist/esm/types/components/Loader/styles.d.ts +5 -0
  60. package/dist/esm/types/components/Loader/types.d.ts +5 -0
  61. package/dist/esm/types/components/StellaIcon/StellaIcon.d.ts +4 -0
  62. package/dist/esm/types/components/StellaIcon/StellaIcon.stories.d.ts +20 -0
  63. package/dist/esm/types/components/StellaIcon/helpers.d.ts +10 -0
  64. package/dist/esm/types/components/StellaIcon/types.d.ts +16 -0
  65. package/dist/esm/types/components/TextField(UC)/TextField.d.ts +4 -0
  66. package/dist/esm/types/components/TextField(UC)/TextField.stories.d.ts +6 -0
  67. package/dist/esm/types/components/TextField(UC)/styles.d.ts +10 -0
  68. package/dist/esm/types/components/TextField(UC)/types.d.ts +57 -0
  69. package/dist/esm/types/components/Tooltip/Tooltip.d.ts +5 -0
  70. package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +23 -0
  71. package/dist/esm/types/components/Tooltip/types.d.ts +15 -0
  72. package/dist/esm/types/images/StellaIcon.d.ts +10 -0
  73. package/dist/esm/types/index.d.ts +2 -0
  74. package/dist/esm/types/shared/tokens/color.d.ts +18 -0
  75. package/dist/esm/types/shared/tokens/index.d.ts +20 -0
  76. package/dist/esm/types/shared/utils/testing.d.ts +61 -0
  77. package/dist/index.d.ts +28 -0
  78. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ButtonProps } from "./types";
3
+ declare const Button: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, }: ButtonProps) => React.JSX.Element;
4
+ export default Button;
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { ButtonVariant } from "./types";
3
+ import { ButtonIcons, ButtonProps } from "./types";
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ disabled, variant, label, startIcon, endIcon, isLoading, className, id, htmlProps, onClick, }: ButtonProps) => import("react").JSX.Element;
7
+ tags: string[];
8
+ parameters: {};
9
+ argTypes: {
10
+ variant: {
11
+ options: ButtonVariant[];
12
+ control: {
13
+ type: string;
14
+ };
15
+ };
16
+ startIcon: {
17
+ options: (ButtonIcons | undefined)[];
18
+ control: {
19
+ type: string;
20
+ };
21
+ };
22
+ endIcon: {
23
+ options: (ButtonIcons | undefined)[];
24
+ control: {
25
+ type: string;
26
+ };
27
+ };
28
+ };
29
+ args: ButtonProps;
30
+ };
31
+ export default _default;
32
+ export declare const Button: {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ButtonVariant } from "./types";
3
+ export interface ButtonComponentStyles {
4
+ $variant: `${ButtonVariant}`;
5
+ }
6
+ declare const ButtonComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
7
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
8
+ }>, never>, ButtonComponentStyles>> & string;
9
+ export { ButtonComponent };
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes } from "react";
2
+ export declare enum ButtonIcons {
3
+ ADD = "add",
4
+ CHEVRON_DOWN = "chevron-down"
5
+ }
6
+ export declare enum ButtonVariant {
7
+ PRIMARY = "primary",
8
+ SECONDARY = "secondary",
9
+ TERTIARY = "tertiary"
10
+ }
11
+ export interface ButtonProps {
12
+ label: string;
13
+ onClick: () => void;
14
+ id?: string;
15
+ className?: string;
16
+ isLoading?: boolean;
17
+ startIcon?: `${ButtonIcons}`;
18
+ endIcon?: `${ButtonIcons}`;
19
+ disabled?: boolean;
20
+ variant?: `${ButtonVariant}`;
21
+ htmlProps?: HTMLAttributes<HTMLButtonElement>;
22
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { HelperTextProps } from "./types";
3
+ declare const HelperText: ({ id, className, affectLayout, text, type, htmlProps, }: HelperTextProps) => React.JSX.Element;
4
+ export default HelperText;
@@ -0,0 +1,6 @@
1
+ import HelperTextComponent from "./HelperText";
2
+ import type { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof HelperTextComponent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof HelperTextComponent>;
6
+ export declare const Helpertext: Story;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface WrapperProps {
3
+ $affectLayout?: boolean;
4
+ }
5
+ interface TextProps {
6
+ $type?: string;
7
+ }
8
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps>> & string;
9
+ declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, TextProps>> & string;
10
+ declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
+ export { Wrapper, Icon, Text };
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from "react";
2
+ export declare enum HelperTextType {
3
+ ERROR = "error",
4
+ INFO = "info"
5
+ }
6
+ export interface HelperTextProps {
7
+ text: string;
8
+ id?: string;
9
+ className?: string;
10
+ affectLayout?: boolean;
11
+ type?: `${HelperTextType}`;
12
+ htmlProps?: HTMLAttributes<HTMLDivElement>;
13
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IconButtonProps } from "./types";
3
+ declare const IconButton: ({ iconName, onClick, disabled, variant, isLoading, ariaLabel, className, id, htmlProps, size, }: IconButtonProps) => React.JSX.Element;
4
+ export default IconButton;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps } from "./types";
3
+ import { ButtonVariant } from "../Button/types";
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ iconName, onClick, disabled, variant, isLoading, ariaLabel, className, id, htmlProps, size, }: IconButtonProps) => import("react").JSX.Element;
7
+ tags: string[];
8
+ parameters: {};
9
+ argTypes: {
10
+ variant: {
11
+ options: ButtonVariant[];
12
+ control: {
13
+ type: string;
14
+ };
15
+ };
16
+ };
17
+ args: IconButtonProps;
18
+ };
19
+ export default _default;
20
+ export declare const IconButton: {
21
+ args: {};
22
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonComponentStyles } from "../Button/styles";
3
+ declare const IconButtonComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
5
+ }>, never>, "$variant"> & ButtonComponentStyles, ButtonComponentStyles>> & string;
6
+ export { IconButtonComponent };
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { ButtonVariant } from "../Button/types";
3
+ import { StellaIconDefinition } from "../StellaIcon/types";
4
+ export interface IconButtonProps {
5
+ iconName: `${StellaIconDefinition}`;
6
+ ariaLabel: string;
7
+ size?: number;
8
+ onClick: () => void;
9
+ id?: string;
10
+ className?: string;
11
+ isLoading?: boolean;
12
+ disabled?: boolean;
13
+ variant?: `${ButtonVariant}`;
14
+ htmlProps?: HTMLAttributes<HTMLButtonElement>;
15
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { LabelProps, LabelWithChildrenProps } from "./types";
3
+ declare const Label: ({ hideLabel, labelValue, required, tooltipText, children, htmlFor, htmlProps, id, className, }: LabelProps | LabelWithChildrenProps) => React.JSX.Element;
4
+ export default Label;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { LabelProps, LabelWithChildrenProps } from "./types";
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ hideLabel, labelValue, required, tooltipText, children, htmlFor, htmlProps, id, className, }: LabelProps | LabelWithChildrenProps) => import("react").JSX.Element;
6
+ tags: string[];
7
+ parameters: {};
8
+ args: LabelProps | LabelWithChildrenProps;
9
+ };
10
+ export default _default;
11
+ export declare const Label: {
12
+ args: {
13
+ required: boolean;
14
+ };
15
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface LabelComponentProps {
3
+ $hideLabel?: boolean;
4
+ }
5
+ declare const RequiredIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../StellaIcon/types").StellaIconProps, never>> & string & Omit<({ iconName, size, color, className, id, dataTestId, }: import("../StellaIcon/types").StellaIconProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
6
+ declare const ToolTipIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Tooltip/types").StellaTooltipProps, never>> & string & Omit<import("react").FC<import("../Tooltip/types").StellaTooltipProps>, keyof import("react").Component<any, {}, any>>;
7
+ declare const LabelComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, LabelComponentProps>> & string;
8
+ declare const LabelContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
9
+ export { LabelComponent, RequiredIcon, ToolTipIcon, LabelContainer };
@@ -0,0 +1,23 @@
1
+ import { ReactElement, HTMLAttributes } from "react";
2
+ export interface LabelProps {
3
+ id: string;
4
+ className?: string;
5
+ required?: boolean;
6
+ labelValue: string;
7
+ hideLabel?: boolean;
8
+ tooltipText?: string;
9
+ children?: never;
10
+ htmlFor: string;
11
+ htmlProps?: HTMLAttributes<HTMLLabelElement>;
12
+ }
13
+ export interface LabelWithChildrenProps {
14
+ id: string;
15
+ className?: string;
16
+ required?: boolean;
17
+ labelValue: string;
18
+ hideLabel?: boolean;
19
+ tooltipText?: string;
20
+ htmlFor?: never;
21
+ children: ReactElement;
22
+ htmlProps?: HTMLAttributes<HTMLLabelElement>;
23
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { LoaderProps } from "./types";
3
+ declare const Loader: ({ size, dataTestId, color }: LoaderProps) => React.JSX.Element;
4
+ export default Loader;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { LoaderProps } from "./types";
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ size, dataTestId, color }: LoaderProps) => import("react").JSX.Element;
6
+ tags: string[];
7
+ parameters: {};
8
+ argTypes: {};
9
+ args: LoaderProps;
10
+ };
11
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const CustomLoader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@phosphor-icons/react").IconProps, "ref"> & {
3
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
4
+ }, never>> & string & Omit<import("@phosphor-icons/react").Icon, keyof import("react").Component<any, {}, any>>;
5
+ export { CustomLoader };
@@ -0,0 +1,5 @@
1
+ export interface LoaderProps {
2
+ size?: number;
3
+ dataTestId?: string;
4
+ color?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { StellaIconProps } from "./types";
3
+ declare const StellaIcon: ({ iconName, size, color, className, id, dataTestId, }: StellaIconProps) => React.JSX.Element;
4
+ export default StellaIcon;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { StellaIconProps } from "./types";
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ iconName, size, color, className, id, dataTestId, }: StellaIconProps) => import("react").JSX.Element;
6
+ tags: string[];
7
+ parameters: {};
8
+ argTypes: {
9
+ color: {
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ };
15
+ args: StellaIconProps;
16
+ };
17
+ export default _default;
18
+ export declare const StellaIcon: {
19
+ args: {};
20
+ };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { StellaIcon, StellaIconDefinition } from "./types";
3
+ export declare const selectIcon: (iconName: StellaIconDefinition) => {
4
+ icon: import("@phosphor-icons/react").Icon;
5
+ color: string;
6
+ } | {
7
+ icon: ({ size, color, id, className, dataTestId }: StellaIcon) => React.JSX.Element;
8
+ color: string;
9
+ };
10
+ export declare const getFill: (iconName: StellaIconDefinition) => "bold" | "fill";
@@ -0,0 +1,16 @@
1
+ export type StellaIconDefinition = "search" | "required" | "help" | "info" | "kebab-menu" | "error" | "warning" | "filter" | "sort" | "close" | "add" | "stella-logo" | "chevron-right" | "chevron-down" | "caret-right" | "caret-down" | "success" | "in-progress" | "complete" | "calendar" | "unlocked" | "locked" | "settings" | "preferences" | "account-settings" | "user" | "company-details" | "collapse" | "expand" | "star-filled" | "star-outline" | "dashboard" | "shopping-cart" | "calculator" | "pricing-strategies" | "stella-finance" | "resource-center" | "line-item-pricing" | "basket-pricing" | "paperclip" | "thumbs-up" | "thumbs-down" | "send" | "palette";
2
+ export interface StellaIconProps {
3
+ iconName: StellaIconDefinition;
4
+ size?: number;
5
+ color?: string;
6
+ className?: string;
7
+ dataTestId?: string;
8
+ id?: string;
9
+ }
10
+ export interface StellaIcon {
11
+ size: number;
12
+ color: string;
13
+ className?: string;
14
+ dataTestId?: string;
15
+ id?: string;
16
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TextFieldProps } from "./types";
3
+ declare const TextField: ({ id, className, htmlProps, type, textAlign, leftCategory, rightCategory, label, placeholder, onChange, onBlur, isRequired, disabled, maxLength, tooltipText, isLoading, helperText, helperTextAffectLayout, isTruncated, endIcon, hasError, size, ariaDescribedBy, }: TextFieldProps) => React.JSX.Element;
4
+ export default TextField;
@@ -0,0 +1,6 @@
1
+ import TextFieldComponent from "./TextField";
2
+ import type { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof TextFieldComponent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextFieldComponent>;
6
+ export declare const TextField: Story;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface TextFieldInputProps {
3
+ $textAlign?: "left" | "center" | "right";
4
+ $isTruncated: boolean;
5
+ }
6
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ declare const TextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ declare const TextFieldInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, TextFieldInputProps>> & string;
9
+ declare const Category: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
10
+ export { Wrapper, TextFieldWrapper, TextFieldInput, Category };
@@ -0,0 +1,57 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { StellaIconDefinition } from "../StellaIcon/types";
3
+ export declare enum TextFieldAlignments {
4
+ LEFT = "left",
5
+ CENTER = "center",
6
+ RIGHT = "right"
7
+ }
8
+ export declare enum TextFieldLeftCategory {
9
+ US_CURRENCY = "$"
10
+ }
11
+ export declare enum TextFieldRightCategory {
12
+ FEET = "ft",
13
+ CENTIMETERS = "cm",
14
+ INCHES = "in",
15
+ FULL_INCHES = "inches",
16
+ PERCENTAGE = "%",
17
+ POUNDS_FEET = "lbs/ft",
18
+ HUNDREDWEIGHT = "CWT",
19
+ DPH = "$/hr",
20
+ MINUTES = "min",
21
+ HOURS = "hr"
22
+ }
23
+ export declare enum TextFieldSize {
24
+ SMALL = "small",
25
+ MEDIUM = "medium",
26
+ LARGE = "large"
27
+ }
28
+ export declare enum TextFieldType {
29
+ TEXT = "text",
30
+ NUMBER = "number",
31
+ PASSWORD = "password"
32
+ }
33
+ export interface TextFieldProps {
34
+ id: string;
35
+ className?: string;
36
+ label: string;
37
+ placeholder?: string;
38
+ type?: `${TextFieldType}`;
39
+ onChange: () => void;
40
+ onBlur: () => void;
41
+ isRequired: boolean;
42
+ disabled: boolean;
43
+ maxLength: number;
44
+ tooltipText: string;
45
+ isLoading: boolean;
46
+ helperText?: string;
47
+ helperTextAffectLayout?: boolean;
48
+ isTruncated: boolean;
49
+ endIcon: `${StellaIconDefinition}`;
50
+ hasError: boolean;
51
+ size?: `${TextFieldSize}`;
52
+ textAlign?: `${TextFieldAlignments}`;
53
+ leftCategory?: `${TextFieldLeftCategory}`;
54
+ rightCategory?: `${TextFieldRightCategory}`;
55
+ ariaDescribedBy?: string;
56
+ htmlProps?: HTMLAttributes<HTMLInputElement>;
57
+ }
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { StellaTooltipProps } from "./types";
3
+ import "./styles.css";
4
+ declare const StellaTooltip: React.FC<StellaTooltipProps>;
5
+ export default StellaTooltip;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { TooltipIconType, StellaTooltipProps } from "./types";
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<StellaTooltipProps>;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ argTypes: {
11
+ type: {
12
+ options: TooltipIconType[];
13
+ control: {
14
+ type: string;
15
+ };
16
+ };
17
+ };
18
+ args: StellaTooltipProps;
19
+ };
20
+ export default _default;
21
+ export declare const Tooltip: {
22
+ args: {};
23
+ };
@@ -0,0 +1,15 @@
1
+ import { TooltipProps } from "antd";
2
+ export declare enum TooltipIconType {
3
+ WARNING = "warning",
4
+ INFO = "info"
5
+ }
6
+ export interface StellaTooltipProps {
7
+ title: string;
8
+ placement: "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
9
+ type?: `${TooltipIconType}`;
10
+ ariaLabel?: string;
11
+ iconSize?: number;
12
+ id?: string;
13
+ className?: string;
14
+ htmlProps?: TooltipProps;
15
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ interface StellaIconProps {
3
+ size: number;
4
+ color: string;
5
+ id?: string;
6
+ className?: string;
7
+ dataTestId?: string;
8
+ }
9
+ declare const StellaIcon: ({ size, color, id, className, dataTestId, }: StellaIconProps) => React.JSX.Element;
10
+ export default StellaIcon;
@@ -0,0 +1,2 @@
1
+ import Label from "./components/Label/Label";
2
+ export { Label };
@@ -0,0 +1,18 @@
1
+ declare const colorTokens: {
2
+ charcoal: string;
3
+ red: string;
4
+ smoke: string;
5
+ shadow: string;
6
+ grey50: string;
7
+ paleGrey: string;
8
+ yellow: string;
9
+ green: string;
10
+ branding: {
11
+ primary: string;
12
+ secondary: string;
13
+ tertiary: string;
14
+ quaternary: string;
15
+ accent: string;
16
+ };
17
+ };
18
+ export default colorTokens;
@@ -0,0 +1,20 @@
1
+ declare const Styles: {
2
+ color: {
3
+ charcoal: string;
4
+ red: string;
5
+ smoke: string;
6
+ shadow: string;
7
+ grey50: string;
8
+ paleGrey: string;
9
+ yellow: string;
10
+ green: string;
11
+ branding: {
12
+ primary: string;
13
+ secondary: string;
14
+ tertiary: string;
15
+ quaternary: string;
16
+ accent: string;
17
+ };
18
+ };
19
+ };
20
+ export { Styles };
@@ -0,0 +1,61 @@
1
+ /// <reference types="react" />
2
+ import { queries } from "@testing-library/react";
3
+ import { Options } from "@testing-library/user-event";
4
+ declare const setup: (jsx: JSX.Element, setupOptions?: Options) => {
5
+ container: HTMLElement;
6
+ baseElement: HTMLElement;
7
+ debug: (baseElement?: any, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
8
+ rerender: (ui: import("react").ReactNode) => void;
9
+ unmount: () => void;
10
+ asFragment: () => DocumentFragment;
11
+ getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
12
+ getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
13
+ queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
14
+ queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
15
+ findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
16
+ findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
17
+ getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
18
+ getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
19
+ queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
20
+ queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
21
+ findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
22
+ findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
23
+ getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
24
+ getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
25
+ queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
26
+ queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
27
+ findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
28
+ findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
29
+ getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
30
+ getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
31
+ queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
32
+ queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
33
+ findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
34
+ findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
35
+ getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
36
+ getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
37
+ queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
38
+ queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
39
+ findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
40
+ findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
41
+ getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
42
+ getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
43
+ queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
44
+ queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
45
+ findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
46
+ findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
47
+ getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
48
+ getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
49
+ queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
50
+ queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
51
+ findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
52
+ findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
53
+ getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
54
+ getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
55
+ queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
56
+ queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
57
+ findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
58
+ findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
59
+ user: import("@testing-library/user-event").UserEvent;
60
+ };
61
+ export { setup };