@greghowe79/the-lib 0.2.7 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import { Component, JSXNode, QRL } from '@builder.io/qwik';
1
+ import { Component, JSXNode, JSXOutput, QRL, QwikIntrinsicElements } from '@builder.io/qwik';
2
2
  import '@fontsource/roboto-condensed/500.css';
3
3
  export type ButtonVariant = 'primary' | 'secondary' | 'danger';
4
4
  export type ButtonType = 'button' | 'submit' | 'reset';
@@ -7,7 +7,7 @@ export interface ButtonProps {
7
7
  id: string;
8
8
  label: string;
9
9
  variant?: ButtonVariant;
10
- icon?: JSXNode | Component<unknown>;
10
+ icon?: JSXNode | Component<unknown> | QRL<(props: QwikIntrinsicElements['svg'], key: string) => JSXOutput>;
11
11
  disabled?: boolean;
12
12
  ariaLabel?: string;
13
13
  type?: ButtonType;
@@ -1,4 +1,4 @@
1
- import { type Component, type QRL, JSXNode } from '@builder.io/qwik';
1
+ import { type Component, type QRL, JSXNode, QwikIntrinsicElements, JSXOutput } from '@builder.io/qwik';
2
2
  import '@fontsource/roboto-condensed/500.css';
3
3
  export interface NavigationMenuProps {
4
4
  ariaLabel?: string;
@@ -11,7 +11,7 @@ export interface NavigationMenuProps {
11
11
  id: string;
12
12
  label?: string;
13
13
  onClick$?: QRL<() => void>;
14
- icon?: JSXNode | Component<unknown>;
14
+ icon?: JSXNode | Component<unknown> | QRL<(props: QwikIntrinsicElements['svg'], key: string) => JSXOutput>;
15
15
  }>;
16
16
  }
17
17
  export declare const NavigationMenu: Component<NavigationMenuProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",