@powerhousedao/design-system 1.30.2 → 1.30.4

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,12 +1,12 @@
1
1
  import { jsxs as v, jsx as e } from "react/jsx-runtime";
2
2
  import A, { useId as E, useCallback as G } from "react";
3
3
  import { Command as I } from "../command/command.js";
4
- import { Button as $ } from "../button/button.js";
5
- import { Popover as q, PopoverTrigger as z, PopoverContent as H } from "../popover/popover.js";
6
- import { cn as J } from "../../../lib/utils.js";
7
- import { useSelectField as K } from "./use-select-field.js";
8
- import { SelectedContent as Q } from "./selected-content.js";
9
- import { Content as U } from "./content.js";
4
+ import { Popover as $, PopoverTrigger as q, PopoverContent as z } from "../popover/popover.js";
5
+ import { cn as H } from "../../../lib/utils.js";
6
+ import { useSelectField as J } from "./use-select-field.js";
7
+ import { SelectedContent as K } from "./selected-content.js";
8
+ import { Content as Q } from "./content.js";
9
+ import { Button as U } from "../button/button.js";
10
10
  import { withFieldValidation as W } from "../with-field-validation/with-field-validation.js";
11
11
  import { FormGroup as X } from "../form-group/form-group.js";
12
12
  import { FormLabel as Y } from "../form-label/form-label.js";
@@ -49,7 +49,7 @@ const B = A.forwardRef(
49
49
  handleClear: M,
50
50
  toggleAll: N,
51
51
  handleOpenChange: T
52
- } = K({
52
+ } = J({
53
53
  options: a,
54
54
  multiple: t,
55
55
  defaultValue: y,
@@ -78,9 +78,9 @@ const B = A.forwardRef(
78
78
  children: c
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ v(q, { open: l, onOpenChange: T, children: [
82
- /* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ e(
83
- $,
81
+ /* @__PURE__ */ v($, { open: l, onOpenChange: T, children: [
82
+ /* @__PURE__ */ e(q, { asChild: !0, children: /* @__PURE__ */ e(
83
+ U,
84
84
  {
85
85
  id: h,
86
86
  name: w,
@@ -92,7 +92,7 @@ const B = A.forwardRef(
92
92
  "aria-label": c ? void 0 : t ? "Multi select" : "Select",
93
93
  "aria-required": s,
94
94
  "aria-expanded": l,
95
- className: J(
95
+ className: H(
96
96
  "flex h-9 w-full items-center justify-between px-3 py-2",
97
97
  "dark:border-charcoal-700 dark:bg-charcoal-900 rounded-md border border-gray-300 bg-white",
98
98
  "hover:border-gray-300 hover:bg-gray-100",
@@ -108,7 +108,7 @@ const B = A.forwardRef(
108
108
  ...R,
109
109
  ref: j,
110
110
  children: /* @__PURE__ */ e(
111
- Q,
111
+ K,
112
112
  {
113
113
  selectedValues: n,
114
114
  options: a,
@@ -120,12 +120,12 @@ const B = A.forwardRef(
120
120
  )
121
121
  }
122
122
  ) }),
123
- /* @__PURE__ */ e(H, { align: "start", children: /* @__PURE__ */ e(
123
+ /* @__PURE__ */ e(z, { align: "start", children: /* @__PURE__ */ e(
124
124
  I,
125
125
  {
126
126
  defaultValue: !t && n[0] ? (p = a.find((r) => r.value === n[0])) == null ? void 0 : p.label : void 0,
127
127
  children: /* @__PURE__ */ e(
128
- U,
128
+ Q,
129
129
  {
130
130
  searchable: m,
131
131
  commandListRef: V,
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { Button as i } from "../../fragments/button/button.js";
3
2
  import y from "./time-period-selector.js";
4
- import o from "./time-selector.js";
3
+ import i from "./time-selector.js";
5
4
  import { SelectFieldRaw as C } from "../../fragments/select-field/select-field.js";
5
+ import { Button as o } from "../../fragments/button/button.js";
6
6
  const V = ({
7
7
  onSave: t,
8
8
  onCancel: m,
@@ -53,7 +53,7 @@ const V = ({
53
53
  },
54
54
  children: [
55
55
  /* @__PURE__ */ e(
56
- o,
56
+ i,
57
57
  {
58
58
  options: d,
59
59
  selectedValue: l,
@@ -62,7 +62,7 @@ const V = ({
62
62
  ),
63
63
  /* @__PURE__ */ e("div", { className: "flex items-center px-4 text-sm font-normal leading-[20px] text-gray-900", children: ":" }),
64
64
  /* @__PURE__ */ e(
65
- o,
65
+ i,
66
66
  {
67
67
  options: p,
68
68
  selectedValue: r,
@@ -74,7 +74,7 @@ const V = ({
74
74
  ),
75
75
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between pt-[25px]", children: [
76
76
  /* @__PURE__ */ e(
77
- i,
77
+ o,
78
78
  {
79
79
  variant: "ghost",
80
80
  onClick: m,
@@ -83,7 +83,7 @@ const V = ({
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ e(
86
- i,
86
+ o,
87
87
  {
88
88
  variant: "ghost",
89
89
  onClick: () => t == null ? void 0 : t(`${l}:${r} ${n}`),