@luminescent/ui 0.2.0 → 0.2.2

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.
@@ -3,6 +3,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const qwik = require("@builder.io/qwik");
4
4
  const build = require("@builder.io/qwik/build");
5
5
  const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
6
+ const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => /* @__PURE__ */ qwik._jsxQ("span", null, {
7
+ class: "block h-32 -mt-32",
8
+ id: qwik._fnSignal((p0) => p0.id, [
9
+ props
10
+ ], "p0.id")
11
+ }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
6
12
  const buttonColorClasses = {
7
13
  blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 focus:bg-blue-500",
8
14
  purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 focus:bg-purple-500",
@@ -285,12 +291,16 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
285
291
  return /* @__PURE__ */ qwik._jsxQ("h1", null, {
286
292
  class: "flex font-bold text-gray-100 text-2xl"
287
293
  }, [
288
- props.id && /* @__PURE__ */ qwik._jsxQ("span", null, {
289
- class: "block h-32 -mt-32",
290
- id: qwik._fnSignal((p0) => p0.id, [
291
- props
292
- ], "p0.id")
293
- }, null, 3, "OW_3"),
294
+ props.id && /* @__PURE__ */ qwik._jsxC(Anchor, {
295
+ get id() {
296
+ return props.id;
297
+ },
298
+ [qwik._IMMUTABLE]: {
299
+ id: qwik._fnSignal((p0) => p0.id, [
300
+ props
301
+ ], "p0.id")
302
+ }
303
+ }, 3, "OW_3"),
294
304
  /* @__PURE__ */ qwik._jsxQ("div", null, {
295
305
  class: "flex flex-1"
296
306
  }, /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1573,6 +1583,7 @@ const LogoWaterfall = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1573
1583
  viewBox: "0 0 24 24"
1574
1584
  }, 0, "Pt_0");
1575
1585
  }, "LogoWaterfall_component_1hFl8GlECLI"));
1586
+ exports.Anchor = Anchor;
1576
1587
  exports.Button = Button;
1577
1588
  exports.ButtonAnchor = ButtonAnchor;
1578
1589
  exports.Card = Card;
@@ -1,6 +1,12 @@
1
- import { componentQrl, inlinedQrl, _restProps, _jsxS, _jsxC, Slot, _jsxQ, _fnSignal, _jsxBranch, _IMMUTABLE, useStore, _wrapSignal, useLexicalScope } from "@builder.io/qwik";
1
+ import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _IMMUTABLE, useStore, _wrapSignal, useLexicalScope } from "@builder.io/qwik";
2
2
  import { isServer } from "@builder.io/qwik/build";
3
3
  import { Fragment } from "@builder.io/qwik/jsx-runtime";
4
+ const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
5
+ class: "block h-32 -mt-32",
6
+ id: _fnSignal((p0) => p0.id, [
7
+ props
8
+ ], "p0.id")
9
+ }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
4
10
  const buttonColorClasses = {
5
11
  blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 focus:bg-blue-500",
6
12
  purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 focus:bg-purple-500",
@@ -283,12 +289,16 @@ const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
283
289
  return /* @__PURE__ */ _jsxQ("h1", null, {
284
290
  class: "flex font-bold text-gray-100 text-2xl"
285
291
  }, [
286
- props.id && /* @__PURE__ */ _jsxQ("span", null, {
287
- class: "block h-32 -mt-32",
288
- id: _fnSignal((p0) => p0.id, [
289
- props
290
- ], "p0.id")
291
- }, null, 3, "OW_3"),
292
+ props.id && /* @__PURE__ */ _jsxC(Anchor, {
293
+ get id() {
294
+ return props.id;
295
+ },
296
+ [_IMMUTABLE]: {
297
+ id: _fnSignal((p0) => p0.id, [
298
+ props
299
+ ], "p0.id")
300
+ }
301
+ }, 3, "OW_3"),
292
302
  /* @__PURE__ */ _jsxQ("div", null, {
293
303
  class: "flex flex-1"
294
304
  }, /* @__PURE__ */ _jsxQ("div", null, {
@@ -1572,6 +1582,7 @@ const LogoWaterfall = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
1572
1582
  }, 0, "Pt_0");
1573
1583
  }, "LogoWaterfall_component_1hFl8GlECLI"));
1574
1584
  export {
1585
+ Anchor,
1575
1586
  Button,
1576
1587
  ButtonAnchor,
1577
1588
  Card,
@@ -0,0 +1,5 @@
1
+ interface AnchorProps {
2
+ id: string;
3
+ }
4
+ export declare const Anchor: import("@builder.io/qwik").Component<AnchorProps>;
5
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from './elements/Anchor';
1
2
  export * from './elements/Button';
2
3
  export * from './elements/Card';
3
4
  export * from './elements/ColorInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",