@nr1e/qwik-ui 0.0.33 → 0.0.35
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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
+
const qwik = require("@builder.io/qwik");
|
|
5
|
+
const AutoDismiss = qwik.component$((props) => {
|
|
6
|
+
if (props?.visible && !props.visible.value) return null;
|
|
7
|
+
qwik.useVisibleTask$(({ cleanup }) => {
|
|
8
|
+
const id = setTimeout(() => {
|
|
9
|
+
if (props?.visible) props.visible.value = false;
|
|
10
|
+
}, 6e3);
|
|
11
|
+
cleanup(() => clearTimeout(id));
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
14
|
+
class: [
|
|
15
|
+
"animate-fade animate-reverse animate-ease-in animate-duration-1000 animate-delay-5000",
|
|
16
|
+
props?.class ?? ""
|
|
17
|
+
].join(" "),
|
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
exports.AutoDismiss = AutoDismiss;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$, useVisibleTask$, Slot } from "@builder.io/qwik";
|
|
3
|
+
const AutoDismiss = component$((props) => {
|
|
4
|
+
if (props?.visible && !props.visible.value) return null;
|
|
5
|
+
useVisibleTask$(({ cleanup }) => {
|
|
6
|
+
const id = setTimeout(() => {
|
|
7
|
+
if (props?.visible) props.visible.value = false;
|
|
8
|
+
}, 6e3);
|
|
9
|
+
cleanup(() => clearTimeout(id));
|
|
10
|
+
});
|
|
11
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12
|
+
class: [
|
|
13
|
+
"animate-fade animate-reverse animate-ease-in animate-duration-1000 animate-delay-5000",
|
|
14
|
+
props?.class ?? ""
|
|
15
|
+
].join(" "),
|
|
16
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
AutoDismiss
|
|
21
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -5,6 +5,7 @@ const alertError = require("./components/alert-error.qwik.cjs");
|
|
|
5
5
|
const alertInfo = require("./components/alert-info.qwik.cjs");
|
|
6
6
|
const alertSuccess = require("./components/alert-success.qwik.cjs");
|
|
7
7
|
const alertWarning = require("./components/alert-warning.qwik.cjs");
|
|
8
|
+
const autoDismiss = require("./components/auto-dismiss.qwik.cjs");
|
|
8
9
|
const checkboxField = require("./components/checkbox-field.qwik.cjs");
|
|
9
10
|
const dialog = require("./components/dialog.qwik.cjs");
|
|
10
11
|
const dropUp = require("./components/drop-up.qwik.cjs");
|
|
@@ -19,6 +20,7 @@ exports.AlertError = alertError.AlertError;
|
|
|
19
20
|
exports.AlertInfo = alertInfo.AlertInfo;
|
|
20
21
|
exports.AlertSuccess = alertSuccess.AlertSuccess;
|
|
21
22
|
exports.AlertWarning = alertWarning.AlertWarning;
|
|
23
|
+
exports.AutoDismiss = autoDismiss.AutoDismiss;
|
|
22
24
|
exports.CheckboxField = checkboxField.CheckboxField;
|
|
23
25
|
exports.Dialog = dialog.Dialog;
|
|
24
26
|
exports.DropUp = dropUp.DropUp;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { AlertError } from "./components/alert-error.qwik.mjs";
|
|
|
3
3
|
import { AlertInfo } from "./components/alert-info.qwik.mjs";
|
|
4
4
|
import { AlertSuccess } from "./components/alert-success.qwik.mjs";
|
|
5
5
|
import { AlertWarning } from "./components/alert-warning.qwik.mjs";
|
|
6
|
+
import { AutoDismiss } from "./components/auto-dismiss.qwik.mjs";
|
|
6
7
|
import { CheckboxField } from "./components/checkbox-field.qwik.mjs";
|
|
7
8
|
import { Dialog } from "./components/dialog.qwik.mjs";
|
|
8
9
|
import { DropUp, DropUpButtonSelector, DropUpItem, DropUpSubmenu } from "./components/drop-up.qwik.mjs";
|
|
@@ -18,6 +19,7 @@ export {
|
|
|
18
19
|
AlertInfo,
|
|
19
20
|
AlertSuccess,
|
|
20
21
|
AlertWarning,
|
|
22
|
+
AutoDismiss,
|
|
21
23
|
CheckboxField,
|
|
22
24
|
Dialog,
|
|
23
25
|
DropUp,
|
package/lib-types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './components/alert-error';
|
|
|
3
3
|
export * from './components/alert-info';
|
|
4
4
|
export * from './components/alert-success';
|
|
5
5
|
export * from './components/alert-warning';
|
|
6
|
+
export * from './components/auto-dismiss';
|
|
6
7
|
export * from './components/checkbox-field';
|
|
7
8
|
export * from './components/dialog';
|
|
8
9
|
export * from './components/drop-up';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nr1e/qwik-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "NR1E Qwik UI Library",
|
|
5
5
|
"author": "NR1E, Inc.",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"type": "module",
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@builder.io/qwik-city": "1.19.0",
|
|
38
|
+
"tailwindcss-animated": "2.0.0",
|
|
38
39
|
"@nr1e/qwik-icons": "0.0.19"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|