@northlight/ui 2.43.4 → 2.43.5
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/es/northlight.js +3 -3
- package/dist/es/northlight.js.map +1 -1
- package/dist/sandbox/index.cjs +1 -1
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +2 -2
- package/dist/sandbox/index.js.map +1 -1
- package/dist/umd/northlight.cjs +2 -2
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +2 -2
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/lib/components/combo-picker/combo-picker.tsx +2 -2
- package/lib/components/date-picker/date-picker/date-picker.tsx +2 -2
- package/package.json +3 -3
- package/sandbox/bin/sandbox.ts +3 -0
|
@@ -93,7 +93,7 @@ export const ComboPicker = ({
|
|
|
93
93
|
const buttonWidth = (buttonRef.current?.offsetWidth ?? 0)
|
|
94
94
|
|
|
95
95
|
return (
|
|
96
|
-
|
|
96
|
+
<Box position="relative" width="100%">
|
|
97
97
|
<FormattedNumberInput
|
|
98
98
|
width="100%"
|
|
99
99
|
onChange={ (values) => handleInputChange(values.floatValue) }
|
|
@@ -160,6 +160,6 @@ export const ComboPicker = ({
|
|
|
160
160
|
</Box>
|
|
161
161
|
)
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
</Box>
|
|
164
164
|
)
|
|
165
165
|
}
|
|
@@ -4,7 +4,7 @@ import { useDatePicker } from '@react-aria/datepicker'
|
|
|
4
4
|
import { useDatePickerState } from '@react-stately/datepicker'
|
|
5
5
|
import { FocusScope } from '@react-aria/focus'
|
|
6
6
|
import { XCloseSolid } from '@northlight/icons'
|
|
7
|
-
import { parseDate } from '@internationalized/date'
|
|
7
|
+
import { CalendarDateTime, parseDate, toCalendarDate } from '@internationalized/date'
|
|
8
8
|
import { DateField, StyledField, Trigger } from '../components/date-field'
|
|
9
9
|
import { Calendar } from '../components/calendar'
|
|
10
10
|
import { DatePickerProps } from '../types'
|
|
@@ -78,7 +78,7 @@ export const DatePicker = (props: DatePickerProps) => {
|
|
|
78
78
|
maxValue,
|
|
79
79
|
isReadOnly,
|
|
80
80
|
isRequired,
|
|
81
|
-
placeholderValue,
|
|
81
|
+
placeholderValue = toCalendarDate(new CalendarDateTime(2024, 1, 31)),
|
|
82
82
|
isDateUnavailable,
|
|
83
83
|
granularity,
|
|
84
84
|
hourCycle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northlight/ui",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.5",
|
|
4
4
|
"description": "Northlight UI library, based on Chakra-ui",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Camphouse",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@emotion/styled": "^11.11.0",
|
|
57
57
|
"@hookform/resolvers": "^3.3.2",
|
|
58
58
|
"@internationalized/date": "^3.5.0",
|
|
59
|
-
"@northlight/icons": "^1.7.
|
|
59
|
+
"@northlight/icons": "^1.7.1",
|
|
60
60
|
"@northlight/tokens": "^1.4.7",
|
|
61
61
|
"@react-aria/button": "^3.8.2",
|
|
62
62
|
"@react-aria/calendar": "^3.5.0",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"react-dom": ">=18.0.0",
|
|
127
127
|
"react-router-dom": "^5.0.0"
|
|
128
128
|
},
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "bbe52035d01d9680c053f20203edf4ff4f2b47d4"
|
|
130
130
|
}
|