@luminescent/ui 0.12.0 → 0.12.1

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.
@@ -930,7 +930,7 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
930
930
  qwik._fnSignal((p0) => p0.display, [
931
931
  props
932
932
  ], "p0.display"),
933
- !props.display && /* @__PURE__ */ qwik._jsxQ("span", null, {
933
+ !props.display && props.values && /* @__PURE__ */ qwik._jsxQ("span", null, {
934
934
  class: "flex-1 text-left",
935
935
  id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
936
936
  props
@@ -987,7 +987,7 @@ const DropdownRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
987
987
  props
988
988
  ], "`lui-${p0.id}-opts`")
989
989
  }, [
990
- props.values.map(({ name, value, color = "transparent" }, i) => {
990
+ props.values?.map(({ name, value, color = "transparent" }, i) => {
991
991
  return /* @__PURE__ */ qwik._jsxC(Button, {
992
992
  color,
993
993
  get size() {
@@ -928,7 +928,7 @@ const DropdownRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
928
928
  _fnSignal((p0) => p0.display, [
929
929
  props
930
930
  ], "p0.display"),
931
- !props.display && /* @__PURE__ */ _jsxQ("span", null, {
931
+ !props.display && props.values && /* @__PURE__ */ _jsxQ("span", null, {
932
932
  class: "flex-1 text-left",
933
933
  id: _fnSignal((p0) => `lui-${p0.id}-name`, [
934
934
  props
@@ -985,7 +985,7 @@ const DropdownRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
985
985
  props
986
986
  ], "`lui-${p0.id}-opts`")
987
987
  }, [
988
- props.values.map(({ name, value, color = "transparent" }, i) => {
988
+ props.values?.map(({ name, value, color = "transparent" }, i) => {
989
989
  return /* @__PURE__ */ _jsxC(Button, {
990
990
  color,
991
991
  get size() {
@@ -7,12 +7,12 @@ interface DropdownProps extends Omit<PropsOf<'select'>, 'class' | 'size'> {
7
7
  display?: JSXChildren;
8
8
  color?: keyof typeof buttonColorClasses;
9
9
  size?: keyof typeof sizeClasses;
10
- id: string;
11
- values: {
10
+ values?: {
12
11
  name: JSXChildren;
13
12
  value: string | number;
14
13
  color?: keyof typeof buttonColorClasses;
15
14
  }[];
15
+ id: string;
16
16
  }
17
17
  export declare const Dropdown: import("@builder.io/qwik").Component<DropdownProps>;
18
18
  export declare const DropdownRaw: import("@builder.io/qwik").Component<DropdownProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",