@selfdecode/sd-component-library 3.0.12 → 3.0.13

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.
@@ -1,16 +1,9 @@
1
- import { NumberInputProps } from "../number-input/interfaces";
2
- import { SecondaryTextInputProps } from "../secondary-text-input";
1
+ import { NumberInputProps } from "../number-input";
2
+ import { SecondaryInputLabelsProps } from "../secondary-text-input/partials/secondary-input-labels/interfaces";
3
3
  /**
4
4
  * Defines the SecondaryNumberInput component's properties.
5
5
  */
6
- export interface SecondaryNumberInputProps extends NumberInputProps {
7
- label?: string;
6
+ export interface SecondaryNumberInputProps extends NumberInputProps, SecondaryInputLabelsProps {
8
7
  inputPadding?: string[];
9
- labelMargin?: string[];
10
- errorMessage?: string;
11
8
  hideErrorText?: boolean;
12
- /**
13
- * Label shown to the right of the selectorLabel
14
- */
15
- secondLabel?: SecondaryTextInputProps["secondLabel"];
16
9
  }
@@ -1,5 +1,5 @@
1
1
  import { SxProps } from "rebass";
2
- import { ResponsiveTextV2Props } from "../../texts/responsive-text-v2";
2
+ import { ResponsiveTextV2Props } from "../../texts";
3
3
  import { PrimaryTextInputProps } from "../primary-text-input";
4
4
  /**
5
5
  * Defines the SecondaryTextInput component's properties.
@@ -38,7 +38,15 @@ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onCha
38
38
  */
39
39
  labelMargin?: string | string[];
40
40
  /**
41
- * Padding of the input element.
41
+ * Sx prop of the input element.
42
42
  */
43
43
  inputSx?: SxProps["sx"];
44
+ /**
45
+ * Sx prop of the label element.
46
+ */
47
+ labelSx?: SxProps["sx"];
48
+ /**
49
+ * Color of the label text.
50
+ */
51
+ labelColor?: string;
44
52
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SecondaryTextInputProps } from "../../interfaces";
3
- export interface SecondaryInputLabelsProps extends Pick<SecondaryTextInputProps, "label" | "secondLabel" | "labelMargin" | "errorMessage"> {
3
+ export interface SecondaryInputLabelsProps extends Pick<SecondaryTextInputProps, "label" | "secondLabel" | "labelMargin" | "errorMessage" | "labelSx" | "labelColor"> {
4
4
  secondLabelTextTransform?: React.CSSProperties["textTransform"];
5
5
  }