@turystack/ui 0.0.27 → 0.0.28

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.d.ts CHANGED
@@ -436,7 +436,7 @@ declare function Content_2({ children }: PropsWithChildren): JSX.Element;
436
436
 
437
437
  declare function Content_3({ children }: PropsWithChildren<CardContentProps>): JSX.Element;
438
438
 
439
- declare function Content_4({ side, align, sideOffset, children, }: PropsWithChildren<DropdownMenuContentProps>): JSX.Element;
439
+ declare function Content_4({ width, side, align, sideOffset, children, }: PropsWithChildren<DropdownMenuContentProps>): JSX.Element;
440
440
 
441
441
  declare function Content_5({ children }: PropsWithChildren): JSX.Element;
442
442
 
@@ -586,6 +586,7 @@ export declare type DropdownMenuConfig = {
586
586
  };
587
587
 
588
588
  export declare type DropdownMenuContentProps = {
589
+ width?: React.CSSProperties['width'];
589
590
  side?: DropdownMenuSide;
590
591
  align?: DropdownMenuAlign;
591
592
  sideOffset?: number;
package/dist/index.js CHANGED
@@ -2266,7 +2266,7 @@ const To = k({
2266
2266
  slots: {
2267
2267
  checkboxItem: "t:relative t:flex t:cursor-pointer t:select-none t:items-center t:rounded-sm t:py-1.5 t:pr-2 t:pl-8 t:text-sm t:outline-none t:transition-colors t:focus:bg-accent t:focus:text-accent-foreground t:data-[disabled]:pointer-events-none t:data-[disabled]:opacity-50 t:[&_svg]:size-4 t:[&_svg]:shrink-0",
2268
2268
  checkboxItemIndicator: "t:absolute t:left-2 t:flex t:h-3.5 t:w-3.5 t:items-center t:justify-center",
2269
- content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:min-w-[8rem] t:overflow-hidden t:rounded-md t:border t:bg-popover t:p-1 t:text-popover-foreground t:shadow-md t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
2269
+ content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:w-full t:min-w-[8rem] t:overflow-hidden t:rounded-md t:border t:bg-popover t:p-1 t:text-popover-foreground t:shadow-md t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
2270
2270
  item: "t:relative t:flex t:cursor-pointer t:select-none t:items-center t:gap-2 t:rounded-sm t:px-2 t:py-1.5 t:text-sm t:outline-none t:transition-colors t:focus:bg-accent t:focus:text-accent-foreground t:data-[disabled]:pointer-events-none t:data-[disabled]:opacity-50 t:[&_svg]:pointer-events-none t:[&_svg]:size-4 t:[&_svg]:shrink-0",
2271
2271
  itemIcon: "",
2272
2272
  label: "t:px-2 t:py-1.5 t:font-semibold t:text-sm",
@@ -2310,23 +2310,34 @@ function Po({
2310
2310
  asChild: e,
2311
2311
  children: s
2312
2312
  }) {
2313
- return /* @__PURE__ */ t.jsx(V.Trigger, { asChild: e, children: s });
2313
+ return /* @__PURE__ */ t.jsx(
2314
+ V.Trigger,
2315
+ {
2316
+ asChild: e,
2317
+ className: "cursor-pointer",
2318
+ children: s
2319
+ }
2320
+ );
2314
2321
  }
2315
2322
  function Io({
2316
- side: e,
2317
- align: s,
2318
- sideOffset: o = 4,
2319
- children: a
2323
+ width: e,
2324
+ side: s,
2325
+ align: o,
2326
+ sideOffset: a = 4,
2327
+ children: n
2320
2328
  }) {
2321
- const r = x()?.components?.dropdownMenu?.content, { content: i } = nt();
2329
+ const i = x()?.components?.dropdownMenu?.content, { content: d } = nt();
2322
2330
  return /* @__PURE__ */ t.jsx(V.Portal, { children: /* @__PURE__ */ t.jsx(
2323
2331
  V.Content,
2324
2332
  {
2325
- align: s,
2326
- className: l(i(), r?.classNames?.root),
2327
- side: e,
2328
- sideOffset: o,
2329
- children: a
2333
+ align: o,
2334
+ className: l(d(), i?.classNames?.root),
2335
+ side: s,
2336
+ sideOffset: a,
2337
+ style: {
2338
+ width: e
2339
+ },
2340
+ children: n
2330
2341
  }
2331
2342
  ) });
2332
2343
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turystack/ui",
3
3
  "private": false,
4
- "version": "0.0.27",
4
+ "version": "0.0.28",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",