@box/blueprint-web 6.5.0 → 6.6.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 CHANGED
@@ -36,6 +36,7 @@ export { Modal } from './modal/modal.js';
36
36
 
37
37
 
38
38
 
39
+
39
40
  export { FilterChip } from './primitives/chips/filter-chip/index.js';
40
41
  export { ContextMenu } from './primitives/context-menu/index.js';
41
42
 
@@ -1,6 +1,7 @@
1
1
  export { Calendar } from './calendar';
2
2
  export * from './classes.util';
3
3
  export { getLocalTimeZone } from './get-local-timezone.util';
4
+ export { parseAbsolute } from './parse-absolute.util';
4
5
  export { parseAbsoluteToLocal } from './parse-absolute-to-local.util';
5
6
  export { parseDate } from './parse-date.util';
6
7
  export { toCalendarDate } from './to-calendar-date.util';
@@ -0,0 +1,7 @@
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”).
3
+ * The result is converted to the provided time zone.
4
+ * @param value
5
+ * @param timezone
6
+ */
7
+ export declare const parseAbsolute: (value: string, timezone: string) => import("@internationalized/date").ZonedDateTime;
@@ -0,0 +1,11 @@
1
+ import { parseAbsolute as parseAbsolute$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”).
5
+ * The result is converted to the provided time zone.
6
+ * @param value
7
+ * @param timezone
8
+ */
9
+ const parseAbsolute = (value, timezone) => parseAbsolute$1(value, timezone);
10
+
11
+ export { parseAbsolute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "6.5.0",
3
+ "version": "6.6.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -58,7 +58,7 @@
58
58
  "devDependencies": {
59
59
  "@box/storybook-utils": "^0.0.2"
60
60
  },
61
- "gitHead": "e96111f1c221252502e5449876dd5edc3db7de4d",
61
+ "gitHead": "3a2848f0af9255b8e360e86c93769f6f1e761f21",
62
62
  "module": "lib-esm/index.js",
63
63
  "type": "module",
64
64
  "main": "lib-esm/index.js",