@synopackageland/ui 0.18.3 → 0.19.1
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 +20 -0
- package/README.md +2 -1
- package/dist/components/composite/callout/Callout.vue.d.ts +3 -3
- package/dist/components/composite/settings-section/SettingsSection.vue.d.ts +4 -4
- package/dist/components/composite/timeline-row/TimelineRow.vue.d.ts +2 -2
- package/dist/components/containers/card/Card.vue.d.ts +4 -4
- package/dist/components/containers/expandable-item/ExpandableItem.vue.d.ts +3 -3
- package/dist/components/primitives/motion/MotionCollapse.vue.d.ts +16 -0
- package/dist/index.js +7211 -7055
- package/dist/json-preview/preview.js +4371 -4262
- package/dist/lib/motion.d.ts +33 -0
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/theme-hooks.md +53 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Ref, ShallowRef } from 'vue';
|
|
2
|
+
/** The attribute that turns the library's motion off for everything inside an element. */
|
|
3
|
+
export declare const MOTION_OFF_SELECTOR = "[data-ui-motion=\"off\"]";
|
|
4
|
+
/**
|
|
5
|
+
* Whether motion is off for `el`: the viewer asked for reduced motion, or an
|
|
6
|
+
* ancestor carries `data-ui-motion="off"`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function motionOff(el?: Element | null): boolean;
|
|
9
|
+
/** The longest transition on `el` in milliseconds, delays included; 0 when none applies. */
|
|
10
|
+
export declare function transitionMs(el: Element): number;
|
|
11
|
+
export type InsertedKeysOptions = {
|
|
12
|
+
/** True while the list is loading or refreshing; changes then are not insertions. */
|
|
13
|
+
busy?: () => boolean;
|
|
14
|
+
/** More new rows than this at once is a reload, not something the user just added. */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** How long a key stays marked, so a virtualised row that remounts later does not animate again. */
|
|
17
|
+
holdMs?: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The keys of rows that were just inserted into a list, so they can animate in.
|
|
21
|
+
*
|
|
22
|
+
* Only a pure insertion counts: at least one row was there before, every
|
|
23
|
+
* previous key is still there, and one to `max` keys are new. The first
|
|
24
|
+
* render, the first data arriving into an empty list, paging, a refresh (while
|
|
25
|
+
* `busy`, or in the same tick it ends) and any change that also removes rows
|
|
26
|
+
* mark nothing.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useInsertedKeys(keys: () => readonly string[], options?: InsertedKeysOptions): ShallowRef<ReadonlySet<string>>;
|
|
29
|
+
/**
|
|
30
|
+
* Becomes true the first time `source` changes, so content swapped in later
|
|
31
|
+
* can animate while what the first render shows does not.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useChanged(source: () => unknown): Readonly<Ref<boolean>>;
|
package/dist/reka-runtime.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": "2.10.5",
|
|
4
4
|
"delivery": "bundled-patched-esm",
|
|
5
5
|
"patchManifestSha256": "14f10159b60d48ac7a0686f58faf7a30e99898dc267b3c032cf2bdd6052dc52b",
|
|
6
|
-
"bundleSha256": "
|
|
6
|
+
"bundleSha256": "13719453c039e3e76a59238ef59915e38a44e7954b6b4e33601aebdc6d97dcfd",
|
|
7
7
|
"sourceHashes": {
|
|
8
8
|
"shared/useBodyScrollLock.js": "657592f283cb6fd25454abd284a0024af21936cb56e05b762ff0d22b6a979d32",
|
|
9
9
|
"DismissableLayer/DismissableLayer.js": "da05ca544d9822a8e2b71057e78c0e1ef59423aa3893534338fb58e1ecbd1a8d",
|