@btst/stack 1.1.0 → 1.1.2

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 (297) hide show
  1. package/README.md +12 -12
  2. package/dist/api/index.cjs +2 -0
  3. package/dist/api/index.d.cts +1 -0
  4. package/dist/api/index.d.mts +1 -0
  5. package/dist/api/index.d.ts +1 -0
  6. package/dist/api/index.mjs +1 -0
  7. package/dist/client/components/index.cjs +2 -2
  8. package/dist/client/components/index.mjs +2 -2
  9. package/dist/client/index.cjs +4 -2
  10. package/dist/client/index.d.cts +24 -1
  11. package/dist/client/index.d.mts +24 -1
  12. package/dist/client/index.d.ts +24 -1
  13. package/dist/client/index.mjs +3 -2
  14. package/dist/context/index.cjs +1 -1
  15. package/dist/context/index.mjs +1 -1
  16. package/dist/index.cjs +2 -0
  17. package/dist/index.d.cts +1 -0
  18. package/dist/index.d.mts +1 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.mjs +1 -0
  21. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +825 -0
  22. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +814 -0
  23. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +763 -0
  24. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +751 -0
  25. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +375 -0
  26. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +350 -0
  27. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +160 -0
  28. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +182 -0
  29. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
  30. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +137 -0
  31. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.cjs +8 -0
  32. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs +6 -0
  33. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
  34. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs +11 -0
  35. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -0
  36. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.mjs +25 -0
  37. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.cjs +77 -0
  38. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.mjs +71 -0
  39. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -0
  40. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +39 -0
  41. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +79 -0
  42. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +63 -0
  43. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -0
  44. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +11 -0
  45. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -0
  46. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +212 -0
  47. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -0
  48. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +30 -0
  49. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -0
  50. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +208 -0
  51. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +31 -0
  52. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +15 -0
  53. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -0
  54. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.mjs +284 -0
  55. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.cjs +37 -0
  56. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.mjs +18 -0
  57. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -0
  58. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.mjs +43 -0
  59. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.cjs +1198 -0
  60. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.mjs +1154 -0
  61. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -0
  62. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +12 -0
  63. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -0
  64. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +70 -0
  65. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -0
  66. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +18 -0
  67. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -0
  68. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +7 -0
  69. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.cjs +31 -0
  70. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs +15 -0
  71. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -0
  72. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +40 -0
  73. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +51 -0
  74. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +34 -0
  75. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +139 -0
  76. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.mjs +137 -0
  77. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +39 -0
  78. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.mjs +37 -0
  79. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
  80. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.mjs +38 -0
  81. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1671 -0
  82. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.mjs +1669 -0
  83. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
  84. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +8 -0
  85. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +74 -0
  86. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +56 -0
  87. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +15 -0
  88. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +10 -0
  89. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +34 -0
  90. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +31 -0
  91. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +25 -0
  92. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +9 -0
  93. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +178 -0
  94. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +160 -0
  95. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +54 -0
  96. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +38 -0
  97. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +23 -0
  98. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +21 -0
  99. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +113 -0
  100. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +110 -0
  101. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +7 -0
  102. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
  103. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +9 -0
  104. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
  105. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs +21 -0
  106. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +19 -0
  107. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +41 -0
  108. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +25 -0
  109. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +53 -0
  110. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +51 -0
  111. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +59 -0
  112. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +56 -0
  113. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +26 -0
  114. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +24 -0
  115. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +64 -0
  116. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +48 -0
  117. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +44 -0
  118. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +42 -0
  119. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.cjs +37 -0
  120. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
  121. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.cjs +79 -0
  122. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +77 -0
  123. package/dist/packages/better-stack/src/client/path-utils.cjs +15 -0
  124. package/dist/packages/better-stack/src/client/path-utils.mjs +13 -0
  125. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.cjs +3 -3
  126. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.mjs +3 -3
  127. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.cjs +5 -5
  128. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.mjs +5 -5
  129. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.cjs +2 -6
  130. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.mjs +1 -1
  131. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.cjs +1 -1
  132. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.mjs +1 -1
  133. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.cjs +1 -1
  134. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.mjs +1 -1
  135. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.cjs +1 -1
  136. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.mjs +1 -1
  137. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.cjs +2 -2
  138. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.mjs +2 -2
  139. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.cjs +1 -1
  140. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.mjs +1 -1
  141. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.cjs +1 -1
  142. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.mjs +1 -1
  143. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.cjs +4 -4
  144. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.mjs +4 -4
  145. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.cjs +1 -1
  146. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.mjs +1 -1
  147. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.cjs +1 -1
  148. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.mjs +1 -1
  149. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.cjs +2 -2
  150. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.mjs +2 -2
  151. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.cjs +1 -1
  152. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.mjs +1 -1
  153. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.cjs +1 -1
  154. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.mjs +1 -1
  155. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.cjs +1 -1
  156. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.mjs +1 -1
  157. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.cjs +1 -1
  158. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.mjs +1 -1
  159. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.cjs +1 -1
  160. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.mjs +1 -1
  161. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.cjs +1 -1
  162. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.mjs +1 -1
  163. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.cjs +1 -1
  164. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.mjs +1 -1
  165. package/dist/packages/ui/src/components/badge.cjs +42 -0
  166. package/dist/packages/ui/src/components/badge.mjs +39 -0
  167. package/dist/packages/ui/src/components/button.cjs +54 -0
  168. package/dist/packages/ui/src/components/button.mjs +51 -0
  169. package/dist/packages/ui/src/components/card.cjs +67 -0
  170. package/dist/packages/ui/src/components/card.mjs +61 -0
  171. package/dist/packages/ui/src/components/carousel.cjs +215 -0
  172. package/dist/packages/ui/src/components/carousel.mjs +195 -0
  173. package/dist/packages/ui/src/components/command.cjs +142 -0
  174. package/dist/packages/ui/src/components/command.mjs +134 -0
  175. package/dist/packages/ui/src/components/dialog.cjs +127 -0
  176. package/dist/packages/ui/src/components/dialog.mjs +105 -0
  177. package/dist/packages/ui/src/components/empty.cjs +76 -0
  178. package/dist/packages/ui/src/components/empty.mjs +71 -0
  179. package/dist/packages/ui/src/components/form.cjs +133 -0
  180. package/dist/packages/ui/src/components/form.mjs +110 -0
  181. package/dist/packages/ui/src/components/input.cjs +23 -0
  182. package/dist/packages/ui/src/components/input.mjs +21 -0
  183. package/dist/packages/ui/src/components/label.cjs +39 -0
  184. package/dist/packages/ui/src/components/label.mjs +23 -0
  185. package/dist/packages/ui/src/components/multi-select.cjs +555 -0
  186. package/dist/packages/ui/src/components/multi-select.mjs +540 -0
  187. package/dist/packages/ui/src/components/select.cjs +140 -0
  188. package/dist/packages/ui/src/components/select.mjs +132 -0
  189. package/dist/packages/ui/src/components/skeleton.cjs +17 -0
  190. package/dist/packages/ui/src/components/skeleton.mjs +15 -0
  191. package/dist/packages/ui/src/components/switch.cjs +48 -0
  192. package/dist/packages/ui/src/components/switch.mjs +32 -0
  193. package/dist/packages/ui/src/components/textarea.cjs +20 -0
  194. package/dist/packages/ui/src/components/textarea.mjs +18 -0
  195. package/dist/packages/ui/src/hooks/use-debounce.cjs +18 -0
  196. package/dist/packages/ui/src/hooks/use-debounce.mjs +16 -0
  197. package/dist/packages/ui/src/lib/utils.cjs +10 -0
  198. package/dist/packages/ui/src/lib/utils.mjs +8 -0
  199. package/dist/plugins/api/index.cjs +0 -2
  200. package/dist/plugins/api/index.d.cts +0 -1
  201. package/dist/plugins/api/index.d.mts +0 -1
  202. package/dist/plugins/api/index.d.ts +0 -1
  203. package/dist/plugins/api/index.mjs +0 -1
  204. package/dist/plugins/blog/api/index.cjs +1 -1
  205. package/dist/plugins/blog/api/index.mjs +1 -1
  206. package/dist/plugins/blog/client/components/index.cjs +4 -4
  207. package/dist/plugins/blog/client/components/index.mjs +4 -4
  208. package/dist/plugins/blog/client/hooks/index.cjs +1 -1
  209. package/dist/plugins/blog/client/hooks/index.mjs +1 -1
  210. package/dist/plugins/blog/client/index.cjs +1 -1
  211. package/dist/plugins/blog/client/index.mjs +1 -1
  212. package/dist/plugins/client/index.cjs +1 -1
  213. package/dist/plugins/client/index.mjs +1 -1
  214. package/package.json +5 -5
  215. package/src/api/index.ts +2 -0
  216. package/src/client/index.ts +2 -0
  217. package/src/client/path-utils.ts +38 -0
  218. package/src/plugins/api/index.ts +0 -1
  219. package/src/plugins/blog/client/components/shared/better-blog-attribution.tsx +4 -4
  220. /package/dist/{client → packages/better-stack/src/client}/components/compose.cjs +0 -0
  221. /package/dist/{client → packages/better-stack/src/client}/components/compose.mjs +0 -0
  222. /package/dist/{client → packages/better-stack/src/client}/components/error-boundary.cjs +0 -0
  223. /package/dist/{client → packages/better-stack/src/client}/components/error-boundary.mjs +0 -0
  224. /package/dist/{client → packages/better-stack/src/client}/meta-utils.cjs +0 -0
  225. /package/dist/{client → packages/better-stack/src/client}/meta-utils.mjs +0 -0
  226. /package/dist/{client → packages/better-stack/src/client}/sitemap-utils.cjs +0 -0
  227. /package/dist/{client → packages/better-stack/src/client}/sitemap-utils.mjs +0 -0
  228. /package/dist/{context → packages/better-stack/src/context}/provider.cjs +0 -0
  229. /package/dist/{context → packages/better-stack/src/context}/provider.mjs +0 -0
  230. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.cjs +0 -0
  231. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.mjs +0 -0
  232. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.cjs +0 -0
  233. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.mjs +0 -0
  234. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.cjs +0 -0
  235. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.mjs +0 -0
  236. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.cjs +0 -0
  237. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.mjs +0 -0
  238. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.cjs +0 -0
  239. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.cjs +0 -0
  240. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.mjs +0 -0
  241. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.mjs +0 -0
  242. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.cjs +0 -0
  243. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.cjs +0 -0
  244. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.mjs +0 -0
  245. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.mjs +0 -0
  246. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.cjs +0 -0
  247. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.cjs +0 -0
  248. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.mjs +0 -0
  249. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.mjs +0 -0
  250. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.cjs +0 -0
  251. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.mjs +0 -0
  252. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.cjs +0 -0
  253. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.cjs +0 -0
  254. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.mjs +0 -0
  255. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.mjs +0 -0
  256. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.cjs +0 -0
  257. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.mjs +0 -0
  258. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.cjs +0 -0
  259. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.mjs +0 -0
  260. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.cjs +0 -0
  261. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.mjs +0 -0
  262. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.cjs +0 -0
  263. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.mjs +0 -0
  264. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.cjs +0 -0
  265. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.mjs +0 -0
  266. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.cjs +0 -0
  267. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.mjs +0 -0
  268. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.cjs +0 -0
  269. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.mjs +0 -0
  270. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.cjs +0 -0
  271. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.mjs +0 -0
  272. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.cjs +0 -0
  273. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.mjs +0 -0
  274. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.cjs +0 -0
  275. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.mjs +0 -0
  276. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.cjs +0 -0
  277. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.mjs +0 -0
  278. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.cjs +0 -0
  279. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.mjs +0 -0
  280. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.cjs +0 -0
  281. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.mjs +0 -0
  282. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.cjs +0 -0
  283. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.mjs +0 -0
  284. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.cjs +0 -0
  285. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.mjs +0 -0
  286. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.cjs +0 -0
  287. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.mjs +0 -0
  288. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.cjs +0 -0
  289. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.mjs +0 -0
  290. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.cjs +0 -0
  291. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.mjs +0 -0
  292. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.cjs +0 -0
  293. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.mjs +0 -0
  294. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.cjs +0 -0
  295. /package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.mjs +0 -0
  296. /package/dist/{plugins → packages/better-stack/src/plugins}/utils.cjs +0 -0
  297. /package/dist/{plugins → packages/better-stack/src/plugins}/utils.mjs +0 -0
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ const jsxRuntime = require('react/jsx-runtime');
4
+ const utils = require('../lib/utils.cjs');
5
+
6
+ function Card({ className, ...props }) {
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ "div",
9
+ {
10
+ "data-slot": "card",
11
+ className: utils.cn(
12
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
13
+ className
14
+ ),
15
+ ...props
16
+ }
17
+ );
18
+ }
19
+ function CardHeader({ className, ...props }) {
20
+ return /* @__PURE__ */ jsxRuntime.jsx(
21
+ "div",
22
+ {
23
+ "data-slot": "card-header",
24
+ className: utils.cn(
25
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
26
+ className
27
+ ),
28
+ ...props
29
+ }
30
+ );
31
+ }
32
+ function CardTitle({ className, ...props }) {
33
+ return /* @__PURE__ */ jsxRuntime.jsx(
34
+ "div",
35
+ {
36
+ "data-slot": "card-title",
37
+ className: utils.cn("leading-none font-semibold", className),
38
+ ...props
39
+ }
40
+ );
41
+ }
42
+ function CardContent({ className, ...props }) {
43
+ return /* @__PURE__ */ jsxRuntime.jsx(
44
+ "div",
45
+ {
46
+ "data-slot": "card-content",
47
+ className: utils.cn("px-6", className),
48
+ ...props
49
+ }
50
+ );
51
+ }
52
+ function CardFooter({ className, ...props }) {
53
+ return /* @__PURE__ */ jsxRuntime.jsx(
54
+ "div",
55
+ {
56
+ "data-slot": "card-footer",
57
+ className: utils.cn("flex items-center px-6 [.border-t]:pt-6", className),
58
+ ...props
59
+ }
60
+ );
61
+ }
62
+
63
+ exports.Card = Card;
64
+ exports.CardContent = CardContent;
65
+ exports.CardFooter = CardFooter;
66
+ exports.CardHeader = CardHeader;
67
+ exports.CardTitle = CardTitle;
@@ -0,0 +1,61 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { cn } from '../lib/utils.mjs';
3
+
4
+ function Card({ className, ...props }) {
5
+ return /* @__PURE__ */ jsx(
6
+ "div",
7
+ {
8
+ "data-slot": "card",
9
+ className: cn(
10
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11
+ className
12
+ ),
13
+ ...props
14
+ }
15
+ );
16
+ }
17
+ function CardHeader({ className, ...props }) {
18
+ return /* @__PURE__ */ jsx(
19
+ "div",
20
+ {
21
+ "data-slot": "card-header",
22
+ className: cn(
23
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24
+ className
25
+ ),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function CardTitle({ className, ...props }) {
31
+ return /* @__PURE__ */ jsx(
32
+ "div",
33
+ {
34
+ "data-slot": "card-title",
35
+ className: cn("leading-none font-semibold", className),
36
+ ...props
37
+ }
38
+ );
39
+ }
40
+ function CardContent({ className, ...props }) {
41
+ return /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ "data-slot": "card-content",
45
+ className: cn("px-6", className),
46
+ ...props
47
+ }
48
+ );
49
+ }
50
+ function CardFooter({ className, ...props }) {
51
+ return /* @__PURE__ */ jsx(
52
+ "div",
53
+ {
54
+ "data-slot": "card-footer",
55
+ className: cn("flex items-center px-6 [.border-t]:pt-6", className),
56
+ ...props
57
+ }
58
+ );
59
+ }
60
+
61
+ export { Card, CardContent, CardFooter, CardHeader, CardTitle };
@@ -0,0 +1,215 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ const jsxRuntime = require('react/jsx-runtime');
5
+ const React = require('react');
6
+ const emblaCarouselReact_esm = require('../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs');
7
+ const lucideReact = require('lucide-react');
8
+ const utils = require('../lib/utils.cjs');
9
+ const button = require('./button.cjs');
10
+
11
+ function _interopNamespaceCompat(e) {
12
+ if (e && typeof e === 'object' && 'default' in e) return e;
13
+ const n = Object.create(null);
14
+ if (e) {
15
+ for (const k in e) {
16
+ n[k] = e[k];
17
+ }
18
+ }
19
+ n.default = e;
20
+ return n;
21
+ }
22
+
23
+ const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
24
+
25
+ const CarouselContext = React__namespace.createContext(null);
26
+ function useCarousel() {
27
+ const context = React__namespace.useContext(CarouselContext);
28
+ if (!context) {
29
+ throw new Error("useCarousel must be used within a <Carousel />");
30
+ }
31
+ return context;
32
+ }
33
+ function Carousel({
34
+ orientation = "horizontal",
35
+ opts,
36
+ setApi,
37
+ plugins,
38
+ className,
39
+ children,
40
+ ...props
41
+ }) {
42
+ const [carouselRef, api] = emblaCarouselReact_esm(
43
+ {
44
+ ...opts,
45
+ axis: orientation === "horizontal" ? "x" : "y"
46
+ },
47
+ plugins
48
+ );
49
+ const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
50
+ const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
51
+ const onSelect = React__namespace.useCallback((api2) => {
52
+ if (!api2) return;
53
+ setCanScrollPrev(api2.canScrollPrev());
54
+ setCanScrollNext(api2.canScrollNext());
55
+ }, []);
56
+ const scrollPrev = React__namespace.useCallback(() => {
57
+ api?.scrollPrev();
58
+ }, [api]);
59
+ const scrollNext = React__namespace.useCallback(() => {
60
+ api?.scrollNext();
61
+ }, [api]);
62
+ const handleKeyDown = React__namespace.useCallback(
63
+ (event) => {
64
+ if (event.key === "ArrowLeft") {
65
+ event.preventDefault();
66
+ scrollPrev();
67
+ } else if (event.key === "ArrowRight") {
68
+ event.preventDefault();
69
+ scrollNext();
70
+ }
71
+ },
72
+ [scrollPrev, scrollNext]
73
+ );
74
+ React__namespace.useEffect(() => {
75
+ if (!api || !setApi) return;
76
+ setApi(api);
77
+ }, [api, setApi]);
78
+ React__namespace.useEffect(() => {
79
+ if (!api) return;
80
+ onSelect(api);
81
+ api.on("reInit", onSelect);
82
+ api.on("select", onSelect);
83
+ return () => {
84
+ api?.off("select", onSelect);
85
+ };
86
+ }, [api, onSelect]);
87
+ return /* @__PURE__ */ jsxRuntime.jsx(
88
+ CarouselContext.Provider,
89
+ {
90
+ value: {
91
+ carouselRef,
92
+ api,
93
+ opts,
94
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
95
+ scrollPrev,
96
+ scrollNext,
97
+ canScrollPrev,
98
+ canScrollNext
99
+ },
100
+ children: /* @__PURE__ */ jsxRuntime.jsx(
101
+ "div",
102
+ {
103
+ onKeyDownCapture: handleKeyDown,
104
+ className: utils.cn("relative", className),
105
+ role: "region",
106
+ "aria-roledescription": "carousel",
107
+ "data-slot": "carousel",
108
+ ...props,
109
+ children
110
+ }
111
+ )
112
+ }
113
+ );
114
+ }
115
+ function CarouselContent({ className, ...props }) {
116
+ const { carouselRef, orientation } = useCarousel();
117
+ return /* @__PURE__ */ jsxRuntime.jsx(
118
+ "div",
119
+ {
120
+ ref: carouselRef,
121
+ className: "overflow-hidden",
122
+ "data-slot": "carousel-content",
123
+ children: /* @__PURE__ */ jsxRuntime.jsx(
124
+ "div",
125
+ {
126
+ className: utils.cn(
127
+ "flex",
128
+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
129
+ className
130
+ ),
131
+ ...props
132
+ }
133
+ )
134
+ }
135
+ );
136
+ }
137
+ function CarouselItem({ className, ...props }) {
138
+ const { orientation } = useCarousel();
139
+ return /* @__PURE__ */ jsxRuntime.jsx(
140
+ "div",
141
+ {
142
+ role: "group",
143
+ "aria-roledescription": "slide",
144
+ "data-slot": "carousel-item",
145
+ className: utils.cn(
146
+ "min-w-0 shrink-0 grow-0 basis-full",
147
+ orientation === "horizontal" ? "pl-4" : "pt-4",
148
+ className
149
+ ),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function CarouselPrevious({
155
+ className,
156
+ variant = "outline",
157
+ size = "icon",
158
+ ...props
159
+ }) {
160
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
161
+ return /* @__PURE__ */ jsxRuntime.jsxs(
162
+ button.Button,
163
+ {
164
+ "data-slot": "carousel-previous",
165
+ variant,
166
+ size,
167
+ className: utils.cn(
168
+ "absolute size-8 rounded-full",
169
+ orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
170
+ className
171
+ ),
172
+ disabled: !canScrollPrev,
173
+ onClick: scrollPrev,
174
+ ...props,
175
+ children: [
176
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
177
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
178
+ ]
179
+ }
180
+ );
181
+ }
182
+ function CarouselNext({
183
+ className,
184
+ variant = "outline",
185
+ size = "icon",
186
+ ...props
187
+ }) {
188
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
189
+ return /* @__PURE__ */ jsxRuntime.jsxs(
190
+ button.Button,
191
+ {
192
+ "data-slot": "carousel-next",
193
+ variant,
194
+ size,
195
+ className: utils.cn(
196
+ "absolute size-8 rounded-full",
197
+ orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
198
+ className
199
+ ),
200
+ disabled: !canScrollNext,
201
+ onClick: scrollNext,
202
+ ...props,
203
+ children: [
204
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
205
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
206
+ ]
207
+ }
208
+ );
209
+ }
210
+
211
+ exports.Carousel = Carousel;
212
+ exports.CarouselContent = CarouselContent;
213
+ exports.CarouselItem = CarouselItem;
214
+ exports.CarouselNext = CarouselNext;
215
+ exports.CarouselPrevious = CarouselPrevious;
@@ -0,0 +1,195 @@
1
+ "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import * as React from 'react';
4
+ import useEmblaCarousel from '../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.mjs';
5
+ import { ArrowLeft, ArrowRight } from 'lucide-react';
6
+ import { cn } from '../lib/utils.mjs';
7
+ import { Button } from './button.mjs';
8
+
9
+ const CarouselContext = React.createContext(null);
10
+ function useCarousel() {
11
+ const context = React.useContext(CarouselContext);
12
+ if (!context) {
13
+ throw new Error("useCarousel must be used within a <Carousel />");
14
+ }
15
+ return context;
16
+ }
17
+ function Carousel({
18
+ orientation = "horizontal",
19
+ opts,
20
+ setApi,
21
+ plugins,
22
+ className,
23
+ children,
24
+ ...props
25
+ }) {
26
+ const [carouselRef, api] = useEmblaCarousel(
27
+ {
28
+ ...opts,
29
+ axis: orientation === "horizontal" ? "x" : "y"
30
+ },
31
+ plugins
32
+ );
33
+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);
34
+ const [canScrollNext, setCanScrollNext] = React.useState(false);
35
+ const onSelect = React.useCallback((api2) => {
36
+ if (!api2) return;
37
+ setCanScrollPrev(api2.canScrollPrev());
38
+ setCanScrollNext(api2.canScrollNext());
39
+ }, []);
40
+ const scrollPrev = React.useCallback(() => {
41
+ api?.scrollPrev();
42
+ }, [api]);
43
+ const scrollNext = React.useCallback(() => {
44
+ api?.scrollNext();
45
+ }, [api]);
46
+ const handleKeyDown = React.useCallback(
47
+ (event) => {
48
+ if (event.key === "ArrowLeft") {
49
+ event.preventDefault();
50
+ scrollPrev();
51
+ } else if (event.key === "ArrowRight") {
52
+ event.preventDefault();
53
+ scrollNext();
54
+ }
55
+ },
56
+ [scrollPrev, scrollNext]
57
+ );
58
+ React.useEffect(() => {
59
+ if (!api || !setApi) return;
60
+ setApi(api);
61
+ }, [api, setApi]);
62
+ React.useEffect(() => {
63
+ if (!api) return;
64
+ onSelect(api);
65
+ api.on("reInit", onSelect);
66
+ api.on("select", onSelect);
67
+ return () => {
68
+ api?.off("select", onSelect);
69
+ };
70
+ }, [api, onSelect]);
71
+ return /* @__PURE__ */ jsx(
72
+ CarouselContext.Provider,
73
+ {
74
+ value: {
75
+ carouselRef,
76
+ api,
77
+ opts,
78
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
79
+ scrollPrev,
80
+ scrollNext,
81
+ canScrollPrev,
82
+ canScrollNext
83
+ },
84
+ children: /* @__PURE__ */ jsx(
85
+ "div",
86
+ {
87
+ onKeyDownCapture: handleKeyDown,
88
+ className: cn("relative", className),
89
+ role: "region",
90
+ "aria-roledescription": "carousel",
91
+ "data-slot": "carousel",
92
+ ...props,
93
+ children
94
+ }
95
+ )
96
+ }
97
+ );
98
+ }
99
+ function CarouselContent({ className, ...props }) {
100
+ const { carouselRef, orientation } = useCarousel();
101
+ return /* @__PURE__ */ jsx(
102
+ "div",
103
+ {
104
+ ref: carouselRef,
105
+ className: "overflow-hidden",
106
+ "data-slot": "carousel-content",
107
+ children: /* @__PURE__ */ jsx(
108
+ "div",
109
+ {
110
+ className: cn(
111
+ "flex",
112
+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
113
+ className
114
+ ),
115
+ ...props
116
+ }
117
+ )
118
+ }
119
+ );
120
+ }
121
+ function CarouselItem({ className, ...props }) {
122
+ const { orientation } = useCarousel();
123
+ return /* @__PURE__ */ jsx(
124
+ "div",
125
+ {
126
+ role: "group",
127
+ "aria-roledescription": "slide",
128
+ "data-slot": "carousel-item",
129
+ className: cn(
130
+ "min-w-0 shrink-0 grow-0 basis-full",
131
+ orientation === "horizontal" ? "pl-4" : "pt-4",
132
+ className
133
+ ),
134
+ ...props
135
+ }
136
+ );
137
+ }
138
+ function CarouselPrevious({
139
+ className,
140
+ variant = "outline",
141
+ size = "icon",
142
+ ...props
143
+ }) {
144
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
145
+ return /* @__PURE__ */ jsxs(
146
+ Button,
147
+ {
148
+ "data-slot": "carousel-previous",
149
+ variant,
150
+ size,
151
+ className: cn(
152
+ "absolute size-8 rounded-full",
153
+ orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
154
+ className
155
+ ),
156
+ disabled: !canScrollPrev,
157
+ onClick: scrollPrev,
158
+ ...props,
159
+ children: [
160
+ /* @__PURE__ */ jsx(ArrowLeft, {}),
161
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
162
+ ]
163
+ }
164
+ );
165
+ }
166
+ function CarouselNext({
167
+ className,
168
+ variant = "outline",
169
+ size = "icon",
170
+ ...props
171
+ }) {
172
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
173
+ return /* @__PURE__ */ jsxs(
174
+ Button,
175
+ {
176
+ "data-slot": "carousel-next",
177
+ variant,
178
+ size,
179
+ className: cn(
180
+ "absolute size-8 rounded-full",
181
+ orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
182
+ className
183
+ ),
184
+ disabled: !canScrollNext,
185
+ onClick: scrollNext,
186
+ ...props,
187
+ children: [
188
+ /* @__PURE__ */ jsx(ArrowRight, {}),
189
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
190
+ ]
191
+ }
192
+ );
193
+ }
194
+
195
+ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
@@ -0,0 +1,142 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ const jsxRuntime = require('react/jsx-runtime');
5
+ const cmdk = require('cmdk');
6
+ const lucideReact = require('lucide-react');
7
+ const utils = require('../lib/utils.cjs');
8
+ const dialog = require('./dialog.cjs');
9
+
10
+ function Command({
11
+ className,
12
+ ...props
13
+ }) {
14
+ return /* @__PURE__ */ jsxRuntime.jsx(
15
+ cmdk.Command,
16
+ {
17
+ "data-slot": "command",
18
+ className: utils.cn(
19
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
20
+ className
21
+ ),
22
+ ...props
23
+ }
24
+ );
25
+ }
26
+ function CommandDialog({
27
+ title = "Command Palette",
28
+ description = "Search for a command to run...",
29
+ children,
30
+ className,
31
+ showCloseButton = true,
32
+ ...props
33
+ }) {
34
+ return /* @__PURE__ */ jsxRuntime.jsxs(dialog.Dialog, { ...props, children: [
35
+ /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogHeader, { className: "sr-only", children: [
36
+ /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: title }),
37
+ /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { children: description })
38
+ ] }),
39
+ /* @__PURE__ */ jsxRuntime.jsx(
40
+ dialog.DialogContent,
41
+ {
42
+ className: utils.cn("overflow-hidden p-0", className),
43
+ showCloseButton,
44
+ children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
45
+ }
46
+ )
47
+ ] });
48
+ }
49
+ function CommandInput({
50
+ className,
51
+ ...props
52
+ }) {
53
+ return /* @__PURE__ */ jsxRuntime.jsxs(
54
+ "div",
55
+ {
56
+ "data-slot": "command-input-wrapper",
57
+ className: "flex h-9 items-center gap-2 border-b px-3",
58
+ children: [
59
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
60
+ /* @__PURE__ */ jsxRuntime.jsx(
61
+ cmdk.Command.Input,
62
+ {
63
+ "data-slot": "command-input",
64
+ className: utils.cn(
65
+ "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
66
+ className
67
+ ),
68
+ ...props
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ );
74
+ }
75
+ function CommandList({
76
+ className,
77
+ ...props
78
+ }) {
79
+ return /* @__PURE__ */ jsxRuntime.jsx(
80
+ cmdk.Command.List,
81
+ {
82
+ "data-slot": "command-list",
83
+ className: utils.cn(
84
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
85
+ className
86
+ ),
87
+ ...props
88
+ }
89
+ );
90
+ }
91
+ function CommandEmpty({
92
+ ...props
93
+ }) {
94
+ return /* @__PURE__ */ jsxRuntime.jsx(
95
+ cmdk.Command.Empty,
96
+ {
97
+ "data-slot": "command-empty",
98
+ className: "py-6 text-center text-sm",
99
+ ...props
100
+ }
101
+ );
102
+ }
103
+ function CommandGroup({
104
+ className,
105
+ ...props
106
+ }) {
107
+ return /* @__PURE__ */ jsxRuntime.jsx(
108
+ cmdk.Command.Group,
109
+ {
110
+ "data-slot": "command-group",
111
+ className: utils.cn(
112
+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
113
+ className
114
+ ),
115
+ ...props
116
+ }
117
+ );
118
+ }
119
+ function CommandItem({
120
+ className,
121
+ ...props
122
+ }) {
123
+ return /* @__PURE__ */ jsxRuntime.jsx(
124
+ cmdk.Command.Item,
125
+ {
126
+ "data-slot": "command-item",
127
+ className: utils.cn(
128
+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
129
+ className
130
+ ),
131
+ ...props
132
+ }
133
+ );
134
+ }
135
+
136
+ exports.Command = Command;
137
+ exports.CommandDialog = CommandDialog;
138
+ exports.CommandEmpty = CommandEmpty;
139
+ exports.CommandGroup = CommandGroup;
140
+ exports.CommandInput = CommandInput;
141
+ exports.CommandItem = CommandItem;
142
+ exports.CommandList = CommandList;