@nayhoo/ui 0.9.6 → 0.10.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.
Files changed (40) hide show
  1. package/dist/chunk-CYDWEPFL.mjs +1 -0
  2. package/dist/chunk-CYDWEPFL.mjs.map +1 -0
  3. package/dist/{chunk-QCNMRBLN.mjs → chunk-U6MTU5FF.mjs} +10 -10
  4. package/dist/chunk-U6MTU5FF.mjs.map +1 -0
  5. package/dist/{chunk-DERDJR33.mjs → chunk-XX6PQF7O.mjs} +1 -1
  6. package/dist/chunk-XX6PQF7O.mjs.map +1 -0
  7. package/dist/components/dropdown-menu.css +2 -1
  8. package/dist/components/dropdown-menu.css.map +1 -1
  9. package/dist/components/dropdown-menu.js.map +1 -1
  10. package/dist/components/dropdown-menu.mjs +1 -1
  11. package/dist/components/menu.css +2 -1
  12. package/dist/components/menu.css.map +1 -1
  13. package/dist/components/menu.js.map +1 -1
  14. package/dist/components/menu.mjs +1 -1
  15. package/dist/components/popover.css +58 -0
  16. package/dist/components/popover.css.map +1 -0
  17. package/dist/components/popover.d.mts +11 -0
  18. package/dist/components/popover.d.ts +11 -0
  19. package/dist/components/popover.js +76 -0
  20. package/dist/components/popover.js.map +1 -0
  21. package/dist/components/popover.mjs +39 -0
  22. package/dist/components/popover.mjs.map +1 -0
  23. package/dist/components/select.css +109 -57
  24. package/dist/components/select.css.map +1 -1
  25. package/dist/components/select.d.mts +2 -3
  26. package/dist/components/select.d.ts +2 -3
  27. package/dist/components/select.js +65 -38
  28. package/dist/components/select.js.map +1 -1
  29. package/dist/components/select.mjs +15 -25
  30. package/dist/components/select.mjs.map +1 -1
  31. package/dist/components/tooltip.mjs +3 -3
  32. package/dist/providers/index.mjs +1 -1
  33. package/dist/theme/index.css +2 -1
  34. package/dist/theme/index.css.map +1 -1
  35. package/dist/theme/index.js.map +1 -1
  36. package/dist/theme/index.mjs +6 -6
  37. package/dist/utils/index.mjs +1 -0
  38. package/package.json +6 -1
  39. package/dist/chunk-DERDJR33.mjs.map +0 -1
  40. package/dist/chunk-QCNMRBLN.mjs.map +0 -1
@@ -1,19 +1,20 @@
1
1
  import {
2
- buttonRecipe
3
- } from "../chunk-MDAIXJU2.mjs";
2
+ Button
3
+ } from "../chunk-QMCIR3TI.mjs";
4
+ import "../chunk-MDAIXJU2.mjs";
5
+ import "../chunk-DC6VQ7BG.mjs";
6
+ import "../chunk-QEBSZEY2.mjs";
4
7
  import {
5
8
  menu,
6
9
  menuItem,
7
10
  menuLabel,
8
11
  menuSeparator
9
- } from "../chunk-DERDJR33.mjs";
12
+ } from "../chunk-XX6PQF7O.mjs";
10
13
  import {
11
14
  panel
12
15
  } from "../chunk-WUVNL3DI.mjs";
13
16
  import "../chunk-IFN22XIN.mjs";
14
- import {
15
- pick
16
- } from "../chunk-4N6P3Y54.mjs";
17
+ import "../chunk-4N6P3Y54.mjs";
17
18
  import {
18
19
  mergeClasses
19
20
  } from "../chunk-7EGQM3ZL.mjs";
@@ -5439,27 +5440,18 @@ var SelectTrigger2 = ({
5439
5440
  variant = "outline",
5440
5441
  ...props
5441
5442
  }) => {
5442
- const button = buttonRecipe(
5443
- pick({ variant, ...props }, ...buttonRecipe.variants())
5444
- );
5445
- return /* @__PURE__ */ jsxs2(
5446
- Trigger,
5447
- {
5448
- ...props,
5449
- className: mergeClasses(button, props.className),
5450
- children: [
5451
- /* @__PURE__ */ jsx12(Value, { placeholder }),
5452
- /* @__PURE__ */ jsx12(Icon, { style: { marginLeft: 5 }, children: /* @__PURE__ */ jsx12(ChevronDownIcon, {}) })
5453
- ]
5454
- }
5455
- );
5443
+ return /* @__PURE__ */ jsx12(Trigger, { ...props, asChild: true, children: /* @__PURE__ */ jsxs2(Button, { variant, children: [
5444
+ /* @__PURE__ */ jsx12(Value, { placeholder }),
5445
+ /* @__PURE__ */ jsx12(Icon, { style: { marginLeft: 5 }, children: /* @__PURE__ */ jsx12(ChevronDownIcon, {}) })
5446
+ ] }) });
5456
5447
  };
5457
- var SelectContent2 = ({ ...props }) => {
5448
+ var SelectContent2 = ({ children, ...props }) => {
5458
5449
  return /* @__PURE__ */ jsx12(Portal2, { children: /* @__PURE__ */ jsx12(
5459
5450
  Content2,
5460
5451
  {
5461
5452
  ...props,
5462
- className: mergeClasses(menu, panel, props.className)
5453
+ className: mergeClasses(menu, panel, props.className),
5454
+ children: /* @__PURE__ */ jsx12(Viewport, { children })
5463
5455
  }
5464
5456
  ) });
5465
5457
  };
@@ -5473,7 +5465,6 @@ var SelectItem2 = ({ ...props }) => {
5473
5465
  }
5474
5466
  );
5475
5467
  };
5476
- var SelectViewport2 = Viewport;
5477
5468
  var SelectGroup2 = Group;
5478
5469
  var SelectLabel2 = ({ ...props }) => {
5479
5470
  return /* @__PURE__ */ jsx12(
@@ -5502,8 +5493,7 @@ export {
5502
5493
  SelectItem2 as SelectItem,
5503
5494
  SelectLabel2 as SelectLabel,
5504
5495
  SelectSeparator2 as SelectSeparator,
5505
- SelectTrigger2 as SelectTrigger,
5506
- SelectViewport2 as SelectViewport
5496
+ SelectTrigger2 as SelectTrigger
5507
5497
  };
5508
5498
  /*! Bundled license information:
5509
5499