@stella-source/stellasource-dsl 5.1.1 → 5.2.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.
Files changed (24) hide show
  1. package/dist/cjs/index.js +27 -9
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/TextField/NumberInput/NumberInput.d.ts +1 -1
  4. package/dist/cjs/types/components/TextField/NumberInput/types.d.ts +1 -0
  5. package/dist/cjs/types/components/TextField/PasswordInput/PasswordInput.d.ts +1 -1
  6. package/dist/cjs/types/components/TextField/PasswordInput/types.d.ts +1 -0
  7. package/dist/cjs/types/components/TextField/TextFieldContainer.d.ts +1 -1
  8. package/dist/cjs/types/components/TextField/TextInput/TextInput.d.ts +1 -1
  9. package/dist/cjs/types/components/TextField/TextInput/types.d.ts +1 -0
  10. package/dist/cjs/types/components/TextField/styles.d.ts +8 -2
  11. package/dist/cjs/types/components/TextField/types.d.ts +1 -0
  12. package/dist/esm/index.esm.js +27 -9
  13. package/dist/esm/index.esm.js.map +1 -1
  14. package/dist/esm/types/components/TextField/NumberInput/NumberInput.d.ts +1 -1
  15. package/dist/esm/types/components/TextField/NumberInput/types.d.ts +1 -0
  16. package/dist/esm/types/components/TextField/PasswordInput/PasswordInput.d.ts +1 -1
  17. package/dist/esm/types/components/TextField/PasswordInput/types.d.ts +1 -0
  18. package/dist/esm/types/components/TextField/TextFieldContainer.d.ts +1 -1
  19. package/dist/esm/types/components/TextField/TextInput/TextInput.d.ts +1 -1
  20. package/dist/esm/types/components/TextField/TextInput/types.d.ts +1 -0
  21. package/dist/esm/types/components/TextField/styles.d.ts +8 -2
  22. package/dist/esm/types/components/TextField/types.d.ts +1 -0
  23. package/dist/index.d.ts +6 -3
  24. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { NumberInputProps } from "./types";
3
- declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, enableAutocomplete, isDegrees, }: NumberInputProps) => React.JSX.Element;
3
+ declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, enableAutocomplete, isDegrees, labelPosition, }: NumberInputProps) => React.JSX.Element;
4
4
  export default NumberInput;
@@ -33,4 +33,5 @@ export interface NumberInputProps {
33
33
  /** for any extra text elements that need to be associated */
34
34
  ariaDescribedBy?: string;
35
35
  htmlProps?: HTMLAttributes<HTMLInputElement>;
36
+ labelPosition?: "top" | "left";
36
37
  }
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { PasswordInputProps } from "./types";
3
- declare const PasswordInput: ({ id, className, htmlProps, label, placeholder, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, textAlign, isHidden, helperTextAffectLayout, hideLabel, disabled, hasError, ariaDescribedBy, enableAutocomplete, }: PasswordInputProps) => React.JSX.Element;
3
+ declare const PasswordInput: ({ id, className, htmlProps, label, placeholder, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, textAlign, isHidden, helperTextAffectLayout, hideLabel, disabled, hasError, ariaDescribedBy, enableAutocomplete, labelPosition, }: PasswordInputProps) => React.JSX.Element;
4
4
  export default PasswordInput;
@@ -24,4 +24,5 @@ export interface PasswordInputProps {
24
24
  /** for any extra text elements that need to be associated */
25
25
  ariaDescribedBy?: string;
26
26
  htmlProps?: HTMLAttributes<HTMLInputElement>;
27
+ labelPosition?: "top" | "left";
27
28
  }
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TextFieldContainerProps } from "./types";
3
- declare const TextFieldContainer: ({ id, label, children, tooltipText, endIcon, className, rightCategory, leftCategory, helperText, dataTestId, helperTextAffectLayout, disabled, hideLabel, isLoading, hasError, isRequired, }: TextFieldContainerProps) => React.JSX.Element;
3
+ declare const TextFieldContainer: ({ id, label, children, tooltipText, endIcon, className, rightCategory, leftCategory, helperText, dataTestId, helperTextAffectLayout, disabled, hideLabel, isLoading, hasError, isRequired, labelPosition, }: TextFieldContainerProps) => React.JSX.Element;
4
4
  export default TextFieldContainer;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TextInputProps } from "./types";
3
- declare const TextInput: ({ id, className, htmlProps, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, helperTextAffectLayout, hideLabel, disabled, hasError, isLoading, ariaDescribedBy, enableAutocomplete, }: TextInputProps) => React.JSX.Element;
3
+ declare const TextInput: ({ id, className, htmlProps, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, helperTextAffectLayout, hideLabel, disabled, hasError, isLoading, ariaDescribedBy, enableAutocomplete, labelPosition, }: TextInputProps) => React.JSX.Element;
4
4
  export default TextInput;
@@ -26,4 +26,5 @@ export interface TextInputProps {
26
26
  /** for any extra text elements that need to be associated */
27
27
  ariaDescribedBy?: string;
28
28
  htmlProps?: HTMLAttributes<HTMLInputElement>;
29
+ labelPosition?: "top" | "left";
29
30
  }
@@ -4,14 +4,20 @@ interface TextFieldInputProps {
4
4
  $isDisabled?: boolean;
5
5
  $isLoading?: boolean;
6
6
  }
7
+ interface WrapperProps {
8
+ $labelPosition?: "top" | "left";
9
+ }
7
10
  interface TextFieldWrapperProps {
8
11
  $isDisabled?: boolean;
9
12
  $hasError?: boolean;
10
13
  $isLoading?: boolean;
14
+ $labelPosition?: "top" | "left";
11
15
  }
12
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
16
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$labelPosition"> & WrapperProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$labelPosition"> & WrapperProps, never>>> & string;
17
+ declare const InputColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
+ declare const LabelAligner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
13
19
  declare const TextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof TextFieldWrapperProps> & TextFieldWrapperProps, "className"> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof TextFieldWrapperProps> & TextFieldWrapperProps, "className">>> & string;
14
20
  declare const TextFieldInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof TextFieldInputProps> & TextFieldInputProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof TextFieldInputProps> & TextFieldInputProps, never>>> & string;
15
21
  declare const Category: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
16
22
  declare const IconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
17
- export { Wrapper, TextFieldWrapper, TextFieldInput, Category, IconContainer };
23
+ export { Wrapper, InputColumn, LabelAligner, TextFieldWrapper, TextFieldInput, Category, IconContainer, };
@@ -21,4 +21,5 @@ export interface TextFieldContainerProps {
21
21
  endIcon?: `${StellaIconDefinition}`;
22
22
  hasError?: boolean;
23
23
  className?: string;
24
+ labelPosition?: "top" | "left";
24
25
  }
package/dist/index.d.ts CHANGED
@@ -159,9 +159,10 @@ interface TextInputProps {
159
159
  /** for any extra text elements that need to be associated */
160
160
  ariaDescribedBy?: string;
161
161
  htmlProps?: HTMLAttributes<HTMLInputElement>;
162
+ labelPosition?: "top" | "left";
162
163
  }
163
164
 
164
- declare const TextInput: ({ id, className, htmlProps, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, helperTextAffectLayout, hideLabel, disabled, hasError, isLoading, ariaDescribedBy, enableAutocomplete, }: TextInputProps) => React$1.JSX.Element;
165
+ declare const TextInput: ({ id, className, htmlProps, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, helperTextAffectLayout, hideLabel, disabled, hasError, isLoading, ariaDescribedBy, enableAutocomplete, labelPosition, }: TextInputProps) => React$1.JSX.Element;
165
166
 
166
167
  interface PasswordInputProps {
167
168
  id: string;
@@ -187,9 +188,10 @@ interface PasswordInputProps {
187
188
  /** for any extra text elements that need to be associated */
188
189
  ariaDescribedBy?: string;
189
190
  htmlProps?: HTMLAttributes<HTMLInputElement>;
191
+ labelPosition?: "top" | "left";
190
192
  }
191
193
 
192
- declare const PasswordInput: ({ id, className, htmlProps, label, placeholder, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, textAlign, isHidden, helperTextAffectLayout, hideLabel, disabled, hasError, ariaDescribedBy, enableAutocomplete, }: PasswordInputProps) => React$1.JSX.Element;
194
+ declare const PasswordInput: ({ id, className, htmlProps, label, placeholder, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, textAlign, isHidden, helperTextAffectLayout, hideLabel, disabled, hasError, ariaDescribedBy, enableAutocomplete, labelPosition, }: PasswordInputProps) => React$1.JSX.Element;
193
195
 
194
196
  interface NumberInputProps {
195
197
  id: string;
@@ -223,9 +225,10 @@ interface NumberInputProps {
223
225
  /** for any extra text elements that need to be associated */
224
226
  ariaDescribedBy?: string;
225
227
  htmlProps?: HTMLAttributes<HTMLInputElement>;
228
+ labelPosition?: "top" | "left";
226
229
  }
227
230
 
228
- declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, enableAutocomplete, isDegrees, }: NumberInputProps) => React$1.JSX.Element;
231
+ declare const NumberInput: ({ id, className, htmlProps, leftCategory, rightCategory, label, onChange, onBlur, onFocus, value, isRequired, maxLength, tooltipText, helperText, endIcon, placeholder, textAlign, isTruncated, helperTextAffectLayout, hideLabel, disabled, isLoading, hasError, thousandSeparator, decimalPlaces, allowNegativeNumbers, ariaDescribedBy, enableAutocomplete, isDegrees, labelPosition, }: NumberInputProps) => React$1.JSX.Element;
229
232
 
230
233
  declare enum TableVariant {
231
234
  PRIMARY = "Primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"