@tempots/ui 12.0.0 → 13.0.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/index.cjs +1 -1
- package/index.js +564 -562
- package/package.json +2 -2
- package/renderables/size.d.ts +2 -2
- package/utils/make-relative-time.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tempots/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@floating-ui/dom": "^1.7.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@tempots/dom": "^
|
|
43
|
+
"@tempots/dom": "^34.0.0",
|
|
44
44
|
"@tempots/std": "^0.24.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/renderables/size.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal, TNode, Size } from '@tempots/dom';
|
|
2
2
|
/**
|
|
3
3
|
* Represents a rectangle with position and dimensions.
|
|
4
4
|
*
|
|
@@ -261,4 +261,4 @@ export declare const ElementRect: (fn: (rect: Signal<Rect>) => TNode) => import(
|
|
|
261
261
|
* @returns A renderable function that monitors the window size.
|
|
262
262
|
* @public
|
|
263
263
|
*/
|
|
264
|
-
export declare const WindowSize: (fn: (size: Signal<Size>) => TNode) => (
|
|
264
|
+
export declare const WindowSize: (fn: (size: Signal<Size>) => TNode) => import('@tempots/dom').Renderable;
|
|
@@ -34,7 +34,7 @@ export declare const timeDiffToString: (diffInMillis: number) => string;
|
|
|
34
34
|
export declare const relativeTimeMillisSignal: (date: Value<Date>, { now, frequency }?: {
|
|
35
35
|
now?: Value<Date>;
|
|
36
36
|
frequency?: number;
|
|
37
|
-
}) => import('@tempots/
|
|
37
|
+
}) => import('@tempots/core').Computed<number>;
|
|
38
38
|
/**
|
|
39
39
|
* Creates a signal that computes a human-readable relative time string between a target date and a reference date.
|
|
40
40
|
*
|
|
@@ -49,7 +49,7 @@ export declare const relativeTimeMillisSignal: (date: Value<Date>, { now, freque
|
|
|
49
49
|
export declare const relativeTimeSignal: (date: Value<Date>, options?: {
|
|
50
50
|
now?: Value<Date>;
|
|
51
51
|
frequency?: number;
|
|
52
|
-
}) => import('@tempots/
|
|
52
|
+
}) => import('@tempots/core').Computed<string>;
|
|
53
53
|
/**
|
|
54
54
|
* Creates a signal that computes a human-readable relative time string between a target date and a reference date.
|
|
55
55
|
*
|
|
@@ -65,4 +65,4 @@ export declare const relativeTimeSignal: (date: Value<Date>, options?: {
|
|
|
65
65
|
export declare const relativeTime: (date: Value<Date>, options?: {
|
|
66
66
|
now?: Value<Date>;
|
|
67
67
|
frequency?: number;
|
|
68
|
-
}) => import('@tempots/
|
|
68
|
+
}) => import('@tempots/core').Computed<string>;
|