@kahi-ui/framework
Version:
Straight-forward Svelte UI for the Web
45 lines (44 loc) • 1.76 kB
JavaScript
/**
* Represents the valid loading behaviors that can be applied to Framework Components
*/
export var TOKENS_BEHAVIOR_LOADING;
(function (TOKENS_BEHAVIOR_LOADING) {
/**
* Represents that the Component's content is not loaded until active and will unload on inactivity
*/
TOKENS_BEHAVIOR_LOADING["eager"] = "eager";
/**
* Represents that the Component's content is not loaded until active
*/
TOKENS_BEHAVIOR_LOADING["lazy"] = "lazy";
})(TOKENS_BEHAVIOR_LOADING || (TOKENS_BEHAVIOR_LOADING = {}));
export const TOKENS_BEHAVIOR_LOADING_EAGER = {
[TOKENS_BEHAVIOR_LOADING.eager]: TOKENS_BEHAVIOR_LOADING.eager,
};
export const TOKENS_BEHAVIOR_LOADING_LAZY = {
[TOKENS_BEHAVIOR_LOADING.lazy]: TOKENS_BEHAVIOR_LOADING.lazy,
};
/**
* Represents the valid toggle grouping behaviors that can be applied to Framework Components
*/
export var TOKENS_BEHAVIOR_TOGGLE;
(function (TOKENS_BEHAVIOR_TOGGLE) {
/**
* Represents that toggles in a grouping can only be activated one at a time
*/
TOKENS_BEHAVIOR_TOGGLE["exclusive"] = "exclusive";
/**
* Represents that toggles in a grouping can be activated independently of each other
*/
TOKENS_BEHAVIOR_TOGGLE["inclusive"] = "inclusive";
})(TOKENS_BEHAVIOR_TOGGLE || (TOKENS_BEHAVIOR_TOGGLE = {}));
/**
* Represents the valid transition behaviors that can be applied to Framework Components
*/
export var TOKENS_BEHAVIOR_TRANSITION;
(function (TOKENS_BEHAVIOR_TRANSITION) {
/**
* Represents that the animation will not play its first iteration until switched between `enter` / `exit` animations
*/
TOKENS_BEHAVIOR_TRANSITION["explicit"] = "explicit";
})(TOKENS_BEHAVIOR_TRANSITION || (TOKENS_BEHAVIOR_TRANSITION = {}));