@webdevarif/dashui 0.3.8 → 0.3.10

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.
package/dist/index.mjs CHANGED
@@ -3386,18 +3386,9 @@ var ColorPickerEyeDropper = ({ className, ...props }) => {
3386
3386
  };
3387
3387
  var ColorPickerOutput = ({ className, ...props }) => {
3388
3388
  const { mode, setMode } = useColorPicker();
3389
- return /* @__PURE__ */ jsxs33("div", { className: cn("relative shrink-0", className), children: [
3390
- /* @__PURE__ */ jsx49(
3391
- "select",
3392
- {
3393
- value: mode,
3394
- onChange: (e) => setMode(e.target.value),
3395
- className: "appearance-none h-7 bg-white/8 border border-white/10 rounded-md text-xs text-white/70 pl-2 pr-6 outline-none hover:border-white/20 cursor-pointer",
3396
- style: { backgroundColor: "rgba(255,255,255,0.05)" },
3397
- children: ["HEX", "HSL", "RGB"].map((f) => /* @__PURE__ */ jsx49("option", { value: f, style: { background: "#1a1c2e" }, children: f }, f))
3398
- }
3399
- ),
3400
- /* @__PURE__ */ jsx49("svg", { className: "pointer-events-none absolute right-1.5 top-1/2 -translate-y-1/2 w-3 h-3 text-white/40", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ jsx49("path", { d: "m6 9 6 6 6-6" }) })
3389
+ return /* @__PURE__ */ jsxs33(Select, { value: mode, onValueChange: setMode, children: [
3390
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: cn("h-7 w-[4.5rem] shrink-0 text-xs px-2 border-white/10 bg-white/5 rounded-md", className), children: /* @__PURE__ */ jsx49(SelectValue, {}) }),
3391
+ /* @__PURE__ */ jsx49(SelectContent, { children: ["HEX", "HSL", "RGB"].map((f) => /* @__PURE__ */ jsx49(SelectItem, { value: f, className: "text-xs", children: f }, f)) })
3401
3392
  ] });
3402
3393
  };
3403
3394
  var ColorPickerFormat = ({ className, ...props }) => {