@entry-ui/qwik 0.2.0 → 0.3.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/lib/components/alert/index.d.ts +1 -0
- package/lib/components/alert/index.qwik.mjs +4 -0
- package/lib/components/alert/parts/alert-root/alert-root.d.ts +7 -0
- package/lib/components/alert/parts/alert-root/alert-root.qwik.mjs +16 -0
- package/lib/components/alert/parts/alert-root/alert-root.types.d.ts +11 -0
- package/lib/components/alert/parts/alert-root/index.d.ts +2 -0
- package/lib/components/alert/parts/index.d.ts +2 -0
- package/lib/components/alert/parts/index.qwik.mjs +4 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/index.qwik.mjs +4 -2
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Alert from './parts';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
+
import { component$, Slot } from "@qwik.dev/core";
|
|
3
|
+
import { Primitive } from "../../../../_internal/components/primitive/primitive.qwik.mjs";
|
|
4
|
+
const AlertRoot = component$((props) => {
|
|
5
|
+
const { as = "div", ...others } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
7
|
+
as,
|
|
8
|
+
role: "alert",
|
|
9
|
+
"data-entry-ui-qwik-alert-root": "",
|
|
10
|
+
...others,
|
|
11
|
+
children: /* @__PURE__ */ jsx(Slot, {})
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
AlertRoot
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Component, PropsOf } from '@qwik.dev/core';
|
|
2
|
+
export interface AlertRootProps extends PropsOf<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* The element or component this component should render as.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://github.com/ZAHON/entry-ui/tree/main/packages/qwik/docs/guides/composition.md Composition} guide for more details.
|
|
7
|
+
*
|
|
8
|
+
* @default "div"
|
|
9
|
+
*/
|
|
10
|
+
as?: string | Component;
|
|
11
|
+
}
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import * as index from "./components/
|
|
1
|
+
import * as index from "./components/alert/parts/index.qwik.mjs";
|
|
2
|
+
import * as index$1 from "./components/separator/parts/index.qwik.mjs";
|
|
2
3
|
export {
|
|
3
|
-
index as
|
|
4
|
+
index as Alert,
|
|
5
|
+
index$1 as Separator
|
|
4
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entry-ui/qwik",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/ZAHON/entry-ui#readme",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"types": "./lib/index.d.ts",
|
|
16
16
|
"import": "./lib/index.qwik.mjs"
|
|
17
17
|
},
|
|
18
|
+
"./alert": {
|
|
19
|
+
"types": "./lib/components/alert/index.d.ts",
|
|
20
|
+
"import": "./lib/components/alert/index.qwik.mjs"
|
|
21
|
+
},
|
|
18
22
|
"./separator": {
|
|
19
23
|
"types": "./lib/components/separator/index.d.ts",
|
|
20
24
|
"import": "./lib/components/separator/index.qwik.mjs"
|