@bitrise/bitkit 12.104.0 → 12.105.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.104.0",
4
+ "version": "12.105.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -54,6 +54,7 @@ const DateInput = forwardRef<DateInputProps, 'div'>((props, ref) => {
54
54
  format: (date: Date | null) => (date ? DateTime.fromJSDate(date).toFormat(dateInputDateFormat) : ''),
55
55
  lazy: !isFocused && isEmpty,
56
56
  mask: Date,
57
+ overwrite: true,
57
58
  parse: (str: string) => {
58
59
  try {
59
60
  const parsedDate = DateTime.fromFormat(str, dateInputDateFormat);
@@ -65,7 +66,7 @@ const DateInput = forwardRef<DateInputProps, 'div'>((props, ref) => {
65
66
  return DateTime.now().toJSDate();
66
67
  }
67
68
  },
68
- pattern: 'LL/dd/yyyy',
69
+ pattern: 'LL/`dd/`yyyy',
69
70
  },
70
71
  {
71
72
  onAccept: (val, maskRef) => {
@@ -111,7 +112,7 @@ const DateInput = forwardRef<DateInputProps, 'div'>((props, ref) => {
111
112
  aria-label="Show date picker"
112
113
  color="icon.tertiary"
113
114
  iconName="Calendar"
114
- onClick={() => setIsDatePickerVisible(true)}
115
+ onClick={() => setIsDatePickerVisible(!isDatePickerVisible)}
115
116
  variant="tertiary"
116
117
  />
117
118
  }