@agnos-ui/core 0.8.0-next.0 → 0.8.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/{accordion-hVi2XRk-.js → accordion-BLVIYePx.js} +3 -3
- package/{accordion-DTQj-TQ1.cjs → accordion-vfnqMstG.cjs} +1 -1
- package/{alert-BSixS_cz.js → alert-BpepSIHu.js} +1 -1
- package/{alert-BrVkxOnA.cjs → alert-D6W48Ffr.cjs} +1 -1
- package/{common-CcQOJ_hf.cjs → common-BToNPUDq.cjs} +1 -1
- package/{common-CuZAeECD.js → common-BqUjUBPy.js} +1 -1
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/components/alert/index.cjs +1 -1
- package/components/alert/index.js +1 -1
- package/components/carousel/carousel.d.ts +232 -0
- package/components/carousel/index.cjs +288 -0
- package/components/carousel/index.d.ts +1 -0
- package/components/carousel/index.js +288 -0
- package/components/modal/index.cjs +1 -1
- package/components/modal/index.js +1 -1
- package/components/pagination/index.cjs +1 -1
- package/components/pagination/index.js +1 -1
- package/components/progressbar/index.cjs +1 -1
- package/components/progressbar/index.js +1 -1
- package/components/rating/index.cjs +1 -1
- package/components/rating/index.js +1 -1
- package/components/select/index.js +1 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/toast/index.cjs +5 -3
- package/components/toast/index.d.ts +1 -0
- package/components/toast/index.js +3 -1
- package/components/toast/toaster.d.ts +128 -0
- package/components/tree/index.cjs +1 -1
- package/components/tree/index.js +1 -1
- package/config.d.ts +5 -0
- package/{dom-BB9jLllr.js → dom-gfxqXJpK.js} +1 -1
- package/index.cjs +15 -12
- package/index.js +21 -18
- package/{modal-BQcw6bnM.js → modal-CGK3h9pR.js} +3 -3
- package/{modal-B7bYoubx.cjs → modal-Dw1MuWPV.cjs} +1 -1
- package/package.json +4 -1
- package/{pagination-5YARuB3V.cjs → pagination-BzyKulaI.cjs} +1 -1
- package/{pagination-BwaZEokc.js → pagination-CRAKaOuh.js} +2 -2
- package/{progressbar-b_kXzGPc.js → progressbar-Csnqx_Pk.js} +2 -2
- package/{progressbar-BpSrg4HG.cjs → progressbar-D9rvrxXi.cjs} +1 -1
- package/{promise-CBh_HbSK.js → promise-XSP94FjG.js} +1 -1
- package/{rating-C8tn9xTO.cjs → rating-C4c8Paz-.cjs} +1 -1
- package/{rating-B1JLZgIR.js → rating-CvTnNxgN.js} +2 -2
- package/{select-Bb2RAVs0.js → select-C-77MJfC.js} +1 -1
- package/services/floatingUI.js +2 -2
- package/services/focustrack.js +1 -1
- package/services/matchMedia.js +1 -1
- package/services/navManager.js +1 -1
- package/services/portal.js +1 -1
- package/services/resizeObserver.js +1 -1
- package/services/siblingsInert.js +1 -1
- package/services/transitions/baseTransitions.cjs +1 -1
- package/services/transitions/baseTransitions.js +3 -3
- package/services/transitions/collapse.js +1 -1
- package/services/transitions/cssTransitions.js +2 -2
- package/services/transitions/simpleClassTransition.js +1 -1
- package/{slider-B2JFXDLt.cjs → slider-B0ZfAY0K.cjs} +200 -97
- package/{slider-C-BSdQ0b.js → slider-BF6a0eh_.js} +201 -98
- package/toaster-B2ibv38T.cjs +208 -0
- package/toaster-PwfLC7FH.js +209 -0
- package/{tree-DWv0zwFJ.js → tree-DUU_TWqy.js} +2 -2
- package/{tree-D4t2SOql.cjs → tree-Dwv2U0ea.cjs} +1 -1
- package/utils/directive.js +1 -1
- package/utils/stores.js +2 -2
- package/utils/writables.cjs +2 -1
- package/utils/writables.d.ts +7 -0
- package/utils/writables.js +7 -6
- package/{writables-BPAJvaL_.cjs → writables-Bn3uhKEG.cjs} +4 -0
- package/{writables-DCiBdIBK.js → writables-CgpOQ4hA.js} +10 -6
- package/toast-Bw2QSzBX.js +0 -64
- package/toast-CaIcB2sD.cjs +0 -63
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { INVALID_VALUE } from "./types.js";
|
|
2
|
-
import { a, c, f, g } from "./accordion-
|
|
3
|
-
import { c as c2, g as g2 } from "./alert-
|
|
4
|
-
import { c as c3, g as g3, a as a2, m } from "./modal-
|
|
5
|
-
import { c as c4, g as g4 } from "./pagination-
|
|
6
|
-
import { c as c5, g as g5 } from "./progressbar-
|
|
7
|
-
import { c as c6, g as g6 } from "./rating-
|
|
8
|
-
import { c as c7, g as g7 } from "./select-
|
|
9
|
-
import { c as c8, g as g8 } from "./slider-
|
|
10
|
-
import { c as c9, g as g9 } from "./
|
|
11
|
-
import { c as c10, g as g10 } from "./tree-
|
|
2
|
+
import { a, c, f, g } from "./accordion-BLVIYePx.js";
|
|
3
|
+
import { c as c2, g as g2 } from "./alert-BpepSIHu.js";
|
|
4
|
+
import { c as c3, g as g3, a as a2, m } from "./modal-CGK3h9pR.js";
|
|
5
|
+
import { c as c4, g as g4 } from "./pagination-CRAKaOuh.js";
|
|
6
|
+
import { c as c5, g as g5 } from "./progressbar-Csnqx_Pk.js";
|
|
7
|
+
import { c as c6, g as g6 } from "./rating-CvTnNxgN.js";
|
|
8
|
+
import { c as c7, g as g7 } from "./select-C-77MJfC.js";
|
|
9
|
+
import { c as c8, g as g8 } from "./slider-BF6a0eh_.js";
|
|
10
|
+
import { T, c as c9, d, g as g9 } from "./toaster-PwfLC7FH.js";
|
|
11
|
+
import { c as c10, g as g10 } from "./tree-DUU_TWqy.js";
|
|
12
12
|
import { createWidgetsConfig, mergeInto } from "./config.js";
|
|
13
13
|
import { extendWidgetProps } from "./services/extendWidget.js";
|
|
14
14
|
import { createFloatingUI } from "./services/floatingUI.js";
|
|
@@ -23,11 +23,12 @@ import { hash$ } from "./services/hash.js";
|
|
|
23
23
|
import { createTransition, noAnimation } from "./services/transitions/baseTransitions.js";
|
|
24
24
|
import { createCSSTransition, getTransitionDurationMs, hasTransition } from "./services/transitions/cssTransitions.js";
|
|
25
25
|
import { createSimpleClassTransition } from "./services/transitions/simpleClassTransition.js";
|
|
26
|
-
import { o, a as a3, c as c11, b, p, n, g as g11, j, f as f2, h, q, d, e, i, m as m2, k, l, r, s } from "./dom-
|
|
26
|
+
import { o, a as a3, c as c11, b, p, n, g as g11, j, f as f2, h, q, d as d2, e, i, m as m2, k, l, r, s } from "./dom-gfxqXJpK.js";
|
|
27
27
|
import { bindableDerived, bindableProp, createPatch, false$, findChangedProperties, idWithDefault, isStore, mergeConfigStores, normalizeConfigStores, stateStores, toReadableStore, toWritableStore, true$, writableWithDefault, writablesForProps, writablesWithDefault } from "./utils/stores.js";
|
|
28
|
-
import {
|
|
28
|
+
import { j as j2, t, i as i2, c as c12, d as d3, g as g12, h as h2, a as a4, b as b2, e as e2, f as f3 } from "./writables-CgpOQ4hA.js";
|
|
29
29
|
export {
|
|
30
30
|
INVALID_VALUE,
|
|
31
|
+
T as Toaster,
|
|
31
32
|
activeElement$,
|
|
32
33
|
o as attributesData,
|
|
33
34
|
a3 as bindDirective,
|
|
@@ -62,10 +63,11 @@ export {
|
|
|
62
63
|
c9 as createToast,
|
|
63
64
|
createTransition,
|
|
64
65
|
c10 as createTree,
|
|
65
|
-
|
|
66
|
+
j2 as createTypeEnum,
|
|
66
67
|
createWidgetsConfig,
|
|
68
|
+
d as defaultToasterProps,
|
|
67
69
|
q as directiveAttributes,
|
|
68
|
-
|
|
70
|
+
d2 as directiveSubscribe,
|
|
69
71
|
e as directiveUpdate,
|
|
70
72
|
extendWidgetProps,
|
|
71
73
|
f as factoryCreateAccordion,
|
|
@@ -107,14 +109,15 @@ export {
|
|
|
107
109
|
toReadableStore,
|
|
108
110
|
toWritableStore,
|
|
109
111
|
true$,
|
|
110
|
-
|
|
112
|
+
i2 as typeArray,
|
|
111
113
|
c12 as typeBoolean,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
d3 as typeBooleanOrNull,
|
|
115
|
+
g12 as typeFunction,
|
|
116
|
+
h2 as typeHTMLElementOrNull,
|
|
115
117
|
a4 as typeNumber,
|
|
116
118
|
b2 as typeNumberInRangeFactory,
|
|
117
119
|
e2 as typeString,
|
|
120
|
+
f3 as typeStringOrNull,
|
|
118
121
|
writableWithDefault,
|
|
119
122
|
writablesForProps,
|
|
120
123
|
writablesWithDefault
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { computed, readable } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { c as typeBoolean,
|
|
2
|
+
import { c as typeBoolean, g as typeFunction, e as typeString, h as typeHTMLElementOrNull } from "./writables-CgpOQ4hA.js";
|
|
3
3
|
import { writablesForProps, stateStores } from "./utils/stores.js";
|
|
4
4
|
import { createTransition } from "./services/transitions/baseTransitions.js";
|
|
5
|
-
import { d as promiseFromStore } from "./promise-
|
|
5
|
+
import { d as promiseFromStore } from "./promise-XSP94FjG.js";
|
|
6
6
|
import { noop } from "./utils/func.js";
|
|
7
|
-
import { r as registrationArray,
|
|
7
|
+
import { a as bindDirective, r as registrationArray, n as createAttributesDirective, k as mergeDirectives, d as directiveSubscribe, b as browserDirective } from "./dom-gfxqXJpK.js";
|
|
8
8
|
import { portal } from "./services/portal.js";
|
|
9
9
|
import { siblingsInert } from "./services/siblingsInert.js";
|
|
10
10
|
const internalRemoveScrollbars = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
|
-
const utils_writables = require("./writables-
|
|
3
|
+
const utils_writables = require("./writables-Bn3uhKEG.cjs");
|
|
4
4
|
const utils_stores = require("./utils/stores.cjs");
|
|
5
5
|
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
6
6
|
const promise = require("./promise-CxCD3NYv.cjs");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnos-ui/core",
|
|
3
3
|
"description": "Framework-agnostic headless component library.",
|
|
4
|
-
"version": "0.8.0
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"module": "./index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@amadeus-it-group/tansu": "^2.0.0",
|
|
51
51
|
"@floating-ui/dom": "^1.6.12",
|
|
52
|
+
"embla-carousel": "^8.5.2",
|
|
52
53
|
"esm-env": "^1.2.1"
|
|
53
54
|
},
|
|
54
55
|
"sideEffects": false,
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"accordion",
|
|
66
67
|
"AgnosUI",
|
|
67
68
|
"alert",
|
|
69
|
+
"carousel",
|
|
68
70
|
"collapse",
|
|
69
71
|
"components",
|
|
70
72
|
"modal",
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"rating",
|
|
74
76
|
"slider",
|
|
75
77
|
"toast",
|
|
78
|
+
"tree",
|
|
76
79
|
"widgets"
|
|
77
80
|
]
|
|
78
81
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
3
|
const utils_stores = require("./utils/stores.cjs");
|
|
4
|
-
const utils_writables = require("./writables-
|
|
4
|
+
const utils_writables = require("./writables-Bn3uhKEG.cjs");
|
|
5
5
|
const utils_func = require("./utils/func.cjs");
|
|
6
6
|
const utils_directive = require("./dom-CuBx1JPZ.cjs");
|
|
7
7
|
const PAGE_LINK_DEFAULT = "#";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { writablesForProps, bindableProp, stateStores, true$ } from "./utils/stores.js";
|
|
3
|
-
import {
|
|
3
|
+
import { e as typeString, g as typeFunction, c as typeBoolean, a as typeNumber, k as clamp, l as isNumber } from "./writables-CgpOQ4hA.js";
|
|
4
4
|
import { noop } from "./utils/func.js";
|
|
5
|
-
import { n as createAttributesDirective } from "./dom-
|
|
5
|
+
import { n as createAttributesDirective } from "./dom-gfxqXJpK.js";
|
|
6
6
|
const PAGE_LINK_DEFAULT = "#";
|
|
7
7
|
const defaultConfig = {
|
|
8
8
|
page: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as clamp, g as typeFunction, e as typeString, a as typeNumber } from "./writables-CgpOQ4hA.js";
|
|
2
2
|
import { writablesForProps, stateStores } from "./utils/stores.js";
|
|
3
3
|
import { computed, readable } from "@amadeus-it-group/tansu";
|
|
4
|
-
import { n as createAttributesDirective } from "./dom-
|
|
4
|
+
import { n as createAttributesDirective } from "./dom-gfxqXJpK.js";
|
|
5
5
|
const defaultConfig = {
|
|
6
6
|
min: 0,
|
|
7
7
|
max: 100,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const utils_writables = require("./writables-
|
|
2
|
+
const utils_writables = require("./writables-Bn3uhKEG.cjs");
|
|
3
3
|
const utils_stores = require("./utils/stores.cjs");
|
|
4
4
|
const tansu = require("@amadeus-it-group/tansu");
|
|
5
5
|
const utils_directive = require("./dom-CuBx1JPZ.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed,
|
|
1
|
+
import { derived, computed, equal, readable, writable, asReadable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { noop } from "./utils/func.js";
|
|
3
3
|
const promisePending = { status: "pending" };
|
|
4
4
|
const isThenable = (value) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
3
|
const types = require("./types.cjs");
|
|
4
4
|
const utils_directive = require("./dom-CuBx1JPZ.cjs");
|
|
5
|
-
const utils_writables = require("./writables-
|
|
5
|
+
const utils_writables = require("./writables-Bn3uhKEG.cjs");
|
|
6
6
|
const utils_func = require("./utils/func.cjs");
|
|
7
7
|
const utils_stores = require("./utils/stores.cjs");
|
|
8
8
|
const defaultConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, writable, readable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { INVALID_VALUE } from "./types.js";
|
|
3
|
-
import { n as createAttributesDirective } from "./dom-
|
|
4
|
-
import {
|
|
3
|
+
import { n as createAttributesDirective } from "./dom-gfxqXJpK.js";
|
|
4
|
+
import { e as typeString, g as typeFunction, c as typeBoolean, a as typeNumber, k as clamp, l as isNumber } from "./writables-CgpOQ4hA.js";
|
|
5
5
|
import { noop } from "./utils/func.js";
|
|
6
6
|
import { writablesForProps, bindableProp, stateStores, true$ } from "./utils/stores.js";
|
|
7
7
|
const defaultConfig = {
|
|
@@ -3,7 +3,7 @@ import { offset, autoPlacement, size } from "@floating-ui/dom";
|
|
|
3
3
|
import { createFloatingUI } from "./services/floatingUI.js";
|
|
4
4
|
import { createHasFocus } from "./services/focustrack.js";
|
|
5
5
|
import { createNavManager } from "./services/navManager.js";
|
|
6
|
-
import { t as generateId, k as mergeDirectives,
|
|
6
|
+
import { t as generateId, k as mergeDirectives, n as createAttributesDirective, a as bindDirective } from "./dom-gfxqXJpK.js";
|
|
7
7
|
import { noop } from "./utils/func.js";
|
|
8
8
|
import { writablesForProps, bindableProp, bindableDerived, stateStores, true$ } from "./utils/stores.js";
|
|
9
9
|
const defaultConfig = {
|
package/services/floatingUI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, derived } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { arrow, autoUpdate, computePosition } from "@floating-ui/dom";
|
|
3
|
-
import { j as createBrowserStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../dom-
|
|
4
|
-
import { p as promiseStoreToValueStore } from "../promise-
|
|
3
|
+
import { j as createBrowserStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../dom-gfxqXJpK.js";
|
|
4
|
+
import { p as promiseStoreToValueStore } from "../promise-XSP94FjG.js";
|
|
5
5
|
import { writablesForProps, stateStores } from "../utils/stores.js";
|
|
6
6
|
const defaultConfig = {
|
|
7
7
|
computePositionOptions: {},
|
package/services/focustrack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readable, computed } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { g as createBrowserStoreArrayDirective } from "../dom-
|
|
2
|
+
import { g as createBrowserStoreArrayDirective } from "../dom-gfxqXJpK.js";
|
|
3
3
|
import { BROWSER } from "esm-env";
|
|
4
4
|
const evtFocusIn = "focusin";
|
|
5
5
|
const evtFocusOut = "focusout";
|
package/services/matchMedia.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { BROWSER } from "esm-env";
|
|
3
|
-
import { u as addEvent } from "../dom-
|
|
3
|
+
import { u as addEvent } from "../dom-gfxqXJpK.js";
|
|
4
4
|
import { false$ } from "../utils/stores.js";
|
|
5
5
|
const createMatchMedia = (query) => BROWSER ? readable(false, {
|
|
6
6
|
onUse({ set }) {
|
package/services/navManager.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writable, computed } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { r as registrationArray, y as computeCommonAncestor, b as browserDirective } from "../dom-
|
|
2
|
+
import { r as registrationArray, y as computeCommonAncestor, b as browserDirective } from "../dom-gfxqXJpK.js";
|
|
3
3
|
const isInertOrInvisible = (element) => {
|
|
4
4
|
let curElement = element;
|
|
5
5
|
while (curElement) {
|
package/services/portal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { derived } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { j as createBrowserStoreDirective } from "../dom-
|
|
2
|
+
import { j as createBrowserStoreDirective } from "../dom-gfxqXJpK.js";
|
|
3
3
|
import { noop } from "../utils/func.js";
|
|
4
4
|
const createResizeObserver = () => {
|
|
5
5
|
const { element$, directive } = createBrowserStoreDirective();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { noop } from "../utils/func.js";
|
|
3
|
-
import { g as createBrowserStoreArrayDirective, k as mergeDirectives, d as directiveSubscribe } from "../dom-
|
|
3
|
+
import { g as createBrowserStoreArrayDirective, k as mergeDirectives, d as directiveSubscribe } from "../dom-gfxqXJpK.js";
|
|
4
4
|
const internalSetSiblingsInert = (element) => {
|
|
5
5
|
const inertValues = /* @__PURE__ */ new Map();
|
|
6
6
|
const recursiveHelper = (element2) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_writables = require("../../writables-
|
|
4
|
+
const utils_writables = require("../../writables-Bn3uhKEG.cjs");
|
|
5
5
|
const promise = require("../../promise-CxCD3NYv.cjs");
|
|
6
6
|
const utils_func = require("../../utils/func.cjs");
|
|
7
7
|
const utils_stores = require("../../utils/stores.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, writable, derived, batch } from "@amadeus-it-group/tansu";
|
|
2
|
-
import {
|
|
3
|
-
import { c as promiseWithResolve } from "../../promise-
|
|
2
|
+
import { d as typeBooleanOrNull, g as typeFunction, c as typeBoolean } from "../../writables-CgpOQ4hA.js";
|
|
3
|
+
import { c as promiseWithResolve } from "../../promise-XSP94FjG.js";
|
|
4
4
|
import { noop } from "../../utils/func.js";
|
|
5
5
|
import { writablesForProps, bindableDerived, stateStores } from "../../utils/stores.js";
|
|
6
|
-
import { h as createStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../../dom-
|
|
6
|
+
import { h as createStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../../dom-gfxqXJpK.js";
|
|
7
7
|
const neverEndingPromise = new Promise(noop);
|
|
8
8
|
const noAnimation = (element, direction) => {
|
|
9
9
|
element.style.display = direction === "show" ? "" : "none";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isBrowserHTMLElement, v as removeClasses, w as addClasses, x as reflow } from "../../dom-
|
|
1
|
+
import { i as isBrowserHTMLElement, v as removeClasses, w as addClasses, x as reflow } from "../../dom-gfxqXJpK.js";
|
|
2
2
|
import { createCSSTransition } from "./cssTransitions.js";
|
|
3
3
|
const createCollapseTransition = ({
|
|
4
4
|
dimension = "height",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as isBrowserHTMLElement } from "../../dom-
|
|
1
|
+
import { i as isBrowserHTMLElement } from "../../dom-gfxqXJpK.js";
|
|
2
2
|
import { noop } from "../../utils/func.js";
|
|
3
|
-
import { a as promiseFromEvent, b as promiseFromTimeout } from "../../promise-
|
|
3
|
+
import { a as promiseFromEvent, b as promiseFromTimeout } from "../../promise-XSP94FjG.js";
|
|
4
4
|
function hasTransition(element) {
|
|
5
5
|
return window.getComputedStyle(element).transitionProperty !== "none";
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createCSSTransition } from "./cssTransitions.js";
|
|
2
|
-
import { v as removeClasses, w as addClasses, x as reflow } from "../../dom-
|
|
2
|
+
import { v as removeClasses, w as addClasses, x as reflow } from "../../dom-gfxqXJpK.js";
|
|
3
3
|
const createSimpleClassTransition = (config) => {
|
|
4
4
|
const { animationPendingClasses, animationPendingShowClasses, animationPendingHideClasses, showClasses, hideClasses } = config;
|
|
5
5
|
return createCSSTransition((element, direction, animated, context) => {
|