@box/blueprint-web 6.4.5 → 6.5.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/lib-esm/index.js +6 -0
- package/lib-esm/primitives/calendar/classes.util.d.ts +7 -0
- package/lib-esm/primitives/calendar/classes.util.js +9 -0
- package/lib-esm/primitives/calendar/get-local-timezone.util.d.ts +1 -0
- package/lib-esm/primitives/calendar/get-local-timezone.util.js +5 -0
- package/lib-esm/primitives/calendar/index.d.ts +6 -0
- package/lib-esm/primitives/calendar/parse-absolute-to-local.util.d.ts +5 -0
- package/lib-esm/primitives/calendar/parse-absolute-to-local.util.js +9 -0
- package/lib-esm/primitives/calendar/to-calendar-date-time.util.d.ts +8 -0
- package/lib-esm/primitives/calendar/to-calendar-date-time.util.js +11 -0
- package/lib-esm/primitives/calendar/to-calendar-date.util.d.ts +7 -0
- package/lib-esm/primitives/calendar/to-calendar-date.util.js +10 -0
- package/lib-esm/primitives/calendar/to-zoned.util.d.ts +9 -0
- package/lib-esm/primitives/calendar/to-zoned.util.js +12 -0
- package/package.json +3 -3
package/lib-esm/index.js
CHANGED
|
@@ -30,6 +30,12 @@ export { LoadingIndicator } from './loading-indicator/loading-indicator.js';
|
|
|
30
30
|
export { Modal } from './modal/modal.js';
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
33
39
|
export { FilterChip } from './primitives/chips/filter-chip/index.js';
|
|
34
40
|
export { ContextMenu } from './primitives/context-menu/index.js';
|
|
35
41
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CalendarDate as CalendarDateClass, CalendarDateTime as CalendarDateTimeClass, DateFormatter as DateFormatterClass, Time as TimeClass, ZonedDateTime as ZonedDateTimeClass } from '@internationalized/date';
|
|
2
|
+
declare const CalendarDate: typeof CalendarDateClass;
|
|
3
|
+
declare const CalendarDateTime: typeof CalendarDateTimeClass;
|
|
4
|
+
declare const DateFormatter: typeof DateFormatterClass;
|
|
5
|
+
declare const Time: typeof TimeClass;
|
|
6
|
+
declare const ZonedDateTime: typeof ZonedDateTimeClass;
|
|
7
|
+
export { CalendarDate, CalendarDateTime, DateFormatter, Time, ZonedDateTime };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CalendarDate as CalendarDate$1, CalendarDateTime as CalendarDateTime$1, DateFormatter as DateFormatter$1, Time as Time$1, ZonedDateTime as ZonedDateTime$1 } from '@internationalized/date';
|
|
2
|
+
|
|
3
|
+
const CalendarDate = CalendarDate$1;
|
|
4
|
+
const CalendarDateTime = CalendarDateTime$1;
|
|
5
|
+
const DateFormatter = DateFormatter$1;
|
|
6
|
+
const Time = Time$1;
|
|
7
|
+
const ZonedDateTime = ZonedDateTime$1;
|
|
8
|
+
|
|
9
|
+
export { CalendarDate, CalendarDateTime, DateFormatter, Time, ZonedDateTime };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLocalTimeZone: () => string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { Calendar } from './calendar';
|
|
2
|
+
export * from './classes.util';
|
|
3
|
+
export { getLocalTimeZone } from './get-local-timezone.util';
|
|
4
|
+
export { parseAbsoluteToLocal } from './parse-absolute-to-local.util';
|
|
2
5
|
export { parseDate } from './parse-date.util';
|
|
6
|
+
export { toCalendarDate } from './to-calendar-date.util';
|
|
7
|
+
export { toCalendarDateTime } from './to-calendar-date-time.util';
|
|
8
|
+
export { toZoned } from './to-zoned.util';
|
|
3
9
|
export { type CalendarProps } from './types';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses an ISO 8601 date and time string with a UTC offset (e.g. “2021-11-07T07:45:00Z” or “2021-11-07T07:45:00-07:00”). The result is converted to the user's local time zone.
|
|
3
|
+
* @param absoluteString
|
|
4
|
+
*/
|
|
5
|
+
export declare const parseAbsoluteToLocal: (absoluteString: string) => import("@internationalized/date").ZonedDateTime;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { parseAbsoluteToLocal as parseAbsoluteToLocal$1 } from '@internationalized/date';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Parses an ISO 8601 date and time string with a UTC offset (e.g. “2021-11-07T07:45:00Z” or “2021-11-07T07:45:00-07:00”). The result is converted to the user's local time zone.
|
|
5
|
+
* @param absoluteString
|
|
6
|
+
*/
|
|
7
|
+
const parseAbsoluteToLocal = absoluteString => parseAbsoluteToLocal$1(absoluteString);
|
|
8
|
+
|
|
9
|
+
export { parseAbsoluteToLocal };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type AnyTime, type CalendarDate, type CalendarDateTime, type ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
/**
|
|
3
|
+
* Convert a date and time to a CalendarDateTime. If time is not provided, the time will be set to 00:00:00.000.
|
|
4
|
+
*
|
|
5
|
+
* @param date
|
|
6
|
+
* @param time
|
|
7
|
+
*/
|
|
8
|
+
export declare const toCalendarDateTime: (date: CalendarDate | CalendarDateTime | ZonedDateTime, time?: AnyTime) => CalendarDateTime;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { toCalendarDateTime as toCalendarDateTime$1 } from '@internationalized/date';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Convert a date and time to a CalendarDateTime. If time is not provided, the time will be set to 00:00:00.000.
|
|
5
|
+
*
|
|
6
|
+
* @param date
|
|
7
|
+
* @param time
|
|
8
|
+
*/
|
|
9
|
+
const toCalendarDateTime = (date, time) => toCalendarDateTime$1(date, time);
|
|
10
|
+
|
|
11
|
+
export { toCalendarDateTime };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CalendarDate, type CalendarDateTime, type Disambiguation, type ZonedDateTime } from '@internationalized/date';
|
|
2
|
+
/**
|
|
3
|
+
* Convert a date and timezone to a ZonedDateTime.
|
|
4
|
+
*
|
|
5
|
+
* @param date
|
|
6
|
+
* @param timeZone
|
|
7
|
+
* @param disambiguation
|
|
8
|
+
*/
|
|
9
|
+
export declare const toZoned: (date: CalendarDate | CalendarDateTime | ZonedDateTime, timeZone: string, disambiguation?: Disambiguation) => ZonedDateTime;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { toZoned as toZoned$1 } from '@internationalized/date';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Convert a date and timezone to a ZonedDateTime.
|
|
5
|
+
*
|
|
6
|
+
* @param date
|
|
7
|
+
* @param timeZone
|
|
8
|
+
* @param disambiguation
|
|
9
|
+
*/
|
|
10
|
+
const toZoned = (date, timeZone, disambiguation) => toZoned$1(date, timeZone, disambiguation);
|
|
11
|
+
|
|
12
|
+
export { toZoned };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"**/*.scss"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@box/blueprint-web-assets": "^4.4.
|
|
31
|
+
"@box/blueprint-web-assets": "^4.4.1",
|
|
32
32
|
"@ariakit/react": "0.4.1",
|
|
33
33
|
"@ariakit/react-core": "0.4.1",
|
|
34
34
|
"@radix-ui/react-accordion": "1.1.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@box/storybook-utils": "^0.0.2"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "e96111f1c221252502e5449876dd5edc3db7de4d",
|
|
62
62
|
"module": "lib-esm/index.js",
|
|
63
63
|
"type": "module",
|
|
64
64
|
"main": "lib-esm/index.js",
|