@bigbinary/neeto-time-zones 0.5.0 → 0.5.2
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/README.md +7 -7
- package/dist/{index-3103b741.js → index-61b4b02c.js} +1370 -65
- package/dist/index-6b0ab984.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/react.cjs.js +4 -11
- package/dist/react.es.js +556 -384
- package/dist/style.css +1 -1
- package/package.json +30 -10
- package/dist/index-72a4a60c.cjs +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @bigbinary/neeto-time-zones
|
|
2
2
|
|
|
3
|
-
 
|
|
4
4
|
|
|
5
5
|
A simple and lightweight NPM package for working with time zones. This package provides a human friendly timezone selector and utility functions for timezones.
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ A simple and lightweight NPM package for working with time zones. This package p
|
|
|
10
10
|
You can install the package using npm:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npm install @
|
|
13
|
+
npm install @bigbinary/neeto-time-zones
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ npm install @neetohq/timezones
|
|
|
18
18
|
|
|
19
19
|
[Check out the live demo](https://codepen.io/Jijin-Haridas/full/wvQbeOr)
|
|
20
20
|
```js
|
|
21
|
-
import { NeetoTimezoneSelector } from "@
|
|
21
|
+
import { NeetoTimezoneSelector } from "@bigbinary/neeto-time-zones";
|
|
22
22
|
|
|
23
23
|
new NeetoTimezoneSelector(document.getElementById("elementId"));
|
|
24
24
|
```
|
|
@@ -33,7 +33,7 @@ You can pass options as the second parameter to configure the timezone selector
|
|
|
33
33
|
5. onHourFormatChange: Function to be called when the time format changes.
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
|
-
import { NeetoTimezoneSelector } from "@
|
|
36
|
+
import { NeetoTimezoneSelector } from "@bigbinary/neeto-time-zones";
|
|
37
37
|
|
|
38
38
|
new NeetoTimezoneSelector(document.getElementById("elementId"), {
|
|
39
39
|
className: "custom-selector-class",
|
|
@@ -48,7 +48,7 @@ new NeetoTimezoneSelector(document.getElementById("elementId"), {
|
|
|
48
48
|
### ianaTimezoneToHumanReadble
|
|
49
49
|
|
|
50
50
|
```js
|
|
51
|
-
import { ianaTimezoneToHumanReadable } from "@
|
|
51
|
+
import { ianaTimezoneToHumanReadable } from "@bigbinary/neeto-time-zones";
|
|
52
52
|
|
|
53
53
|
ianaTimezoneToHumanReadable("Asia/Calcutta") // => Indian Standard Time
|
|
54
54
|
|
|
@@ -62,7 +62,7 @@ ianaTimezoneToHumanReadable("Europe/Berlin") // => Central Standard Time
|
|
|
62
62
|
### Clone the repo
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
git clone git@github.com:
|
|
65
|
+
git clone git@github.com:bigbinary/neeto-time-zones.git
|
|
66
66
|
cd neeto-timezones/js
|
|
67
67
|
pnpm install
|
|
68
68
|
pnpm dev
|