@trackunit/react-components 0.1.85 → 0.1.86

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/index.cjs CHANGED
@@ -1179,7 +1179,7 @@ const useDebounce = (value, delay = 500) => {
1179
1179
  * Get the device pixel ratio, potentially rounded and capped.
1180
1180
  * Will emit new values if it changes.
1181
1181
  *
1182
- * @param {DevicePixelRatioOptions} options the options object
1182
+ * @param {DevicePixelRatioOptions} options the options object
1183
1183
  * @returns { number } The current device pixel ratio, or the default if none can be resolved
1184
1184
  */
1185
1185
  function useDevicePixelRatio(options) {
@@ -1228,8 +1228,8 @@ function getDevicePixelRatio(options) {
1228
1228
  /**
1229
1229
  * The useLocalStorage hook works like useState, but saves to localstorage.
1230
1230
  *
1231
- * @param {string} key - The key the values is saved under.
1232
- * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
1231
+ * @param {string} key - The key the values is saved under.
1232
+ * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
1233
1233
  * @returns {string | null | undefined} value
1234
1234
  */
1235
1235
  const useLocalStorage = (key, initialValue) => {
package/index.js CHANGED
@@ -1152,7 +1152,7 @@ const useDebounce = (value, delay = 500) => {
1152
1152
  * Get the device pixel ratio, potentially rounded and capped.
1153
1153
  * Will emit new values if it changes.
1154
1154
  *
1155
- * @param {DevicePixelRatioOptions} options the options object
1155
+ * @param {DevicePixelRatioOptions} options the options object
1156
1156
  * @returns { number } The current device pixel ratio, or the default if none can be resolved
1157
1157
  */
1158
1158
  function useDevicePixelRatio(options) {
@@ -1201,8 +1201,8 @@ function getDevicePixelRatio(options) {
1201
1201
  /**
1202
1202
  * The useLocalStorage hook works like useState, but saves to localstorage.
1203
1203
  *
1204
- * @param {string} key - The key the values is saved under.
1205
- * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
1204
+ * @param {string} key - The key the values is saved under.
1205
+ * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
1206
1206
  * @returns {string | null | undefined} value
1207
1207
  */
1208
1208
  const useLocalStorage = (key, initialValue) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
@@ -24,7 +24,7 @@ export interface DevicePixelRatioOptions {
24
24
  * Get the device pixel ratio, potentially rounded and capped.
25
25
  * Will emit new values if it changes.
26
26
  *
27
- * @param {DevicePixelRatioOptions} options the options object
27
+ * @param {DevicePixelRatioOptions} options the options object
28
28
  * @returns { number } The current device pixel ratio, or the default if none can be resolved
29
29
  */
30
30
  export declare function useDevicePixelRatio(options?: DevicePixelRatioOptions): number;
@@ -2,8 +2,8 @@ import { Dispatch, SetStateAction } from "react";
2
2
  /**
3
3
  * The useLocalStorage hook works like useState, but saves to localstorage.
4
4
  *
5
- * @param {string} key - The key the values is saved under.
6
- * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
5
+ * @param {string} key - The key the values is saved under.
6
+ * @param {string | null | undefined} initialValue - The initial value for the state/local storage item
7
7
  * @returns {string | null | undefined} value
8
8
  */
9
9
  export declare const useLocalStorage: <TValue = string | null | undefined>(key: string, initialValue?: TValue | undefined) => [TValue | null, Dispatch<SetStateAction<TValue | null>>, () => void];