@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.
@@ -0,0 +1 @@
1
+ export * as Alert from './parts';
@@ -0,0 +1,4 @@
1
+ import * as index from "./parts/index.qwik.mjs";
2
+ export {
3
+ index as Alert
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { AlertRootProps } from './alert-root.types';
2
+ /**
3
+ * Contains the content for the alert.
4
+ *
5
+ * Renders a `<div>` element.
6
+ */
7
+ export declare const AlertRoot: import("@qwik.dev/core").Component<AlertRootProps>;
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export type { AlertRootProps } from './alert-root.types';
2
+ export { AlertRoot } from './alert-root';
@@ -0,0 +1,2 @@
1
+ export type { AlertRootProps as RootProps } from './alert-root';
2
+ export { AlertRoot as Root } from './alert-root';
@@ -0,0 +1,4 @@
1
+ import { AlertRoot } from "./alert-root/alert-root.qwik.mjs";
2
+ export {
3
+ AlertRoot as Root
4
+ };
@@ -1 +1,2 @@
1
+ export * from './alert';
1
2
  export * from './separator';
@@ -1,4 +1,6 @@
1
- import * as index from "./components/separator/parts/index.qwik.mjs";
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 Separator
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.2.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"