@split-window/css-animation 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lucas Dornelas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # @split-window/css-animation
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Motor de animação CSS do SplitWindow, no estilo do `ngbRunTransition` do ng-bootstrap: alterna classes de estado (`split-enter-from`, `split-showing`, `split-show`, `split-hiding`) no shell e no backdrop e espera o `transitionend`/`animationend`. Sem duração, a transição termina na hora.
4
+
5
+ ```ts
6
+ import { SplitCssAnimationEngine } from '@split-window/css-animation';
7
+
8
+ provideSplitWindows({ animationEngines: { css: SplitCssAnimationEngine } });
9
+ // ou, numa instância: new SplitCssAnimationEngine({ classes: { show: 'aberto' }, injectStyles: false })
10
+ ```
11
+
12
+ - Presets `slide`, `fade` e `collapse`, injetados uma vez por documento como a primeira folha de estilo do `<head>`.
13
+ - Variáveis: `--split-animation-duration`, `--split-animation-easing`, `--split-animation-delay`; durante a transição, `--split-slide` e `--split-from-*`/`--split-to-*` no shell.
14
+ - Tamanho do host (`push` custom) e padding do `pushTarget` (`push` no body) animados com transições inline entre os frames.
15
+ - Estenda a classe e sobrescreva `classesFor`, `prepare`, `flipTargets`, `waitFor`, `finish`, `duration` ou `easing`.
16
+
17
+ Veja o guia [Modos e animação](../../docs/guides/modos-e-animacao.md).
@@ -0,0 +1,69 @@
1
+ import { SplitAnimationEngine, SplitStyleStash, type SplitAnimationContext } from '@split-window/core';
2
+ /** State classes (the `showing`/`show`/`hiding` of ng-bootstrap). */
3
+ export interface SplitCssAnimationClasses {
4
+ /** Start state of a show, removed right after a reflow. */
5
+ enterFrom: string;
6
+ /** During a show. */
7
+ showing: string;
8
+ /** While open, after the show. */
9
+ show: string;
10
+ /** During a hide. */
11
+ hiding: string;
12
+ }
13
+ export declare const SPLIT_CSS_ANIMATION_CLASSES: Readonly<SplitCssAnimationClasses>;
14
+ export interface SplitCssAnimationEngineOptions {
15
+ /** State classes. Custom names need your own CSS. */
16
+ classes?: Partial<SplitCssAnimationClasses>;
17
+ /** Injects the preset styles once per document. Default: `true`. */
18
+ injectStyles?: boolean;
19
+ }
20
+ /** A property animated with an inline transition (host size, push padding). */
21
+ export interface SplitCssFlipTarget {
22
+ element: HTMLElement;
23
+ property: string;
24
+ from: string;
25
+ to: string;
26
+ }
27
+ /**
28
+ * CSS engine, in the style of `ngbRunTransition`: toggles state classes on the shell and the
29
+ * backdrop, waits for `transitionend`/`animationend` (with a timeout from the computed
30
+ * durations) and ends at once when there is no transition.
31
+ *
32
+ * The look comes from CSS: the built-in presets (`slide`, `fade`, `collapse`) are injected
33
+ * once per document; any other look is a class of your own (`panelClass`) with rules for the
34
+ * state classes. Sizes that change with the layout (host width, push padding) are animated
35
+ * with inline transitions between the frames.
36
+ *
37
+ * Extend it and override `classesFor`, `prepare`, `flipTargets`, `waitFor`, `finish` or
38
+ * `duration`.
39
+ */
40
+ export declare class SplitCssAnimationEngine extends SplitAnimationEngine<HTMLElement> {
41
+ private readonly stashes;
42
+ protected readonly classes: SplitCssAnimationClasses;
43
+ protected readonly injectStyles: boolean;
44
+ constructor(options?: SplitCssAnimationEngineOptions);
45
+ animate(ctx: SplitAnimationContext<HTMLElement>): Promise<void> | void;
46
+ cleanup(ctx: SplitAnimationContext<HTMLElement>): void;
47
+ /** State classes for this transition. */
48
+ protected classesFor(_ctx: SplitAnimationContext<HTMLElement>): SplitCssAnimationClasses;
49
+ /** Elements that receive the state classes. */
50
+ protected stateElements(ctx: SplitAnimationContext<HTMLElement>): HTMLElement[];
51
+ /** Sets the preset attribute and the CSS variables the presets (and your CSS) read. */
52
+ protected prepare(ctx: SplitAnimationContext<HTMLElement>, stash: SplitStyleStash): void;
53
+ /** Sizes animated with inline transitions. */
54
+ protected flipTargets(ctx: SplitAnimationContext<HTMLElement>): SplitCssFlipTarget[];
55
+ /**
56
+ * Waits for the transitions of the elements. Returns `null` when none has a duration, so
57
+ * the transition ends synchronously.
58
+ */
59
+ protected waitFor(elements: HTMLElement[], ctx: SplitAnimationContext<HTMLElement>): Promise<void> | null;
60
+ /** Final classes of a completed transition. */
61
+ protected finish(ctx: SplitAnimationContext<HTMLElement>): void;
62
+ /** Duration of the inline transitions. */
63
+ protected duration(ctx: SplitAnimationContext<HTMLElement>): string;
64
+ /** Easing of the inline transitions. */
65
+ protected easing(ctx: SplitAnimationContext<HTMLElement>): string;
66
+ }
67
+ /** Adds the preset styles to a document, once. */
68
+ export declare function injectStyles(doc: Document): void;
69
+ //# sourceMappingURL=css-animation-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-animation-engine.d.ts","sourceRoot":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AAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,wBAAwB;IAIxF,+CAA+C;IAC/C,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,WAAW,EAAE;IAK/E,uFAAuF;IACvF,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI;IAuBxF,8CAA8C;IAC9C,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,kBAAkB,EAAE;IAuBpF;;;OAGG;IACH,SAAS,CAAC,OAAO,CACf,QAAQ,EAAE,WAAW,EAAE,EACvB,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAmCvB,+CAA+C;IAC/C,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,IAAI;IAS/D,0CAA0C;IAC1C,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,MAAM;IAKnE,wCAAwC;IACxC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,MAAM;CAMlE;AAOD,kDAAkD;AAClD,wBAAgB,YAAY,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAMhD"}
@@ -0,0 +1,222 @@
1
+ import { SPLIT_DEFAULT_EASING, SplitAnimationEngine, SplitStyleStash, reflow, transitionTimeMs, } from '@split-window/core';
2
+ import { SPLIT_CSS_ANIMATION_STYLES, SPLIT_CSS_ANIMATION_STYLE_ID } from './styles.js';
3
+ export const SPLIT_CSS_ANIMATION_CLASSES = Object.freeze({
4
+ enterFrom: 'split-enter-from',
5
+ showing: 'split-showing',
6
+ show: 'split-show',
7
+ hiding: 'split-hiding',
8
+ });
9
+ const SLIDE = {
10
+ left: 'translateX(-100%)',
11
+ right: 'translateX(100%)',
12
+ top: 'translateY(-100%)',
13
+ bottom: 'translateY(100%)',
14
+ };
15
+ /**
16
+ * CSS engine, in the style of `ngbRunTransition`: toggles state classes on the shell and the
17
+ * backdrop, waits for `transitionend`/`animationend` (with a timeout from the computed
18
+ * durations) and ends at once when there is no transition.
19
+ *
20
+ * The look comes from CSS: the built-in presets (`slide`, `fade`, `collapse`) are injected
21
+ * once per document; any other look is a class of your own (`panelClass`) with rules for the
22
+ * state classes. Sizes that change with the layout (host width, push padding) are animated
23
+ * with inline transitions between the frames.
24
+ *
25
+ * Extend it and override `classesFor`, `prepare`, `flipTargets`, `waitFor`, `finish` or
26
+ * `duration`.
27
+ */
28
+ export class SplitCssAnimationEngine extends SplitAnimationEngine {
29
+ stashes = new WeakMap();
30
+ classes;
31
+ injectStyles;
32
+ constructor(options = {}) {
33
+ super();
34
+ this.classes = { ...SPLIT_CSS_ANIMATION_CLASSES, ...options.classes };
35
+ this.injectStyles = options.injectStyles ?? true;
36
+ }
37
+ animate(ctx) {
38
+ const { shell } = ctx.elements;
39
+ if (this.injectStyles)
40
+ injectStyles(shell.ownerDocument);
41
+ const stash = new SplitStyleStash();
42
+ this.stashes.set(ctx, stash);
43
+ const classes = this.classesFor(ctx);
44
+ const elements = this.stateElements(ctx);
45
+ const flips = this.flipTargets(ctx);
46
+ this.prepare(ctx, stash);
47
+ const transition = (property) => `${property} ${this.duration(ctx)} ${this.easing(ctx)} ${ctx.options.delay ?? 0}ms`;
48
+ if (ctx.phase === 'show') {
49
+ for (const el of elements)
50
+ el.classList.add(classes.enterFrom);
51
+ }
52
+ for (const f of flips) {
53
+ stash.set(f.element, 'transition', 'none');
54
+ stash.set(f.element, f.property, f.from);
55
+ }
56
+ reflow(shell);
57
+ ctx.started();
58
+ for (const el of elements) {
59
+ if (ctx.phase === 'show') {
60
+ el.classList.remove(classes.enterFrom);
61
+ el.classList.add(classes.showing);
62
+ }
63
+ else {
64
+ el.classList.remove(classes.show);
65
+ el.classList.add(classes.hiding);
66
+ }
67
+ }
68
+ for (const f of flips) {
69
+ f.element.style.setProperty('transition', transition(f.property));
70
+ f.element.style.setProperty(f.property, f.to);
71
+ }
72
+ const wait = this.waitFor([...elements, ...flips.map((f) => f.element)], ctx);
73
+ if (!wait)
74
+ return this.finish(ctx);
75
+ return wait.then(() => this.finish(ctx));
76
+ }
77
+ cleanup(ctx) {
78
+ const classes = this.classesFor(ctx);
79
+ for (const el of this.stateElements(ctx)) {
80
+ el.classList.remove(classes.enterFrom, classes.showing, classes.hiding);
81
+ if (ctx.phase === 'hide')
82
+ el.classList.remove(classes.show);
83
+ }
84
+ this.stashes.get(ctx)?.restore();
85
+ this.stashes.delete(ctx);
86
+ }
87
+ /** State classes for this transition. */
88
+ classesFor(_ctx) {
89
+ return this.classes;
90
+ }
91
+ /** Elements that receive the state classes. */
92
+ stateElements(ctx) {
93
+ const { shell, backdrop } = ctx.elements;
94
+ return backdrop ? [shell, backdrop] : [shell];
95
+ }
96
+ /** Sets the preset attribute and the CSS variables the presets (and your CSS) read. */
97
+ prepare(ctx, stash) {
98
+ const { shell, backdrop } = ctx.elements;
99
+ const { from, to, options, phase } = ctx;
100
+ stash.setAttribute(shell, 'data-split-animation', options.preset);
101
+ if (backdrop && options.preset !== 'none') {
102
+ stash.setAttribute(backdrop, 'data-split-animation', 'fade');
103
+ }
104
+ stash.set(shell, '--split-slide', SLIDE[ctx.side]);
105
+ if (options.duration !== undefined) {
106
+ stash.set(shell, '--split-animation-duration', `${options.duration}ms`);
107
+ if (backdrop)
108
+ stash.set(backdrop, '--split-animation-duration', `${options.duration}ms`);
109
+ }
110
+ if (options.easing !== undefined)
111
+ stash.set(shell, '--split-animation-easing', options.easing);
112
+ if (options.delay !== undefined)
113
+ stash.set(shell, '--split-animation-delay', `${options.delay}ms`);
114
+ const offsetX = from.rect.x - to.rect.x;
115
+ const offsetY = from.rect.y - to.rect.y;
116
+ stash.set(shell, '--split-from-x', `${phase === 'show' ? offsetX : 0}px`);
117
+ stash.set(shell, '--split-from-y', `${phase === 'show' ? offsetY : 0}px`);
118
+ stash.set(shell, '--split-to-x', `${phase === 'hide' ? -offsetX : 0}px`);
119
+ stash.set(shell, '--split-to-y', `${phase === 'hide' ? -offsetY : 0}px`);
120
+ }
121
+ /** Sizes animated with inline transitions. */
122
+ flipTargets(ctx) {
123
+ if (ctx.options.preset === 'none')
124
+ return [];
125
+ const targets = [];
126
+ const { from, to, properties, elements } = ctx;
127
+ if (properties.host && from.hostSize !== null && to.hostSize !== null) {
128
+ targets.push({
129
+ element: elements.host,
130
+ property: properties.host,
131
+ from: from.hostSize,
132
+ to: to.hostSize,
133
+ });
134
+ }
135
+ if (properties.push && elements.pushTarget && from.push !== null && to.push !== null) {
136
+ targets.push({
137
+ element: elements.pushTarget,
138
+ property: properties.push,
139
+ from: from.push,
140
+ to: to.push,
141
+ });
142
+ }
143
+ return targets;
144
+ }
145
+ /**
146
+ * Waits for the transitions of the elements. Returns `null` when none has a duration, so
147
+ * the transition ends synchronously.
148
+ */
149
+ waitFor(elements, ctx) {
150
+ const timed = [...new Set(elements)]
151
+ .map((el) => ({ el, ms: transitionTimeMs(el) }))
152
+ .filter((t) => t.ms > 0);
153
+ if (timed.length === 0)
154
+ return null;
155
+ return new Promise((resolve) => {
156
+ let pending = timed.length;
157
+ const cleanups = [];
158
+ const finishAll = () => {
159
+ cleanups.splice(0).forEach((fn) => fn());
160
+ resolve();
161
+ };
162
+ for (const { el, ms } of timed) {
163
+ let settled = false;
164
+ const settle = () => {
165
+ if (settled)
166
+ return;
167
+ settled = true;
168
+ if (--pending === 0)
169
+ finishAll();
170
+ };
171
+ const onEnd = (event) => {
172
+ if (event.target === el)
173
+ settle();
174
+ };
175
+ el.addEventListener('transitionend', onEnd);
176
+ el.addEventListener('animationend', onEnd);
177
+ const timer = setTimeout(settle, ms + 50);
178
+ cleanups.push(() => {
179
+ clearTimeout(timer);
180
+ el.removeEventListener('transitionend', onEnd);
181
+ el.removeEventListener('animationend', onEnd);
182
+ });
183
+ }
184
+ ctx.signal.addEventListener('abort', finishAll, { once: true });
185
+ });
186
+ }
187
+ /** Final classes of a completed transition. */
188
+ finish(ctx) {
189
+ if (ctx.phase !== 'show' || ctx.signal.aborted)
190
+ return;
191
+ const classes = this.classesFor(ctx);
192
+ for (const el of this.stateElements(ctx)) {
193
+ el.classList.remove(classes.showing);
194
+ el.classList.add(classes.show);
195
+ }
196
+ }
197
+ /** Duration of the inline transitions. */
198
+ duration(ctx) {
199
+ if (ctx.options.duration !== undefined)
200
+ return `${ctx.options.duration}ms`;
201
+ return cssVar(ctx.elements.shell, '--split-animation-duration') || '200ms';
202
+ }
203
+ /** Easing of the inline transitions. */
204
+ easing(ctx) {
205
+ return (ctx.options.easing ??
206
+ (cssVar(ctx.elements.shell, '--split-animation-easing') || SPLIT_DEFAULT_EASING));
207
+ }
208
+ }
209
+ function cssVar(el, name) {
210
+ const view = el.ownerDocument.defaultView;
211
+ return view ? view.getComputedStyle(el).getPropertyValue(name).trim() : '';
212
+ }
213
+ /** Adds the preset styles to a document, once. */
214
+ export function injectStyles(doc) {
215
+ if (doc.getElementById(SPLIT_CSS_ANIMATION_STYLE_ID))
216
+ return;
217
+ const style = doc.createElement('style');
218
+ style.id = SPLIT_CSS_ANIMATION_STYLE_ID;
219
+ style.textContent = SPLIT_CSS_ANIMATION_STYLES;
220
+ doc.head.prepend(style);
221
+ }
222
+ //# sourceMappingURL=css-animation-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-animation-engine.js","sourceRoot":"","sources":["../src/css-animation-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,MAAM,EACN,gBAAgB,GAGjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAcvF,MAAM,CAAC,MAAM,2BAA2B,GAAuC,MAA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AA4B,CAAC;QAAE,OAAO;IAC7D,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,GAAG,4BAA4B,CAAC;IACxC,KAAK,CAAC,WAAW,GAAG,0BAA0B,CAAC;IAC/C,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { SplitCssAnimationEngine, SPLIT_CSS_ANIMATION_CLASSES, injectStyles, type SplitCssAnimationClasses, type SplitCssAnimationEngineOptions, type SplitCssFlipTarget, } from './css-animation-engine.js';
2
+ export { SPLIT_CSS_ANIMATION_STYLES, SPLIT_CSS_ANIMATION_STYLE_ID } from './styles.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { SplitCssAnimationEngine, SPLIT_CSS_ANIMATION_CLASSES, injectStyles, } from './css-animation-engine.js';
2
+ export { SPLIT_CSS_ANIMATION_STYLES, SPLIT_CSS_ANIMATION_STYLE_ID } from './styles.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,GAIb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Styles of the presets, injected once per document by `SplitCssAnimationEngine` (as the
3
+ * first stylesheet of `<head>`, so the app CSS wins). Every value is a custom property.
4
+ *
5
+ * The engine sets `data-split-animation="<preset>"` and `--split-slide` (the transform that
6
+ * moves the panel out toward its side) on the shell during a transition.
7
+ */
8
+ export declare const SPLIT_CSS_ANIMATION_STYLES = "\n:where(:root) {\n --split-animation-duration: 200ms;\n --split-animation-easing: cubic-bezier(0.2, 0, 0, 1);\n --split-animation-delay: 0ms;\n}\n[data-split-animation='slide'] { --split-animation-property: transform; }\n[data-split-animation='fade'] { --split-animation-property: opacity; }\n:is([data-split-animation='slide'], [data-split-animation='fade']):is(.split-showing, .split-hiding) {\n transition: var(--split-animation-property) var(--split-animation-duration)\n var(--split-animation-easing) var(--split-animation-delay);\n}\n[data-split-animation='slide']:is(.split-enter-from, .split-hiding) { transform: var(--split-slide); }\n[data-split-animation='fade']:is(.split-enter-from, .split-hiding) { opacity: 0; }\n";
9
+ /** `id` of the injected `<style>`. */
10
+ export declare const SPLIT_CSS_ANIMATION_STYLE_ID = "split-css-animation-styles";
11
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,quBActC,CAAC;AAEF,sCAAsC;AACtC,eAAO,MAAM,4BAA4B,+BAA+B,CAAC"}
package/dist/styles.js ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Styles of the presets, injected once per document by `SplitCssAnimationEngine` (as the
3
+ * first stylesheet of `<head>`, so the app CSS wins). Every value is a custom property.
4
+ *
5
+ * The engine sets `data-split-animation="<preset>"` and `--split-slide` (the transform that
6
+ * moves the panel out toward its side) on the shell during a transition.
7
+ */
8
+ export const SPLIT_CSS_ANIMATION_STYLES = `
9
+ :where(:root) {
10
+ --split-animation-duration: 200ms;
11
+ --split-animation-easing: cubic-bezier(0.2, 0, 0, 1);
12
+ --split-animation-delay: 0ms;
13
+ }
14
+ [data-split-animation='slide'] { --split-animation-property: transform; }
15
+ [data-split-animation='fade'] { --split-animation-property: opacity; }
16
+ :is([data-split-animation='slide'], [data-split-animation='fade']):is(.split-showing, .split-hiding) {
17
+ transition: var(--split-animation-property) var(--split-animation-duration)
18
+ var(--split-animation-easing) var(--split-animation-delay);
19
+ }
20
+ [data-split-animation='slide']:is(.split-enter-from, .split-hiding) { transform: var(--split-slide); }
21
+ [data-split-animation='fade']:is(.split-enter-from, .split-hiding) { opacity: 0; }
22
+ `;
23
+ /** `id` of the injected `<style>`. */
24
+ export const SPLIT_CSS_ANIMATION_STYLE_ID = 'split-css-animation-styles';
25
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;;;;;;;CAczC,CAAC;AAEF,sCAAsC;AACtC,MAAM,CAAC,MAAM,4BAA4B,GAAG,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@split-window/css-animation",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "CSS animation engine of SplitWindow: state classes and transitionend, in the style of ngbRunTransition.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.build.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit",
25
+ "test": "vitest run"
26
+ },
27
+ "dependencies": {
28
+ "@split-window/core": "0.1.0"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/lucasdornelasv/split-window-js.git",
36
+ "directory": "packages/css-animation"
37
+ },
38
+ "homepage": "https://github.com/lucasdornelasv/split-window-js/tree/main/packages/css-animation#readme",
39
+ "bugs": {
40
+ "url": "https://github.com/lucasdornelasv/split-window-js/issues"
41
+ }
42
+ }