@selfdecode/sd-component-library 2.43.19 → 2.43.20

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,4 +1,5 @@
1
- import React from "react";
1
+ import React, { CSSProperties } from "react";
2
+ import { SxProps } from "rebass";
2
3
  export interface CustomScrollbarBoxProps {
3
4
  /**
4
5
  * Content inside the scroll box
@@ -11,11 +12,11 @@ export interface CustomScrollbarBoxProps {
11
12
  /**
12
13
  * Height of the box
13
14
  */
14
- height: Array<string>;
15
+ height: string | string[];
15
16
  /**
16
17
  * Width of the box
17
18
  */
18
- width: Array<string>;
19
+ width: string | string[];
19
20
  /**
20
21
  * Color of the background of the scrollbar
21
22
  */
@@ -31,5 +32,17 @@ export interface CustomScrollbarBoxProps {
31
32
  /**
32
33
  * Padding around the content
33
34
  */
34
- p?: Array<string>;
35
+ p?: string | string[];
36
+ /**
37
+ * Y-overflow of the content
38
+ */
39
+ overflowY?: CSSProperties["overflowY"];
40
+ /**
41
+ * Max height of the content
42
+ */
43
+ maxHeight?: string | string[];
44
+ /**
45
+ * Sx prop to customize inner container
46
+ */
47
+ sx?: SxProps["sx"];
35
48
  }
@@ -0,0 +1 @@
1
+ export { PrimaryDateRangeInput } from "./primary-date-range-input";
@@ -0,0 +1,21 @@
1
+ import { BaseDateRangeInputProps } from "../base-date-range-input";
2
+ export interface PrimaryDateRangeInputProps extends Omit<BaseDateRangeInputProps, "showCalendar" | "children" | "onClose"> {
3
+ width?: string | string[];
4
+ /**
5
+ * Label props.
6
+ */
7
+ label?: string;
8
+ labelColor?: string;
9
+ /**
10
+ * Text to be displayed inside of input.
11
+ */
12
+ text?: string;
13
+ /**
14
+ * Placeholder to be displayed inside of input if text isn't specified.
15
+ */
16
+ placeholder?: string;
17
+ /**
18
+ * Distance between label and input.
19
+ */
20
+ gap?: string | string[];
21
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { PrimaryDateRangeInputProps as Props } from "./interfaces";
3
+ export declare const PrimaryDateRangeInput: React.FC<Props>;
package/lib/index.d.ts CHANGED
@@ -93,6 +93,7 @@ export type { BaseDateRangeInputProps };
93
93
  export { OutlinedDateRangeInput } from "./components/inputs/date-inputs/outlined-date-range-input";
94
94
  export type { OutlinedDateRangeInputProps };
95
95
  export { MultiRowSecondaryTextInput } from "./components/inputs/multi-row-secondary-text-input";
96
+ export { PrimaryDateRangeInput } from "./components/inputs/date-inputs/primary-date-range-input";
96
97
  export { Link } from "./components/links/link";
97
98
  export declare type LinkProps = BaseLinkProps;
98
99
  export { PrimaryLink } from "./components/links/primary-link";