@zealicsolutions/web-ui 1.0.49 → 1.0.50
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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/DatePicker/DatePicker.d.ts +1 -2
- package/dist/cjs/molecules/Rating/Rating.d.ts +0 -13
- package/dist/cjs/molecules/Slider/Slider.d.ts +2 -9
- package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
- package/dist/esm/molecules/Calendar/CalendarMolecule.js.map +1 -1
- package/dist/esm/molecules/Checklist/Checklist.js +1 -1
- package/dist/esm/molecules/Checklist/Checklist.js.map +1 -1
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js.map +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.d.ts +1 -2
- package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/molecules/Rating/Rating.d.ts +0 -13
- package/dist/esm/molecules/Rating/Rating.js +1 -1
- package/dist/esm/molecules/Rating/Rating.js.map +1 -1
- package/dist/esm/molecules/Slider/Slider.d.ts +2 -9
- package/dist/esm/molecules/Slider/Slider.js +1 -1
- package/dist/esm/molecules/Slider/Slider.js.map +1 -1
- package/dist/esm/node_modules/is-hotkey/lib/index.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/index.js +1 -1
- package/dist/index.d.ts +3 -23
- package/package.json +1 -1
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
|
3
|
-
import { IconRendererProps } from 'molecules/Icon';
|
4
3
|
export interface DatePickerMoleculeProps extends MuiDatePickerProps {
|
5
4
|
required?: boolean;
|
6
5
|
placeholderText?: string;
|
@@ -12,7 +11,7 @@ export interface DatePickerMoleculeProps extends MuiDatePickerProps {
|
|
12
11
|
fontFamily?: string;
|
13
12
|
fontWeight?: string | number;
|
14
13
|
textColor?: string;
|
15
|
-
iconColor?:
|
14
|
+
iconColor?: string;
|
16
15
|
minDate?: string;
|
17
16
|
maxDate?: string;
|
18
17
|
backgroundColor?: string;
|
@@ -1,24 +1,15 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { RatingProps } from '@mui/material';
|
3
3
|
export interface RatingMoleculeProps extends Omit<RatingProps, 'onChange'> {
|
4
|
-
/** Label text displayed above or beside the rating */
|
5
4
|
text: string;
|
6
|
-
/** Name used for react-hook-form registration */
|
7
5
|
name: string;
|
8
|
-
/** If true, the user can’t change the rating (renders read-only) */
|
9
6
|
isDisplayOnly?: boolean;
|
10
|
-
/** If true, we show an asterisk and require a non-null rating */
|
11
7
|
required?: boolean;
|
12
|
-
/** Custom error text if `required` is not satisfied */
|
13
8
|
requiredErrorText?: string;
|
14
|
-
/** If some other validation fails, show this text */
|
15
9
|
validationErrorText?: string;
|
16
10
|
placeholderText?: string;
|
17
|
-
/** If true, rating icons will show real-time integer value on hover or selection */
|
18
11
|
hoverFeedback?: boolean;
|
19
|
-
/** For hooking up with state config if you store an initial rating there */
|
20
12
|
sourceDataModelField?: string;
|
21
|
-
/** Some style props for customizing layout/appearance */
|
22
13
|
textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
23
14
|
color?: string;
|
24
15
|
textColor?: string;
|
@@ -34,13 +25,9 @@ export interface RatingMoleculeProps extends Omit<RatingProps, 'onChange'> {
|
|
34
25
|
paddingTop?: string;
|
35
26
|
paddingRight?: string;
|
36
27
|
paddingBottom?: string;
|
37
|
-
/** For left or right placement of the hover feedback text */
|
38
28
|
placement?: 'right' | 'left';
|
39
|
-
/** The config item for design-time or telemetry */
|
40
29
|
configurationItemInfo?: Record<string, unknown>;
|
41
|
-
/** Disables rating input in editable mode (MUI prop) */
|
42
30
|
disabled?: boolean;
|
43
|
-
/** If using react-hook-form, we can track field errors. */
|
44
31
|
maxValue?: number;
|
45
32
|
ratingPrecision?: number;
|
46
33
|
}
|
@@ -2,14 +2,13 @@ import React from 'react';
|
|
2
2
|
import { SliderProps } from '@mui/material';
|
3
3
|
import { ConfigurationItemInfo } from 'containers';
|
4
4
|
export interface SliderMoleculeProps extends Omit<SliderProps, 'onChange'> {
|
5
|
-
|
5
|
+
text?: string;
|
6
|
+
name?: string;
|
6
7
|
isDisplayOnly?: boolean;
|
7
|
-
/** If true, rely on FormControl to show a required asterisk. */
|
8
8
|
required?: boolean;
|
9
9
|
requiredErrorText?: string;
|
10
10
|
validationErrorText?: string;
|
11
11
|
placeholderText?: string;
|
12
|
-
text?: string;
|
13
12
|
startIcon?: string;
|
14
13
|
endIcon?: string;
|
15
14
|
borderColor?: string;
|
@@ -28,7 +27,6 @@ export interface SliderMoleculeProps extends Omit<SliderProps, 'onChange'> {
|
|
28
27
|
minValue?: number;
|
29
28
|
maxValue?: number;
|
30
29
|
step?: number;
|
31
|
-
/** label's placement relative to the slider+icons */
|
32
30
|
labelPlacement?: 'top' | 'bottom';
|
33
31
|
marginLeft?: string;
|
34
32
|
marginTop?: string;
|
@@ -39,11 +37,6 @@ export interface SliderMoleculeProps extends Omit<SliderProps, 'onChange'> {
|
|
39
37
|
paddingRight?: string;
|
40
38
|
paddingBottom?: string;
|
41
39
|
configurationItemInfo?: ConfigurationItemInfo;
|
42
|
-
/** For hooking up with react-hook-form */
|
43
|
-
name?: string;
|
44
40
|
sourceDataModelField?: string;
|
45
41
|
}
|
46
|
-
/**
|
47
|
-
* SliderMolecule
|
48
|
-
*/
|
49
42
|
export declare const SliderMolecule: React.FC<SliderMoleculeProps>;
|