@raystack/apsara 0.31.0 → 0.32.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 (241) hide show
  1. package/dist/command/command.cjs +3 -0
  2. package/dist/command/command.cjs.map +1 -1
  3. package/dist/command/command.d.ts.map +1 -1
  4. package/dist/command/command.js +3 -0
  5. package/dist/command/command.js.map +1 -1
  6. package/dist/dialog/dialog.cjs +12 -0
  7. package/dist/dialog/dialog.cjs.map +1 -1
  8. package/dist/dialog/dialog.d.ts.map +1 -1
  9. package/dist/dialog/dialog.js +12 -0
  10. package/dist/dialog/dialog.js.map +1 -1
  11. package/dist/select/select.cjs +3 -0
  12. package/dist/select/select.cjs.map +1 -1
  13. package/dist/select/select.d.ts.map +1 -1
  14. package/dist/select/select.js +3 -0
  15. package/dist/select/select.js.map +1 -1
  16. package/dist/sheet/sheet.cjs +9 -0
  17. package/dist/sheet/sheet.cjs.map +1 -1
  18. package/dist/sheet/sheet.d.ts +12 -0
  19. package/dist/sheet/sheet.d.ts.map +1 -1
  20. package/dist/sheet/sheet.js +9 -0
  21. package/dist/sheet/sheet.js.map +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/table/table.cjs +24 -0
  24. package/dist/table/table.cjs.map +1 -1
  25. package/dist/table/table.d.ts.map +1 -1
  26. package/dist/table/table.js +24 -0
  27. package/dist/table/table.js.map +1 -1
  28. package/dist/toggle-group/togglegroup.cjs +9 -0
  29. package/dist/toggle-group/togglegroup.cjs.map +1 -1
  30. package/dist/toggle-group/togglegroup.d.ts.map +1 -1
  31. package/dist/toggle-group/togglegroup.js +9 -0
  32. package/dist/toggle-group/togglegroup.js.map +1 -1
  33. package/dist/v1/components/calendar/range-picker.cjs +2 -2
  34. package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
  35. package/dist/v1/components/calendar/range-picker.d.ts +5 -1
  36. package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
  37. package/dist/v1/components/calendar/range-picker.js +2 -2
  38. package/dist/v1/components/calendar/range-picker.js.map +1 -1
  39. package/dist/v1/components/chip/chip.cjs +6 -6
  40. package/dist/v1/components/chip/chip.cjs.map +1 -1
  41. package/dist/v1/components/chip/chip.d.ts +3 -3
  42. package/dist/v1/components/chip/chip.d.ts.map +1 -1
  43. package/dist/v1/components/chip/chip.js +6 -6
  44. package/dist/v1/components/chip/chip.js.map +1 -1
  45. package/dist/v1/components/chip/chip.module.css.cjs +1 -1
  46. package/dist/v1/components/chip/chip.module.css.js +1 -1
  47. package/dist/v1/components/command/command.cjs +52 -0
  48. package/dist/v1/components/command/command.cjs.map +1 -0
  49. package/dist/v1/components/command/command.d.ts +2 -0
  50. package/dist/v1/components/command/command.d.ts.map +1 -0
  51. package/dist/v1/components/command/command.js +50 -0
  52. package/dist/v1/components/command/command.js.map +1 -0
  53. package/dist/v1/components/command/command.module.css.cjs +8 -0
  54. package/dist/v1/components/command/command.module.css.cjs.map +1 -0
  55. package/dist/v1/components/command/command.module.css.js +4 -0
  56. package/dist/v1/components/command/command.module.css.js.map +1 -0
  57. package/dist/v1/components/command/index.d.ts +2 -0
  58. package/dist/v1/components/command/index.d.ts.map +1 -0
  59. package/dist/v1/components/dialog/dialog.cjs +32 -0
  60. package/dist/v1/components/dialog/dialog.cjs.map +1 -0
  61. package/dist/v1/components/dialog/dialog.d.ts +26 -0
  62. package/dist/v1/components/dialog/dialog.d.ts.map +1 -0
  63. package/dist/v1/components/dialog/dialog.js +29 -0
  64. package/dist/v1/components/dialog/dialog.js.map +1 -0
  65. package/dist/v1/components/dialog/dialog.module.css.cjs +8 -0
  66. package/dist/v1/components/dialog/dialog.module.css.cjs.map +1 -0
  67. package/dist/v1/components/dialog/dialog.module.css.js +4 -0
  68. package/dist/v1/components/dialog/dialog.module.css.js.map +1 -0
  69. package/dist/v1/components/dialog/index.d.ts +2 -0
  70. package/dist/v1/components/dialog/index.d.ts.map +1 -0
  71. package/dist/v1/components/flex/flex.cjs +9 -0
  72. package/dist/v1/components/flex/flex.cjs.map +1 -1
  73. package/dist/v1/components/flex/flex.d.ts +1 -1
  74. package/dist/v1/components/flex/flex.d.ts.map +1 -1
  75. package/dist/v1/components/flex/flex.js +9 -0
  76. package/dist/v1/components/flex/flex.js.map +1 -1
  77. package/dist/v1/components/flex/flex.module.css.cjs +1 -1
  78. package/dist/v1/components/flex/flex.module.css.js +1 -1
  79. package/dist/v1/components/icon-button/icon-button.cjs +1 -1
  80. package/dist/v1/components/icon-button/icon-button.cjs.map +1 -1
  81. package/dist/v1/components/icon-button/icon-button.d.ts +1 -2
  82. package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
  83. package/dist/v1/components/icon-button/icon-button.js +1 -1
  84. package/dist/v1/components/icon-button/icon-button.js.map +1 -1
  85. package/dist/v1/components/input-field/input-field.module.css.cjs +1 -1
  86. package/dist/v1/components/input-field/input-field.module.css.js +1 -1
  87. package/dist/v1/components/select/select.cjs +5 -5
  88. package/dist/v1/components/select/select.cjs.map +1 -1
  89. package/dist/v1/components/select/select.d.ts +12 -1
  90. package/dist/v1/components/select/select.d.ts.map +1 -1
  91. package/dist/v1/components/select/select.js +5 -5
  92. package/dist/v1/components/select/select.js.map +1 -1
  93. package/dist/v1/components/select/select.module.css.cjs +1 -1
  94. package/dist/v1/components/select/select.module.css.js +1 -1
  95. package/dist/v1/components/sheet/index.d.ts +2 -0
  96. package/dist/v1/components/sheet/index.d.ts.map +1 -0
  97. package/dist/v1/components/sheet/sheet.cjs +48 -0
  98. package/dist/v1/components/sheet/sheet.cjs.map +1 -0
  99. package/dist/v1/components/sheet/sheet.d.ts +35 -0
  100. package/dist/v1/components/sheet/sheet.d.ts.map +1 -0
  101. package/dist/v1/components/sheet/sheet.js +43 -0
  102. package/dist/v1/components/sheet/sheet.js.map +1 -0
  103. package/dist/v1/components/sheet/sheet.module.css.cjs +8 -0
  104. package/dist/v1/components/sheet/sheet.module.css.cjs.map +1 -0
  105. package/dist/v1/components/sheet/sheet.module.css.js +4 -0
  106. package/dist/v1/components/sheet/sheet.module.css.js.map +1 -0
  107. package/dist/v1/components/table/index.d.ts +2 -0
  108. package/dist/v1/components/table/index.d.ts.map +1 -0
  109. package/dist/v1/components/table/table.cjs +44 -0
  110. package/dist/v1/components/table/table.cjs.map +1 -0
  111. package/dist/v1/components/table/table.d.ts +30 -0
  112. package/dist/v1/components/table/table.d.ts.map +1 -0
  113. package/dist/v1/components/table/table.js +42 -0
  114. package/dist/v1/components/table/table.js.map +1 -0
  115. package/dist/v1/components/table/table.module.css.cjs +8 -0
  116. package/dist/v1/components/table/table.module.css.cjs.map +1 -0
  117. package/dist/v1/components/table/table.module.css.js +4 -0
  118. package/dist/v1/components/table/table.module.css.js.map +1 -0
  119. package/dist/v1/components/tooltip/tooltip.cjs +3 -2
  120. package/dist/v1/components/tooltip/tooltip.cjs.map +1 -1
  121. package/dist/v1/components/tooltip/tooltip.d.ts +8 -2
  122. package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
  123. package/dist/v1/components/tooltip/tooltip.js +3 -2
  124. package/dist/v1/components/tooltip/tooltip.js.map +1 -1
  125. package/dist/v1/index.cjs +10 -0
  126. package/dist/v1/index.cjs.map +1 -1
  127. package/dist/v1/index.d.ts +5 -0
  128. package/dist/v1/index.d.ts.map +1 -1
  129. package/dist/v1/index.js +5 -0
  130. package/dist/v1/index.js.map +1 -1
  131. package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.cjs +11 -0
  132. package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.cjs.map +1 -0
  133. package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.js +9 -0
  134. package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.js.map +1 -0
  135. package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.cjs +30 -0
  136. package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.cjs.map +1 -0
  137. package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.js +27 -0
  138. package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.js.map +1 -0
  139. package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.cjs +103 -0
  140. package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.cjs.map +1 -0
  141. package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.js +101 -0
  142. package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.js.map +1 -0
  143. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.cjs +224 -0
  144. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.cjs.map +1 -0
  145. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.js +214 -0
  146. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.js.map +1 -0
  147. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.cjs +298 -0
  148. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -0
  149. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js +280 -0
  150. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  151. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.cjs +235 -0
  152. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.cjs.map +1 -0
  153. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js +233 -0
  154. package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js.map +1 -0
  155. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.cjs +32 -0
  156. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.cjs.map +1 -0
  157. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.js +30 -0
  158. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.js.map +1 -0
  159. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.cjs +254 -0
  160. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.cjs.map +1 -0
  161. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.js +252 -0
  162. package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.js.map +1 -0
  163. package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.cjs +40 -0
  164. package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.cjs.map +1 -0
  165. package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.js +19 -0
  166. package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.js.map +1 -0
  167. package/dist/v1/node_modules/.pnpm/@radix-ui_react-menu@2.0.5_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.js +2 -2
  168. package/dist/v1/node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popover/dist/index.js +2 -2
  169. package/dist/v1/node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
  170. package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.cjs +17 -0
  171. package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.cjs.map +1 -0
  172. package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.js +15 -0
  173. package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.js.map +1 -0
  174. package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.cjs +133 -0
  175. package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.cjs.map +1 -0
  176. package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.js +131 -0
  177. package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.js.map +1 -0
  178. package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs +88 -0
  179. package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs.map +1 -0
  180. package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js +85 -0
  181. package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js.map +1 -0
  182. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs +82 -0
  183. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs.map +1 -0
  184. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js +79 -0
  185. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js.map +1 -0
  186. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.cjs +21 -0
  187. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.cjs.map +1 -0
  188. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js +19 -0
  189. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js.map +1 -0
  190. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.cjs +50 -0
  191. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.cjs.map +1 -0
  192. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js +48 -0
  193. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js.map +1 -0
  194. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.cjs +23 -0
  195. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.cjs.map +1 -0
  196. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js +21 -0
  197. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js.map +1 -0
  198. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.cjs +14 -0
  199. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.cjs.map +1 -0
  200. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js +12 -0
  201. package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js.map +1 -0
  202. package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.cjs +39 -0
  203. package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.cjs.map +1 -0
  204. package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.js +8 -0
  205. package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.js.map +1 -0
  206. package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.cjs +146 -0
  207. package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.cjs.map +1 -0
  208. package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js +142 -0
  209. package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js.map +1 -0
  210. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +34 -0
  211. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -0
  212. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  213. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  214. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +169 -0
  215. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -0
  216. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +146 -0
  217. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  218. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +60 -0
  219. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -0
  220. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  221. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  222. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +24 -0
  223. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -0
  224. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  225. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  226. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +100 -0
  227. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -0
  228. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +97 -0
  229. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  230. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +8 -0
  231. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -0
  232. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  233. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  234. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +12 -0
  235. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -0
  236. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  237. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  238. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +2 -2
  239. package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +2 -2
  240. package/dist/v1/style.css +1 -1
  241. package/package.json +1 -1
@@ -37,6 +37,9 @@ const CommandShortcut = ({ className, ...props }) => {
37
37
  return jsxRuntime.jsxRuntimeExports.jsx("span", { className: shortcut({ className }), ...props });
38
38
  };
39
39
  CommandShortcut.displayName = "CommandShortcut";
40
+ /*
41
+ * @deprecated Use Command from @raystack/apsara/v1 instead.
42
+ */
40
43
  const Command = Object.assign(CommandRoot, {
41
44
  Dialog: CommandDialog,
42
45
  Input: CommandInput,
@@ -1 +1 @@
1
- {"version":3,"file":"command.cjs","sources":["../../command/command.tsx"],"sourcesContent":["import { DialogProps } from \"@radix-ui/react-dialog\";\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport React from \"react\";\nimport styles from \"./command.module.css\";\n\nimport { cva } from \"class-variance-authority\";\nimport { Dialog } from \"~/dialog\";\nimport { Flex } from \"~/flex\";\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: \"hidden\", padding: \"0\" }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align=\"center\"\n gap=\"small\"\n cmdk-input-wrapper=\"\"\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator,\n});\n"],"names":["cva","styles","_jsx","CommandPrimitive","Dialog","_jsxs","Flex","MagnifyingGlassIcon"],"mappings":";;;;;;;;;;;AAUA,MAAM,OAAO,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,gCAAC,CAAAC,aAAgB,IAAC,GAAG,EAAE,GAAG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AAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,SAAS,EAAE,gBAAgB;AAC5B,CAAA;;;;"}
1
+ {"version":3,"file":"command.cjs","sources":["../../command/command.tsx"],"sourcesContent":["import { DialogProps } from \"@radix-ui/react-dialog\";\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport React from \"react\";\nimport styles from \"./command.module.css\";\n\nimport { cva } from \"class-variance-authority\";\nimport { Dialog } from \"~/dialog\";\nimport { Flex } from \"~/flex\";\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: \"hidden\", padding: \"0\" }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align=\"center\"\n gap=\"small\"\n cmdk-input-wrapper=\"\"\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\n/*\n * @deprecated Use Command from @raystack/apsara/v1 instead.\n */\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator,\n});\n"],"names":["cva","styles","_jsx","CommandPrimitive","Dialog","_jsxs","Flex","MagnifyingGlassIcon"],"mappings":";;;;;;;;;;;AAUA,MAAM,OAAO,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,gCAAC,CAAAC,aAAgB,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAAM,KAAK,EAAI,CAAA,CAC7E,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAGA,aAAgB,CAAC,WAAW,CAAC;AAIvD,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAsB,KAAI;AACnE,IAAA,QACED,gCAAC,CAAAE,aAAM,EAAK,EAAA,GAAA,KAAK,YACfF,gCAAC,CAAAE,aAAM,CAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAA,QAAA,EACzDF,gCAAC,CAAA,OAAO,IAAC,SAAS,EAAED,sBAAM,CAAC,aAAa,EAAG,QAAA,EAAA,QAAQ,GAAW,EAC/C,CAAA,EAAA,CACV,EACT;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAGD,WAAG,CAACC,sBAAM,CAAC,KAAK,CAAC,CAAC;AAChC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BI,iCAAA,CAAC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AI,CAAC,WAAW,CAAC;AAE5D,MAAM,QAAQ,GAAGH,WAAG,CAACC,sBAAM,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,eAAe,GAAG,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EAC8B,KAAI;AAC1C,IAAA,OAAOC,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAAM,KAAK,EAAA,CAAI,CAAC;AACjE,CAAC,CAAC;AACF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD;;AAEG;MACU,OAAO,GAAQ,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AACrD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,SAAS,EAAE,gBAAgB;AAC5B,CAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../command/command.tsx"],"names":[],"mappings":"AAsHA,eAAO,MAAM,OAAO,EAAE,GASpB,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../command/command.tsx"],"names":[],"mappings":"AAyHA,eAAO,MAAM,OAAO,EAAE,GASpB,CAAC"}
@@ -35,6 +35,9 @@ const CommandShortcut = ({ className, ...props }) => {
35
35
  return jsxRuntimeExports.jsx("span", { className: shortcut({ className }), ...props });
36
36
  };
37
37
  CommandShortcut.displayName = "CommandShortcut";
38
+ /*
39
+ * @deprecated Use Command from @raystack/apsara/v1 instead.
40
+ */
38
41
  const Command = Object.assign(CommandRoot, {
39
42
  Dialog: CommandDialog,
40
43
  Input: CommandInput,
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sources":["../../command/command.tsx"],"sourcesContent":["import { DialogProps } from \"@radix-ui/react-dialog\";\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport React from \"react\";\nimport styles from \"./command.module.css\";\n\nimport { cva } from \"class-variance-authority\";\nimport { Dialog } from \"~/dialog\";\nimport { Flex } from \"~/flex\";\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: \"hidden\", padding: \"0\" }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align=\"center\"\n gap=\"small\"\n cmdk-input-wrapper=\"\"\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator,\n});\n"],"names":["React","_jsx","CommandPrimitive","_jsxs"],"mappings":";;;;;;;;;AAUA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,C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CAAC,WAAW,GAAG,iBAAiB,CAAC;MAEnC,OAAO,GAAQ,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AACrD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,SAAS,EAAE,gBAAgB;AAC5B,CAAA;;;;"}
1
+ {"version":3,"file":"command.js","sources":["../../command/command.tsx"],"sourcesContent":["import { DialogProps } from \"@radix-ui/react-dialog\";\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport React from \"react\";\nimport styles from \"./command.module.css\";\n\nimport { cva } from \"class-variance-authority\";\nimport { Dialog } from \"~/dialog\";\nimport { Flex } from \"~/flex\";\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: \"hidden\", padding: \"0\" }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align=\"center\"\n gap=\"small\"\n cmdk-input-wrapper=\"\"\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\n/*\n * @deprecated Use Command from @raystack/apsara/v1 instead.\n */\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator,\n});\n"],"names":["React","_jsx","CommandPrimitive","_jsxs"],"mappings":";;;;;;;;;AAUA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpC,MAAM,WAAW,GAAGA,cAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,qBAAC,CAAAC,EAAgB,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAAM,KAAK,EAAI,CAAA,CAC7E,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAGA,EAAgB,CAAC,WAAW,CAAC;AAIvD,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAsB,KAAI;AACnE,IAAA,QACED,qBAAC,CAAA,MAAM,EAAK,EAAA,GAAA,KAAK,YACfA,qBAAC,CAAA,MAAM,CAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAA,QAAA,EACzDA,qBAAC,CAAA,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,aAAa,EAAG,QAAA,EAAA,QAAQ,GAAW,EAC/C,CAAA,EAAA,CACV,EACT;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChC,MAAM,YAAY,GAA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,GAAM,KAAK,EAAI,CAAA,CAC/E,CAAC,CAAC;AAEH,WAAW,CAAC,WAAW,GAAGA,EAAgB,CAAC,IAAI,CAAC,WAAW,CAAC;AAE5D,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,eAAe,GAAG,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EAC8B,KAAI;AAC1C,IAAA,OAAOD,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAAM,KAAK,EAAA,CAAI,CAAC;AACjE,CAAC,CAAC;AACF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD;;AAEG;MACU,OAAO,GAAQ,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AACrD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,SAAS,EAAE,gBAAgB;AAC5B,CAAA;;;;"}
@@ -7,7 +7,13 @@ var index$1 = require('../node_modules/.pnpm/class-variance-authority@0.7.1/node
7
7
  var React = require('react');
8
8
  var dialog_module = require('./dialog.module.css.cjs');
9
9
 
10
+ /*
11
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
12
+ */
10
13
  const dialogContent = index$1.cva(dialog_module.default.dialogContent);
14
+ /*
15
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
16
+ */
11
17
  const DialogContent = React.forwardRef(({ className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props }, forwardedRef) => {
12
18
  return (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(Overlay, { className: overlayClassname, style: overlayStyle, blur: overlayBlur, children: jsxRuntime.jsxRuntimeExports.jsxs(index.Content, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntime.jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.Cross1Icon, {}) }))] }) }) }));
13
19
  });
@@ -21,9 +27,15 @@ const overlay = index$1.cva(dialog_module.default.overlay, {
21
27
  const Overlay = React.forwardRef(({ className, blur, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Overlay, { ref: ref, className: overlay({ className, blur }), ...props })));
22
28
  Overlay.displayName = index.Overlay.displayName;
23
29
  const close = index$1.cva(dialog_module.default.close);
30
+ /*
31
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
32
+ */
24
33
  function CloseButton({ children, className, ...props }) {
25
34
  return (jsxRuntime.jsxRuntimeExports.jsx(index.Close, { className: close({ className }), ...props, children: children }));
26
35
  }
36
+ /*
37
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
38
+ */
27
39
  const Dialog = Object.assign(index.Root, {
28
40
  Trigger: index.Trigger,
29
41
  Content: DialogContent,
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.cjs","sources":["../../dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./dialog.module.css\";\n\nconst dialogContent = cva(styles.dialogContent);\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof dialogContent> {}\n\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & {\n close?: boolean;\n overlayStyle?: React.CSSProperties;\n overlayClassname?: string;\n overlayBlur?: boolean;\n }\n>(\n (\n { className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props },\n forwardedRef\n ) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay className={overlayClassname} style={overlayStyle} blur={overlayBlur}>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={dialogContent({ className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n }\n);\n\nconst overlay = cva(styles.overlay, {\n variants: {\n blur: {\n true: styles.overlayBlur,\n },\n },\n});\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, blur, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className, blur })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\nexport const Dialog = Object.assign(DialogPrimitive.Root, {\n Trigger: DialogPrimitive.Trigger,\n Content: DialogContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["cva","styles","forwardRef","_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","Cross1Icon","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;;;AAYA,MAAM,aAAa,GAAGA,WAAG,CAACC,qBAAM,CAAC,aAAa,CAAC,CAAC;AAMnC,MAAA,aAAa,GAAGC,gBAAU,C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C;AAE1B,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACS,EAAA;IACjB,QACEE,iCAACM,WAAqB,EAAC,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YAC9D,QAAQ,EAAA,CACa,EACxB;AACJ,CAAC;AAEY,MAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAACC,UAAoB,EAAE;IACxD,OAAO,EAAEC,aAAuB;AAChC,IAAA,OAAO,EAAE,aAAa;IACtB,KAAK,EAAEF,WAAqB;IAC5B,KAAK,EAAEG,WAAqB;IAC5B,WAAW,EAAEC,iBAA2B;AACzC,CAAA;;;;;;"}
1
+ {"version":3,"file":"dialog.cjs","sources":["../../dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./dialog.module.css\";\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nconst dialogContent = cva(styles.dialogContent);\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof dialogContent> {}\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & {\n close?: boolean;\n overlayStyle?: React.CSSProperties;\n overlayClassname?: string;\n overlayBlur?: boolean;\n }\n>(\n (\n { className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props },\n forwardedRef\n ) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay className={overlayClassname} style={overlayStyle} blur={overlayBlur}>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={dialogContent({ className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n }\n);\n\nconst overlay = cva(styles.overlay, {\n variants: {\n blur: {\n true: styles.overlayBlur,\n },\n },\n});\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, blur, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className, blur })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport const Dialog = Object.assign(DialogPrimitive.Root, {\n Trigger: DialogPrimitive.Trigger,\n Content: DialogContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["cva","styles","forwardRef","_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","Cross1Icon","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;;;AAYA;;AAEG;AACH,MAAM,aAAa,GAAGA,WAAG,CAACC,qBAAM,CAAC,aAAa,CAAC,CAAC;AAShD;;AAEG;AACU,MAAA,aA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GAAG,KAAK,EACT,EAAE,gBAAgB,2CAMlB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;CAMjB,CAAC"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,wBAAwB,EAGzB,MAAM,OAAO,CAAC;AAOf,QAAA,MAAM,aAAa,yFAA4B,CAAC;AAKhD,MAAM,WAAW,kBACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9D,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAKzC,eAAO,MAAM,aAAa;;;;;kDAgCzB,CAAC;AAEF,QAAA,MAAM,OAAO;;mFAMX,CAAC;AAKH,MAAM,WAAW,YACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9D,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAgBnC,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAKrE,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAMlB;AAKD,eAAO,MAAM,MAAM;;;;;;;;;;;CAMjB,CAAC"}
@@ -5,7 +5,13 @@ import { cva } from '../node_modules/.pnpm/class-variance-authority@0.7.1/node_m
5
5
  import { forwardRef } from 'react';
6
6
  import styles from './dialog.module.css.js';
7
7
 
8
+ /*
9
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
10
+ */
8
11
  const dialogContent = cva(styles.dialogContent);
12
+ /*
13
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
14
+ */
9
15
  const DialogContent = forwardRef(({ className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props }, forwardedRef) => {
10
16
  return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$602eac185826482c, { children: jsxRuntimeExports.jsx(Overlay, { className: overlayClassname, style: overlayStyle, blur: overlayBlur, children: jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] }) }) }));
11
17
  });
@@ -19,9 +25,15 @@ const overlay = cva(styles.overlay, {
19
25
  const Overlay = forwardRef(({ className, blur, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay({ className, blur }), ...props })));
20
26
  Overlay.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
21
27
  const close = cva(styles.close);
28
+ /*
29
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
30
+ */
22
31
  function CloseButton({ children, className, ...props }) {
23
32
  return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close({ className }), ...props, children: children }));
24
33
  }
34
+ /*
35
+ * @deprecated Use Dialog from @raystack/apsara/v1 instead.
36
+ */
25
37
  const Dialog = Object.assign($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, {
26
38
  Trigger: $5d3850c4d0b4e6c7$export$41fb9f06171c75f4,
27
39
  Content: DialogContent,
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./dialog.module.css\";\n\nconst dialogContent = cva(styles.dialogContent);\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof dialogContent> {}\n\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & {\n close?: boolean;\n overlayStyle?: React.CSSProperties;\n overlayClassname?: string;\n overlayBlur?: boolean;\n }\n>(\n (\n { className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props },\n forwardedRef\n ) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay className={overlayClassname} style={overlayStyle} blur={overlayBlur}>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={dialogContent({ className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n }\n);\n\nconst overlay = cva(styles.overlay, {\n variants: {\n blur: {\n true: styles.overlayBlur,\n },\n },\n});\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, blur, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className, blur })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\nexport const Dialog = Object.assign(DialogPrimitive.Root, {\n Trigger: DialogPrimitive.Trigger,\n Content: DialogContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","DialogPrimitive.Overlay","DialogPrimitive.Close","D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AAA,GACnC,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AAEH,OAAO,CAAC,WAAW,GAAGA,yCAAuB,CAAC,WAAW,CAAC;AAE1D,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAE1B,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACS,EAAA;IACjB,QACEJ,sBAACK,yCAAqB,EAAC,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YAC9D,QAAQ,EAAA,CACa,EACxB;AACJ,CAAC;AAEY,MAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAACC,yCAAoB,EAAE;IACxD,OAAO,EAAEC,yCAAuB;AAChC,IAAA,OAAO,EAAE,aAAa;IACtB,KAAK,EAAEF,yCAAqB;IAC5B,KAAK,EAAEG,yCAAqB;IAC5B,WAAW,EAAEC,yCAA2B;AACzC,CAAA;;;;"}
1
+ {"version":3,"file":"dialog.js","sources":["../../dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./dialog.module.css\";\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nconst dialogContent = cva(styles.dialogContent);\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof dialogContent> {}\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & {\n close?: boolean;\n overlayStyle?: React.CSSProperties;\n overlayClassname?: string;\n overlayBlur?: boolean;\n }\n>(\n (\n { className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props },\n forwardedRef\n ) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay className={overlayClassname} style={overlayStyle} blur={overlayBlur}>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={dialogContent({ className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n }\n);\n\nconst overlay = cva(styles.overlay, {\n variants: {\n blur: {\n true: styles.overlayBlur,\n },\n },\n});\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, blur, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className, blur })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\n/*\n * @deprecated Use Dialog from @raystack/apsara/v1 instead.\n */\nexport const Dialog = Object.assign(DialogPrimitive.Root, {\n Trigger: DialogPrimitive.Trigger,\n Content: DialogContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimit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EACT,CAAA,CACH,CAAC,CAAC;AAEH,OAAO,CAAC,WAAW,GAAGA,yCAAuB,CAAC,WAAW,CAAC;AAE1D,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAGhC;;AAEG;AACG,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACS,EAAA;IACjB,QACEJ,sBAACK,yCAAqB,EAAC,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YAC9D,QAAQ,EAAA,CACa,EACxB;AACJ,CAAC;AAED;;AAEG;AACU,MAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAACC,yCAAoB,EAAE;IACxD,OAAO,EAAEC,yCAAuB;AAChC,IAAA,OAAO,EAAE,aAAa;IACtB,KAAK,EAAEF,yCAAqB;IAC5B,KAAK,EAAEG,yCAAqB;IAC5B,WAAW,EAAEC,yCAA2B;AACzC,CAAA;;;;"}
@@ -49,6 +49,9 @@ SelectItem.displayName = index.Item.displayName;
49
49
  const separator = index$1.cva(select_module.default.separator);
50
50
  const SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Separator, { ref: ref, className: separator({ className }), ...props })));
51
51
  SelectSeparator.displayName = index.Separator.displayName;
52
+ /*
53
+ * @deprecated Use Select from `@raystack/apsara/v1` instead.
54
+ */
52
55
  const Select = Object.assign(index.Root, {
53
56
  Group: index.Group,
54
57
  Value: index.Value,
@@ -1 +1 @@
1
- {"version":3,"file":"select.cjs","sources":["../../select/select.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { Text } from \"../text\";\nimport styles from \"./select.module.css\";\nimport { TextProps } from \"~/text/text\";\n\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-sm\"],\n medium: styles[\"trigger-md\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n },\n});\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n React.PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n }\n>(({ size, className, children, iconProps = {}, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, className })}\n {...props}\n >\n {children}\n\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className={styles.triggerIcon} {...iconProps} />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst content = cva(styles.content);\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={content({ className })}\n position={position}\n {...props}\n >\n {children}\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextProps;\n }\n>(({ className, textProps = {}, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n >\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst separator = cva(styles.separator);\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport const Select = Object.assign(SelectPrimitive.Root, {\n Group: SelectPrimitive.Group,\n Value: SelectPrimitive.Value,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectSeparator,\n});\n"],"names":["cva","styles","React","_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","ChevronDownIcon","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Item","SelectPrimitive.ItemText","Text","SelectPrimitive.Separator","SelectPrimitive.Root","SelectPrimitive.Group","SelectPrimitive.Value","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,OAAO,GAAGA,WAAG,CAACC,qBAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,qBAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,MAAM,EAAEA,qBAAM,CAAC,YAAY,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,QAAQ;AACf,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,aAAa,GAAGC,gBAAK,CAAC,UAAU,CAMpC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC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AG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,EAC9B,GAAA,KAAK,EAET,QAAA,EAAAL,gCAAA,CAACM,cAAwB,EAAA,EAAA,QAAA,EACvBN,gCAAC,CAAAO,SAAI,EAAK,EAAA,GAAA,SAAS,EAAG,QAAA,EAAA,QAAQ,EAAQ,CAAA,EAAA,CACb,EACN,CAAA,CACxB,CAAC,CAAC;AACH,UAAU,CAAC,WAAW,GAAGF,UAAoB,CAAC,WAAW,CAAC;AAE1D,MAAM,SAAS,GAAGV,WAAG,CAACC,qBAAM,CAAC,SAAS,CAAC,CAAC;AACxC,MAAM,eAAe,GAAGC,gBAAK,CAAC,UAAU,CAGtC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BG,gCAAA,CAACQ,eAAyB,EACxB,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AACH,eAAe,CAAC,WAAW,GAAGA,eAAyB,CAAC,WAAW,CAAC;AAEvD,MAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAACC,UAAoB,EAAE;IACxD,KAAK,EAAEC,WAAqB;IAC5B,KAAK,EAAEC,WAAqB;IAC5B,cAAc,EAAEC,sBAAgC;IAChD,gBAAgB,EAAEA,sBAAgC;IAClD,QAAQ,EAAEC,cAAwB;AAClC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,SAAS,EAAE,eAAe;AAC3B,CAAA;;;;"}
1
+ {"version":3,"file":"select.cjs","sources":["../../select/select.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { Text } from \"../text\";\nimport styles from \"./select.module.css\";\nimport { TextProps } from \"~/text/text\";\n\n/*\n * @deprecated Use Select from `@raystack/apsara/v1` instead.\n */\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-sm\"],\n medium: styles[\"trigger-md\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n },\n});\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n React.PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n }\n>(({ size, className, children, iconProps = {}, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, className })}\n {...props}\n >\n {children}\n\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className={styles.triggerIcon} {...iconProps} />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst content = cva(styles.content);\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={content({ className })}\n position={position}\n {...props}\n >\n {children}\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextProps;\n }\n>(({ className, textProps = {}, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n >\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst separator = cva(styles.separator);\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/*\n * @deprecated Use Select from `@raystack/apsara/v1` instead.\n */\nexport const Select = Object.assign(SelectPrimitive.Root, {\n Group: SelectPrimitive.Group,\n Value: SelectPrimitive.Value,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectSeparator,\n});\n"],"names":["cva","styles","React","_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","ChevronDownIcon","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Item","SelectPrimitive.ItemText","Text","SelectPrimitive.Separator","SelectPrimitive.Root","SelectPrimitive.Group","SelectPrimitive.Value","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAM,OAAO,GAAGA,WAAG,CAACC,qBAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,qBAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,MAAM,EAAEA,qBAAM,CAAC,YAAY,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,QAAQ;AACf,KAAA;AACF,CAAA,CAA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
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../select/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAsFD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../select/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAyFD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC"}
@@ -28,6 +28,9 @@ SelectItem.displayName = Item.displayName;
28
28
  const separator = cva(styles.separator);
29
29
  const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Separator, { ref: ref, className: separator({ className }), ...props })));
30
30
  SelectSeparator.displayName = Separator.displayName;
31
+ /*
32
+ * @deprecated Use Select from `@raystack/apsara/v1` instead.
33
+ */
31
34
  const Select = Object.assign(Root2, {
32
35
  Group: Group,
33
36
  Value: Value,
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../select/select.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { Text } from \"../text\";\nimport styles from \"./select.module.css\";\nimport { TextProps } from \"~/text/text\";\n\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-sm\"],\n medium: styles[\"trigger-md\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n },\n});\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n React.PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n }\n>(({ size, className, children, iconProps = {}, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, className })}\n {...props}\n >\n {children}\n\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className={styles.triggerIcon} {...iconProps} />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst content = cva(styles.content);\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={content({ className })}\n position={position}\n {...props}\n >\n {children}\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextProps;\n }\n>(({ className, textProps = {}, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n >\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst separator = cva(styles.separator);\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport const Select = Object.assign(SelectPrimitive.Root, {\n Group: SelectPrimitive.Group,\n Value: SelectPrimitive.Value,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectSeparator,\n});\n"],"names":["_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Item","SelectPrimitive.ItemText","SelectPrimitive.Separator","SelectPrimitive.Root","SelectPrimitive.Group","SelectPrimitive.Value","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport"],"mappings":";;;;;;;;AAaA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;A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AAC3B,CAAA;;;;"}
1
+ {"version":3,"file":"select.js","sources":["../../select/select.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { Text } from \"../text\";\nimport styles from \"./select.module.css\";\nimport { TextProps } from \"~/text/text\";\n\n/*\n * @deprecated Use Select from `@raystack/apsara/v1` instead.\n */\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-sm\"],\n medium: styles[\"trigger-md\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n },\n});\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n React.PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n }\n>(({ size, className, children, iconProps = {}, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, className })}\n {...props}\n >\n {children}\n\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className={styles.triggerIcon} {...iconProps} />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst content = cva(styles.content);\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={content({ className })}\n position={position}\n {...props}\n >\n {children}\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextProps;\n }\n>(({ className, textProps = {}, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n >\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst separator = cva(styles.separator);\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/*\n * @deprecated Use Select from `@raystack/apsara/v1` instead.\n */\nexport const Select = Object.assign(SelectPrimitive.Root, {\n Group: SelectPrimitive.Group,\n Value: SelectPrimitive.Value,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectSeparator,\n});\n"],"names":["_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Item","SelectPrimitive.ItemText","SelectPrimitive.Separator","SelectPrimitive.Root","SelectPrimitive.Group","SelectPrimitive.Value","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport"],"mappings":";;;;;;;;AAgBA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,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aAAa;AACtB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,SAAS,EAAE,eAAe;AAC3B,CAAA;;;;"}
@@ -27,12 +27,21 @@ const overlay = index$1.cva(sheet_module.default.overlay);
27
27
  const Overlay = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Overlay, { ref: ref, className: overlay({ className }), ...props })));
28
28
  Overlay.displayName = index.Overlay.displayName;
29
29
  const close = index$1.cva(sheet_module.default.close);
30
+ /**
31
+ * @deprecated Use Sheet component from @raystack/apsara/v1 instead.
32
+ */
30
33
  function CloseButton({ children, className, ...props }) {
31
34
  return (jsxRuntime.jsxRuntimeExports.jsx(index.Close, { className: close({ className }), ...props, children: children }));
32
35
  }
36
+ /**
37
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
38
+ */
33
39
  function RootSheet({ children, ...props }) {
34
40
  return jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ...props, children: children });
35
41
  }
42
+ /**
43
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
44
+ */
36
45
  const Sheet = Object.assign(RootSheet, {
37
46
  Trigger: index.Trigger,
38
47
  Content: SheetContent,
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.cjs","sources":["../../sheet/sheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./sheet.module.css\";\n\nconst sheetContent = cva(styles.sheetContent, {\n variants: {\n side: {\n top: styles[\"sheetContent-top\"],\n bottom: styles[\"sheetContent-bottom\"],\n left: styles[\"sheetContent-left\"],\n right: styles[\"sheetContent-right\"],\n },\n },\n\n defaultVariants: {\n side: \"right\",\n },\n});\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof sheetContent> {}\n\nexport const SheetContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & { close?: boolean; children?: React.ReactNode }\n>(({ className, children, close, side, ...props }, forwardedRef) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={sheetContent({ side, className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nconst overlay = cva(styles.overlay);\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\ntype SheetProps = ComponentProps<typeof DialogPrimitive.Root>;\nexport function RootSheet({ children, ...props }: SheetProps) {\n return <DialogPrimitive.Root {...props}>{children}</DialogPrimitive.Root>;\n}\n\nexport const Sheet = Object.assign(RootSheet, {\n Trigger: DialogPrimitive.Trigger,\n Content: SheetContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["cva","styles","forwardRef","_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","Cross1Icon","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogP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AG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC7B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AAEH,OAAO,CAAC,WAAW,GAAGA,aAAuB,CAAC,WAAW,CAAC;AAE1D,MAAM,KAAK,GAAGR,WAAG,CAACC,oBAAM,CAAC,KAAK,CAAC,CAAC;AAE1B,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACS,EAAA;IACjB,QACEE,iCAACM,WAAqB,EAAC,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YAC9D,QAAQ,EAAA,CACa,EACxB;AACJ,CAAC;AAGK,SAAU,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAc,EAAA;IAC1D,OAAON,gCAAA,CAACO,UAAoB,OAAK,KAAK,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAwB,CAAC;AAC5E,CAAC;MAEY,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IAC5C,OAAO,EAAEC,aAAuB;AAChC,IAAA,OAAO,EAAE,YAAY;IACrB,KAAK,EAAEF,WAAqB;IAC5B,KAAK,EAAEG,WAAqB;IAC5B,WAAW,EAAEC,iBAA2B;AACzC,CAAA;;;;;;;"}
1
+ {"version":3,"file":"sheet.cjs","sources":["../../sheet/sheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./sheet.module.css\";\n\nconst sheetContent = cva(styles.sheetContent, {\n variants: {\n side: {\n top: styles[\"sheetContent-top\"],\n bottom: styles[\"sheetContent-bottom\"],\n left: styles[\"sheetContent-left\"],\n right: styles[\"sheetContent-right\"],\n },\n },\n\n defaultVariants: {\n side: \"right\",\n },\n});\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof sheetContent> {}\n\nexport const SheetContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & { close?: boolean; children?: React.ReactNode }\n>(({ className, children, close, side, ...props }, forwardedRef) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={sheetContent({ side, className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nconst overlay = cva(styles.overlay);\n\n/**\n * @deprecated Use Sheet props from @raystack/apsara/v1 instead.\n */\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\n\n/**\n * @deprecated Use Sheet component from @raystack/apsara/v1 instead.\n */\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\ntype SheetProps = ComponentProps<typeof DialogPrimitive.Root>;\n\n\n/**\n * @deprecated Use Sheet from @raystack/apsara/v1 instead.\n */\nexport function RootSheet({ children, ...props }: SheetProps) {\n return <DialogPrimitive.Root {...props}>{children}</DialogPrimitive.Root>;\n}\n\n\n/**\n * @deprecated Use Sheet from @raystack/apsara/v1 instead.\n */\nexport const Sheet = Object.assign(RootSheet, {\n Trigger: DialogPrimitive.Trigger,\n Content: SheetContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["cva","styles","forwardRef","_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","Cross1Icon","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;;;AAYA,MAAM,YAAY,GAAGA,WAAG,CAACC,oBAAM,CAAC,YAAY,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAEA,oBAAM,CAAC,kBAAkB,CAAC;AAC/B,YAAA,MAAM,EAAEA,oBAAM,CAAC,qBAAqB,CAAC;AACrC,YAAA,IAAI,EAAEA,oBAAM,CAAC,mBAAmB,CAAC;AACjC,YAAA,KAAK,EAAEA,oBAAM,CAAC,oBAAoB,CAAC;AACpC,SAAA;AACF,KAAA;AAED,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;MAMU,YAAY,GAAGC,gBAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,KAAI;IACjE,QACEC,iCAACC,YAAsB,EACrB,EAAA,QAAA,EAAAD,gCAAA,CAAC,OAAO,EAAA,EAAA,QAAA,EACNE,iCAAC,CAAAC,aAAuB,EAAA,EAAA,GAClB,KAAK,EACT,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,aAE3C,QAAQ,EACR,KAAK,KACJH,gCAAA,CAAC,WAAW,EACV,EAAA,QAAA,EAAAA,gCAAA,CAACI,yBAAU,EAAG,EAAA,CAAA,EAAA,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?: React.ReactNode;
12
12
  } & import("react").RefAttributes<HTMLDivElement>>;
13
13
  declare const overlay: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
14
+ /**
15
+ * @deprecated Use Sheet props from @raystack/apsara/v1 instead.
16
+ */
14
17
  export interface OverlayProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>, VariantProps<typeof overlay> {
15
18
  }
16
19
  type CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;
20
+ /**
21
+ * @deprecated Use Sheet component from @raystack/apsara/v1 instead.
22
+ */
17
23
  export declare function CloseButton({ children, className, ...props }: CloseButtonProps): import("react/jsx-runtime").JSX.Element;
18
24
  type SheetProps = ComponentProps<typeof DialogPrimitive.Root>;
25
+ /**
26
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
27
+ */
19
28
  export declare function RootSheet({ children, ...props }: SheetProps): import("react/jsx-runtime").JSX.Element;
29
+ /**
30
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
31
+ */
20
32
  export declare const Sheet: typeof RootSheet & {
21
33
  Trigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
22
34
  Content: import("react").ForwardRefExoticComponent<DialogContentProps & {
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../sheet/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,wBAAwB,EAGzB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,YAAY;;mFAahB,CAAC;AAEH,MAAM,WAAW,kBACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9D,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAExC,eAAO,MAAM,YAAY;;eAE4B,MAAM,SAAS;k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AAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAMlB;AAED,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAG9D;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAE3D;AAGD;;GAEG;AACH,eAAO,MAAM,KAAK;;;;mBA5EmC,MAAM,SAAS;;;;;CAkFlE,CAAC"}
@@ -25,12 +25,21 @@ const overlay = cva(styles.overlay);
25
25
  const Overlay = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay({ className }), ...props })));
26
26
  Overlay.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
27
27
  const close = cva(styles.close);
28
+ /**
29
+ * @deprecated Use Sheet component from @raystack/apsara/v1 instead.
30
+ */
28
31
  function CloseButton({ children, className, ...props }) {
29
32
  return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close({ className }), ...props, children: children }));
30
33
  }
34
+ /**
35
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
36
+ */
31
37
  function RootSheet({ children, ...props }) {
32
38
  return jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children: children });
33
39
  }
40
+ /**
41
+ * @deprecated Use Sheet from @raystack/apsara/v1 instead.
42
+ */
34
43
  const Sheet = Object.assign(RootSheet, {
35
44
  Trigger: $5d3850c4d0b4e6c7$export$41fb9f06171c75f4,
36
45
  Content: SheetContent,
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.js","sources":["../../sheet/sheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./sheet.module.css\";\n\nconst sheetContent = cva(styles.sheetContent, {\n variants: {\n side: {\n top: styles[\"sheetContent-top\"],\n bottom: styles[\"sheetContent-bottom\"],\n left: styles[\"sheetContent-left\"],\n right: styles[\"sheetContent-right\"],\n },\n },\n\n defaultVariants: {\n side: \"right\",\n },\n});\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof sheetContent> {}\n\nexport const SheetContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & { close?: boolean; children?: React.ReactNode }\n>(({ className, children, close, side, ...props }, forwardedRef) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={sheetContent({ side, className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nconst overlay = cva(styles.overlay);\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\ntype SheetProps = ComponentProps<typeof DialogPrimitive.Root>;\nexport function RootSheet({ children, ...props }: SheetProps) {\n return <DialogPrimitive.Root {...props}>{children}</DialogPrimitive.Root>;\n}\n\nexport const Sheet = Object.assign(RootSheet, {\n Trigger: DialogPrimitive.Trigger,\n Content: SheetContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;AAYA,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAE,MAAM,CAAC,kBAAkB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,qBAAqB,CAAC;AACrC,YAAA,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC;AACpC,SAAA;AACF,KAAA;AAED,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;MAMU,YAAY,GAAG,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,KAAI;IACjE,QACEA,sBAACC,yCAAsB,EACrB,EAAA,QAAA,EAAAD,qBAAA,CAAC,OAAO,EAAA,EAAA,QAAA,EACNE,sBAAC,CAAAC,yCAAuB,EAAA,EAAA,GAClB,KAAK,EACT,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,aAE3C,QAAQ,EACR,KAAK,KACJH,qBAAA,CAAC,WAAW,EACV,EAAA,QAAA,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sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { Cross1Icon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentProps,\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n} from \"react\";\n\nimport styles from \"./sheet.module.css\";\n\nconst sheetContent = cva(styles.sheetContent, {\n variants: {\n side: {\n top: styles[\"sheetContent-top\"],\n bottom: styles[\"sheetContent-bottom\"],\n left: styles[\"sheetContent-left\"],\n right: styles[\"sheetContent-right\"],\n },\n },\n\n defaultVariants: {\n side: \"right\",\n },\n});\n\nexport interface DialogContentProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,\n VariantProps<typeof sheetContent> {}\n\nexport const SheetContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps & { close?: boolean; children?: React.ReactNode }\n>(({ className, children, close, side, ...props }, forwardedRef) => {\n return (\n <DialogPrimitive.Portal>\n <Overlay>\n <DialogPrimitive.Content\n {...props}\n ref={forwardedRef}\n className={sheetContent({ side, className })}\n >\n {children}\n {close && (\n <CloseButton>\n <Cross1Icon />\n </CloseButton>\n )}\n </DialogPrimitive.Content>\n </Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nconst overlay = cva(styles.overlay);\n\n/**\n * @deprecated Use Sheet props from @raystack/apsara/v1 instead.\n */\nexport interface OverlayProps\n extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,\n VariantProps<typeof overlay> {}\n\nconst Overlay = forwardRef<\n ElementRef<typeof DialogPrimitive.Overlay>,\n OverlayProps\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={overlay({ className })}\n {...props}\n />\n));\n\nOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst close = cva(styles.close);\ntype CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;\n\n/**\n * @deprecated Use Sheet component from @raystack/apsara/v1 instead.\n */\nexport function CloseButton({\n children,\n className,\n ...props\n}: CloseButtonProps) {\n return (\n <DialogPrimitive.Close className={close({ className })} {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\ntype SheetProps = ComponentProps<typeof DialogPrimitive.Root>;\n\n\n/**\n * @deprecated Use Sheet from @raystack/apsara/v1 instead.\n */\nexport function RootSheet({ children, ...props }: SheetProps) {\n return <DialogPrimitive.Root {...props}>{children}</DialogPrimitive.Root>;\n}\n\n\n/**\n * @deprecated Use Sheet from @raystack/apsara/v1 instead.\n */\nexport const Sheet = Object.assign(RootSheet, {\n Trigger: DialogPrimitive.Trigger,\n Content: SheetContent,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description,\n});\n"],"names":["_jsx","DialogPrimitive.Portal","_jsxs","DialogPrimitive.Content","DialogPrimitive.Overlay","DialogPrimitive.Close","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;AAYA,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAE,MAAM,CAAC,kBAAkB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,qBAAqB,CAAC;AACrC,YAAA,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC;AACpC,SAAA;AACF,KAAA;AAED,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;MAMU,YAAY,GAAG,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,KAAI;IACjE,QACEA,sBAACC,yCAAsB,EACrB,EAAA,QAAA,EAAAD,qBAAA,CAAC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