@lifesg/react-design-system 1.0.0-alpha.17 → 1.0.0-alpha.18
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.
- package/card/types.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/index.js +6 -6
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +101 -29
- package/cjs/index.js.map +1 -1
- package/color/types.d.ts +1 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/index.js +76 -76
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +6 -19
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +1 -1
- package/feedback-rating/feedback-rating.styles.d.ts +1 -1
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +2 -2
- package/footer/index.js.map +1 -1
- package/footer/types.d.ts +2 -2
- package/form/index.js +455 -442
- package/form/index.js.map +1 -1
- package/form/types.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +101 -29
- package/index.js.map +1 -1
- package/input-group/index.js +14 -2
- package/input-group/index.js.map +1 -1
- package/input-group/types.d.ts +6 -6
- package/input-select/index.js +15 -3
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +1 -0
- package/input-select/types.d.ts +11 -9
- package/input-textarea/types.d.ts +1 -1
- package/link-list/types.d.ts +1 -1
- package/modal/types.d.ts +3 -3
- package/navbar/brand.d.ts +1 -1
- package/navbar/index.js.map +1 -1
- package/navbar/types.d.ts +5 -5
- package/notification-banner/types.d.ts +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/types.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +1 -1
- package/shared/dropdown-list/types.d.ts +11 -11
- package/smart-app-banner/types.d.ts +1 -1
- package/timepicker/types.d.ts +3 -3
- package/unit-number/types.d.ts +5 -5
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -0
package/date-input/types.d.ts
CHANGED
|
@@ -1,36 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export interface DateInputTarget {
|
|
3
|
-
value: string;
|
|
4
|
-
type?: string | undefined;
|
|
5
|
-
name?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface DateInputEvent {
|
|
9
|
-
bubbles: boolean;
|
|
10
|
-
target: DateInputTarget;
|
|
11
|
-
}
|
|
12
2
|
export interface DateInputProps extends React.AriaAttributes {
|
|
13
3
|
className?: string | undefined;
|
|
14
4
|
id?: string | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
readOnly?: boolean | undefined;
|
|
6
|
+
role?: React.AriaRole | undefined;
|
|
17
7
|
"data-testid"?: string | undefined;
|
|
18
|
-
readOnly?: boolean;
|
|
19
|
-
role?: string;
|
|
20
8
|
value?: string | undefined;
|
|
21
|
-
name?: string | undefined;
|
|
22
9
|
error?: boolean | undefined;
|
|
23
10
|
disabled?: boolean | undefined;
|
|
24
|
-
onChange?: (value: string) => void | undefined;
|
|
11
|
+
onChange?: ((value: string) => void) | undefined;
|
|
25
12
|
/**
|
|
26
13
|
* Function that returns the raw values in the DateInput on change in an array format
|
|
27
14
|
* as such [day, month, year]
|
|
28
15
|
*/
|
|
29
|
-
onChangeRaw?: (value: string[]) => void | undefined;
|
|
30
|
-
onBlur?: (value: string) => void | undefined;
|
|
16
|
+
onChangeRaw?: ((value: string[]) => void) | undefined;
|
|
17
|
+
onBlur?: ((value: string) => void) | undefined;
|
|
31
18
|
/**
|
|
32
19
|
* Function that returns the raw values in the DateInput on blur in an array format
|
|
33
20
|
* as such [day, month, year]
|
|
34
21
|
*/
|
|
35
|
-
onBlurRaw?: (value: string[]) => void | undefined;
|
|
22
|
+
onBlurRaw?: ((value: string[]) => void) | undefined;
|
|
36
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
3
|
-
export declare const StarIcon: import("styled-components").StyledComponent<({ type, ...props }: import("
|
|
3
|
+
export declare const StarIcon: import("styled-components").StyledComponent<({ type, ...props }: import("../icon").IconProps) => JSX.Element, any, {}, never>;
|
|
4
4
|
export declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
5
5
|
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
export declare const Image: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
3
3
|
export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const ChildContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const SubmitButton: import("styled-components").StyledComponent<(props: import("
|
|
5
|
+
export declare const SubmitButton: import("styled-components").StyledComponent<(props: import("../button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, any, {}, never>;
|