@selfdecode/sd-component-library 4.0.0 → 4.0.3

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.
@@ -19,5 +19,7 @@ export declare type CarouselSectionContainerProps = SectionContainerProps & {
19
19
  * The component that contains the carouselItems in
20
20
  * desktop and tablet views.
21
21
  */
22
- WrapperComponent: React.FC;
22
+ WrapperComponent: React.FC<{
23
+ children?: ReactNode;
24
+ }>;
23
25
  };
@@ -2,4 +2,6 @@ import React from "react";
2
2
  /**
3
3
  * NavbarItem component: wraps the children node
4
4
  */
5
- export declare const NavbarItem: React.FC;
5
+ export declare const NavbarItem: React.FC<{
6
+ children?: React.ReactNode;
7
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NavbarMobileV2PresentationalProps } from "../../../../../navbar-v2/partials/navbar-mobile-v2/presentational/interfaces";
2
3
  export declare type NavbarMobileUnfoldedBoxProps = Pick<NavbarMobileV2PresentationalProps, "itemsInCart" | "onClickCartIcon" | "isLegacy" | "hideSearch"> & {
3
4
  /**
@@ -16,4 +17,5 @@ export declare type NavbarMobileUnfoldedBoxProps = Pick<NavbarMobileV2Presentati
16
17
  * Container overflow.
17
18
  */
18
19
  overflow?: string;
20
+ children?: React.ReactNode;
19
21
  };
@@ -1,2 +1,4 @@
1
1
  import React from "react";
2
- export declare const NavigationItemText: React.FC;
2
+ export declare const NavigationItemText: React.FC<{
3
+ children?: React.ReactNode;
4
+ }>;
@@ -1,9 +1,3 @@
1
- export declare const useEnvironment: () => {
2
- isDev: boolean;
3
- isLocal: boolean;
4
- isProd: boolean;
5
- isQA: boolean;
6
- };
7
1
  export declare const getLabShopsUrlProps: () => {
8
2
  url: string;
9
3
  isInternal: boolean;
@@ -1,8 +1,10 @@
1
+ import { TextProps } from "rebass";
1
2
  import { TextInputProps } from "../text-input";
2
3
  export declare type PrimaryTextInputProps = Pick<TextInputProps, "onChange" | "value" | "type" | "placeholder" | "onKeyPress" | "focusInput" | "padding" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "sx" | "id" | "disabled" | "maxLength"> & {
3
4
  /**
4
5
  * Optional error message
5
6
  */
6
7
  errorMessage?: string;
8
+ errorMessageProps?: Partial<TextProps>;
7
9
  hideErrorText?: boolean;
8
10
  };
@@ -4,7 +4,7 @@ import { PrimaryTextInputProps } from "../primary-text-input";
4
4
  /**
5
5
  * Defines the SecondaryTextInput component's properties.
6
6
  */
7
- export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled" | "sx" | "maxLength"> & {
7
+ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "errorMessageProps" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled" | "sx" | "maxLength"> & {
8
8
  /**
9
9
  * The label for the text input
10
10
  */
@@ -1,4 +1,7 @@
1
- declare const _default: {
1
+ /**
2
+ * The theme for the application.
3
+ */
4
+ declare const theme: {
2
5
  breakpoints: string[];
3
6
  colors: {
4
7
  cl_transparent: string;
@@ -766,7 +769,4 @@ declare const _default: {
766
769
  };
767
770
  };
768
771
  };
769
- /**
770
- * The theme for the application.
771
- */
772
- export default _default;
772
+ export default theme;