ownui-system 1.0.2 → 1.0.3

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.
@@ -18,10 +18,11 @@ interface DropdownProps {
18
18
  header?: ReactNode;
19
19
  body?: ReactNode;
20
20
  children?: ReactNode;
21
+ className?: string;
21
22
  onOpenChange: (isOpen: boolean) => void;
22
23
  onSelect: (name: string, value: string, image?: string) => void;
23
24
  }
24
- declare function Dropdown({ selectedItem, color, disableTrigger, isOpen, header, body, children, onOpenChange, onSelect, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
25
+ declare function Dropdown({ selectedItem, color, disableTrigger, isOpen, header, body, children, className, onOpenChange, onSelect, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
25
26
  declare namespace Dropdown {
26
27
  var Body: typeof DropdownBody;
27
28
  var Header: typeof DropdownHeader;
@@ -9071,9 +9071,9 @@ const fy = {
9071
9071
  bordered: "flex flex-col rounded-[12px] border-solid border-[1px] border-gray400 overflow-hidden",
9072
9072
  splitted: "flex flex-col gap-[10px] overflow-hidden"
9073
9073
  }, my = {
9074
- light: "px-3 bg-[var(--bg-color)] transition-all hover:brightness-90",
9075
- bordered: "px-3 bg-[var(--bg-color)] transition-all hover:brightness-90",
9076
- splitted: "px-3 rounded-[12px] bg-[var(--bg-color)] transition-all hover:brightness-90 bg-white border-solid border-[1px] border-gray400"
9074
+ light: "px-3 bg-[var(--bg-color)] transition-all",
9075
+ bordered: "px-3 bg-[var(--bg-color)] transition-all",
9076
+ splitted: "px-3 rounded-[12px] bg-[var(--bg-color)] transition-allbg-white border-solid border-[1px] border-gray400"
9077
9077
  };
9078
9078
  function My({
9079
9079
  className: e,
@@ -33200,7 +33200,7 @@ function I0({ children: e, className: a }) {
33200
33200
  "ul",
33201
33201
  {
33202
33202
  className: A(
33203
- "rounded-lg min-w-[200px] border border-solid border-gray-300 ",
33203
+ "rounded-lg border bg-white border-gray-300 overflow-hidden",
33204
33204
  a
33205
33205
  ),
33206
33206
  children: e
@@ -33342,7 +33342,7 @@ function lie({
33342
33342
  {
33343
33343
  ...r,
33344
33344
  className: A(
33345
- "flex items-center justify-between px-3 py-2 body-500-16",
33345
+ "flex items-center justify-between px-3 py-2 body-500-16 w-full",
33346
33346
  n ? "cursor-not-allowed opacity-[0.4] hover:bg-none text-gray-500" : "cursor-pointer hover:bg-gray-100 text-gray-800",
33347
33347
  o
33348
33348
  ),
@@ -33371,21 +33371,22 @@ function Lt({
33371
33371
  header: i,
33372
33372
  body: c,
33373
33373
  children: r,
33374
- onOpenChange: s,
33375
- onSelect: h
33374
+ className: s,
33375
+ onOpenChange: h,
33376
+ onSelect: d
33376
33377
  }) {
33377
- const { DropdownProvider: d } = Pt();
33378
+ const { DropdownProvider: y } = Pt();
33378
33379
  return /* @__PURE__ */ u.jsx(
33379
- d,
33380
+ y,
33380
33381
  {
33381
33382
  value: {
33382
33383
  isOpen: n,
33383
33384
  selectedItem: e,
33384
33385
  color: a,
33385
- onSelect: h,
33386
- onOpenChange: s
33386
+ onSelect: d,
33387
+ onOpenChange: h
33387
33388
  },
33388
- children: /* @__PURE__ */ u.jsx("div", { className: "relative", children: r || /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
33389
+ children: /* @__PURE__ */ u.jsx("div", { className: A("relative", s), children: r || /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
33389
33390
  o ? /* @__PURE__ */ u.jsx(u.Fragment, { children: i }) : /* @__PURE__ */ u.jsx(Z0, { children: i }),
33390
33391
  /* @__PURE__ */ u.jsx(ze, { children: n ? c : null })
33391
33392
  ] }) })