@nr1e/qwik-ui 0.0.6 → 0.0.8
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/README.md +32 -5
- package/lib/components/alert-info.qwik.cjs +20 -0
- package/lib/components/alert-info.qwik.mjs +20 -0
- package/lib/index.qwik.cjs +2 -0
- package/lib/index.qwik.mjs +2 -0
- package/lib/qwik-icons/lib/components/icons/mdi-information-outline.qwik.qwik.cjs +16 -0
- package/lib/qwik-icons/lib/components/icons/mdi-information-outline.qwik.qwik.mjs +16 -0
- package/lib-types/index.d.ts +1 -0
- package/package.json +5 -3
- package/styles.css +1 -0
package/README.md
CHANGED
|
@@ -2,12 +2,39 @@
|
|
|
2
2
|
<img width="200" src="https://nr1e.com/images/logo-tagline.svg" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
|
-
# Qwik
|
|
5
|
+
# Qwik UI Library ⚡️
|
|
6
6
|
|
|
7
|
-
This library contains approved
|
|
7
|
+
This library contains approved UI components for use in NR1E projects.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Installation
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
```bash
|
|
12
|
+
pnpm i @nr1e/qwik-ui
|
|
13
|
+
```
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Usage with Tailwind CSS 4.x
|
|
16
|
+
|
|
17
|
+
This library uses Tailwind CSS classes (with DaisyUI components). To ensure the classes are properly scanned and generated in your project, you need to import the library's styles configuration.
|
|
18
|
+
|
|
19
|
+
In your main CSS file (e.g., `src/global.css`):
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
@import 'tailwindcss';
|
|
23
|
+
@import '@nr1e/qwik-ui/styles.css' source;
|
|
24
|
+
|
|
25
|
+
/* Your other styles */
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This tells Tailwind v4 to scan the `@nr1e/qwik-ui` library files for class names and include DaisyUI plugin.
|
|
29
|
+
|
|
30
|
+
### Alternative: Manual Configuration
|
|
31
|
+
|
|
32
|
+
If you prefer more control, you can manually add the source path in your CSS:
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
@import 'tailwindcss';
|
|
36
|
+
|
|
37
|
+
@source '../src';
|
|
38
|
+
@source '../../node_modules/@nr1e/qwik-ui/lib';
|
|
39
|
+
@plugin 'daisyui';
|
|
40
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
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 mdiInformationOutline_qwik = require("../qwik-icons/lib/components/icons/mdi-information-outline.qwik.qwik.cjs");
|
|
6
|
+
const AlertInfo = qwik.component$((props) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
8
|
+
role: "alert",
|
|
9
|
+
class: "alert alert-info",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ jsxRuntime.jsx(mdiInformationOutline_qwik.MdiInformationOutline, {
|
|
12
|
+
size: 24
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
15
|
+
children: props.message
|
|
16
|
+
})
|
|
17
|
+
]
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
exports.AlertInfo = AlertInfo;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$ } from "@builder.io/qwik";
|
|
3
|
+
import { MdiInformationOutline } from "../qwik-icons/lib/components/icons/mdi-information-outline.qwik.qwik.mjs";
|
|
4
|
+
const AlertInfo = component$((props) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
role: "alert",
|
|
7
|
+
class: "alert alert-info",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ jsx(MdiInformationOutline, {
|
|
10
|
+
size: 24
|
|
11
|
+
}),
|
|
12
|
+
/* @__PURE__ */ jsx("span", {
|
|
13
|
+
children: props.message
|
|
14
|
+
})
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
AlertInfo
|
|
20
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const alertError = require("./components/alert-error.qwik.cjs");
|
|
4
|
+
const alertInfo = require("./components/alert-info.qwik.cjs");
|
|
4
5
|
const alertSuccess = require("./components/alert-success.qwik.cjs");
|
|
5
6
|
const alertWarning = require("./components/alert-warning.qwik.cjs");
|
|
6
7
|
const paceBar = require("./components/pace-bar.qwik.cjs");
|
|
7
8
|
const universalLayout = require("./components/universal-layout.qwik.cjs");
|
|
8
9
|
exports.AlertError = alertError.AlertError;
|
|
10
|
+
exports.AlertInfo = alertInfo.AlertInfo;
|
|
9
11
|
exports.AlertSuccess = alertSuccess.AlertSuccess;
|
|
10
12
|
exports.AlertWarning = alertWarning.AlertWarning;
|
|
11
13
|
exports.PaceBar = paceBar.PaceBar;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AlertError } from "./components/alert-error.qwik.mjs";
|
|
2
|
+
import { AlertInfo } from "./components/alert-info.qwik.mjs";
|
|
2
3
|
import { AlertSuccess } from "./components/alert-success.qwik.mjs";
|
|
3
4
|
import { AlertWarning } from "./components/alert-warning.qwik.mjs";
|
|
4
5
|
import { PaceBar } from "./components/pace-bar.qwik.mjs";
|
|
5
6
|
import { UniversalLayout } from "./components/universal-layout.qwik.mjs";
|
|
6
7
|
export {
|
|
7
8
|
AlertError,
|
|
9
|
+
AlertInfo,
|
|
8
10
|
AlertSuccess,
|
|
9
11
|
AlertWarning,
|
|
10
12
|
PaceBar,
|
|
@@ -0,0 +1,16 @@
|
|
|
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 svg_qwik = require("../svg.qwik.qwik.cjs");
|
|
6
|
+
const MdiInformationOutline = qwik.component$((props) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(svg_qwik.Svg, {
|
|
8
|
+
...props,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2z"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
exports.MdiInformationOutline = MdiInformationOutline;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$ } from "@builder.io/qwik";
|
|
3
|
+
import { Svg } from "../svg.qwik.qwik.mjs";
|
|
4
|
+
const MdiInformationOutline = component$((props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(Svg, {
|
|
6
|
+
...props,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
MdiInformationOutline
|
|
16
|
+
};
|
package/lib-types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nr1e/qwik-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "NR1E Qwik UI Library",
|
|
5
5
|
"author": "NR1E, Inc.",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
"import": "./lib/index.qwik.mjs",
|
|
20
20
|
"require": "./lib/index.qwik.cjs",
|
|
21
21
|
"types": "./lib-types/index.d.ts"
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"./styles.css": "./styles.css"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"lib",
|
|
26
|
-
"lib-types"
|
|
27
|
+
"lib-types",
|
|
28
|
+
"styles.css"
|
|
27
29
|
],
|
|
28
30
|
"engines": {
|
|
29
31
|
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
package/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@source './lib';
|