@uniformdev/design-system 19.149.0 → 19.150.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/dist/esm/index.js +12 -1
- package/dist/index.js +12 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -14844,9 +14844,20 @@ import {
|
|
|
14844
14844
|
} from "@internationalized/date";
|
|
14845
14845
|
function getTimeZoneLabel(tz) {
|
|
14846
14846
|
var _a;
|
|
14847
|
-
const
|
|
14847
|
+
const format = getTimeZoneFormat(tz);
|
|
14848
|
+
const offset = (_a = format.formatToParts().find((p) => p.type === "timeZoneName")) == null ? void 0 : _a.value;
|
|
14848
14849
|
return String(tz).replace(/_/g, " ") + (offset ? ` (${offset})` : "");
|
|
14849
14850
|
}
|
|
14851
|
+
function getTimeZoneFormat(tz) {
|
|
14852
|
+
try {
|
|
14853
|
+
return Intl.DateTimeFormat("en", { timeZoneName: "shortOffset", timeZone: tz });
|
|
14854
|
+
} catch (e) {
|
|
14855
|
+
if (!(e instanceof RangeError)) {
|
|
14856
|
+
throw e;
|
|
14857
|
+
}
|
|
14858
|
+
return Intl.DateTimeFormat("en", { timeZoneName: "short", timeZone: tz });
|
|
14859
|
+
}
|
|
14860
|
+
}
|
|
14850
14861
|
function tryParseAbsolute(isoDateTime, timeZone) {
|
|
14851
14862
|
try {
|
|
14852
14863
|
return isoDateTime ? parseAbsolute(isoDateTime, timeZone || getLocalTimeZone()) : null;
|
package/dist/index.js
CHANGED
|
@@ -16580,9 +16580,20 @@ init_emotion_jsx_shim();
|
|
|
16580
16580
|
var import_date3 = require("@internationalized/date");
|
|
16581
16581
|
function getTimeZoneLabel(tz) {
|
|
16582
16582
|
var _a;
|
|
16583
|
-
const
|
|
16583
|
+
const format = getTimeZoneFormat(tz);
|
|
16584
|
+
const offset = (_a = format.formatToParts().find((p) => p.type === "timeZoneName")) == null ? void 0 : _a.value;
|
|
16584
16585
|
return String(tz).replace(/_/g, " ") + (offset ? ` (${offset})` : "");
|
|
16585
16586
|
}
|
|
16587
|
+
function getTimeZoneFormat(tz) {
|
|
16588
|
+
try {
|
|
16589
|
+
return Intl.DateTimeFormat("en", { timeZoneName: "shortOffset", timeZone: tz });
|
|
16590
|
+
} catch (e) {
|
|
16591
|
+
if (!(e instanceof RangeError)) {
|
|
16592
|
+
throw e;
|
|
16593
|
+
}
|
|
16594
|
+
return Intl.DateTimeFormat("en", { timeZoneName: "short", timeZone: tz });
|
|
16595
|
+
}
|
|
16596
|
+
}
|
|
16586
16597
|
function tryParseAbsolute(isoDateTime, timeZone) {
|
|
16587
16598
|
try {
|
|
16588
16599
|
return isoDateTime ? (0, import_date3.parseAbsolute)(isoDateTime, timeZone || getLocalTimeZone()) : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.150.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.40",
|
|
26
26
|
"@types/react-dom": "18.2.17",
|
|
27
|
-
"@uniformdev/canvas": "^19.
|
|
28
|
-
"@uniformdev/richtext": "^19.
|
|
27
|
+
"@uniformdev/canvas": "^19.150.0",
|
|
28
|
+
"@uniformdev/richtext": "^19.150.0",
|
|
29
29
|
"autoprefixer": "10.4.16",
|
|
30
30
|
"hygen": "6.2.11",
|
|
31
31
|
"postcss": "8.4.38",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "4dc41368724c89d5d3c20ff5e4f84c4cfb1752b2"
|
|
76
76
|
}
|