@pingux/astro 1.8.0-alpha.4 → 1.8.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/CHANGELOG.md
CHANGED
@@ -3,6 +3,32 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [1.8.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.7.0...@pingux/astro@1.8.0) (2022-04-14)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* [UIP-5220] Add typography support props for Text component ([a22ad60](https://gitlab.corp.pingidentity.com/ux/pingux/commit/a22ad6042a7600c8fd7d57a3eab13a575c1ddc41))
|
12
|
+
* [UIP-5299] Nav bar fixes ([bacdcdb](https://gitlab.corp.pingidentity.com/ux/pingux/commit/bacdcdb0fee52cee35ee8a90a91d530ab69f0264))
|
13
|
+
* [UIP-5335] TimezonePicker with correct offset in GMT ([72451f2](https://gitlab.corp.pingidentity.com/ux/pingux/commit/72451f2bb9bad80ddff00ebbc82aa927bc6cb50e))
|
14
|
+
* [UIP-5338] ComboBox Improvements ([e6d81f7](https://gitlab.corp.pingidentity.com/ux/pingux/commit/e6d81f793432bdca9c44a42eb3ad3f8d68080e6a))
|
15
|
+
* [UIP-5340] NumberField whitespace issue ([48fad9f](https://gitlab.corp.pingidentity.com/ux/pingux/commit/48fad9f2ad952aaec007426ab97b8ca6c934c8a8))
|
16
|
+
* [UIP-5341] change input font size to 15 ([db80d09](https://gitlab.corp.pingidentity.com/ux/pingux/commit/db80d09c16c03e2c19ff4a43e8a913eee45506dc))
|
17
|
+
* [UIP-5351] CodeView cannot import additional language ([5a74c5b](https://gitlab.corp.pingidentity.com/ux/pingux/commit/5a74c5b21664e8bc43ef026efeb317f1bc640275))
|
18
|
+
* [UIP-5352] Remove tooltip from delete button ([cfc9645](https://gitlab.corp.pingidentity.com/ux/pingux/commit/cfc9645f256ba498278c55f60e998a31e306310a))
|
19
|
+
* [UIP-5356] Accordion button background transparency ([5cd3178](https://gitlab.corp.pingidentity.com/ux/pingux/commit/5cd31789511846b7cc27e4c47adb200f0bfbe788))
|
20
|
+
|
21
|
+
|
22
|
+
### Features
|
23
|
+
|
24
|
+
* [UIP-5060] Breadcrumb Component Improvements ([5f204e1](https://gitlab.corp.pingidentity.com/ux/pingux/commit/5f204e1072fee77ae3a963fb2015594d6222a954))
|
25
|
+
* [UIP-5209] Add fallback functionality to Image ([f0f1fae](https://gitlab.corp.pingidentity.com/ux/pingux/commit/f0f1faed4452a3bf69ae485c87f00716e074a655))
|
26
|
+
* [UIP-5277] MultiSelect List Container Interactive Story ([381e9b7](https://gitlab.corp.pingidentity.com/ux/pingux/commit/381e9b7c2827518d4254c410c00fea66347d7850))
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
6
32
|
# [1.7.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.6.0...@pingux/astro@1.7.0) (2022-04-04)
|
7
33
|
|
8
34
|
|
@@ -97,6 +97,18 @@ var getLocaleTime = function getLocaleTime(_ref2) {
|
|
97
97
|
timeZone: timeZone
|
98
98
|
}, localeOptions));
|
99
99
|
};
|
100
|
+
|
101
|
+
var getTimezoneOffset = function getTimezoneOffset(timeZone) {
|
102
|
+
var now = new Date();
|
103
|
+
var tzString = now.toLocaleString('en-US', {
|
104
|
+
timeZone: timeZone
|
105
|
+
});
|
106
|
+
var localString = now.toLocaleString('en-US');
|
107
|
+
var diff = (Date.parse(localString) - Date.parse(tzString)) / 3600000;
|
108
|
+
var offset = -(diff + now.getTimezoneOffset() / 60);
|
109
|
+
var formattedString = "".concat(offset, ":00");
|
110
|
+
return offset > 0 ? "+".concat(formattedString) : formattedString;
|
111
|
+
};
|
100
112
|
/**
|
101
113
|
* Component allows users to choose a timezone from the list.
|
102
114
|
* You can checkout the default timezones list [here](https://github.com/yury-dymov/react-bootstrap-timezone-picker/blob/master/src/timezones.json).
|
@@ -143,7 +155,7 @@ var TimeZonePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
143
155
|
return (0, _map["default"])(_context5 = (0, _entries["default"])(extendedTimeZonesList)).call(_context5, function (item) {
|
144
156
|
var _item$;
|
145
157
|
|
146
|
-
var gmt = item[
|
158
|
+
var gmt = "GMT".concat(getTimezoneOffset(item[1]));
|
147
159
|
var gmtLabel = item[0].substring(12);
|
148
160
|
var timeZone = (_item$ = item[1]) === null || _item$ === void 0 ? void 0 : _item$.replace(/_/g, ' ');
|
149
161
|
var time = getLocaleTime({
|
@@ -54,6 +54,18 @@ var getLocaleTime = function getLocaleTime(_ref2) {
|
|
54
54
|
timeZone: timeZone
|
55
55
|
}, localeOptions));
|
56
56
|
};
|
57
|
+
|
58
|
+
var getTimezoneOffset = function getTimezoneOffset(timeZone) {
|
59
|
+
var now = new Date();
|
60
|
+
var tzString = now.toLocaleString('en-US', {
|
61
|
+
timeZone: timeZone
|
62
|
+
});
|
63
|
+
var localString = now.toLocaleString('en-US');
|
64
|
+
var diff = (Date.parse(localString) - Date.parse(tzString)) / 3600000;
|
65
|
+
var offset = -(diff + now.getTimezoneOffset() / 60);
|
66
|
+
var formattedString = "".concat(offset, ":00");
|
67
|
+
return offset > 0 ? "+".concat(formattedString) : formattedString;
|
68
|
+
};
|
57
69
|
/**
|
58
70
|
* Component allows users to choose a timezone from the list.
|
59
71
|
* You can checkout the default timezones list [here](https://github.com/yury-dymov/react-bootstrap-timezone-picker/blob/master/src/timezones.json).
|
@@ -100,7 +112,7 @@ var TimeZonePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
100
112
|
return _mapInstanceProperty(_context5 = _Object$entries(extendedTimeZonesList)).call(_context5, function (item) {
|
101
113
|
var _item$;
|
102
114
|
|
103
|
-
var gmt = item[
|
115
|
+
var gmt = "GMT".concat(getTimezoneOffset(item[1]));
|
104
116
|
var gmtLabel = item[0].substring(12);
|
105
117
|
var timeZone = (_item$ = item[1]) === null || _item$ === void 0 ? void 0 : _item$.replace(/_/g, ' ');
|
106
118
|
var time = getLocaleTime({
|