@northlight/ui 2.43.3 → 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.
@@ -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,
@@ -364,7 +364,7 @@ export const DateRangePicker = (props: DateRangePickerProps) => {
364
364
  isInvalid={ isInvalid }
365
365
  variant={ variant }
366
366
  >
367
- <HStack paddingInlineStart="1a" data-test-id="daterange-picker-input-field" paddingInlineEnd={ 10 }>
367
+ <HStack paddingInlineStart="1a" data-testid="daterange-picker-input-field" paddingInlineEnd={ 10 }>
368
368
  <DateField
369
369
  { ...restStartFieldProps }
370
370
  id={ startFieldId }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northlight/ui",
3
- "version": "2.43.3",
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.0",
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": "fdae3d38ecd44d41a69cd4bc5e9257d2a39b5751"
129
+ "gitHead": "bbe52035d01d9680c053f20203edf4ff4f2b47d4"
130
130
  }
@@ -42,6 +42,9 @@ async function main () {
42
42
  const server = await createServer({
43
43
  configFile: false,
44
44
  root: cwd,
45
+ define: {
46
+ __ENV__: '"sandbox"',
47
+ },
45
48
  server: {
46
49
  port: 5000,
47
50
  strictPort: false,