@solace-health/ui 0.10.701 → 0.10.702

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 (215) hide show
  1. package/dist/AnimatedIcon/index.cjs +1 -1
  2. package/dist/AnimatedIcon/index.js +1 -1
  3. package/dist/BackLink/BackLink.cjs +1 -1
  4. package/dist/BackLink/BackLink.js +1 -1
  5. package/dist/Card/index.cjs +1 -1
  6. package/dist/Card/index.js +1 -1
  7. package/dist/DateDropdown/index.cjs +1 -1
  8. package/dist/DateDropdown/index.js +1 -1
  9. package/dist/DateSelectCalendar/DateSelectCalendar.cjs +1 -1
  10. package/dist/DateSelectCalendar/DateSelectCalendar.js +1 -1
  11. package/dist/Error/index.cjs +1 -1
  12. package/dist/Error/index.js +1 -1
  13. package/dist/ExpandableDrawer/index.cjs +1 -1
  14. package/dist/ExpandableDrawer/index.js +1 -1
  15. package/dist/File/index.cjs +1 -1
  16. package/dist/File/index.js +1 -1
  17. package/dist/Form/AddressSelect/index.cjs +1 -1
  18. package/dist/Form/AddressSelect/index.js +1 -1
  19. package/dist/Form/Checkbox/index.cjs +1 -1
  20. package/dist/Form/Checkbox/index.js +1 -1
  21. package/dist/Form/DateDropdown/index.cjs +1 -1
  22. package/dist/Form/DateDropdown/index.js +1 -1
  23. package/dist/Form/DateSelect/index.cjs +1 -1
  24. package/dist/Form/DateSelect/index.js +1 -1
  25. package/dist/Form/DateTextMaskInput/index.cjs +1 -1
  26. package/dist/Form/DateTextMaskInput/index.js +1 -1
  27. package/dist/Form/FileUpload/index.cjs +1 -1
  28. package/dist/Form/FileUpload/index.js +1 -1
  29. package/dist/Form/Keyword/index.cjs +1 -1
  30. package/dist/Form/Keyword/index.js +1 -1
  31. package/dist/Form/LocationSelect/index.cjs +1 -1
  32. package/dist/Form/LocationSelect/index.js +1 -1
  33. package/dist/Form/Number/index.cjs +1 -1
  34. package/dist/Form/Number/index.js +1 -1
  35. package/dist/Form/OTP/index.cjs +1 -1
  36. package/dist/Form/OTP/index.js +1 -1
  37. package/dist/Form/Radio/index.cjs +1 -1
  38. package/dist/Form/Radio/index.js +1 -1
  39. package/dist/Form/Select/index.cjs +1 -1
  40. package/dist/Form/Select/index.js +1 -1
  41. package/dist/Form/SelectMenu/index.cjs +1 -1
  42. package/dist/Form/SelectMenu/index.js +1 -1
  43. package/dist/Form/SentimentSelector/index.cjs +1 -1
  44. package/dist/Form/SentimentSelector/index.js +1 -1
  45. package/dist/Form/Signature/index.cjs +1 -1
  46. package/dist/Form/Signature/index.js +1 -1
  47. package/dist/Form/Text/index.cjs +1 -1
  48. package/dist/Form/Text/index.js +1 -1
  49. package/dist/Form/TextInput/index.cjs +1 -1
  50. package/dist/Form/TextInput/index.js +1 -1
  51. package/dist/Form/TextInput/styles.cjs +1 -1
  52. package/dist/Form/TextInput/styles.js +1 -1
  53. package/dist/Form/TextInput/text-mask/react/src/reactTextMask.cjs +1 -1
  54. package/dist/Form/TextInput/text-mask/react/src/reactTextMask.js +1 -1
  55. package/dist/Form/TimePicker/index.cjs +1 -1
  56. package/dist/Form/TimePicker/index.js +1 -1
  57. package/dist/Form/TimeSelect/index.cjs +1 -1
  58. package/dist/Form/TimeSelect/index.js +1 -1
  59. package/dist/Form/index.cjs +1 -1
  60. package/dist/Form/index.js +1 -1
  61. package/dist/Form/shared/FormInputLabel.cjs +1 -1
  62. package/dist/Form/shared/FormInputLabel.js +1 -1
  63. package/dist/Form/shared/HelpModal.cjs +1 -1
  64. package/dist/Form/shared/HelpModal.js +1 -1
  65. package/dist/IconSelector/IconSelector.cjs +1 -1
  66. package/dist/IconSelector/IconSelector.js +1 -1
  67. package/dist/Menu/ExpandIcon.cjs +1 -1
  68. package/dist/Menu/ExpandIcon.js +1 -1
  69. package/dist/Menu/index.cjs +1 -1
  70. package/dist/Menu/index.js +1 -1
  71. package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.cjs +1 -1
  72. package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.js +1 -1
  73. package/dist/Molecules/FilterPopover/index.cjs +1 -1
  74. package/dist/Molecules/FilterPopover/index.js +1 -1
  75. package/dist/NavigationMenu/ExpandIcon.cjs +1 -1
  76. package/dist/NavigationMenu/ExpandIcon.js +1 -1
  77. package/dist/NavigationMenu/index.cjs +1 -1
  78. package/dist/NavigationMenu/index.js +1 -1
  79. package/dist/NumberedProgressSteps/index.cjs +1 -1
  80. package/dist/NumberedProgressSteps/index.js +1 -1
  81. package/dist/PreviewDrawer/PreviewDrawer.cjs +1 -1
  82. package/dist/PreviewDrawer/PreviewDrawer.js +1 -1
  83. package/dist/Search/index.cjs +1 -1
  84. package/dist/Search/index.js +1 -1
  85. package/dist/SelectClient/index.cjs +1 -1
  86. package/dist/SelectClient/index.js +1 -1
  87. package/dist/SentimentSelector/index.cjs +1 -1
  88. package/dist/SentimentSelector/index.js +1 -1
  89. package/dist/SortableList/index.cjs +1 -1
  90. package/dist/SortableList/index.js +1 -1
  91. package/dist/TimeSelect/styles.cjs +4 -4
  92. package/dist/TimeSelect/styles.js +1 -1
  93. package/dist/assets/styles/tailwindTheme.css +7 -121
  94. package/dist/{chunk-HCMJMPCZ.cjs → chunk-2KZYFEKJ.cjs} +3 -3
  95. package/dist/{chunk-HCMJMPCZ.cjs.map → chunk-2KZYFEKJ.cjs.map} +1 -1
  96. package/dist/{chunk-LRWKN5IL.js → chunk-2MZHFLKQ.js} +2 -2
  97. package/dist/{chunk-LRWKN5IL.js.map → chunk-2MZHFLKQ.js.map} +1 -1
  98. package/dist/{chunk-7FRM2LZL.cjs → chunk-3HZOTBKZ.cjs} +2 -2
  99. package/dist/{chunk-7FRM2LZL.cjs.map → chunk-3HZOTBKZ.cjs.map} +1 -1
  100. package/dist/{chunk-SHU3LFW5.cjs → chunk-3HZZEZMH.cjs} +2 -2
  101. package/dist/{chunk-SHU3LFW5.cjs.map → chunk-3HZZEZMH.cjs.map} +1 -1
  102. package/dist/{chunk-LKF3BL45.js → chunk-5Q3THPJD.js} +2 -2
  103. package/dist/{chunk-LKF3BL45.js.map → chunk-5Q3THPJD.js.map} +1 -1
  104. package/dist/{chunk-APZMVLOQ.js → chunk-64BW3WOW.js} +3 -3
  105. package/dist/{chunk-APZMVLOQ.js.map → chunk-64BW3WOW.js.map} +1 -1
  106. package/dist/{chunk-DD5A5VMZ.cjs → chunk-7BHLEW4C.cjs} +2 -2
  107. package/dist/chunk-7BHLEW4C.cjs.map +1 -0
  108. package/dist/chunk-7FDSRATF.cjs +2 -0
  109. package/dist/chunk-7FDSRATF.cjs.map +1 -0
  110. package/dist/{chunk-HBGVAFZR.cjs → chunk-7TN7R7BF.cjs} +2 -2
  111. package/dist/{chunk-HBGVAFZR.cjs.map → chunk-7TN7R7BF.cjs.map} +1 -1
  112. package/dist/chunk-7YDYKTYH.js +2 -0
  113. package/dist/{chunk-C4QT2REU.js.map → chunk-7YDYKTYH.js.map} +1 -1
  114. package/dist/chunk-BMEIGKX6.js +2 -0
  115. package/dist/{chunk-CPEWTLAE.js.map → chunk-BMEIGKX6.js.map} +1 -1
  116. package/dist/{chunk-QQCG3BDP.cjs → chunk-CB6G6OIH.cjs} +2 -2
  117. package/dist/{chunk-QQCG3BDP.cjs.map → chunk-CB6G6OIH.cjs.map} +1 -1
  118. package/dist/chunk-CDHIFFS4.js +2 -0
  119. package/dist/chunk-CDHIFFS4.js.map +1 -0
  120. package/dist/{chunk-2J5WMSEN.js → chunk-D3QC25MI.js} +2 -2
  121. package/dist/{chunk-2J5WMSEN.js.map → chunk-D3QC25MI.js.map} +1 -1
  122. package/dist/{chunk-W7WDYG5N.js → chunk-DIHMEGMQ.js} +2 -2
  123. package/dist/{chunk-W7WDYG5N.js.map → chunk-DIHMEGMQ.js.map} +1 -1
  124. package/dist/{chunk-ZTDSRJUJ.cjs → chunk-EJVR3XRG.cjs} +2 -2
  125. package/dist/{chunk-ZTDSRJUJ.cjs.map → chunk-EJVR3XRG.cjs.map} +1 -1
  126. package/dist/chunk-F7ZNHD4C.js +2 -0
  127. package/dist/chunk-F7ZNHD4C.js.map +1 -0
  128. package/dist/{chunk-SKHANIYK.js → chunk-GY2SQISF.js} +2 -2
  129. package/dist/chunk-GY2SQISF.js.map +1 -0
  130. package/dist/{chunk-NYCMLUKP.cjs → chunk-GZVOKBML.cjs} +2 -2
  131. package/dist/{chunk-NYCMLUKP.cjs.map → chunk-GZVOKBML.cjs.map} +1 -1
  132. package/dist/chunk-HG62Z4MZ.cjs +2 -0
  133. package/dist/{chunk-LQ5UGPEI.cjs.map → chunk-HG62Z4MZ.cjs.map} +1 -1
  134. package/dist/{chunk-LFYJWXJ6.cjs → chunk-HGYAKQA3.cjs} +4 -4
  135. package/dist/{chunk-LFYJWXJ6.cjs.map → chunk-HGYAKQA3.cjs.map} +1 -1
  136. package/dist/{chunk-7OKSLNLM.js → chunk-HLHHTNKY.js} +3 -3
  137. package/dist/{chunk-7OKSLNLM.js.map → chunk-HLHHTNKY.js.map} +1 -1
  138. package/dist/{chunk-XTHGIU5X.cjs → chunk-ILEND5TM.cjs} +2 -2
  139. package/dist/{chunk-XTHGIU5X.cjs.map → chunk-ILEND5TM.cjs.map} +1 -1
  140. package/dist/{chunk-4R2KHTSG.cjs → chunk-LMBA2JFO.cjs} +2 -2
  141. package/dist/{chunk-4R2KHTSG.cjs.map → chunk-LMBA2JFO.cjs.map} +1 -1
  142. package/dist/{chunk-Y7VDSCWO.cjs → chunk-MBNVWLVX.cjs} +2 -2
  143. package/dist/{chunk-Y7VDSCWO.cjs.map → chunk-MBNVWLVX.cjs.map} +1 -1
  144. package/dist/{chunk-DWJXUICJ.js → chunk-OHNG7MQY.js} +2 -2
  145. package/dist/{chunk-DWJXUICJ.js.map → chunk-OHNG7MQY.js.map} +1 -1
  146. package/dist/{chunk-QZUVN273.js → chunk-QNYTQJJ7.js} +3 -3
  147. package/dist/{chunk-QZUVN273.js.map → chunk-QNYTQJJ7.js.map} +1 -1
  148. package/dist/{chunk-IRJ3W2BS.js → chunk-SUB2KUSX.js} +2 -2
  149. package/dist/{chunk-IRJ3W2BS.js.map → chunk-SUB2KUSX.js.map} +1 -1
  150. package/dist/{chunk-BACT2F73.cjs → chunk-T53BIHTS.cjs} +4 -4
  151. package/dist/{chunk-BACT2F73.cjs.map → chunk-T53BIHTS.cjs.map} +1 -1
  152. package/dist/{chunk-FAVZZXAX.js → chunk-UJVC7JDT.js} +2 -2
  153. package/dist/{chunk-FAVZZXAX.js.map → chunk-UJVC7JDT.js.map} +1 -1
  154. package/dist/chunk-X2CMJS7F.js +2 -0
  155. package/dist/{chunk-ANIHX243.js.map → chunk-X2CMJS7F.js.map} +1 -1
  156. package/dist/{chunk-AKBXPYUG.js → chunk-XF2UOCDW.js} +2 -2
  157. package/dist/{chunk-AKBXPYUG.js.map → chunk-XF2UOCDW.js.map} +1 -1
  158. package/dist/chunk-XL47QK2N.cjs +2 -0
  159. package/dist/chunk-XL47QK2N.cjs.map +1 -0
  160. package/dist/chunk-XNSQLAZT.cjs +2 -0
  161. package/dist/{chunk-XZWOIOFH.cjs.map → chunk-XNSQLAZT.cjs.map} +1 -1
  162. package/dist/index.cjs +1 -1
  163. package/dist/index.js +1 -1
  164. package/dist/metafile-cjs.json +1 -1
  165. package/dist/metafile-esm.json +1 -1
  166. package/dist/v2/address-input/address-input.cjs +1 -1
  167. package/dist/v2/address-input/address-input.js +1 -1
  168. package/dist/v2/breadcrumb/breadcrumb.cjs +2 -0
  169. package/dist/v2/breadcrumb/breadcrumb.cjs.map +1 -0
  170. package/dist/v2/breadcrumb/breadcrumb.d.ts +36 -0
  171. package/dist/v2/breadcrumb/breadcrumb.js +2 -0
  172. package/dist/v2/breadcrumb/breadcrumb.js.map +1 -0
  173. package/dist/v2/breadcrumb/breadcrumb.stories.d.ts +11 -0
  174. package/dist/v2/combobox/combobox.cjs +1 -1
  175. package/dist/v2/combobox/combobox.js +1 -1
  176. package/dist/v2/command/command.cjs +1 -1
  177. package/dist/v2/command/command.js +1 -1
  178. package/dist/v2/date-picker/date-picker-input.cjs +1 -1
  179. package/dist/v2/date-picker/date-picker-input.js +1 -1
  180. package/dist/v2/date-picker/date-picker.cjs +1 -1
  181. package/dist/v2/date-picker/date-picker.js +1 -1
  182. package/dist/v2/dialog/dialog.cjs +1 -1
  183. package/dist/v2/dialog/dialog.js +1 -1
  184. package/dist/v2/drawer/drawer.cjs +1 -1
  185. package/dist/v2/drawer/drawer.js +1 -1
  186. package/dist/v2/dropzone/dropzone.cjs +1 -1
  187. package/dist/v2/dropzone/dropzone.js +1 -1
  188. package/dist/v2/image-preview/image-preview.cjs +1 -1
  189. package/dist/v2/image-preview/image-preview.js +1 -1
  190. package/dist/v2/index.cjs +1 -1
  191. package/dist/v2/index.d.ts +1 -0
  192. package/dist/v2/index.js +1 -1
  193. package/dist/v2/multiselect/components/MultiSelectCommandGroup.cjs +1 -1
  194. package/dist/v2/multiselect/components/MultiSelectCommandGroup.js +1 -1
  195. package/dist/v2/multiselect/components/MultiSelectDropdown.cjs +1 -1
  196. package/dist/v2/multiselect/components/MultiSelectDropdown.js +1 -1
  197. package/dist/v2/multiselect/multiselect.cjs +1 -1
  198. package/dist/v2/multiselect/multiselect.js +1 -1
  199. package/dist/v2/time-select/time-select.cjs +1 -1
  200. package/dist/v2/time-select/time-select.js +1 -1
  201. package/dist/v2/toast/toaster.cjs +1 -1
  202. package/dist/v2/toast/toaster.js +1 -1
  203. package/package.json +24 -38
  204. package/README.md +0 -125
  205. package/dist/chunk-ANIHX243.js +0 -2
  206. package/dist/chunk-C4QT2REU.js +0 -2
  207. package/dist/chunk-CPEWTLAE.js +0 -2
  208. package/dist/chunk-DD5A5VMZ.cjs.map +0 -1
  209. package/dist/chunk-EGZAP6CJ.cjs +0 -2
  210. package/dist/chunk-EGZAP6CJ.cjs.map +0 -1
  211. package/dist/chunk-J2S7Y3AJ.js +0 -2
  212. package/dist/chunk-J2S7Y3AJ.js.map +0 -1
  213. package/dist/chunk-LQ5UGPEI.cjs +0 -2
  214. package/dist/chunk-SKHANIYK.js.map +0 -1
  215. package/dist/chunk-XZWOIOFH.cjs +0 -2
@@ -1,5 +1,5 @@
1
- import {a as a$1}from'./chunk-ZAJRGB5V.js';import {a,b}from'./chunk-T665QHKC.js';import {useDroppable,useSensors,useSensor,DndContext,closestCorners}from'@dnd-kit/core';import {SortableContext,verticalListSortingStrategy,arrayMove}from'@dnd-kit/sortable';import N from'@emotion/styled';import {jsx}from'react/jsx-runtime';var P=N.div`
1
+ import {a,b}from'./chunk-T665QHKC.js';import {a as a$1}from'./chunk-ZAJRGB5V.js';import {useDroppable,useSensors,useSensor,DndContext,closestCorners}from'@dnd-kit/core';import {SortableContext,verticalListSortingStrategy,arrayMove}from'@dnd-kit/sortable';import N from'@emotion/styled';import {jsx}from'react/jsx-runtime';var P=N.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
- `;function k({id:c,onClickElement:i=()=>null,elements:t=[],onChange:E,onDragOver:p=()=>null,className:x="",disabled:h=false}){let{setNodeRef:u}=useDroppable({id:c}),v=({active:n,over:r,delta:o})=>{if(Math.abs(o.x)<1&&Math.abs(o.y)<1)return i(n.id);let d=t.findIndex(e=>e.id===n.id),a=t.findIndex(e=>e.id===r?.id),l=e=>arrayMove(e,d,a);return r?.id&&p(l(t)),false},S=({active:n,over:r,delta:o})=>{if(Math.abs(o.x)<1&&Math.abs(o.y)<1)return i(n.id);let d=t.findIndex(e=>e.id===n.id),a=t.findIndex(e=>e.id===r?.id),l=e=>arrayMove(e,d,a);return r?.id&&E(l(t)),null},y=useSensors(useSensor(a),useSensor(b));return jsx(DndContext,{collisionDetection:closestCorners,onDragOver:v,onDragEnd:S,sensors:y,children:jsx(SortableContext,{id:c,items:t,strategy:verticalListSortingStrategy,children:jsx(P,{ref:u,className:x,children:t.map(n=>jsx(a$1,{onClickElement:i,id:n.id,disabled:h,children:n.children},n.id))})})})}export{k as a};//# sourceMappingURL=chunk-7OKSLNLM.js.map
5
- //# sourceMappingURL=chunk-7OKSLNLM.js.map
4
+ `;function k({id:c,onClickElement:i=()=>null,elements:t=[],onChange:E,onDragOver:p=()=>null,className:x="",disabled:h=false}){let{setNodeRef:u}=useDroppable({id:c}),v=({active:n,over:r,delta:o})=>{if(Math.abs(o.x)<1&&Math.abs(o.y)<1)return i(n.id);let d=t.findIndex(e=>e.id===n.id),a=t.findIndex(e=>e.id===r?.id),l=e=>arrayMove(e,d,a);return r?.id&&p(l(t)),false},S=({active:n,over:r,delta:o})=>{if(Math.abs(o.x)<1&&Math.abs(o.y)<1)return i(n.id);let d=t.findIndex(e=>e.id===n.id),a=t.findIndex(e=>e.id===r?.id),l=e=>arrayMove(e,d,a);return r?.id&&E(l(t)),null},y=useSensors(useSensor(a),useSensor(b));return jsx(DndContext,{collisionDetection:closestCorners,onDragOver:v,onDragEnd:S,sensors:y,children:jsx(SortableContext,{id:c,items:t,strategy:verticalListSortingStrategy,children:jsx(P,{ref:u,className:x,children:t.map(n=>jsx(a$1,{onClickElement:i,id:n.id,disabled:h,children:n.children},n.id))})})})}export{k as a};//# sourceMappingURL=chunk-HLHHTNKY.js.map
5
+ //# sourceMappingURL=chunk-HLHHTNKY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/SortableList/index.tsx"],"names":["ElementsContainer","styled","SortableList","id","onClickElement","elements","onChange","onDragOver","className","disabled","setNodeRef","useDroppable","handleDragOver","active","over","delta","activeIndex","element","overIndex","updatedItems","elementToUpdate","arrayMove","handleDragEnd","sensors","useSensors","useSensor","MouseSensor","KeyboardSensor","jsx","DndContext","closestCorners","SortableContext","verticalListSortingStrategy","SortableElement"],"mappings":"kUAeA,IAAMA,CAAAA,CAAoBC,CAAAA,CAAO,GAAA;AAAA;AAAA;AAAA,CAAA,CAoBlB,SAARC,CAAAA,CAA8B,CACnC,EAAA,CAAAC,CAAAA,CACA,eAAAC,CAAAA,CAAiB,IAAM,IAAA,CACvB,QAAA,CAAAC,CAAAA,CAAW,GACX,QAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,I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ragEndEvent,\n DragOverEvent,\n closestCorners,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { SortableContext, arrayMove, verticalListSortingStrategy } from '@dnd-kit/sortable';\n\nimport styled from '@emotion/styled';\nimport { KeyboardSensor, MouseSensor } from './sensors';\nimport SortableElement from './SortableElement';\n\nconst ElementsContainer = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport type Element = {\n id: string;\n children: JSX.Element;\n};\n\nexport type SortableListProps = {\n id: string;\n elements: Element[];\n onChange: (elements: Element[]) => void;\n onDragOver?: (elements: Element[]) => void;\n onClickElement?: (elementId: string) => void;\n className: string;\n disabled?: boolean;\n};\n\nexport default function SortableList({\n id,\n onClickElement = () => null,\n elements = [],\n onChange,\n onDragOver = () => null,\n className = '',\n disabled = false,\n}: SortableListProps) {\n const { setNodeRef } = useDroppable({ id });\n\n const handleDragOver = ({ active, over, delta }: DragOverEvent) => {\n const belowDragDistanceThreshold = Math.abs(delta.x) < 1 && Math.abs(delta.y) < 1;\n if (belowDragDistanceThreshold) {\n return onClickElement(active.id as string);\n }\n\n const activeIndex = elements.findIndex((element) => element.id === active.id);\n const overIndex = elements.findIndex((element) => element.id === over?.id);\n\n const updatedItems = (elementToUpdate: any) =>\n arrayMove<Element>(elementToUpdate, activeIndex, overIndex);\n\n if (over?.id) {\n onDragOver(updatedItems(elements));\n }\n return false;\n };\n\n const handleDragEnd = ({ active, over, delta }: DragEndEvent) => {\n const belowDragDistanceThreshold = Math.abs(delta.x) < 1 && Math.abs(delta.y) < 1;\n if (belowDragDistanceThreshold) {\n return onClickElement(active.id as string);\n }\n\n const activeIndex = elements.findIndex((element) => element.id === active.id);\n const overIndex = elements.findIndex((element) => element.id === over?.id);\n\n const updatedItems = (elementToUpdate: any) =>\n arrayMove<Element>(elementToUpdate, activeIndex, overIndex);\n\n if (over?.id) {\n onChange(updatedItems(elements));\n }\n\n return null;\n };\n\n const sensors = useSensors(useSensor(MouseSensor), useSensor(KeyboardSensor));\n\n return (\n <DndContext\n collisionDetection={closestCorners}\n onDragOver={handleDragOver}\n onDragEnd={handleDragEnd}\n sensors={sensors}\n >\n <SortableContext id={id} items={elements} strategy={verticalListSortingStrategy}>\n <ElementsContainer ref={setNodeRef} className={className}>\n {elements.map((element) => (\n <SortableElement\n key={element.id}\n onClickElement={onClickElement}\n id={element.id}\n disabled={disabled}\n >\n {element.children}\n </SortableElement>\n ))}\n </ElementsContainer>\n </SortableContext>\n </DndContext>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/SortableList/index.tsx"],"names":["ElementsContainer","styled","SortableList","id","onClickElement","elements","onChange","onDragOver","className","disabled","setNodeRef","useDroppable","handleDragOver","active","over","delta","activeIndex","element","overIndex","updatedItems","elementToUpdate","arrayMove","handleDragEnd","sensors","useSensors","useSensor","MouseSensor","KeyboardSensor","jsx","DndContext","closestCorners","SortableContext","verticalListSortingStrategy","SortableElement"],"mappings":"kUAeA,IAAMA,CAAAA,CAAoBC,CAAAA,CAAO,GAAA;AAAA;AAAA;AAAA,CAAA,CAoBlB,SAARC,CAAAA,CAA8B,CACnC,EAAA,CAAAC,CAAAA,CACA,eAAAC,CAAAA,CAAiB,IAAM,IAAA,CACvB,QAAA,CAAAC,CAAAA,CAAW,GACX,QAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,IAAM,IAAA,CACnB,SAAA,CAAAC,CAAAA,CAAY,EAAA,CACZ,QAAA,CAAAC,CAAAA,CAAW,KACb,CAAA,CAAsB,CACpB,GAAM,CAAE,UAAA,CAAAC,CAAW,CAAA,CAAIC,YAAAA,CAAa,CAAE,GAAAR,CAAG,CAAC,CAAA,CAEpCS,CAAAA,CAAiB,CAAC,CAAE,OAAAC,CAAAA,CAAQ,IAAA,CAAAC,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,GAAqB,CAEjE,GADmC,IAAA,CAAK,GAAA,CAAIA,CAAAA,CAAM,CAAC,CAAA,CAAI,CAAA,EAAK,KAAK,GAAA,CAA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ACT,CAAA,CAEMkB,CAAAA,CAAUC,UAAAA,CAAWC,SAAAA,CAAUC,CAAW,CAAA,CAAGD,UAAUE,CAAc,CAAC,CAAA,CAE5E,OACEC,GAAAA,CAACC,UAAAA,CAAA,CACC,kBAAA,CAAoBC,cAAAA,CACpB,UAAA,CAAYlB,CAAAA,CACZ,SAAA,CAAWU,CAAAA,CACX,QAASC,CAAAA,CAET,QAAA,CAAAK,GAAAA,CAACG,eAAAA,CAAA,CAAgB,EAAA,CAAI5B,CAAAA,CAAI,KAAA,CAAOE,CAAAA,CAAU,QAAA,CAAU2B,2BAAAA,CAClD,QAAA,CAAAJ,GAAAA,CAAC5B,CAAAA,CAAA,CAAkB,GAAA,CAAKU,CAAAA,CAAY,SAAA,CAAWF,CAAAA,CAC5C,QAAA,CAAAH,CAAAA,CAAS,GAAA,CAAKY,CAAAA,EACbW,GAAAA,CAACK,GAAAA,CAAA,CAEC,cAAA,CAAgB7B,CAAAA,CAChB,EAAA,CAAIa,EAAQ,EAAA,CACZ,QAAA,CAAUR,CAAAA,CAET,QAAA,CAAAQ,CAAAA,CAAQ,QAAA,CAAA,CALJA,CAAAA,CAAQ,EAMf,CACD,CAAA,CACH,CAAA,CACF,CAAA,CACF,CAEJ","file":"chunk-HLHHTNKY.js","sourcesContent":["import {\n useDroppable,\n DndContext,\n DragEndEvent,\n DragOverEvent,\n closestCorners,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { SortableContext, arrayMove, verticalListSortingStrategy } from '@dnd-kit/sortable';\n\nimport styled from '@emotion/styled';\nimport { KeyboardSensor, MouseSensor } from './sensors';\nimport SortableElement from './SortableElement';\n\nconst ElementsContainer = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport type Element = {\n id: string;\n children: JSX.Element;\n};\n\nexport type SortableListProps = {\n id: string;\n elements: Element[];\n onChange: (elements: Element[]) => void;\n onDragOver?: (elements: Element[]) => void;\n onClickElement?: (elementId: string) => void;\n className: string;\n disabled?: boolean;\n};\n\nexport default function SortableList({\n id,\n onClickElement = () => null,\n elements = [],\n onChange,\n onDragOver = () => null,\n className = '',\n disabled = false,\n}: SortableListProps) {\n const { setNodeRef } = useDroppable({ id });\n\n const handleDragOver = ({ active, over, delta }: DragOverEvent) => {\n const belowDragDistanceThreshold = Math.abs(delta.x) < 1 && Math.abs(delta.y) < 1;\n if (belowDragDistanceThreshold) {\n return onClickElement(active.id as string);\n }\n\n const activeIndex = elements.findIndex((element) => element.id === active.id);\n const overIndex = elements.findIndex((element) => element.id === over?.id);\n\n const updatedItems = (elementToUpdate: any) =>\n arrayMove<Element>(elementToUpdate, activeIndex, overIndex);\n\n if (over?.id) {\n onDragOver(updatedItems(elements));\n }\n return false;\n };\n\n const handleDragEnd = ({ active, over, delta }: DragEndEvent) => {\n const belowDragDistanceThreshold = Math.abs(delta.x) < 1 && Math.abs(delta.y) < 1;\n if (belowDragDistanceThreshold) {\n return onClickElement(active.id as string);\n }\n\n const activeIndex = elements.findIndex((element) => element.id === active.id);\n const overIndex = elements.findIndex((element) => element.id === over?.id);\n\n const updatedItems = (elementToUpdate: any) =>\n arrayMove<Element>(elementToUpdate, activeIndex, overIndex);\n\n if (over?.id) {\n onChange(updatedItems(elements));\n }\n\n return null;\n };\n\n const sensors = useSensors(useSensor(MouseSensor), useSensor(KeyboardSensor));\n\n return (\n <DndContext\n collisionDetection={closestCorners}\n onDragOver={handleDragOver}\n onDragEnd={handleDragEnd}\n sensors={sensors}\n >\n <SortableContext id={id} items={elements} strategy={verticalListSortingStrategy}>\n <ElementsContainer ref={setNodeRef} className={className}>\n {elements.map((element) => (\n <SortableElement\n key={element.id}\n onClickElement={onClickElement}\n id={element.id}\n disabled={disabled}\n >\n {element.children}\n </SortableElement>\n ))}\n </ElementsContainer>\n </SortableContext>\n </DndContext>\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4R2KHTSG_cjs=require('./chunk-4R2KHTSG.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),react=require('react'),cmdk=require('cmdk'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');var C=react.forwardRef(({className:o,...t},a)=>jsxRuntime.jsx(cmdk.Command,{"data-slot":"command",ref:a,className:chunkQRO22BPZ_cjs.a("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t}));function P({title:o="Command Palette",description:t="Search for a command to run...",children:a,className:c,...u}){return jsxRuntime.jsxs(chunk4R2KHTSG_cjs.a,{...u,children:[jsxRuntime.jsxs(chunk4R2KHTSG_cjs.g,{className:"sr-only",children:[jsxRuntime.jsx(chunk4R2KHTSG_cjs.i,{children:o}),jsxRuntime.jsx(chunk4R2KHTSG_cjs.j,{children:t})]}),jsxRuntime.jsx(chunk4R2KHTSG_cjs.f,{className:chunkQRO22BPZ_cjs.a("overflow-hidden p-0",c),children:jsxRuntime.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a})})]})}function w({className:o,...t}){return jsxRuntime.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[jsxRuntime.jsx(lu.LuSearch,{className:"size-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{"data-slot":"command-input",className:chunkQRO22BPZ_cjs.a("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",o),...t})]})}function D({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.List,{"data-slot":"command-list",className:chunkQRO22BPZ_cjs.a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",o),...t})}function N({...o}){return jsxRuntime.jsx(cmdk.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center",...o})}function b({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Group,{"data-slot":"command-group",className:chunkQRO22BPZ_cjs.a("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t})}function I({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Separator,{"data-slot":"command-separator",className:chunkQRO22BPZ_cjs.a("bg-border -mx-1 h-px",o),...t})}function S({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Item,{"data-slot":"command-item",className:chunkQRO22BPZ_cjs.a("data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...t})}function L({className:o,...t}){return jsxRuntime.jsx("span",{"data-slot":"command-shortcut",className:chunkQRO22BPZ_cjs.a("text-muted-foreground ml-auto text-xs tracking-widest",o),...t})}function E({className:o,...t}){return jsxRuntime.jsx("div",{"data-slot":"command-footer",className:chunkQRO22BPZ_cjs.a("border-t p-1",o),...t})}exports.a=C;exports.b=P;exports.c=w;exports.d=D;exports.e=N;exports.f=b;exports.g=I;exports.h=S;exports.i=L;exports.j=E;//# sourceMappingURL=chunk-XTHGIU5X.cjs.map
2
- //# sourceMappingURL=chunk-XTHGIU5X.cjs.map
1
+ 'use strict';var chunkLMBA2JFO_cjs=require('./chunk-LMBA2JFO.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),react=require('react'),cmdk=require('cmdk'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');var C=react.forwardRef(({className:o,...t},a)=>jsxRuntime.jsx(cmdk.Command,{"data-slot":"command",ref:a,className:chunkQRO22BPZ_cjs.a("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t}));function P({title:o="Command Palette",description:t="Search for a command to run...",children:a,className:c,...u}){return jsxRuntime.jsxs(chunkLMBA2JFO_cjs.a,{...u,children:[jsxRuntime.jsxs(chunkLMBA2JFO_cjs.g,{className:"sr-only",children:[jsxRuntime.jsx(chunkLMBA2JFO_cjs.i,{children:o}),jsxRuntime.jsx(chunkLMBA2JFO_cjs.j,{children:t})]}),jsxRuntime.jsx(chunkLMBA2JFO_cjs.f,{className:chunkQRO22BPZ_cjs.a("overflow-hidden p-0",c),children:jsxRuntime.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a})})]})}function w({className:o,...t}){return jsxRuntime.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[jsxRuntime.jsx(lu.LuSearch,{className:"size-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{"data-slot":"command-input",className:chunkQRO22BPZ_cjs.a("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",o),...t})]})}function D({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.List,{"data-slot":"command-list",className:chunkQRO22BPZ_cjs.a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",o),...t})}function N({...o}){return jsxRuntime.jsx(cmdk.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center",...o})}function b({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Group,{"data-slot":"command-group",className:chunkQRO22BPZ_cjs.a("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t})}function I({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Separator,{"data-slot":"command-separator",className:chunkQRO22BPZ_cjs.a("bg-border -mx-1 h-px",o),...t})}function S({className:o,...t}){return jsxRuntime.jsx(cmdk.Command.Item,{"data-slot":"command-item",className:chunkQRO22BPZ_cjs.a("data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...t})}function L({className:o,...t}){return jsxRuntime.jsx("span",{"data-slot":"command-shortcut",className:chunkQRO22BPZ_cjs.a("text-muted-foreground ml-auto text-xs tracking-widest",o),...t})}function E({className:o,...t}){return jsxRuntime.jsx("div",{"data-slot":"command-footer",className:chunkQRO22BPZ_cjs.a("border-t p-1",o),...t})}exports.a=C;exports.b=P;exports.c=w;exports.d=D;exports.e=N;exports.f=b;exports.g=I;exports.h=S;exports.i=L;exports.j=E;//# sourceMappingURL=chunk-ILEND5TM.cjs.map
2
+ //# sourceMappingURL=chunk-ILEND5TM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v2/command/command.tsx"],"names":["Command","forwardRef","className","props","forwardedRef","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","LuSearch","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","CommandFooter"],"mappings":"sOAaA,IAAMA,CAAAA,CAAUC,gBAAAA,CACd,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAEtBC,cAAAA,CAACC,YAAAA,CAAA,CACC,WAAA,CAAU,SAAA,CACV,GAAA,CAAKF,CAAAA,CACL,UAAWG,mBAAAA,CACT,2FAAA,CACAL,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAGN,EAEA,SAASK,CAAAA,CAAc,CACrB,KAAA,CAAAC,CAAAA,CAAQ,kBACR,WAAA,CAAAC,CAAAA,CAAc,gCAAA,CACd,QAAA,CAAAC,EACA,SAAA,CAAAT,CAAAA,CACA,GAAGC,CACL,EAIG,CACD,OACES,eAAAA,CAACC,mBAAAA,CAAA,CAAQ,GAAGV,CAAAA,CACV,QAAA,CAAA,CAAAS,eAAAA,CAACE,oBAAA,CAAa,SAAA,CAAU,SAAA,CACtB,QAAA,CAAA,CAAAT,eAACU,mBAAAA,CAAA,CAAa,QAAA,CAAAN,CAAAA,CAAM,CAAA,CACpBJ,cAAAA,CAACW,mBAAAA,CAAA,CAAmB,SAAAN,CAAAA,CAAY,CAAA,CAAA,CAClC,CAAA,CACAL,cAAAA,CAACY,oBAAA,CAAc,SAAA,CAAWV,mBAAAA,CAAG,qBAAA,CAAuBL,CAAS,CAAA,CAC3D,QAAA,CAAAG,cAAAA,CAACL,CAAAA,CAAA,CAAQ,SAAA,CAAU,uZAAA,CAChB,QAAA,CAAAW,CAAAA,CACH,EACF,CAAA,CAAA,CACF,CAEJ,CAEA,SAASO,EAAa,CAAE,SAAA,CAAAhB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAkD,CAC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qB,CAAAA,CAAY,CAAE,UAAAtB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiD,CAC1F,OACEE,cAAAA,CAACC,YAAAA,CAAiB,IAAA,CAAjB,CACC,WAAA,CAAU,cAAA,CACV,SAAA,CAAWC,mBAAAA,CACT,oXACAL,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAEA,SAASsB,CAAAA,CAAgB,CAAE,UAAAvB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA2B,CACxE,OACEE,cAAAA,CAAC,MAAA,CAAA,CACC,WAAA,CAAU,mBACV,SAAA,CAAWE,mBAAAA,CAAG,uDAAA,CAAyDL,CAAS,EAC/E,GAAGC,CAAAA,CACN,CAEJ,CAYA,SAASuB,CAAAA,CAAc,CAAE,SAAA,CAAAxB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CACrE,OAAOE,eAAC,KAAA,CAAA,CAAI,WAAA,CAAU,gBAAA,CAAiB,SAAA,CAAWE,oBAAG,cAAA,CAAgBL,CAAS,CAAA,CAAI,GAAGC,EAAO,CAC9F","file":"chunk-XTHGIU5X.cjs","sourcesContent":["import { ComponentProps, forwardRef } from 'react';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { LuSearch } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '@/v2/dialog/dialog';\n\nconst Command = forwardRef<HTMLDivElement, ComponentProps<typeof CommandPrimitive>>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n ...props\n}: ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n className?: string;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)}>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n <LuSearch className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({ ...props }: ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center\" {...props} />\n );\n}\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/**\n * A pinned footer action slot for the command menu, e.g. the EOTV filter\n * property list's \"+ Add Conditional Filter\" action (POPS-1039).\n *\n * Render it as a sibling of `CommandList` (not inside it) so it sits outside the\n * scrollable list. Put a plain interactive element here (a `<button>` / `Button`),\n * NOT a `CommandItem`: cmdk filters every registered item against the search\n * query regardless of DOM position, so a `CommandItem` in the footer would\n * disappear as soon as the query stopped matching it.\n */\nfunction CommandFooter({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"command-footer\" className={cn('border-t p-1', className)} {...props} />;\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n CommandFooter,\n};\n"]}
1
+ {"version":3,"sources":["../src/v2/command/command.tsx"],"names":["Command","forwardRef","className","props","forwardedRef","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","LuSearch","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","CommandFooter"],"mappings":"sOAaA,IAAMA,CAAAA,CAAUC,gBAAAA,CACd,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAEtBC,cAAAA,CAACC,YAAAA,CAAA,CACC,WAAA,CAAU,SAAA,CACV,GAAA,CAAKF,CAAAA,CACL,UAAWG,mBAAAA,CACT,2FAAA,CACAL,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAGN,EAEA,SAASK,CAAAA,CAAc,CACrB,KAAA,CAAAC,CAAAA,CAAQ,kBACR,WAAA,CAAAC,CAAAA,CAAc,gCAAA,CACd,QAAA,CAAAC,EACA,SAAA,CAAAT,CAAAA,CACA,GAAGC,CACL,EAIG,CACD,OACES,eAAAA,CAACC,mBAAAA,CAAA,CAAQ,GAAGV,CAAAA,CACV,QAAA,CAAA,CAAAS,eAAAA,CAACE,oBAAA,CAAa,SAAA,CAAU,SAAA,CACtB,QAAA,CAAA,CAAAT,eAACU,mBAAAA,CAAA,CAAa,QAAA,CAAAN,CAAAA,CAAM,CAAA,CACpBJ,cAAAA,CAACW,mBAAAA,CAAA,CAAmB,SAAAN,CAAAA,CAAY,CAAA,CAAA,CAClC,CAAA,CACAL,cAAAA,CAACY,oBAAA,CAAc,SAAA,CAAWV,mBAAAA,CAAG,qBAAA,CAAuBL,CAAS,CAAA,CAC3D,QAAA,CAAAG,cAAAA,CAACL,CAAAA,CAAA,CAAQ,SAAA,CAAU,uZAAA,CAChB,QAAA,CAAAW,CAAAA,CACH,EACF,CAAA,CAAA,CACF,CAEJ,CAEA,SAASO,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BAAA,CAAwBL,CAAS,CAAA,CAC9C,GAAGC,CAAAA,CACN,CAEJ,CAEA,SAASqB,CAAAA,CAAY,CAAE,UAAAtB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiD,CAC1F,OACEE,cAAAA,CAACC,YAAAA,CAAiB,IAAA,CAAjB,CACC,WAAA,CAAU,cAAA,CACV,SAAA,CAAWC,mBAAAA,CACT,oXACAL,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAEA,SAASsB,CAAAA,CAAgB,CAAE,UAAAvB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA2B,CACxE,OACEE,cAAAA,CAAC,MAAA,CAAA,CACC,WAAA,CAAU,mBACV,SAAA,CAAWE,mBAAAA,CAAG,uDAAA,CAAyDL,CAAS,EAC/E,GAAGC,CAAAA,CACN,CAEJ,CAYA,SAASuB,CAAAA,CAAc,CAAE,SAAA,CAAAxB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CACrE,OAAOE,eAAC,KAAA,CAAA,CAAI,WAAA,CAAU,gBAAA,CAAiB,SAAA,CAAWE,oBAAG,cAAA,CAAgBL,CAAS,CAAA,CAAI,GAAGC,EAAO,CAC9F","file":"chunk-ILEND5TM.cjs","sourcesContent":["import { ComponentProps, forwardRef } from 'react';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { LuSearch } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '@/v2/dialog/dialog';\n\nconst Command = forwardRef<HTMLDivElement, ComponentProps<typeof CommandPrimitive>>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n ...props\n}: ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n className?: string;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)}>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n <LuSearch className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({ ...props }: ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center\" {...props} />\n );\n}\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/**\n * A pinned footer action slot for the command menu, e.g. the EOTV filter\n * property list's \"+ Add Conditional Filter\" action (POPS-1039).\n *\n * Render it as a sibling of `CommandList` (not inside it) so it sits outside the\n * scrollable list. Put a plain interactive element here (a `<button>` / `Button`),\n * NOT a `CommandItem`: cmdk filters every registered item against the search\n * query regardless of DOM position, so a `CommandItem` in the footer would\n * disappear as soon as the query stopped matching it.\n */\nfunction CommandFooter({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"command-footer\" className={cn('border-t p-1', className)} {...props} />;\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n CommandFooter,\n};\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkIINNHABI_cjs=require('./chunk-IINNHABI.cjs'),chunkNALIS6SG_cjs=require('./chunk-NALIS6SG.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),react=require('react'),vaul=require('vaul'),i=require('radix-ui/dialog'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var i__namespace=/*#__PURE__*/_interopNamespace(i);var s=react.createContext({isResponsive:true});function z({disableDrawerOnMobile:t=false,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),r=react.useMemo(()=>({isResponsive:!t}),[t]);return jsxRuntime.jsx(s.Provider,{value:r,children:a&&!t?jsxRuntime.jsx(vaul.Drawer.Root,{"data-slot":"drawer",direction:"bottom",...e}):jsxRuntime.jsx(i__namespace.Root,{"data-slot":"dialog",...e})})}function B({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Trigger,{"data-slot":"drawer-trigger",...t}):jsxRuntime.jsx(i__namespace.Trigger,{"data-slot":"dialog-trigger",...t})}function f({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Portal,{"data-slot":"drawer-portal",...t}):jsxRuntime.jsx(i__namespace.Portal,{"data-slot":"dialog-portal",...t})}function w({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Close,{"data-slot":"drawer-close",...t}):jsxRuntime.jsx(i__namespace.Close,{"data-slot":"dialog-close",...t})}var P=react.forwardRef(({className:t,...e},a)=>{let{isMobile:r}=chunkULTFWLWO_cjs.b(),{isResponsive:c}=react.useContext(s);return r&&c?jsxRuntime.jsx(vaul.Drawer.Overlay,{"data-slot":"drawer-overlay",className:chunkQRO22BPZ_cjs.a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50",t),ref:a,...e}):jsxRuntime.jsx(i__namespace.Overlay,{"data-slot":"dialog-overlay",className:chunkQRO22BPZ_cjs.a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50",t),ref:a,...e})}),O=react.forwardRef(({className:t,children:e=null,overlayClassName:a,...r},c)=>{let{isMobile:x}=chunkULTFWLWO_cjs.b(),{isResponsive:C}=react.useContext(s);return x&&C?jsxRuntime.jsxs(f,{"data-slot":"drawer-portal",children:[jsxRuntime.jsx(P,{className:a}),jsxRuntime.jsx(vaul.Drawer.Content,{"data-slot":"drawer-content",className:chunkQRO22BPZ_cjs.a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col px-4","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm","max-w-dvw!",t),ref:c,...r,children:e})]}):jsxRuntime.jsxs(f,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(P,{className:a}),jsxRuntime.jsx(i__namespace.Content,{"data-slot":"dialog-content",className:chunkQRO22BPZ_cjs.a("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-modal-stacking-context fixed top-[50%] left-[50%] grid w-[550px] max-w-[720px] min-w-[440px] translate-x-[-50%] translate-y-[-50%] rounded-lg border border-gray-300 p-6 shadow-sm duration-200",t),ref:c,...r,children:e})]})});function H({className:t,showCloseButton:e=true,...a}){let{isMobile:r}=chunkULTFWLWO_cjs.b(),{isResponsive:c}=react.useContext(s);return r&&c?jsxRuntime.jsxs("div",{"data-slot":"drawer-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-0.5 pt-6 pb-4 text-left md:gap-1.5",t),...a,children:[e&&jsxRuntime.jsx(w,{asChild:true,children:jsxRuntime.jsxs(chunkIINNHABI_cjs.b,{className:"absolute top-5 right-0",size:"sm",variant:"ghost-icon",children:[jsxRuntime.jsx(lu.LuX,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close dialog"})]})}),a.children]}):jsxRuntime.jsxs("div",{"data-slot":"dialog-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-2 pb-4",t),...a,children:[e&&jsxRuntime.jsx(w,{asChild:true,children:jsxRuntime.jsxs(chunkIINNHABI_cjs.b,{className:"absolute top-0 right-0",size:"sm",variant:"ghost-icon",children:[jsxRuntime.jsx(lu.LuX,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close dialog"})]})}),a.children]})}function L({className:t,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx("div",{"data-slot":"drawer-footer",className:chunkQRO22BPZ_cjs.a("mt-auto flex flex-col gap-2 py-4",t),...e}):jsxRuntime.jsx("div",{"data-slot":"dialog-footer",className:chunkQRO22BPZ_cjs.a("mt-2 flex gap-2 pt-3",t),...e})}function E({className:t,...e}){let{isMobile:a}=chunkNALIS6SG_cjs.a(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx(vaul.Drawer.Title,{"data-slot":"drawer-title",className:chunkQRO22BPZ_cjs.a("font-display pr-6 text-3xl",t),...e}):jsxRuntime.jsx(i__namespace.Title,{"data-slot":"dialog-title",className:chunkQRO22BPZ_cjs.a("font-display pr-6 text-3xl leading-none tracking-[0.01rem]",t),...e})}function F({className:t,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx(vaul.Drawer.Description,{"data-slot":"drawer-description",className:t,...e}):jsxRuntime.jsx(i__namespace.Description,{"data-slot":"dialog-description",className:chunkQRO22BPZ_cjs.a("text-muted-foreground text-sm",t),...e})}exports.a=z;exports.b=B;exports.c=f;exports.d=w;exports.e=P;exports.f=O;exports.g=H;exports.h=L;exports.i=E;exports.j=F;//# sourceMappingURL=chunk-4R2KHTSG.cjs.map
2
- //# sourceMappingURL=chunk-4R2KHTSG.cjs.map
1
+ 'use strict';var chunkIINNHABI_cjs=require('./chunk-IINNHABI.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),chunkNALIS6SG_cjs=require('./chunk-NALIS6SG.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),react=require('react'),vaul=require('vaul'),i=require('radix-ui/dialog'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var i__namespace=/*#__PURE__*/_interopNamespace(i);var s=react.createContext({isResponsive:true});function z({disableDrawerOnMobile:t=false,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),r=react.useMemo(()=>({isResponsive:!t}),[t]);return jsxRuntime.jsx(s.Provider,{value:r,children:a&&!t?jsxRuntime.jsx(vaul.Drawer.Root,{"data-slot":"drawer",direction:"bottom",...e}):jsxRuntime.jsx(i__namespace.Root,{"data-slot":"dialog",...e})})}function B({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Trigger,{"data-slot":"drawer-trigger",...t}):jsxRuntime.jsx(i__namespace.Trigger,{"data-slot":"dialog-trigger",...t})}function f({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Portal,{"data-slot":"drawer-portal",...t}):jsxRuntime.jsx(i__namespace.Portal,{"data-slot":"dialog-portal",...t})}function w({...t}){let{isMobile:e}=chunkULTFWLWO_cjs.b(),{isResponsive:a}=react.useContext(s);return e&&a?jsxRuntime.jsx(vaul.Drawer.Close,{"data-slot":"drawer-close",...t}):jsxRuntime.jsx(i__namespace.Close,{"data-slot":"dialog-close",...t})}var P=react.forwardRef(({className:t,...e},a)=>{let{isMobile:r}=chunkULTFWLWO_cjs.b(),{isResponsive:c}=react.useContext(s);return r&&c?jsxRuntime.jsx(vaul.Drawer.Overlay,{"data-slot":"drawer-overlay",className:chunkQRO22BPZ_cjs.a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50",t),ref:a,...e}):jsxRuntime.jsx(i__namespace.Overlay,{"data-slot":"dialog-overlay",className:chunkQRO22BPZ_cjs.a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50",t),ref:a,...e})}),O=react.forwardRef(({className:t,children:e=null,overlayClassName:a,...r},c)=>{let{isMobile:x}=chunkULTFWLWO_cjs.b(),{isResponsive:C}=react.useContext(s);return x&&C?jsxRuntime.jsxs(f,{"data-slot":"drawer-portal",children:[jsxRuntime.jsx(P,{className:a}),jsxRuntime.jsx(vaul.Drawer.Content,{"data-slot":"drawer-content",className:chunkQRO22BPZ_cjs.a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col px-4","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm","max-w-dvw!",t),ref:c,...r,children:e})]}):jsxRuntime.jsxs(f,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(P,{className:a}),jsxRuntime.jsx(i__namespace.Content,{"data-slot":"dialog-content",className:chunkQRO22BPZ_cjs.a("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-modal-stacking-context fixed top-[50%] left-[50%] grid w-[550px] max-w-[720px] min-w-[440px] translate-x-[-50%] translate-y-[-50%] rounded-lg border border-gray-300 p-6 shadow-sm duration-200",t),ref:c,...r,children:e})]})});function H({className:t,showCloseButton:e=true,...a}){let{isMobile:r}=chunkULTFWLWO_cjs.b(),{isResponsive:c}=react.useContext(s);return r&&c?jsxRuntime.jsxs("div",{"data-slot":"drawer-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-0.5 pt-6 pb-4 text-left md:gap-1.5",t),...a,children:[e&&jsxRuntime.jsx(w,{asChild:true,children:jsxRuntime.jsxs(chunkIINNHABI_cjs.b,{className:"absolute top-5 right-0",size:"sm",variant:"ghost-icon",children:[jsxRuntime.jsx(lu.LuX,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close dialog"})]})}),a.children]}):jsxRuntime.jsxs("div",{"data-slot":"dialog-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-2 pb-4",t),...a,children:[e&&jsxRuntime.jsx(w,{asChild:true,children:jsxRuntime.jsxs(chunkIINNHABI_cjs.b,{className:"absolute top-0 right-0",size:"sm",variant:"ghost-icon",children:[jsxRuntime.jsx(lu.LuX,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close dialog"})]})}),a.children]})}function L({className:t,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx("div",{"data-slot":"drawer-footer",className:chunkQRO22BPZ_cjs.a("mt-auto flex flex-col gap-2 py-4",t),...e}):jsxRuntime.jsx("div",{"data-slot":"dialog-footer",className:chunkQRO22BPZ_cjs.a("mt-2 flex gap-2 pt-3",t),...e})}function E({className:t,...e}){let{isMobile:a}=chunkNALIS6SG_cjs.a(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx(vaul.Drawer.Title,{"data-slot":"drawer-title",className:chunkQRO22BPZ_cjs.a("font-display pr-6 text-3xl",t),...e}):jsxRuntime.jsx(i__namespace.Title,{"data-slot":"dialog-title",className:chunkQRO22BPZ_cjs.a("font-display pr-6 text-3xl leading-none tracking-[0.01rem]",t),...e})}function F({className:t,...e}){let{isMobile:a}=chunkULTFWLWO_cjs.b(),{isResponsive:r}=react.useContext(s);return a&&r?jsxRuntime.jsx(vaul.Drawer.Description,{"data-slot":"drawer-description",className:t,...e}):jsxRuntime.jsx(i__namespace.Description,{"data-slot":"dialog-description",className:chunkQRO22BPZ_cjs.a("text-muted-foreground text-sm",t),...e})}exports.a=z;exports.b=B;exports.c=f;exports.d=w;exports.e=P;exports.f=O;exports.g=H;exports.h=L;exports.i=E;exports.j=F;//# sourceMappingURL=chunk-LMBA2JFO.cjs.map
2
+ //# sourceMappingURL=chunk-LMBA2JFO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v2/dialog/dialog.tsx"],"names":["DialogContext","createContext","Dialog","disableDrawerOnMobile","props","isMobile","useWindowSize_default","contextValue","useMemo","jsx","DrawerPrimitive","i","DialogTrigger","isResponsive","useContext","DialogPortal","DialogClose","DialogOverlay","forwardRef","className","ref","cn","DialogContent","children","overlayClassName","jsxs","DialogHeader","showCloseButton","Button","LuX","DialogFooter","DialogTitle","useIsMobile","DialogDescription"],"mappings":"6sBASA,IAAMA,CAAAA,CAAgBC,mBAAAA,CAAc,CAAE,YAAA,CAAc,IAAK,CAAC,CAAA,CAE1D,SAASC,CAAAA,CAAO,CACd,sBAAAC,CAAAA,CAAwB,KAAA,CACxB,GAAGC,CACL,EACqF,CACnF,GAAM,CAAE,QAAA,CAAAC,CAAS,CAAA,CAAIC,m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BAAAA,CAAG,+BAAA,CAAiCF,CAAS,CAAA,CACvD,GAAGf,EACN,CAEJ","file":"chunk-4R2KHTSG.cjs","sourcesContent":["import { type ComponentProps, createContext, forwardRef, useContext, useMemo } from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\nimport * as DialogPrimitive from 'radix-ui/dialog';\nimport { LuX } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '../button/button';\nimport { useIsMobile, useWindowSize } from '@/hooks';\n\nconst DialogContext = createContext({ isResponsive: true });\n\nfunction Dialog({\n disableDrawerOnMobile = false,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Root> &\n ComponentProps<typeof DrawerPrimitive.Root> & { disableDrawerOnMobile?: boolean }) {\n const { isMobile } = useWindowSize();\n\n const contextValue = useMemo(\n () => ({ isResponsive: !disableDrawerOnMobile }),\n [disableDrawerOnMobile],\n );\n\n return (\n <DialogContext.Provider value={contextValue}>\n {isMobile && !disableDrawerOnMobile ? (\n <DrawerPrimitive.Root data-slot=\"drawer\" direction=\"bottom\" {...props} />\n ) : (\n <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n )}\n </DialogContext.Provider>\n );\n}\n\nfunction DialogTrigger({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Trigger> &\n ComponentProps<typeof DrawerPrimitive.Trigger>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n }\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Portal> & ComponentProps<typeof DrawerPrimitive.Portal>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n }\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Close> & ComponentProps<typeof DrawerPrimitive.Close>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n }\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nconst DialogOverlay = forwardRef<\n HTMLDivElement,\n ComponentProps<typeof DialogPrimitive.Overlay> & ComponentProps<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\n\nconst DialogContent = forwardRef<\n HTMLDivElement,\n ComponentProps<typeof DialogPrimitive.Content> &\n ComponentProps<typeof DrawerPrimitive.Content> & {\n onBackButtonClick?: () => void;\n overlayClassName?: string | undefined;\n }\n>(({ className, children = null, overlayClassName, ...props }, ref) => {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DialogPortal data-slot=\"drawer-portal\">\n <DialogOverlay className={overlayClassName} />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col px-4',\n 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',\n 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',\n 'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-md',\n 'data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm',\n 'max-w-dvw!',\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </DrawerPrimitive.Content>\n </DialogPortal>\n );\n }\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay className={overlayClassName} />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-modal-stacking-context fixed top-[50%] left-[50%] grid w-[550px] max-w-[720px] min-w-[440px] translate-x-[-50%] translate-y-[-50%] rounded-lg border border-gray-300 p-6 shadow-sm duration-200',\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n});\n\nfunction DialogHeader({\n className,\n showCloseButton = true,\n ...props\n}: ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn('relative flex flex-col gap-0.5 pt-6 pb-4 text-left md:gap-1.5', className)}\n {...props}\n >\n {showCloseButton && (\n <DialogClose asChild>\n <Button className=\"absolute top-5 right-0\" size=\"sm\" variant=\"ghost-icon\">\n <LuX />\n <span className=\"sr-only\">Close dialog</span>\n </Button>\n </DialogClose>\n )}\n {props.children}\n </div>\n );\n }\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn('relative flex flex-col gap-2 pb-4', className)}\n {...props}\n >\n {showCloseButton && (\n <DialogClose asChild>\n <Button className=\"absolute top-0 right-0\" size=\"sm\" variant=\"ghost-icon\">\n <LuX />\n <span className=\"sr-only\">Close dialog</span>\n </Button>\n </DialogClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex flex-col gap-2 py-4', className)}\n {...props}\n />\n );\n }\n return (\n <div data-slot=\"dialog-footer\" className={cn('mt-2 flex gap-2 pt-3', className)} {...props} />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Title> & ComponentProps<typeof DrawerPrimitive.Title>) {\n const { isMobile } = useIsMobile();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('font-display pr-6 text-3xl', className)}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('font-display pr-6 text-3xl leading-none tracking-[0.01rem]', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Description> &\n ComponentProps<typeof DrawerPrimitive.Description>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={className}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"]}
1
+ {"version":3,"sources":["../src/v2/dialog/dialog.tsx"],"names":["DialogContext","createContext","Dialog","disableDrawerOnMobile","props","isMobile","useWindowSize_default","contextValue","useMemo","jsx","DrawerPrimitive","i","DialogTrigger","isResponsive","useContext","DialogPortal","DialogClose","DialogOverlay","forwardRef","className","ref","cn","DialogContent","children","overlayClassName","jsxs","DialogHeader","showCloseButton","Button","LuX","DialogFooter","DialogTitle","useIsMobile","DialogDescription"],"mappings":"6sBASA,IAAMA,CAAAA,CAAgBC,mBAAAA,CAAc,CAAE,YAAA,CAAc,IAAK,CAAC,CAAA,CAE1D,SAASC,CAAAA,CAAO,CACd,sBAAAC,CAAAA,CAAwB,KAAA,CACxB,GAAGC,CACL,EACqF,CACnF,GAAM,CAAE,QAAA,CAAAC,CAAS,CAAA,CAAIC,mBAAAA,EAAc,CAE7BC,CAAAA,CAAeC,cACnB,KAAO,CAAE,YAAA,CAAc,CAACL,CAAsB,CAAA,CAAA,CAC9C,CAACA,CAAqB,CACxB,EAEA,OACEM,cAAAA,CAACT,CAAAA,CAAc,QAAA,CAAd,CAAuB,KAAA,CAAOO,CAAAA,CAC5B,QAAA,CAAAF,CAAAA,EAAY,CAACF,CAAAA,CACZM,cAAAA,CAACC,YAAgB,IAAA,CAAhB,CAAqB,YAAU,QAAA,CAAS,SAAA,CAAU,QAAA,CAAU,GAAGN,EAAO,CAAA,CAEvEK,cAAAA,CAAi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AS,EAAI2B,mBAAAA,EAAY,CAC3B,CAAE,YAAA,CAAAnB,CAAa,EAAIC,gBAAAA,CAAWd,CAAa,CAAA,CACjD,OAAIK,GAAYQ,CAAAA,CAEZJ,cAAAA,CAACC,WAAAA,CAAgB,KAAA,CAAhB,CACC,WAAA,CAAU,cAAA,CACV,SAAA,CAAWW,mBAAAA,CAAG,6BAA8BF,CAAS,CAAA,CACpD,GAAGf,CAAAA,CACN,EAIFK,cAAAA,CAAiBE,YAAA,CAAA,KAAA,CAAhB,CACC,WAAA,CAAU,eACV,SAAA,CAAWU,mBAAAA,CAAG,4DAAA,CAA8DF,CAAS,EACpF,GAAGf,CAAAA,CACN,CAEJ,CAEA,SAAS6B,CAAAA,CAAkB,CACzB,UAAAd,CAAAA,CACA,GAAGf,CACL,CAAA,CACsD,CACpD,GAAM,CAAE,SAAAC,CAAS,CAAA,CAAIC,mBAAAA,EAAc,CAC7B,CAAE,YAAA,CAAAO,CAAa,CAAA,CAAIC,gBAAAA,CAAWd,CAAa,CAAA,CACjD,OAAIK,GAAYQ,CAAAA,CAEZJ,cAAAA,CAACC,YAAgB,WAAA,CAAhB,CACC,WAAA,CAAU,oBAAA,CACV,UAAWS,CAAAA,CACV,GAAGf,CAAAA,CACN,CAAA,CAIFK,eAAiBE,YAAA,CAAA,WAAA,CAAhB,CACC,WAAA,CAAU,oBAAA,CACV,UAAWU,mBAAAA,CAAG,+BAAA,CAAiCF,CAAS,CAAA,CACvD,GAAGf,EACN,CAEJ","file":"chunk-LMBA2JFO.cjs","sourcesContent":["import { type ComponentProps, createContext, forwardRef, useContext, useMemo } from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\nimport * as DialogPrimitive from 'radix-ui/dialog';\nimport { LuX } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '../button/button';\nimport { useIsMobile, useWindowSize } from '@/hooks';\n\nconst DialogContext = createContext({ isResponsive: true });\n\nfunction Dialog({\n disableDrawerOnMobile = false,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Root> &\n ComponentProps<typeof DrawerPrimitive.Root> & { disableDrawerOnMobile?: boolean }) {\n const { isMobile } = useWindowSize();\n\n const contextValue = useMemo(\n () => ({ isResponsive: !disableDrawerOnMobile }),\n [disableDrawerOnMobile],\n );\n\n return (\n <DialogContext.Provider value={contextValue}>\n {isMobile && !disableDrawerOnMobile ? (\n <DrawerPrimitive.Root data-slot=\"drawer\" direction=\"bottom\" {...props} />\n ) : (\n <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n )}\n </DialogContext.Provider>\n );\n}\n\nfunction DialogTrigger({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Trigger> &\n ComponentProps<typeof DrawerPrimitive.Trigger>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n }\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Portal> & ComponentProps<typeof DrawerPrimitive.Portal>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n }\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: ComponentProps<typeof DialogPrimitive.Close> & ComponentProps<typeof DrawerPrimitive.Close>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n }\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nconst DialogOverlay = forwardRef<\n HTMLDivElement,\n ComponentProps<typeof DialogPrimitive.Overlay> & ComponentProps<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-modal-stacking-context fixed inset-0 bg-black/50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\n\nconst DialogContent = forwardRef<\n HTMLDivElement,\n ComponentProps<typeof DialogPrimitive.Content> &\n ComponentProps<typeof DrawerPrimitive.Content> & {\n onBackButtonClick?: () => void;\n overlayClassName?: string | undefined;\n }\n>(({ className, children = null, overlayClassName, ...props }, ref) => {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DialogPortal data-slot=\"drawer-portal\">\n <DialogOverlay className={overlayClassName} />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col px-4',\n 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',\n 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',\n 'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-md',\n 'data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm',\n 'max-w-dvw!',\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </DrawerPrimitive.Content>\n </DialogPortal>\n );\n }\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay className={overlayClassName} />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-modal-stacking-context fixed top-[50%] left-[50%] grid w-[550px] max-w-[720px] min-w-[440px] translate-x-[-50%] translate-y-[-50%] rounded-lg border border-gray-300 p-6 shadow-sm duration-200',\n className,\n )}\n ref={ref}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n});\n\nfunction DialogHeader({\n className,\n showCloseButton = true,\n ...props\n}: ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn('relative flex flex-col gap-0.5 pt-6 pb-4 text-left md:gap-1.5', className)}\n {...props}\n >\n {showCloseButton && (\n <DialogClose asChild>\n <Button className=\"absolute top-5 right-0\" size=\"sm\" variant=\"ghost-icon\">\n <LuX />\n <span className=\"sr-only\">Close dialog</span>\n </Button>\n </DialogClose>\n )}\n {props.children}\n </div>\n );\n }\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn('relative flex flex-col gap-2 pb-4', className)}\n {...props}\n >\n {showCloseButton && (\n <DialogClose asChild>\n <Button className=\"absolute top-0 right-0\" size=\"sm\" variant=\"ghost-icon\">\n <LuX />\n <span className=\"sr-only\">Close dialog</span>\n </Button>\n </DialogClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex flex-col gap-2 py-4', className)}\n {...props}\n />\n );\n }\n return (\n <div data-slot=\"dialog-footer\" className={cn('mt-2 flex gap-2 pt-3', className)} {...props} />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Title> & ComponentProps<typeof DrawerPrimitive.Title>) {\n const { isMobile } = useIsMobile();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('font-display pr-6 text-3xl', className)}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('font-display pr-6 text-3xl leading-none tracking-[0.01rem]', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Description> &\n ComponentProps<typeof DrawerPrimitive.Description>) {\n const { isMobile } = useWindowSize();\n const { isResponsive } = useContext(DialogContext);\n if (isMobile && isResponsive) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={className}\n {...props}\n />\n );\n }\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkIINNHABI_cjs=require('./chunk-IINNHABI.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),u=require('react'),vaul=require('vaul'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var u__namespace=/*#__PURE__*/_interopNamespace(u);function x({autoFocus:t=true,...e}){let{isMobile:a,isTablet:i}=chunkULTFWLWO_cjs.b(),n=!a&&!i;return jsxRuntime.jsx(vaul.Drawer.Root,{"data-slot":"drawer",handleOnly:n,autoFocus:t,...e})}function C({...t}){return jsxRuntime.jsx(vaul.Drawer.Trigger,{"data-slot":"drawer-trigger",...t})}function f({...t}){return jsxRuntime.jsx(vaul.Drawer.Portal,{"data-slot":"drawer-portal",...t})}function v({...t}){return jsxRuntime.jsx(vaul.Drawer.Close,{"data-slot":"drawer-close",...t})}var b=u__namespace.forwardRef(({className:t,...e},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,"data-slot":"drawer-overlay",className:chunkQRO22BPZ_cjs.a("z-modal-stacking-context fixed inset-0 bg-black/50",t),...e}));function R({className:t,children:e,...a}){let i=/\bw-(\w+)\b/.test(t??""),{isMobile:n,isTablet:w}=chunkULTFWLWO_cjs.b(),m=!n&&!w;return jsxRuntime.jsxs(f,{"data-slot":"drawer-portal",children:[jsxRuntime.jsx(b,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{"data-slot":"drawer-content",className:chunkQRO22BPZ_cjs.a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col",m?"!select-auto":"","data-[vaul-drawer-direction=top]:inset-x-0","data-[vaul-drawer-direction=top]:top-0","data-[vaul-drawer-direction=top]:mb-24","data-[vaul-drawer-direction=top]:max-h-[80vh]","data-[vaul-drawer-direction=top]:rounded-b-lg","data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0","data-[vaul-drawer-direction=bottom]:bottom-0","data-[vaul-drawer-direction=bottom]:mt-24","data-[vaul-drawer-direction=bottom]:max-h-[80vh]","data-[vaul-drawer-direction=bottom]:rounded-t-lg","data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0","data-[vaul-drawer-direction=right]:right-0","data-[vaul-drawer-direction=right]:border-l","data-[vaul-drawer-direction=right]:rounded-l-md",!i&&"data-[vaul-drawer-direction=right]:w-3/4",!i&&"data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0","data-[vaul-drawer-direction=left]:left-0","data-[vaul-drawer-direction=left]:border-r","data-[vaul-drawer-direction=left]:rounded-r-md",!i&&"data-[vaul-drawer-direction=left]:w-3/4",!i&&"data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...a,children:[jsxRuntime.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function T({className:t,showClose:e=false,...a}){return jsxRuntime.jsxs("div",{"data-slot":"drawer-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8",t),...a,children:[e&&jsxRuntime.jsx(v,{className:"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none","aria-label":"Close",asChild:true,children:jsxRuntime.jsx(chunkIINNHABI_cjs.b,{variant:"ghost-secondary",className:"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0",children:jsxRuntime.jsx(lu.LuX,{})})}),a.children]})}function k({className:t,...e}){return jsxRuntime.jsx("div",{"data-slot":"drawer-footer",className:chunkQRO22BPZ_cjs.a("mt-auto flex gap-2 border-t p-4 md:p-8",t),...e})}function N({className:t,...e}){return jsxRuntime.jsx(vaul.Drawer.Title,{"data-slot":"drawer-title",className:chunkQRO22BPZ_cjs.a("text-display-md",t),...e})}function O({...t}){return jsxRuntime.jsx(vaul.Drawer.Description,{"data-slot":"drawer-description",...t})}exports.a=x;exports.b=C;exports.c=f;exports.d=v;exports.e=b;exports.f=R;exports.g=T;exports.h=k;exports.i=N;exports.j=O;//# sourceMappingURL=chunk-Y7VDSCWO.cjs.map
2
- //# sourceMappingURL=chunk-Y7VDSCWO.cjs.map
1
+ 'use strict';var chunkIINNHABI_cjs=require('./chunk-IINNHABI.cjs'),chunkQRO22BPZ_cjs=require('./chunk-QRO22BPZ.cjs'),chunkULTFWLWO_cjs=require('./chunk-ULTFWLWO.cjs'),u=require('react'),vaul=require('vaul'),lu=require('react-icons/lu'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var u__namespace=/*#__PURE__*/_interopNamespace(u);function x({autoFocus:t=true,...e}){let{isMobile:a,isTablet:i}=chunkULTFWLWO_cjs.b(),n=!a&&!i;return jsxRuntime.jsx(vaul.Drawer.Root,{"data-slot":"drawer",handleOnly:n,autoFocus:t,...e})}function C({...t}){return jsxRuntime.jsx(vaul.Drawer.Trigger,{"data-slot":"drawer-trigger",...t})}function f({...t}){return jsxRuntime.jsx(vaul.Drawer.Portal,{"data-slot":"drawer-portal",...t})}function v({...t}){return jsxRuntime.jsx(vaul.Drawer.Close,{"data-slot":"drawer-close",...t})}var b=u__namespace.forwardRef(({className:t,...e},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,"data-slot":"drawer-overlay",className:chunkQRO22BPZ_cjs.a("z-modal-stacking-context fixed inset-0 bg-black/50",t),...e}));function R({className:t,children:e,...a}){let i=/\bw-(\w+)\b/.test(t??""),{isMobile:n,isTablet:w}=chunkULTFWLWO_cjs.b(),m=!n&&!w;return jsxRuntime.jsxs(f,{"data-slot":"drawer-portal",children:[jsxRuntime.jsx(b,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{"data-slot":"drawer-content",className:chunkQRO22BPZ_cjs.a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col",m?"!select-auto":"","data-[vaul-drawer-direction=top]:inset-x-0","data-[vaul-drawer-direction=top]:top-0","data-[vaul-drawer-direction=top]:mb-24","data-[vaul-drawer-direction=top]:max-h-[80vh]","data-[vaul-drawer-direction=top]:rounded-b-lg","data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0","data-[vaul-drawer-direction=bottom]:bottom-0","data-[vaul-drawer-direction=bottom]:mt-24","data-[vaul-drawer-direction=bottom]:max-h-[80vh]","data-[vaul-drawer-direction=bottom]:rounded-t-lg","data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0","data-[vaul-drawer-direction=right]:right-0","data-[vaul-drawer-direction=right]:border-l","data-[vaul-drawer-direction=right]:rounded-l-md",!i&&"data-[vaul-drawer-direction=right]:w-3/4",!i&&"data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0","data-[vaul-drawer-direction=left]:left-0","data-[vaul-drawer-direction=left]:border-r","data-[vaul-drawer-direction=left]:rounded-r-md",!i&&"data-[vaul-drawer-direction=left]:w-3/4",!i&&"data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...a,children:[jsxRuntime.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function T({className:t,showClose:e=false,...a}){return jsxRuntime.jsxs("div",{"data-slot":"drawer-header",className:chunkQRO22BPZ_cjs.a("relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8",t),...a,children:[e&&jsxRuntime.jsx(v,{className:"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none","aria-label":"Close",asChild:true,children:jsxRuntime.jsx(chunkIINNHABI_cjs.b,{variant:"ghost-secondary",className:"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0",children:jsxRuntime.jsx(lu.LuX,{})})}),a.children]})}function k({className:t,...e}){return jsxRuntime.jsx("div",{"data-slot":"drawer-footer",className:chunkQRO22BPZ_cjs.a("mt-auto flex gap-2 border-t p-4 md:p-8",t),...e})}function N({className:t,...e}){return jsxRuntime.jsx(vaul.Drawer.Title,{"data-slot":"drawer-title",className:chunkQRO22BPZ_cjs.a("text-display-md",t),...e})}function O({...t}){return jsxRuntime.jsx(vaul.Drawer.Description,{"data-slot":"drawer-description",...t})}exports.a=x;exports.b=C;exports.c=f;exports.d=v;exports.e=b;exports.f=R;exports.g=T;exports.h=k;exports.i=N;exports.j=O;//# sourceMappingURL=chunk-MBNVWLVX.cjs.map
2
+ //# sourceMappingURL=chunk-MBNVWLVX.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v2/drawer/drawer.tsx"],"names":["Drawer","autoFocus","props","isMobile","isTablet","useWindowSize_default","handleOnly","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","u","className","ref","cn","DrawerContent","children","hasWidth","allowUserSelect","jsxs","DrawerHeader","showClose","Button","LuX","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"0nBAQA,SAASA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAY,IAAA,CAAM,GAAGC,CAAM,CAAA,CAAsD,CACjG,GAAM,CAAE,QAAA,CAAAC,EAAU,QAAA,CAAAC,CA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M,QAAA,CAAA,CACT,CAEJ,CAEA,SAASwB,CAAAA,CAAa,CAAE,UAAAZ,CAAAA,CAAW,GAAGZ,CAAM,CAAA,CAAgC,CAC1E,OACEK,cAAAA,CAAC,KAAA,CAAA,CACC,YAAU,eAAA,CACV,SAAA,CAAWS,oBAAG,wCAAA,CAA0CF,CAAS,EAChE,GAAGZ,CAAAA,CACN,CAEJ,CAEA,SAASyB,CAAAA,CAAY,CAAE,UAAAb,CAAAA,CAAW,GAAGZ,CAAM,CAAA,CAAuD,CAChG,OACEK,cAAAA,CAACC,YAAgB,KAAA,CAAhB,CACC,YAAU,cAAA,CACV,SAAA,CAAWQ,oBAAG,iBAAA,CAAmBF,CAAS,CAAA,CACzC,GAAGZ,EACN,CAEJ,CAEA,SAAS0B,CAAAA,CAAkB,CAAE,GAAG1B,CAAM,CAAA,CAA6D,CACjG,OAAOK,cAAAA,CAACC,YAAgB,WAAA,CAAhB,CAA4B,YAAU,oBAAA,CAAsB,GAAGN,EAAO,CAChF","file":"chunk-Y7VDSCWO.cjs","sourcesContent":["import * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { LuX } from 'react-icons/lu';\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/v2/button/button';\nimport { useWindowSize } from '@/hooks';\n\nfunction Drawer({ autoFocus = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n const { isMobile, isTablet } = useWindowSize();\n // Invert the default behavior of vaul's drawer: https://vaul.emilkowal.ski/api#root\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const handleOnly = !isMobile && !isTablet;\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n handleOnly={handleOnly}\n // Invert the default behavior of vaul's drawer to always autoFocus by default\n // This ensures that keyboard users see focus moved to the drawer when it opens\n // unless explicitly disabled\n autoFocus={autoFocus}\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n// NOTE: forwardRef for radix (underlying library for vaul)\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n data-slot=\"drawer-overlay\"\n className={cn('z-modal-stacking-context fixed inset-0 bg-black/50', className)}\n {...props}\n />\n));\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n const hasWidth = /\\bw-(\\w+)\\b/.test(className ?? '');\n\n const { isMobile, isTablet } = useWindowSize();\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const allowUserSelect = !isMobile && !isTablet;\n\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col',\n\n allowUserSelect ? '!select-auto' : '',\n\n // top drawer\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n 'data-[vaul-drawer-direction=top]:border-b',\n\n // bottom drawer\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n 'data-[vaul-drawer-direction=bottom]:border-t',\n\n // right drawer\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:border-l',\n 'data-[vaul-drawer-direction=right]:rounded-l-md',\n !hasWidth && 'data-[vaul-drawer-direction=right]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=right]:sm:max-w-md',\n\n // left drawer\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:border-r',\n 'data-[vaul-drawer-direction=left]:rounded-r-md',\n !hasWidth && 'data-[vaul-drawer-direction=left]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({\n className,\n showClose = false,\n ...props\n}: React.ComponentProps<'div'> & { showClose?: boolean }) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8',\n className,\n )}\n {...props}\n >\n {showClose && (\n <DrawerClose\n className=\"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\"\n aria-label=\"Close\"\n asChild\n >\n <Button\n variant=\"ghost-secondary\"\n className=\"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0\"\n >\n <LuX />\n </Button>\n </DrawerClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex gap-2 border-t p-4 md:p-8', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-display-md', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" {...props} />;\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
1
+ {"version":3,"sources":["../src/v2/drawer/drawer.tsx"],"names":["Drawer","autoFocus","props","isMobile","isTablet","useWindowSize_default","handleOnly","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","u","className","ref","cn","DrawerContent","children","hasWidth","allowUserSelect","jsxs","DrawerHeader","showClose","Button","LuX","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"0nBAQA,SAASA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAY,IAAA,CAAM,GAAGC,CAAM,CAAA,CAAsD,CACjG,GAAM,CAAE,QAAA,CAAAC,EAAU,QAAA,CAAAC,CAAS,CAAA,CAAIC,mBAAAA,GAIzBC,CAAAA,CAAa,CAACH,GAAY,CAACC,CAAAA,CACjC,OACEG,cAAAA,CAACC,WAAAA,CAAgB,IAAA,CAAhB,CACC,YAAU,QAAA,CACV,UAAA,CAAYF,EAIZ,SAAA,CAAWL,CAAAA,CACV,GAAGC,CAAAA,CACN,CAEJ,CAEA,SAASO,EAAc,CAAE,GAAGP,CAAM,CAAA,CAAyD,CACzF,O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UAAAb,CAAAA,CAAW,GAAGZ,CAAM,CAAA,CAAuD,CAChG,OACEK,cAAAA,CAACC,YAAgB,KAAA,CAAhB,CACC,YAAU,cAAA,CACV,SAAA,CAAWQ,oBAAG,iBAAA,CAAmBF,CAAS,CAAA,CACzC,GAAGZ,EACN,CAEJ,CAEA,SAAS0B,CAAAA,CAAkB,CAAE,GAAG1B,CAAM,CAAA,CAA6D,CACjG,OAAOK,cAAAA,CAACC,YAAgB,WAAA,CAAhB,CAA4B,YAAU,oBAAA,CAAsB,GAAGN,EAAO,CAChF","file":"chunk-MBNVWLVX.cjs","sourcesContent":["import * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { LuX } from 'react-icons/lu';\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/v2/button/button';\nimport { useWindowSize } from '@/hooks';\n\nfunction Drawer({ autoFocus = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n const { isMobile, isTablet } = useWindowSize();\n // Invert the default behavior of vaul's drawer: https://vaul.emilkowal.ski/api#root\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const handleOnly = !isMobile && !isTablet;\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n handleOnly={handleOnly}\n // Invert the default behavior of vaul's drawer to always autoFocus by default\n // This ensures that keyboard users see focus moved to the drawer when it opens\n // unless explicitly disabled\n autoFocus={autoFocus}\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n// NOTE: forwardRef for radix (underlying library for vaul)\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n data-slot=\"drawer-overlay\"\n className={cn('z-modal-stacking-context fixed inset-0 bg-black/50', className)}\n {...props}\n />\n));\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n const hasWidth = /\\bw-(\\w+)\\b/.test(className ?? '');\n\n const { isMobile, isTablet } = useWindowSize();\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const allowUserSelect = !isMobile && !isTablet;\n\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col',\n\n allowUserSelect ? '!select-auto' : '',\n\n // top drawer\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n 'data-[vaul-drawer-direction=top]:border-b',\n\n // bottom drawer\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n 'data-[vaul-drawer-direction=bottom]:border-t',\n\n // right drawer\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:border-l',\n 'data-[vaul-drawer-direction=right]:rounded-l-md',\n !hasWidth && 'data-[vaul-drawer-direction=right]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=right]:sm:max-w-md',\n\n // left drawer\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:border-r',\n 'data-[vaul-drawer-direction=left]:rounded-r-md',\n !hasWidth && 'data-[vaul-drawer-direction=left]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({\n className,\n showClose = false,\n ...props\n}: React.ComponentProps<'div'> & { showClose?: boolean }) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8',\n className,\n )}\n {...props}\n >\n {showClose && (\n <DrawerClose\n className=\"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\"\n aria-label=\"Close\"\n asChild\n >\n <Button\n variant=\"ghost-secondary\"\n className=\"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0\"\n >\n <LuX />\n </Button>\n </DrawerClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex gap-2 border-t p-4 md:p-8', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-display-md', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" {...props} />;\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$2}from'./chunk-NNPDHI4P.js';import {b as b$1}from'./chunk-6MYNQMQU.js';import {a}from'./chunk-YTIIAU4W.js';import*as u from'react';import {Drawer}from'vaul';import {LuX}from'react-icons/lu';import {jsx,jsxs}from'react/jsx-runtime';function x({autoFocus:t=true,...e}){let{isMobile:a,isTablet:i}=b$1(),n=!a&&!i;return jsx(Drawer.Root,{"data-slot":"drawer",handleOnly:n,autoFocus:t,...e})}function C({...t}){return jsx(Drawer.Trigger,{"data-slot":"drawer-trigger",...t})}function f({...t}){return jsx(Drawer.Portal,{"data-slot":"drawer-portal",...t})}function v({...t}){return jsx(Drawer.Close,{"data-slot":"drawer-close",...t})}var b=u.forwardRef(({className:t,...e},a$1)=>jsx(Drawer.Overlay,{ref:a$1,"data-slot":"drawer-overlay",className:a("z-modal-stacking-context fixed inset-0 bg-black/50",t),...e}));function R({className:t,children:e,...a$1}){let i=/\bw-(\w+)\b/.test(t??""),{isMobile:n,isTablet:w}=b$1(),m=!n&&!w;return jsxs(f,{"data-slot":"drawer-portal",children:[jsx(b,{}),jsxs(Drawer.Content,{"data-slot":"drawer-content",className:a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col",m?"!select-auto":"","data-[vaul-drawer-direction=top]:inset-x-0","data-[vaul-drawer-direction=top]:top-0","data-[vaul-drawer-direction=top]:mb-24","data-[vaul-drawer-direction=top]:max-h-[80vh]","data-[vaul-drawer-direction=top]:rounded-b-lg","data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0","data-[vaul-drawer-direction=bottom]:bottom-0","data-[vaul-drawer-direction=bottom]:mt-24","data-[vaul-drawer-direction=bottom]:max-h-[80vh]","data-[vaul-drawer-direction=bottom]:rounded-t-lg","data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0","data-[vaul-drawer-direction=right]:right-0","data-[vaul-drawer-direction=right]:border-l","data-[vaul-drawer-direction=right]:rounded-l-md",!i&&"data-[vaul-drawer-direction=right]:w-3/4",!i&&"data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0","data-[vaul-drawer-direction=left]:left-0","data-[vaul-drawer-direction=left]:border-r","data-[vaul-drawer-direction=left]:rounded-r-md",!i&&"data-[vaul-drawer-direction=left]:w-3/4",!i&&"data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...a$1,children:[jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function T({className:t,showClose:e=false,...a$1}){return jsxs("div",{"data-slot":"drawer-header",className:a("relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8",t),...a$1,children:[e&&jsx(v,{className:"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none","aria-label":"Close",asChild:true,children:jsx(b$2,{variant:"ghost-secondary",className:"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0",children:jsx(LuX,{})})}),a$1.children]})}function k({className:t,...e}){return jsx("div",{"data-slot":"drawer-footer",className:a("mt-auto flex gap-2 border-t p-4 md:p-8",t),...e})}function N({className:t,...e}){return jsx(Drawer.Title,{"data-slot":"drawer-title",className:a("text-display-md",t),...e})}function O({...t}){return jsx(Drawer.Description,{"data-slot":"drawer-description",...t})}export{x as a,C as b,f as c,v as d,b as e,R as f,T as g,k as h,N as i,O as j};//# sourceMappingURL=chunk-DWJXUICJ.js.map
2
- //# sourceMappingURL=chunk-DWJXUICJ.js.map
1
+ import {b as b$2}from'./chunk-NNPDHI4P.js';import {a}from'./chunk-YTIIAU4W.js';import {b as b$1}from'./chunk-6MYNQMQU.js';import*as u from'react';import {Drawer}from'vaul';import {LuX}from'react-icons/lu';import {jsx,jsxs}from'react/jsx-runtime';function x({autoFocus:t=true,...e}){let{isMobile:a,isTablet:i}=b$1(),n=!a&&!i;return jsx(Drawer.Root,{"data-slot":"drawer",handleOnly:n,autoFocus:t,...e})}function C({...t}){return jsx(Drawer.Trigger,{"data-slot":"drawer-trigger",...t})}function f({...t}){return jsx(Drawer.Portal,{"data-slot":"drawer-portal",...t})}function v({...t}){return jsx(Drawer.Close,{"data-slot":"drawer-close",...t})}var b=u.forwardRef(({className:t,...e},a$1)=>jsx(Drawer.Overlay,{ref:a$1,"data-slot":"drawer-overlay",className:a("z-modal-stacking-context fixed inset-0 bg-black/50",t),...e}));function R({className:t,children:e,...a$1}){let i=/\bw-(\w+)\b/.test(t??""),{isMobile:n,isTablet:w}=b$1(),m=!n&&!w;return jsxs(f,{"data-slot":"drawer-portal",children:[jsx(b,{}),jsxs(Drawer.Content,{"data-slot":"drawer-content",className:a("group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col",m?"!select-auto":"","data-[vaul-drawer-direction=top]:inset-x-0","data-[vaul-drawer-direction=top]:top-0","data-[vaul-drawer-direction=top]:mb-24","data-[vaul-drawer-direction=top]:max-h-[80vh]","data-[vaul-drawer-direction=top]:rounded-b-lg","data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0","data-[vaul-drawer-direction=bottom]:bottom-0","data-[vaul-drawer-direction=bottom]:mt-24","data-[vaul-drawer-direction=bottom]:max-h-[80vh]","data-[vaul-drawer-direction=bottom]:rounded-t-lg","data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0","data-[vaul-drawer-direction=right]:right-0","data-[vaul-drawer-direction=right]:border-l","data-[vaul-drawer-direction=right]:rounded-l-md",!i&&"data-[vaul-drawer-direction=right]:w-3/4",!i&&"data-[vaul-drawer-direction=right]:sm:max-w-md","data-[vaul-drawer-direction=left]:inset-y-0","data-[vaul-drawer-direction=left]:left-0","data-[vaul-drawer-direction=left]:border-r","data-[vaul-drawer-direction=left]:rounded-r-md",!i&&"data-[vaul-drawer-direction=left]:w-3/4",!i&&"data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...a$1,children:[jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function T({className:t,showClose:e=false,...a$1}){return jsxs("div",{"data-slot":"drawer-header",className:a("relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8",t),...a$1,children:[e&&jsx(v,{className:"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none","aria-label":"Close",asChild:true,children:jsx(b$2,{variant:"ghost-secondary",className:"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0",children:jsx(LuX,{})})}),a$1.children]})}function k({className:t,...e}){return jsx("div",{"data-slot":"drawer-footer",className:a("mt-auto flex gap-2 border-t p-4 md:p-8",t),...e})}function N({className:t,...e}){return jsx(Drawer.Title,{"data-slot":"drawer-title",className:a("text-display-md",t),...e})}function O({...t}){return jsx(Drawer.Description,{"data-slot":"drawer-description",...t})}export{x as a,C as b,f as c,v as d,b as e,R as f,T as g,k as h,N as i,O as j};//# sourceMappingURL=chunk-OHNG7MQY.js.map
2
+ //# sourceMappingURL=chunk-OHNG7MQY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v2/drawer/drawer.tsx"],"names":["Drawer","autoFocus","props","isMobile","isTablet","useWindowSize_default","handleOnly","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","className","ref","cn","DrawerContent","children","hasWidth","allowUserSelect","jsxs","DrawerHeader","showClose","Button","LuX","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"sPAQA,SAASA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAY,IAAA,CAAM,GAAGC,CAAM,CAAA,CAAsD,CACjG,GAAM,CAAE,QAAA,CAAAC,EAAU,QAAA,CAAAC,CAAS,CAAA,CAAIC,GAAAA,GAIzBC,CAAAA,CAAa,CAACH,GAAY,CAACC,CAAAA,CACjC,OACEG,GAAAA,CAACC,MAAAA,CAAgB,IAAA,CAAhB,CACC,YAAU,QAAA,CACV,UAAA,CAAYF,EAIZ,SAAA,CAAWL,CAAAA,CACV,GAAGC,CAAAA,CACN,CAEJ,CAEA,SAASO,EAAc,CAAE,GAAGP,CAAM,CAAA,CAAyD,CACzF,OAAOK,GAAAA,CAACC,MAAAA,CAAgB,OAAA,CAAhB,CAAwB,YAAU,gBAAA,CAAkB,GAAGN,EAAO,CACxE,CAEA,SAASQ,CAAAA,CAAa,CAAE,GAAGR,CAAM,CAAA,CAAwD,CACvF,OAAOK,GAAAA,CAACC,OAAgB,MAAA,CAAhB,CAAuB,YAAU,eAAA,CAAiB,GAAGN,CAAAA,CAAO,CACtE,CAEA,SAASS,CAAAA,CAAY,CAAE,GAAGT,CAAM,EAAuD,CACrF,OAAOK,GAAAA,CAACC,MAAAA,CAAgB,MAAhB,CAAsB,WAAA,CAAU,eAAgB,GAAGN,CAAAA,CAAO,CACpE,CAGA,IAAMU,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAG1B,CAAC,CAAE,SAAA,CAAAC,EAAW,GAAGX,CAAM,EAAGY,GAAAA,GAC1BP,GAAAA,CAACC,OAAgB,OAAA,CAAhB,CACC,IAAKM,GAAAA,CACL,WAAA,CAAU,iBACV,SAAA,CAAWC,CAAAA,CAAG,qDAAsDF,CAAS,CAAA,CAC5E,GAAGX,CAAAA,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,EACCf,GAAAA,CAACI,EAAA,CACC,SAAA,CAAU,sKAAA,CACV,YAAA,CAAW,QACX,OAAA,CAAO,IAAA,CAEP,SAAAJ,GAAAA,CAACgB,GAAAA,CAAA,CACC,OAAA,CAAQ,iBAAA,CACR,SAAA,CAAU,oEAAA,CAEV,SAAAhB,GAAAA,CAACiB,GAAAA,CAAA,EAAI,CAAA,CACP,CAAA,CACF,EAEDtB,GAAAA,CAAM,QAAA,CAAA,CACT,CAEJ,CAEA,SAASuB,CAAAA,CAAa,CAAE,UAAAZ,CAAAA,CAAW,GAAGX,CAAM,CAAA,CAAgC,CAC1E,OACEK,GAAAA,CAAC,KAAA,CAAA,CACC,YAAU,eAAA,CACV,SAAA,CAAWQ,EAAG,wCAAA,CAA0CF,CAAS,EAChE,GAAGX,CAAAA,CACN,CAEJ,CAEA,SAASwB,CAAAA,CAAY,CAAE,UAAAb,CAAAA,CAAW,GAAGX,CAAM,CAAA,CAAuD,CAChG,OACEK,GAAAA,CAACC,OAAgB,KAAA,CAAhB,CACC,YAAU,cAAA,CACV,SAAA,CAAWO,EAAG,iBAAA,CAAmBF,CAAS,CAAA,CACzC,GAAGX,EACN,CAEJ,CAEA,SAASyB,CAAAA,CAAkB,CAAE,GAAGzB,CAAM,CAAA,CAA6D,CACjG,OAAOK,GAAAA,CAACC,OAAgB,WAAA,CAAhB,CAA4B,YAAU,oBAAA,CAAsB,GAAGN,EAAO,CAChF","file":"chunk-DWJXUICJ.js","sourcesContent":["import * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { LuX } from 'react-icons/lu';\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/v2/button/button';\nimport { useWindowSize } from '@/hooks';\n\nfunction Drawer({ autoFocus = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n const { isMobile, isTablet } = useWindowSize();\n // Invert the default behavior of vaul's drawer: https://vaul.emilkowal.ski/api#root\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const handleOnly = !isMobile && !isTablet;\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n handleOnly={handleOnly}\n // Invert the default behavior of vaul's drawer to always autoFocus by default\n // This ensures that keyboard users see focus moved to the drawer when it opens\n // unless explicitly disabled\n autoFocus={autoFocus}\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n// NOTE: forwardRef for radix (underlying library for vaul)\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n data-slot=\"drawer-overlay\"\n className={cn('z-modal-stacking-context fixed inset-0 bg-black/50', className)}\n {...props}\n />\n));\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n const hasWidth = /\\bw-(\\w+)\\b/.test(className ?? '');\n\n const { isMobile, isTablet } = useWindowSize();\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const allowUserSelect = !isMobile && !isTablet;\n\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col',\n\n allowUserSelect ? '!select-auto' : '',\n\n // top drawer\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n 'data-[vaul-drawer-direction=top]:border-b',\n\n // bottom drawer\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n 'data-[vaul-drawer-direction=bottom]:border-t',\n\n // right drawer\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:border-l',\n 'data-[vaul-drawer-direction=right]:rounded-l-md',\n !hasWidth && 'data-[vaul-drawer-direction=right]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=right]:sm:max-w-md',\n\n // left drawer\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:border-r',\n 'data-[vaul-drawer-direction=left]:rounded-r-md',\n !hasWidth && 'data-[vaul-drawer-direction=left]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({\n className,\n showClose = false,\n ...props\n}: React.ComponentProps<'div'> & { showClose?: boolean }) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8',\n className,\n )}\n {...props}\n >\n {showClose && (\n <DrawerClose\n className=\"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\"\n aria-label=\"Close\"\n asChild\n >\n <Button\n variant=\"ghost-secondary\"\n className=\"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0\"\n >\n <LuX />\n </Button>\n </DrawerClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex gap-2 border-t p-4 md:p-8', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-display-md', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" {...props} />;\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
1
+ {"version":3,"sources":["../src/v2/drawer/drawer.tsx"],"names":["Drawer","autoFocus","props","isMobile","isTablet","useWindowSize_default","handleOnly","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","className","ref","cn","DrawerContent","children","hasWidth","allowUserSelect","jsxs","DrawerHeader","showClose","Button","LuX","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"sPAQA,SAASA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAY,IAAA,CAAM,GAAGC,CAAM,CAAA,CAAsD,CACjG,GAAM,CAAE,QAAA,CAAAC,EAAU,QAAA,CAAAC,CAAS,CAAA,CAAIC,GAAA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uB,CAAAA,CAAa,CAAE,UAAAZ,CAAAA,CAAW,GAAGX,CAAM,CAAA,CAAgC,CAC1E,OACEK,GAAAA,CAAC,KAAA,CAAA,CACC,YAAU,eAAA,CACV,SAAA,CAAWQ,EAAG,wCAAA,CAA0CF,CAAS,EAChE,GAAGX,CAAAA,CACN,CAEJ,CAEA,SAASwB,CAAAA,CAAY,CAAE,UAAAb,CAAAA,CAAW,GAAGX,CAAM,CAAA,CAAuD,CAChG,OACEK,GAAAA,CAACC,OAAgB,KAAA,CAAhB,CACC,YAAU,cAAA,CACV,SAAA,CAAWO,EAAG,iBAAA,CAAmBF,CAAS,CAAA,CACzC,GAAGX,EACN,CAEJ,CAEA,SAASyB,CAAAA,CAAkB,CAAE,GAAGzB,CAAM,CAAA,CAA6D,CACjG,OAAOK,GAAAA,CAACC,OAAgB,WAAA,CAAhB,CAA4B,YAAU,oBAAA,CAAsB,GAAGN,EAAO,CAChF","file":"chunk-OHNG7MQY.js","sourcesContent":["import * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { LuX } from 'react-icons/lu';\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/v2/button/button';\nimport { useWindowSize } from '@/hooks';\n\nfunction Drawer({ autoFocus = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n const { isMobile, isTablet } = useWindowSize();\n // Invert the default behavior of vaul's drawer: https://vaul.emilkowal.ski/api#root\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const handleOnly = !isMobile && !isTablet;\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n handleOnly={handleOnly}\n // Invert the default behavior of vaul's drawer to always autoFocus by default\n // This ensures that keyboard users see focus moved to the drawer when it opens\n // unless explicitly disabled\n autoFocus={autoFocus}\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n// NOTE: forwardRef for radix (underlying library for vaul)\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n data-slot=\"drawer-overlay\"\n className={cn('z-modal-stacking-context fixed inset-0 bg-black/50', className)}\n {...props}\n />\n));\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n const hasWidth = /\\bw-(\\w+)\\b/.test(className ?? '');\n\n const { isMobile, isTablet } = useWindowSize();\n // Desktop users can click the X or overlay to close, so we can disable dragging the drawer itself to close\n // this lets us allow users them to select text in the drawer without accidentally closing it\n const allowUserSelect = !isMobile && !isTablet;\n\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background z-modal-stacking-context fixed flex h-auto flex-col',\n\n allowUserSelect ? '!select-auto' : '',\n\n // top drawer\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n 'data-[vaul-drawer-direction=top]:border-b',\n\n // bottom drawer\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n 'data-[vaul-drawer-direction=bottom]:border-t',\n\n // right drawer\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:border-l',\n 'data-[vaul-drawer-direction=right]:rounded-l-md',\n !hasWidth && 'data-[vaul-drawer-direction=right]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=right]:sm:max-w-md',\n\n // left drawer\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:border-r',\n 'data-[vaul-drawer-direction=left]:rounded-r-md',\n !hasWidth && 'data-[vaul-drawer-direction=left]:w-3/4',\n !hasWidth && 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({\n className,\n showClose = false,\n ...props\n}: React.ComponentProps<'div'> & { showClose?: boolean }) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'relative flex flex-col gap-0.5 border-b p-4 text-left md:gap-1.5 md:p-8',\n className,\n )}\n {...props}\n >\n {showClose && (\n <DrawerClose\n className=\"focus:ring-ring absolute rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\"\n aria-label=\"Close\"\n asChild\n >\n <Button\n variant=\"ghost-secondary\"\n className=\"text-primary absolute top-1/2 right-4 h-8 w-8 -translate-y-1/2 p-0\"\n >\n <LuX />\n </Button>\n </DrawerClose>\n )}\n {props.children}\n </div>\n );\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn('mt-auto flex gap-2 border-t p-4 md:p-8', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn('text-display-md', className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" {...props} />;\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
@@ -1,4 +1,4 @@
1
- import {b as b$1}from'./chunk-SKHANIYK.js';import {a as a$1}from'./chunk-DMPPXMMA.js';import r from'@emotion/styled';import {animated}from'@react-spring/web';import {Input}from'antd';var {TextArea:a}=Input,b=r(animated.div)`
1
+ import {b as b$1}from'./chunk-GY2SQISF.js';import {a as a$1}from'./chunk-DMPPXMMA.js';import r from'@emotion/styled';import {animated}from'@react-spring/web';import {Input}from'antd';var {TextArea:a}=Input,b=r(animated.div)`
2
2
  position: absolute;
3
3
  display: block;
4
4
  width: 45px;
@@ -87,5 +87,5 @@ import {b as b$1}from'./chunk-SKHANIYK.js';import {a as a$1}from'./chunk-DMPPXMM
87
87
  }
88
88
  `,u=r(a$1.Body)`
89
89
  display: block;
90
- `;export{b as a,c as b,f as c,y as d,g as e,u as f};//# sourceMappingURL=chunk-QZUVN273.js.map
91
- //# sourceMappingURL=chunk-QZUVN273.js.map
90
+ `;export{b as a,c as b,f as c,y as d,g as e,u as f};//# sourceMappingURL=chunk-QNYTQJJ7.js.map
91
+ //# sourceMappingURL=chunk-QNYTQJJ7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Form/TextInput/styles.tsx"],"names":["TextArea","VendorInput","ErrorContainer","styled","animated","Input","error","props","theme","StyledMaskedInput","MaskedInput","TextInputWrap","Area","marginBottom","PreviewValue","Typography_default"],"mappings":"uLAMA,IAAM,CAAE,SAAAA,CAAS,CAAA,CAAIC,MAERC,CAAAA,CAAiBC,CAAAA,CAAOC,SAAS,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAgBpCC,EAAQF,CAAAA,CAAO,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAA,EAKN,CAAC,CAAE,KAAA,CAAAG,CAAM,CAAA,GAAOA,CAAAA,CAAQ,MAAQ,SAAU,CAAA;AAAA;AAAA,oBAAA,EAEzCC,CAAAA,EAAWA,CAAAA,CAAM,QAAA,CAAW,SAAA,CAAY,MAAO,CAAA;AAAA,SAAA,EAC1DA,CAAAA,EAAWA,CAAAA,CAAM,QAAA,CAAW,0BAAA,CAA6B,MAAO,CAAA;AAAA,eAAA,EAC3D,CAAC,CAAE,KAAA,CAAAC,CAAM,IAAMA,CAAAA,CAAM,UAAA,CAAW,OAAO,IAAI,CAAA;AAAA,eAAA,EAC3C,CAAC,CAAE,KAAA,CAAAA,CAAM,IAAMA,CAAAA,CAAM,UAAA,CAAW,OAAO,MAAM,CAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA,sBAAA,EAOtC,CAAC,CAAE,KAAA,CAAAA,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA,0BAAA,EACtC,CAAC,CAAE,KAAA,CAAAA,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAUzDC,CAAAA,CAAoBN,EAAOO,GAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAA,EAQ7B,CAAC,CAAE,KAAA,CAAAJ,CAAM,CAA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,CAAC,CAAE,KAAA,CAAAC,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA;AAAA,CAAA,CAIjDM,CAAAA,CAAeX,CAAAA,CAAOY,GAAAA,CAAW,IAAI,CAAA;AAAA","file":"chunk-QZUVN273.js","sourcesContent":["import styled from '@emotion/styled';\nimport { animated } from '@react-spring/web';\nimport { Input as VendorInput } from 'antd';\nimport MaskedInput from './text-mask/react/src/reactTextMask';\nimport Typography from '../../Typography';\n\nconst { TextArea } = VendorInput;\n\nexport const ErrorContainer = styled(animated.div)`\n position: absolute;\n display: block;\n width: 45px;\n right: -5px;\n top: -3px;\n z-index: 1;\n\n svg {\n position: absolute;\n width: 20px;\n right: 20px;\n top: 17px;\n }\n`;\n\nexport const Input = styled.input<{ error: any; disabled: boolean }>`\n width: 100%;\n height: 50px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n font-family: ${({ theme }) => theme.typography.family.body};\n font-weight: ${({ theme }) => theme.typography.weight.normal};\n font-style: normal;\n font-size: 16px;\n\n &:focus {\n outline-style: none;\n border-radius: 8px;\n border: 1px solid ${({ theme }) => theme.colors.secondaryGreen};\n box-shadow: 0 0 0 1px ${({ theme }) => theme.colors.secondaryGreen};\n }\n\n &:autofill {\n box-shadow: 0 0 0px 1000px #e9f0ee inset;\n transition: background-color 5000s ease-in-out 0s;\n background-clip: content-box !important;\n }\n`;\n\nexport const StyledMaskedInput = styled(MaskedInput)<{\n disabled?: boolean;\n error?: boolean;\n}>`\n width: 100%;\n height: 50px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n font-family: ${({ theme }) => theme.typography.family.body};\n font-weight: ${({ theme }) => theme.typography.weight.normal};\n font-style: normal;\n font-size: 16px;\n\n &:focus {\n outline-style: none;\n border-radius: 8px;\n border: 1px solid ${({ theme }) => theme.colors.secondaryGreen};\n box-shadow: 0 0 0 1px ${({ theme }) => theme.colors.secondaryGreen};\n }\n\n &:autofill {\n box-shadow: 0 0 0px 1000px #e9f0ee inset;\n transition: background-color 5000s ease-in-out 0s;\n background-clip: content-box !important;\n }\n`;\n\nexport const TextInputWrap = styled.div<{\n marginBottom?: string;\n}>`\n display: flex;\n flex-direction: column;\n position: relative;\n`;\n\nexport const Area = styled(TextArea)<{\n marginBottom?: string | null;\n error: any;\n disabled: boolean;\n}>`\n width: 100%;\n resize: none;\n max-height: 200px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n margin-bottom: ${({ marginBottom }) => marginBottom ?? '0'};\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n\n &:focus {\n outline-color: white;\n outline-style: solid;\n border-color: ${({ theme }) => theme.colors.secondaryGreen};\n }\n`;\n\nexport const PreviewValue = styled(Typography.Body)`\n display: block;\n`;\n"]}
1
+ {"version":3,"sources":["../src/Form/TextInput/styles.tsx"],"names":["TextArea","VendorInput","ErrorContainer","styled","animated","Input","error","props","theme","StyledMaskedInput","MaskedInput","TextInputWrap","Area","marginBottom","PreviewValue","Typography_default"],"mappings":"uLAMA,IAAM,CAAE,SAAAA,CAAS,CAAA,CAAIC,MAERC,CAAAA,CAAiBC,CAAAA,CAAOC,SAAS,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAgBpCC,EAAQF,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I,CAAA;AAAA,eAAA,EAC3C,CAAC,CAAE,KAAA,CAAAA,CAAM,IAAMA,CAAAA,CAAM,UAAA,CAAW,OAAO,MAAM,CAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA,sBAAA,EAOtC,CAAC,CAAE,KAAA,CAAAA,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA,0BAAA,EACtC,CAAC,CAAE,KAAA,CAAAA,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAUzDG,EAAgBR,CAAAA,CAAO,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAQvBS,CAAAA,CAAOT,EAAOH,CAAQ,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAA,EAUb,CAAC,CAAE,KAAA,CAAAM,CAAM,CAAA,GAAOA,CAAAA,CAAQ,MAAQ,SAAU,CAAA;AAAA;AAAA,iBAAA,EAE7C,CAAC,CAAE,YAAA,CAAAO,CAAa,CAAA,GAAMA,GAAgB,GAAG,CAAA;AAAA,oBAAA,EACrCN,CAAAA,EAAWA,CAAAA,CAAM,QAAA,CAAW,SAAA,CAAY,MAAO,CAAA;AAAA,SAAA,EAC1DA,CAAAA,EAAWA,CAAAA,CAAM,QAAA,CAAW,0BAAA,CAA6B,MAAO,CAAA;;AAAA;AAAA;AAAA;AAAA,kBAAA,EAKxD,CAAC,CAAE,KAAA,CAAAC,CAAM,CAAA,GAAMA,CAAAA,CAAM,OAAO,cAAc,CAAA;AAAA;AAAA,CAAA,CAIjDM,CAAAA,CAAeX,CAAAA,CAAOY,GAAAA,CAAW,IAAI,CAAA;AAAA","file":"chunk-QNYTQJJ7.js","sourcesContent":["import styled from '@emotion/styled';\nimport { animated } from '@react-spring/web';\nimport { Input as VendorInput } from 'antd';\nimport MaskedInput from './text-mask/react/src/reactTextMask';\nimport Typography from '../../Typography';\n\nconst { TextArea } = VendorInput;\n\nexport const ErrorContainer = styled(animated.div)`\n position: absolute;\n display: block;\n width: 45px;\n right: -5px;\n top: -3px;\n z-index: 1;\n\n svg {\n position: absolute;\n width: 20px;\n right: 20px;\n top: 17px;\n }\n`;\n\nexport const Input = styled.input<{ error: any; disabled: boolean }>`\n width: 100%;\n height: 50px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n font-family: ${({ theme }) => theme.typography.family.body};\n font-weight: ${({ theme }) => theme.typography.weight.normal};\n font-style: normal;\n font-size: 16px;\n\n &:focus {\n outline-style: none;\n border-radius: 8px;\n border: 1px solid ${({ theme }) => theme.colors.secondaryGreen};\n box-shadow: 0 0 0 1px ${({ theme }) => theme.colors.secondaryGreen};\n }\n\n &:autofill {\n box-shadow: 0 0 0px 1000px #e9f0ee inset;\n transition: background-color 5000s ease-in-out 0s;\n background-clip: content-box !important;\n }\n`;\n\nexport const StyledMaskedInput = styled(MaskedInput)<{\n disabled?: boolean;\n error?: boolean;\n}>`\n width: 100%;\n height: 50px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n font-family: ${({ theme }) => theme.typography.family.body};\n font-weight: ${({ theme }) => theme.typography.weight.normal};\n font-style: normal;\n font-size: 16px;\n\n &:focus {\n outline-style: none;\n border-radius: 8px;\n border: 1px solid ${({ theme }) => theme.colors.secondaryGreen};\n box-shadow: 0 0 0 1px ${({ theme }) => theme.colors.secondaryGreen};\n }\n\n &:autofill {\n box-shadow: 0 0 0px 1000px #e9f0ee inset;\n transition: background-color 5000s ease-in-out 0s;\n background-clip: content-box !important;\n }\n`;\n\nexport const TextInputWrap = styled.div<{\n marginBottom?: string;\n}>`\n display: flex;\n flex-direction: column;\n position: relative;\n`;\n\nexport const Area = styled(TextArea)<{\n marginBottom?: string | null;\n error: any;\n disabled: boolean;\n}>`\n width: 100%;\n resize: none;\n max-height: 200px;\n box-sizing: border-box;\n border-radius: 8px;\n border: 1px solid ${({ error }) => (error ? 'red' : '#5a5a5a')};\n padding: 11px 14px;\n margin-bottom: ${({ marginBottom }) => marginBottom ?? '0'};\n background-color: ${(props) => (props.disabled ? '#EEEEEE' : '#fff')};\n color: ${(props) => (props.disabled ? 'var(--grey-300, #7f7f7f)' : '#000')};\n\n &:focus {\n outline-color: white;\n outline-style: solid;\n border-color: ${({ theme }) => theme.colors.secondaryGreen};\n }\n`;\n\nexport const PreviewValue = styled(Typography.Body)`\n display: block;\n`;\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1,g,i,j,f}from'./chunk-W7WDYG5N.js';import {a}from'./chunk-YTIIAU4W.js';import {forwardRef}from'react';import {Command}from'cmdk';import {LuSearch}from'react-icons/lu';import {jsx,jsxs}from'react/jsx-runtime';var C=forwardRef(({className:o,...t},a$1)=>jsx(Command,{"data-slot":"command",ref:a$1,className:a("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t}));function P({title:o="Command Palette",description:t="Search for a command to run...",children:a$2,className:c,...u}){return jsxs(a$1,{...u,children:[jsxs(g,{className:"sr-only",children:[jsx(i,{children:o}),jsx(j,{children:t})]}),jsx(f,{className:a("overflow-hidden p-0",c),children:jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a$2})})]})}function w({className:o,...t}){return jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[jsx(LuSearch,{className:"size-4 shrink-0 opacity-50"}),jsx(Command.Input,{"data-slot":"command-input",className:a("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",o),...t})]})}function D({className:o,...t}){return jsx(Command.List,{"data-slot":"command-list",className:a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",o),...t})}function N({...o}){return jsx(Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center",...o})}function b({className:o,...t}){return jsx(Command.Group,{"data-slot":"command-group",className:a("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t})}function I({className:o,...t}){return jsx(Command.Separator,{"data-slot":"command-separator",className:a("bg-border -mx-1 h-px",o),...t})}function S({className:o,...t}){return jsx(Command.Item,{"data-slot":"command-item",className:a("data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...t})}function L({className:o,...t}){return jsx("span",{"data-slot":"command-shortcut",className:a("text-muted-foreground ml-auto text-xs tracking-widest",o),...t})}function E({className:o,...t}){return jsx("div",{"data-slot":"command-footer",className:a("border-t p-1",o),...t})}export{C as a,P as b,w as c,D as d,N as e,b as f,I as g,S as h,L as i,E as j};//# sourceMappingURL=chunk-IRJ3W2BS.js.map
2
- //# sourceMappingURL=chunk-IRJ3W2BS.js.map
1
+ import {a as a$1,g,i,j,f}from'./chunk-DIHMEGMQ.js';import {a}from'./chunk-YTIIAU4W.js';import {forwardRef}from'react';import {Command}from'cmdk';import {LuSearch}from'react-icons/lu';import {jsx,jsxs}from'react/jsx-runtime';var C=forwardRef(({className:o,...t},a$1)=>jsx(Command,{"data-slot":"command",ref:a$1,className:a("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t}));function P({title:o="Command Palette",description:t="Search for a command to run...",children:a$2,className:c,...u}){return jsxs(a$1,{...u,children:[jsxs(g,{className:"sr-only",children:[jsx(i,{children:o}),jsx(j,{children:t})]}),jsx(f,{className:a("overflow-hidden p-0",c),children:jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a$2})})]})}function w({className:o,...t}){return jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[jsx(LuSearch,{className:"size-4 shrink-0 opacity-50"}),jsx(Command.Input,{"data-slot":"command-input",className:a("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",o),...t})]})}function D({className:o,...t}){return jsx(Command.List,{"data-slot":"command-list",className:a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",o),...t})}function N({...o}){return jsx(Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center",...o})}function b({className:o,...t}){return jsx(Command.Group,{"data-slot":"command-group",className:a("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t})}function I({className:o,...t}){return jsx(Command.Separator,{"data-slot":"command-separator",className:a("bg-border -mx-1 h-px",o),...t})}function S({className:o,...t}){return jsx(Command.Item,{"data-slot":"command-item",className:a("data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...t})}function L({className:o,...t}){return jsx("span",{"data-slot":"command-shortcut",className:a("text-muted-foreground ml-auto text-xs tracking-widest",o),...t})}function E({className:o,...t}){return jsx("div",{"data-slot":"command-footer",className:a("border-t p-1",o),...t})}export{C as a,P as b,w as c,D as d,N as e,b as f,I as g,S as h,L as i,E as j};//# sourceMappingURL=chunk-SUB2KUSX.js.map
2
+ //# sourceMappingURL=chunk-SUB2KUSX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v2/command/command.tsx"],"names":["Command","forwardRef","className","props","forwardedRef","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","LuSearch","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","CommandFooter"],"mappings":"gOAaA,IAAMA,CAAAA,CAAUC,UAAAA,CACd,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,GAAAA,GAEtBC,GAAAA,CAACC,OAAAA,CAAA,CACC,WAAA,CAAU,SAAA,CACV,GAAA,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AAAA,CAAG,uDAAA,CAAyDL,CAAS,EAC/E,GAAGC,CAAAA,CACN,CAEJ,CAYA,SAASuB,CAAAA,CAAc,CAAE,SAAA,CAAAxB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CACrE,OAAOE,IAAC,KAAA,CAAA,CAAI,WAAA,CAAU,gBAAA,CAAiB,SAAA,CAAWE,EAAG,cAAA,CAAgBL,CAAS,CAAA,CAAI,GAAGC,EAAO,CAC9F","file":"chunk-IRJ3W2BS.js","sourcesContent":["import { ComponentProps, forwardRef } from 'react';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { LuSearch } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '@/v2/dialog/dialog';\n\nconst Command = forwardRef<HTMLDivElement, ComponentProps<typeof CommandPrimitive>>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n ...props\n}: ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n className?: string;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)}>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n <LuSearch className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({ ...props }: ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center\" {...props} />\n );\n}\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/**\n * A pinned footer action slot for the command menu, e.g. the EOTV filter\n * property list's \"+ Add Conditional Filter\" action (POPS-1039).\n *\n * Render it as a sibling of `CommandList` (not inside it) so it sits outside the\n * scrollable list. Put a plain interactive element here (a `<button>` / `Button`),\n * NOT a `CommandItem`: cmdk filters every registered item against the search\n * query regardless of DOM position, so a `CommandItem` in the footer would\n * disappear as soon as the query stopped matching it.\n */\nfunction CommandFooter({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"command-footer\" className={cn('border-t p-1', className)} {...props} />;\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n CommandFooter,\n};\n"]}
1
+ {"version":3,"sources":["../src/v2/command/command.tsx"],"names":["Command","forwardRef","className","props","forwardedRef","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","LuSearch","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","CommandFooter"],"mappings":"gOAaA,IAAMA,CAAAA,CAAUC,UAAAA,CACd,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,GAAAA,GAEtBC,GAAAA,CA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,MAAA,CAAA,CACC,WAAA,CAAU,mBACV,SAAA,CAAWE,CAAAA,CAAG,uDAAA,CAAyDL,CAAS,EAC/E,GAAGC,CAAAA,CACN,CAEJ,CAYA,SAASuB,CAAAA,CAAc,CAAE,SAAA,CAAAxB,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CACrE,OAAOE,IAAC,KAAA,CAAA,CAAI,WAAA,CAAU,gBAAA,CAAiB,SAAA,CAAWE,EAAG,cAAA,CAAgBL,CAAS,CAAA,CAAI,GAAGC,EAAO,CAC9F","file":"chunk-SUB2KUSX.js","sourcesContent":["import { ComponentProps, forwardRef } from 'react';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { LuSearch } from 'react-icons/lu';\n\nimport { cn } from '@/lib/utils';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '@/v2/dialog/dialog';\n\nconst Command = forwardRef<HTMLDivElement, ComponentProps<typeof CommandPrimitive>>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n ...props\n}: ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n className?: string;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)}>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n <LuSearch className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({ ...props }: ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center\" {...props} />\n );\n}\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-accent data-[selected=true]:text-primary [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n );\n}\n\n/**\n * A pinned footer action slot for the command menu, e.g. the EOTV filter\n * property list's \"+ Add Conditional Filter\" action (POPS-1039).\n *\n * Render it as a sibling of `CommandList` (not inside it) so it sits outside the\n * scrollable list. Put a plain interactive element here (a `<button>` / `Button`),\n * NOT a `CommandItem`: cmdk filters every registered item against the search\n * query regardless of DOM position, so a `CommandItem` in the footer would\n * disappear as soon as the query stopped matching it.\n */\nfunction CommandFooter({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"command-footer\" className={cn('border-t p-1', className)} {...props} />;\n}\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n CommandFooter,\n};\n"]}
@@ -1,4 +1,4 @@
1
- 'use strict';var chunkDD5A5VMZ_cjs=require('./chunk-DD5A5VMZ.cjs'),chunkRHSEUQ24_cjs=require('./chunk-RHSEUQ24.cjs'),r=require('@emotion/styled'),web=require('@react-spring/web'),antd=require('antd');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var r__default=/*#__PURE__*/_interopDefault(r);var {TextArea:a}=antd.Input,b=r__default.default(web.animated.div)`
1
+ 'use strict';var chunk7BHLEW4C_cjs=require('./chunk-7BHLEW4C.cjs'),chunkRHSEUQ24_cjs=require('./chunk-RHSEUQ24.cjs'),r=require('@emotion/styled'),web=require('@react-spring/web'),antd=require('antd');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var r__default=/*#__PURE__*/_interopDefault(r);var {TextArea:a}=antd.Input,b=r__default.default(web.animated.div)`
2
2
  position: absolute;
3
3
  display: block;
4
4
  width: 45px;
@@ -38,7 +38,7 @@
38
38
  transition: background-color 5000s ease-in-out 0s;
39
39
  background-clip: content-box !important;
40
40
  }
41
- `,f=r__default.default(chunkDD5A5VMZ_cjs.b)`
41
+ `,f=r__default.default(chunk7BHLEW4C_cjs.b)`
42
42
  width: 100%;
43
43
  height: 50px;
44
44
  box-sizing: border-box;
@@ -87,5 +87,5 @@
87
87
  }
88
88
  `,u=r__default.default(chunkRHSEUQ24_cjs.a.Body)`
89
89
  display: block;
90
- `;exports.a=b;exports.b=c;exports.c=f;exports.d=y;exports.e=g;exports.f=u;//# sourceMappingURL=chunk-BACT2F73.cjs.map
91
- //# sourceMappingURL=chunk-BACT2F73.cjs.map
90
+ `;exports.a=b;exports.b=c;exports.c=f;exports.d=y;exports.e=g;exports.f=u;//# sourceMappingURL=chunk-T53BIHTS.cjs.map
91
+ //# sourceMappingURL=chunk-T53BIHTS.cjs.map