@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.
- package/dist/es/northlight.js +4 -4
- 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 +3 -3
- package/dist/sandbox/index.js.map +1 -1
- package/dist/umd/northlight.cjs +3 -3
- 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/lib/components/date-picker/date-picker/date-range-picker.tsx +1 -1
- package/package.json +3 -3
- package/sandbox/bin/sandbox.ts +3 -0
package/dist/sandbox/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { useRadioGroupState } from '@react-stately/radio';
|
|
|
21
21
|
import { useCheckboxGroupState } from '@react-stately/checkbox';
|
|
22
22
|
import { useDateSegment, useDateField, useDatePicker, useDateRangePicker } from '@react-aria/datepicker';
|
|
23
23
|
import { useDateFieldState, useDatePickerState, useDateRangePickerState } from '@react-stately/datepicker';
|
|
24
|
-
import { createCalendar, today, isSameMonth, getWeeksInMonth, GregorianCalendar, parseDate, startOfWeek, endOfWeek, startOfMonth, endOfMonth, startOfYear, endOfYear } from '@internationalized/date';
|
|
24
|
+
import { createCalendar, today, isSameMonth, getWeeksInMonth, GregorianCalendar, toCalendarDate, CalendarDateTime, parseDate, startOfWeek, endOfWeek, startOfMonth, endOfMonth, startOfYear, endOfYear } from '@internationalized/date';
|
|
25
25
|
import { useDateFormatter, useLocale, I18nProvider } from '@react-aria/i18n';
|
|
26
26
|
import { useCalendarState } from '@react-stately/calendar';
|
|
27
27
|
import { useCalendarCell, useCalendarGrid, useCalendar } from '@react-aria/calendar';
|
|
@@ -6330,7 +6330,7 @@ const DatePicker = (props) => {
|
|
|
6330
6330
|
maxValue,
|
|
6331
6331
|
isReadOnly,
|
|
6332
6332
|
isRequired,
|
|
6333
|
-
placeholderValue,
|
|
6333
|
+
placeholderValue = toCalendarDate(new CalendarDateTime(2024, 1, 31)),
|
|
6334
6334
|
isDateUnavailable,
|
|
6335
6335
|
granularity,
|
|
6336
6336
|
hourCycle,
|
|
@@ -7623,7 +7623,7 @@ const DateRangePicker = (props) => {
|
|
|
7623
7623
|
isDisabled,
|
|
7624
7624
|
isInvalid,
|
|
7625
7625
|
variant,
|
|
7626
|
-
children: /* @__PURE__ */ jsxs(HStack, { paddingInlineStart: "1a", "data-
|
|
7626
|
+
children: /* @__PURE__ */ jsxs(HStack, { paddingInlineStart: "1a", "data-testid": "daterange-picker-input-field", paddingInlineEnd: 10, children: [
|
|
7627
7627
|
/* @__PURE__ */ jsx(
|
|
7628
7628
|
DateField,
|
|
7629
7629
|
__spreadProps$h(__spreadValues$z({}, restStartFieldProps), {
|