@tradeshift/elements.date-picker
Advanced tools
+7
-7
| { | ||
| "name": "@tradeshift/elements.date-picker", | ||
| "version": "0.40.0", | ||
| "version": "0.40.1", | ||
| "repository": { | ||
@@ -18,7 +18,7 @@ "type": "git", | ||
| "dependencies": { | ||
| "@tradeshift/elements": "^0.40.0", | ||
| "@tradeshift/elements.date-picker-overlay": "^0.40.0", | ||
| "@tradeshift/elements.icon": "^0.40.0", | ||
| "@tradeshift/elements.overlay": "^0.40.0", | ||
| "@tradeshift/elements.text-field": "^0.40.0" | ||
| "@tradeshift/elements": "^0.40.1", | ||
| "@tradeshift/elements.date-picker-overlay": "^0.40.1", | ||
| "@tradeshift/elements.icon": "^0.40.1", | ||
| "@tradeshift/elements.overlay": "^0.40.1", | ||
| "@tradeshift/elements.text-field": "^0.40.1" | ||
| }, | ||
@@ -29,3 +29,3 @@ "publishConfig": { | ||
| "src": "src/date-picker.js", | ||
| "gitHead": "95eb701d1139386b893ad0ed34acb72284339732" | ||
| "gitHead": "883a0bbd69d7e4e1948084cd9300c4b81e40bacd" | ||
| } |
+15
-13
| export interface TSDatePickerHTMLAttributes { | ||
| /** css class name. Use it instead of "className" */ | ||
| class?: string; | ||
| /** Can be used for customizing placeholder, days abbreviations, months abbreviations and providing translations for them <br> see the structure in its storybook knobs section. <br> */ | ||
| translations?: object; | ||
| translations?: string; | ||
@@ -18,9 +20,9 @@ /** Direction of the component 'rtl' or 'ltr'. */ | ||
| /** Is the date picker disabled? */ | ||
| disabled?: boolean; | ||
| disabled?: boolean | 'true' | 'false'; | ||
| /** Is the date picker readonly? */ | ||
| readonly?: boolean; | ||
| readonly?: boolean | 'true' | 'false'; | ||
| /** You can pass a function to this prop, which will get js Date object of the days in the calendar view as input, <br> and expect a boolean to make the day disabled or not. */ | ||
| isDisabledDate?: function; | ||
| isDisabledDate?: string; | ||
@@ -34,12 +36,12 @@ /** Minimum date which can be selected by the user. Dates before this will be shown as disabled. Supports ISO 8601 format */ | ||
| /** Is the dropdown part opened or not? */ | ||
| opened?: boolean; | ||
| opened?: boolean | 'true' | 'false'; | ||
| /** Disable the typing a new date */ | ||
| "not-typeable"?: boolean; | ||
| "not-typeable"?: boolean | 'true' | 'false'; | ||
| /** Which day should be shown as the first day of the week. A number between 0-6 (0 = Sunday, 6 = Saturday) */ | ||
| "first-day"?: number; | ||
| "first-day"?: string; | ||
| /** Array of messages to pass to help-text component. See help-text component for more info */ | ||
| "help-text-messages"?: any[]; | ||
| "help-text-messages"?: string; | ||
@@ -53,3 +55,3 @@ /** If you have more than one help text message , you should pass a title to it. See help-text component for more info */ | ||
| /** Error messages to show underneath of the input when it has error */ | ||
| "error-messages"?: any[]; | ||
| "error-messages"?: string; | ||
@@ -60,6 +62,6 @@ /** Error title, if there are more than one error message */ | ||
| /** If the text field has an error, to show error messages and change the style of the input */ | ||
| "has-error"?: boolean; | ||
| "has-error"?: boolean | 'true' | 'false'; | ||
| /** To remove the deselect button and show the asterisk in the label. Not doing the validation, you should set the has-error and error messages yourself */ | ||
| required?: boolean; | ||
| required?: boolean | 'true' | 'false'; | ||
@@ -70,3 +72,3 @@ } | ||
| /** Can be used for customizing placeholder, days abbreviations, months abbreviations and providing translations for them <br> see the structure in its storybook knobs section. <br> */ | ||
| translations?: object; | ||
| translations?: Record<string, unknown>; | ||
@@ -92,3 +94,3 @@ /** Direction of the component 'rtl' or 'ltr'. */ | ||
| /** You can pass a function to this prop, which will get js Date object of the days in the calendar view as input, <br> and expect a boolean to make the day disabled or not. */ | ||
| isDisabledDate?: function; | ||
| isDisabledDate?: Function; | ||
@@ -95,0 +97,0 @@ /** Minimum date which can be selected by the user. Dates before this will be shown as disabled. Supports ISO 8601 format */ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
81624
0.25%328
0.61%6
-14.29%1
-50%