@greghowe79/the-lib 0.9.9 → 1.0.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.
@@ -19,16 +19,24 @@ const Select = qwik.component$(({ id, label, options, selected, prefix }) => {
19
19
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
20
20
  class: `select-wrapper ${selected.value ? "has-value" : ""}`,
21
21
  children: [
22
- /* @__PURE__ */ jsxRuntime.jsx("select", {
22
+ /* @__PURE__ */ jsxRuntime.jsxs("select", {
23
23
  id,
24
24
  name: id,
25
25
  class: "select-element",
26
26
  onChange$: handleChange$,
27
27
  value: selected.value,
28
- children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
29
- value: option.value,
30
- children: option.label
31
- }, option.value))
28
+ children: [
29
+ /* @__PURE__ */ jsxRuntime.jsx("option", {
30
+ value: "",
31
+ disabled: true,
32
+ selected: true,
33
+ hidden: true
34
+ }),
35
+ options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
36
+ value: option.value,
37
+ children: option.label
38
+ }, option.value))
39
+ ]
32
40
  }),
33
41
  /* @__PURE__ */ jsxRuntime.jsx("label", {
34
42
  for: id,
@@ -17,16 +17,24 @@ const Select = component$(({ id, label, options, selected, prefix }) => {
17
17
  children: /* @__PURE__ */ jsxs("div", {
18
18
  class: `select-wrapper ${selected.value ? "has-value" : ""}`,
19
19
  children: [
20
- /* @__PURE__ */ jsx("select", {
20
+ /* @__PURE__ */ jsxs("select", {
21
21
  id,
22
22
  name: id,
23
23
  class: "select-element",
24
24
  onChange$: handleChange$,
25
25
  value: selected.value,
26
- children: options.map((option) => /* @__PURE__ */ jsx("option", {
27
- value: option.value,
28
- children: option.label
29
- }, option.value))
26
+ children: [
27
+ /* @__PURE__ */ jsx("option", {
28
+ value: "",
29
+ disabled: true,
30
+ selected: true,
31
+ hidden: true
32
+ }),
33
+ options.map((option) => /* @__PURE__ */ jsx("option", {
34
+ value: option.value,
35
+ children: option.label
36
+ }, option.value))
37
+ ]
30
38
  }),
31
39
  /* @__PURE__ */ jsx("label", {
32
40
  for: id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.9.9",
3
+ "version": "1.0.0",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",