@northlight/ui 2.43.6 → 2.43.8
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 +1 -1
- package/dist/es/northlight.js.map +1 -1
- package/dist/sandbox/index.cjs +2 -2
- 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 +1 -1
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/lib/components/date-picker/date-picker/date-range-picker.tsx +2 -2
- package/package.json +2 -2
- package/sandbox/bin/sandbox.ts +2 -0
- package/sandbox/lib/viewer/sandbox-viewer.css +0 -1
|
@@ -5,7 +5,7 @@ import { useDateRangePicker } from '@react-aria/datepicker'
|
|
|
5
5
|
import { useMultiStyleConfig, useOutsideClick } from '@chakra-ui/react'
|
|
6
6
|
import { CheckSolid, XCloseSolid } from '@northlight/icons'
|
|
7
7
|
import { identity, isNil } from 'ramda'
|
|
8
|
-
import { DateValue, parseDate } from '@internationalized/date'
|
|
8
|
+
import { CalendarDateTime, DateValue, parseDate, toCalendarDate } from '@internationalized/date'
|
|
9
9
|
import { DateRange } from '@react-types/datepicker'
|
|
10
10
|
import { DateRangePickerProps, DateRange as NorthlightDateRange } from '../types'
|
|
11
11
|
import { RangeCalendar } from '../components/calendar/quick-navigation'
|
|
@@ -117,7 +117,7 @@ export const DateRangePicker = (props: DateRangePickerProps) => {
|
|
|
117
117
|
'data-testid': dataTestId,
|
|
118
118
|
defaultOpen = false,
|
|
119
119
|
onOpenChange,
|
|
120
|
-
placeholderValue,
|
|
120
|
+
placeholderValue = toCalendarDate(new CalendarDateTime(2024, 1, 31)),
|
|
121
121
|
isDateUnavailable,
|
|
122
122
|
allowsNonContiguousRanges,
|
|
123
123
|
startName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northlight/ui",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.8",
|
|
4
4
|
"description": "Northlight UI library, based on Chakra-ui",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Camphouse",
|
|
@@ -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": "518767003b01c98ce6eec67a762d085883cf5dc5"
|
|
130
130
|
}
|
package/sandbox/bin/sandbox.ts
CHANGED
|
@@ -80,6 +80,7 @@ async function main () {
|
|
|
80
80
|
<head>
|
|
81
81
|
<meta charset="UTF-8" />
|
|
82
82
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
83
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
83
84
|
<title>Sandbox</title>
|
|
84
85
|
</head>
|
|
85
86
|
<body>
|
|
@@ -107,6 +108,7 @@ async function main () {
|
|
|
107
108
|
<head>
|
|
108
109
|
<meta charset="UTF-8" />
|
|
109
110
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
111
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
110
112
|
<title>Sandbox</title>
|
|
111
113
|
</head>
|
|
112
114
|
<body>
|