@gbmtech/aurora-ui 0.6.1 → 0.6.3

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 (170) hide show
  1. package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
  2. package/dist/cjs/components/app-layout/sidebar/sidebar.cjs +1 -1
  3. package/dist/cjs/components/autocomplete/autocomplete.cjs +1 -1
  4. package/dist/cjs/components/badge/badge-variants.cjs +1 -0
  5. package/dist/cjs/components/badge/badge-variants.d.ts +57 -0
  6. package/dist/cjs/components/badge/badge-variants.d.ts.map +1 -0
  7. package/dist/cjs/components/badge/badge.cjs +1 -0
  8. package/dist/cjs/components/badge/badge.d.ts +9 -0
  9. package/dist/cjs/components/badge/badge.d.ts.map +1 -0
  10. package/dist/cjs/components/badge/index.cjs +1 -0
  11. package/dist/cjs/components/badge/index.d.ts +3 -0
  12. package/dist/cjs/components/badge/index.d.ts.map +1 -0
  13. package/dist/cjs/components/button/button.cjs +1 -0
  14. package/dist/cjs/components/{button.d.ts → button/button.d.ts} +5 -7
  15. package/dist/cjs/components/button/button.d.ts.map +1 -0
  16. package/dist/cjs/components/button/index.cjs +1 -0
  17. package/dist/cjs/components/button/index.d.ts +2 -0
  18. package/dist/cjs/components/button/index.d.ts.map +1 -0
  19. package/dist/cjs/components/calendar.cjs +1 -1
  20. package/dist/cjs/components/checkbox/checkbox.cjs +2 -0
  21. package/dist/cjs/components/checkbox/checkbox.d.ts +9 -0
  22. package/dist/cjs/components/checkbox/checkbox.d.ts.map +1 -0
  23. package/dist/cjs/components/checkbox/index.cjs +1 -0
  24. package/dist/cjs/components/checkbox/index.d.ts +2 -0
  25. package/dist/cjs/components/checkbox/index.d.ts.map +1 -0
  26. package/dist/cjs/components/combobox.cjs +1 -1
  27. package/dist/cjs/components/command.cjs +1 -1
  28. package/dist/cjs/components/data-table/data-table-action-bar.cjs +1 -1
  29. package/dist/cjs/components/data-table/data-table-date-filter.cjs +1 -1
  30. package/dist/cjs/components/data-table/data-table-faceted-filter.cjs +1 -1
  31. package/dist/cjs/components/data-table/data-table-filter-list.cjs +1 -1
  32. package/dist/cjs/components/data-table/data-table-filter-menu.cjs +1 -1
  33. package/dist/cjs/components/data-table/data-table-pagination.cjs +1 -1
  34. package/dist/cjs/components/data-table/data-table-skeleton.cjs +1 -1
  35. package/dist/cjs/components/data-table/data-table-slider-filter.cjs +1 -1
  36. package/dist/cjs/components/data-table/data-table-sort-list.cjs +1 -1
  37. package/dist/cjs/components/data-table/data-table-toolbar.cjs +1 -1
  38. package/dist/cjs/components/data-table/data-table-view-options.cjs +1 -1
  39. package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
  40. package/dist/cjs/components/date-picker-with-range.cjs +1 -1
  41. package/dist/cjs/components/date-time-picker/date-time-picker.cjs +1 -1
  42. package/dist/cjs/components/date-time-picker-with-range.cjs +1 -1
  43. package/dist/cjs/components/dialog.cjs +1 -1
  44. package/dist/cjs/components/faceted.cjs +1 -1
  45. package/dist/cjs/components/input-password.cjs +1 -1
  46. package/dist/cjs/components/input.cjs +1 -1
  47. package/dist/cjs/components/month-picker.cjs +1 -1
  48. package/dist/cjs/components/multi-select.cjs +1 -1
  49. package/dist/cjs/components/multi-select.d.ts +1 -1
  50. package/dist/cjs/components/multi-select.d.ts.map +1 -1
  51. package/dist/cjs/components/pagination.cjs +1 -1
  52. package/dist/cjs/components/popover.cjs +1 -1
  53. package/dist/cjs/components/sheet/sheet.cjs +1 -1
  54. package/dist/cjs/components/skeleton/index.cjs +1 -0
  55. package/dist/cjs/components/skeleton/index.d.ts +2 -0
  56. package/dist/cjs/components/skeleton/index.d.ts.map +1 -0
  57. package/dist/cjs/components/{skeleton.cjs → skeleton/skeleton.cjs} +1 -1
  58. package/dist/cjs/components/skeleton/skeleton.d.ts +6 -0
  59. package/dist/cjs/components/skeleton/skeleton.d.ts.map +1 -0
  60. package/dist/cjs/components/sortable.cjs +1 -1
  61. package/dist/cjs/components/switch/index.cjs +1 -0
  62. package/dist/cjs/components/switch/index.d.ts +2 -0
  63. package/dist/cjs/components/switch/index.d.ts.map +1 -0
  64. package/dist/cjs/components/{switch.cjs → switch/switch.cjs} +1 -1
  65. package/dist/cjs/components/switch/switch.d.ts +7 -0
  66. package/dist/cjs/components/switch/switch.d.ts.map +1 -0
  67. package/dist/cjs/components/theme-toggle.cjs +1 -1
  68. package/dist/cjs/components/tooltip/tooltip-content-variants.cjs +1 -1
  69. package/dist/cjs/components/tooltip/tooltip-content-variants.d.ts +2 -2
  70. package/dist/cjs/components/tooltip/tooltip-content-variants.d.ts.map +1 -1
  71. package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
  72. package/dist/cjs/index.cjs +1 -1
  73. package/dist/esm/components/alert-dialog/alert-dialog.js +1 -1
  74. package/dist/esm/components/app-layout/sidebar/sidebar.js +1 -1
  75. package/dist/esm/components/autocomplete/autocomplete.js +1 -1
  76. package/dist/esm/components/badge/badge-variants.d.ts +57 -0
  77. package/dist/esm/components/badge/badge-variants.d.ts.map +1 -0
  78. package/dist/esm/components/badge/badge-variants.js +1 -0
  79. package/dist/esm/components/badge/badge.d.ts +9 -0
  80. package/dist/esm/components/badge/badge.d.ts.map +1 -0
  81. package/dist/esm/components/badge/badge.js +1 -0
  82. package/dist/esm/components/badge/index.d.ts +3 -0
  83. package/dist/esm/components/badge/index.d.ts.map +1 -0
  84. package/dist/esm/components/badge/index.js +1 -0
  85. package/dist/esm/components/{button.d.ts → button/button.d.ts} +5 -7
  86. package/dist/esm/components/button/button.d.ts.map +1 -0
  87. package/dist/esm/components/button/button.js +1 -0
  88. package/dist/esm/components/button/index.d.ts +2 -0
  89. package/dist/esm/components/button/index.d.ts.map +1 -0
  90. package/dist/esm/components/button/index.js +1 -0
  91. package/dist/esm/components/calendar.js +1 -1
  92. package/dist/esm/components/checkbox/checkbox.d.ts +9 -0
  93. package/dist/esm/components/checkbox/checkbox.d.ts.map +1 -0
  94. package/dist/esm/components/checkbox/checkbox.js +2 -0
  95. package/dist/esm/components/checkbox/index.d.ts +2 -0
  96. package/dist/esm/components/checkbox/index.d.ts.map +1 -0
  97. package/dist/esm/components/checkbox/index.js +1 -0
  98. package/dist/esm/components/combobox.js +1 -1
  99. package/dist/esm/components/data-table/data-table-action-bar.js +1 -1
  100. package/dist/esm/components/data-table/data-table-date-filter.js +1 -1
  101. package/dist/esm/components/data-table/data-table-faceted-filter.js +1 -1
  102. package/dist/esm/components/data-table/data-table-filter-list.js +1 -1
  103. package/dist/esm/components/data-table/data-table-filter-menu.js +1 -1
  104. package/dist/esm/components/data-table/data-table-pagination.js +1 -1
  105. package/dist/esm/components/data-table/data-table-skeleton.js +1 -1
  106. package/dist/esm/components/data-table/data-table-slider-filter.js +1 -1
  107. package/dist/esm/components/data-table/data-table-sort-list.js +1 -1
  108. package/dist/esm/components/data-table/data-table-toolbar.js +1 -1
  109. package/dist/esm/components/data-table/data-table-view-options.js +1 -1
  110. package/dist/esm/components/data-table/index.js +1 -1
  111. package/dist/esm/components/date-picker/date-picker.js +1 -1
  112. package/dist/esm/components/date-picker-with-range.js +1 -1
  113. package/dist/esm/components/date-time-picker/date-time-picker.js +1 -1
  114. package/dist/esm/components/date-time-picker-with-range.js +1 -1
  115. package/dist/esm/components/dialog.js +1 -1
  116. package/dist/esm/components/faceted.js +1 -1
  117. package/dist/esm/components/input-password.js +1 -1
  118. package/dist/esm/components/month-picker.js +1 -1
  119. package/dist/esm/components/multi-select.d.ts +1 -1
  120. package/dist/esm/components/multi-select.d.ts.map +1 -1
  121. package/dist/esm/components/multi-select.js +1 -1
  122. package/dist/esm/components/pagination.js +1 -1
  123. package/dist/esm/components/sheet/sheet.js +1 -1
  124. package/dist/esm/components/skeleton/index.d.ts +2 -0
  125. package/dist/esm/components/skeleton/index.d.ts.map +1 -0
  126. package/dist/esm/components/skeleton/index.js +1 -0
  127. package/dist/esm/components/skeleton/skeleton.d.ts +6 -0
  128. package/dist/esm/components/skeleton/skeleton.d.ts.map +1 -0
  129. package/dist/esm/components/skeleton/skeleton.js +1 -0
  130. package/dist/esm/components/switch/index.d.ts +2 -0
  131. package/dist/esm/components/switch/index.d.ts.map +1 -0
  132. package/dist/esm/components/switch/index.js +1 -0
  133. package/dist/esm/components/switch/switch.d.ts +7 -0
  134. package/dist/esm/components/switch/switch.d.ts.map +1 -0
  135. package/dist/esm/components/switch/switch.js +2 -0
  136. package/dist/esm/components/theme-toggle.js +1 -1
  137. package/dist/esm/components/tooltip/tooltip-content-variants.d.ts +2 -2
  138. package/dist/esm/components/tooltip/tooltip-content-variants.d.ts.map +1 -1
  139. package/dist/esm/components/tooltip/tooltip-content-variants.js +1 -1
  140. package/dist/esm/index.js +1 -1
  141. package/dist/esm/lib/format.js +1 -1
  142. package/dist/esm/lib/index.js +1 -1
  143. package/dist/styles/index.css +1 -1
  144. package/package.json +3 -3
  145. package/dist/cjs/components/badge.cjs +0 -1
  146. package/dist/cjs/components/badge.d.ts +0 -29
  147. package/dist/cjs/components/badge.d.ts.map +0 -1
  148. package/dist/cjs/components/button.cjs +0 -1
  149. package/dist/cjs/components/button.d.ts.map +0 -1
  150. package/dist/cjs/components/checkbox.cjs +0 -2
  151. package/dist/cjs/components/checkbox.d.ts +0 -7
  152. package/dist/cjs/components/checkbox.d.ts.map +0 -1
  153. package/dist/cjs/components/skeleton.d.ts +0 -4
  154. package/dist/cjs/components/skeleton.d.ts.map +0 -1
  155. package/dist/cjs/components/switch.d.ts +0 -5
  156. package/dist/cjs/components/switch.d.ts.map +0 -1
  157. package/dist/esm/components/badge.d.ts +0 -29
  158. package/dist/esm/components/badge.d.ts.map +0 -1
  159. package/dist/esm/components/badge.js +0 -1
  160. package/dist/esm/components/button.d.ts.map +0 -1
  161. package/dist/esm/components/button.js +0 -1
  162. package/dist/esm/components/checkbox.d.ts +0 -7
  163. package/dist/esm/components/checkbox.d.ts.map +0 -1
  164. package/dist/esm/components/checkbox.js +0 -2
  165. package/dist/esm/components/skeleton.d.ts +0 -4
  166. package/dist/esm/components/skeleton.d.ts.map +0 -1
  167. package/dist/esm/components/skeleton.js +0 -1
  168. package/dist/esm/components/switch.d.ts +0 -5
  169. package/dist/esm/components/switch.d.ts.map +0 -1
  170. package/dist/esm/components/switch.js +0 -2
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialogOverlay:()=>AlertDialogOverlay,AlertDialog:()=>AlertDialog,AlertDialogDescription:()=>AlertDialogDescription,AlertDialogPortal:()=>AlertDialogPortal,AlertDialogTitle:()=>AlertDialogTitle,AlertDialogAction:()=>AlertDialogAction,AlertDialogContent:()=>AlertDialogContent,AlertDialogTrigger:()=>AlertDialogTrigger,AlertDialogBody:()=>AlertDialogBody,AlertDialogFooter:()=>AlertDialogFooter,AlertDialogCancel:()=>AlertDialogCancel,AlertDialogHeader:()=>AlertDialogHeader});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_alert_dialog_namespaceObject=require("@radix-ui/react-alert-dialog"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_button_cjs_namespaceObject=require("../button.cjs");function AlertDialog(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root,{"data-slot":"alert-dialog",...e})}function AlertDialogTrigger(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function AlertDialogPortal(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Portal,{"data-slot":"alert-dialog-portal",...e})}function AlertDialogOverlay({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t})}function AlertDialogContent({className:e,classNames:t,...a}){return(0,jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal,{children:[(0,jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay,{"data-slot":"alert-dialog-overlay",className:t?.overlay}),(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",t?.content),"data-slot":"alert-dialog-content",...a})]})}function AlertDialogHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function AlertDialogBody({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"alert-dialog-body",...t})}function AlertDialogFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function AlertDialogTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function AlertDialogDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function AlertDialogAction({className:e,size:t="sm",variant:a,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-action",...r})}function AlertDialogCancel({className:e,size:t="sm",variant:a="outline",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-cancel",...r})}for(var __webpack_i__ in exports.AlertDialog=__webpack_exports__.AlertDialog,exports.AlertDialogAction=__webpack_exports__.AlertDialogAction,exports.AlertDialogBody=__webpack_exports__.AlertDialogBody,exports.AlertDialogCancel=__webpack_exports__.AlertDialogCancel,exports.AlertDialogContent=__webpack_exports__.AlertDialogContent,exports.AlertDialogDescription=__webpack_exports__.AlertDialogDescription,exports.AlertDialogFooter=__webpack_exports__.AlertDialogFooter,exports.AlertDialogHeader=__webpack_exports__.AlertDialogHeader,exports.AlertDialogOverlay=__webpack_exports__.AlertDialogOverlay,exports.AlertDialogPortal=__webpack_exports__.AlertDialogPortal,exports.AlertDialogTitle=__webpack_exports__.AlertDialogTitle,exports.AlertDialogTrigger=__webpack_exports__.AlertDialogTrigger,__webpack_exports__)-1===["AlertDialog","AlertDialogAction","AlertDialogBody","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogHeader","AlertDialogOverlay","AlertDialogPortal","AlertDialogTitle","AlertDialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialogOverlay:()=>AlertDialogOverlay,AlertDialog:()=>AlertDialog,AlertDialogDescription:()=>AlertDialogDescription,AlertDialogPortal:()=>AlertDialogPortal,AlertDialogTitle:()=>AlertDialogTitle,AlertDialogAction:()=>AlertDialogAction,AlertDialogContent:()=>AlertDialogContent,AlertDialogTrigger:()=>AlertDialogTrigger,AlertDialogBody:()=>AlertDialogBody,AlertDialogFooter:()=>AlertDialogFooter,AlertDialogCancel:()=>AlertDialogCancel,AlertDialogHeader:()=>AlertDialogHeader});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_alert_dialog_namespaceObject=require("@radix-ui/react-alert-dialog"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),index_cjs_namespaceObject=require("../button/index.cjs");function AlertDialog(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root,{"data-slot":"alert-dialog",...e})}function AlertDialogTrigger(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function AlertDialogPortal(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Portal,{"data-slot":"alert-dialog-portal",...e})}function AlertDialogOverlay({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t})}function AlertDialogContent({className:e,classNames:t,...a}){return(0,jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal,{children:[(0,jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay,{"data-slot":"alert-dialog-overlay",className:t?.overlay}),(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",t?.content),"data-slot":"alert-dialog-content",...a})]})}function AlertDialogHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function AlertDialogBody({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"alert-dialog-body",...t})}function AlertDialogFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function AlertDialogTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function AlertDialogDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function AlertDialogAction({className:e,size:t="sm",variant:a,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action,{className:(0,index_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-action",...r})}function AlertDialogCancel({className:e,size:t="sm",variant:a="outline",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel,{className:(0,index_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-cancel",...r})}for(var __webpack_i__ in exports.AlertDialog=__webpack_exports__.AlertDialog,exports.AlertDialogAction=__webpack_exports__.AlertDialogAction,exports.AlertDialogBody=__webpack_exports__.AlertDialogBody,exports.AlertDialogCancel=__webpack_exports__.AlertDialogCancel,exports.AlertDialogContent=__webpack_exports__.AlertDialogContent,exports.AlertDialogDescription=__webpack_exports__.AlertDialogDescription,exports.AlertDialogFooter=__webpack_exports__.AlertDialogFooter,exports.AlertDialogHeader=__webpack_exports__.AlertDialogHeader,exports.AlertDialogOverlay=__webpack_exports__.AlertDialogOverlay,exports.AlertDialogPortal=__webpack_exports__.AlertDialogPortal,exports.AlertDialogTitle=__webpack_exports__.AlertDialogTitle,exports.AlertDialogTrigger=__webpack_exports__.AlertDialogTrigger,__webpack_exports__)-1===["AlertDialog","AlertDialogAction","AlertDialogBody","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogHeader","AlertDialogOverlay","AlertDialogPortal","AlertDialogTitle","AlertDialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SidebarMenuItem:()=>SidebarMenuItem,SidebarHeader:()=>SidebarHeader,SidebarMenuSkeleton:()=>SidebarMenuSkeleton,SidebarMenu:()=>SidebarMenu,SidebarGroup:()=>SidebarGroup,SidebarSeparator:()=>SidebarSeparator,SidebarRail:()=>SidebarRail,SidebarTrigger:()=>SidebarTrigger,SidebarGroupLabel:()=>SidebarGroupLabel,useSidebar:()=>useSidebar,SIDEBAR_COOKIE_NAME:()=>SIDEBAR_COOKIE_NAME,SidebarMenuSubItem:()=>SidebarMenuSubItem,Sidebar:()=>Sidebar,SidebarFooter:()=>SidebarFooter,SidebarContent:()=>SidebarContent,SidebarMenuAction:()=>SidebarMenuAction,SidebarMenuButton:()=>SidebarMenuButton,SidebarMenuSub:()=>SidebarMenuSub,SidebarProvider:()=>SidebarProvider});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_context_namespaceObject=require("@radix-ui/react-context"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("../../button.cjs"),external_separator_cjs_namespaceObject=require("../../separator.cjs"),index_cjs_namespaceObject=require("../../sheet/index.cjs"),external_skeleton_cjs_namespaceObject=require("../../skeleton.cjs"),tooltip_cjs_namespaceObject=require("../../tooltip/tooltip.cjs"),use_mobile_cjs_namespaceObject=require("../../../hooks/use-mobile.cjs"),external_lib_index_cjs_namespaceObject=require("../../../lib/index.cjs"),SIDEBAR_COOKIE_NAME="gbm_sidebar_open",SIDEBAR_COOKIE_MAX_AGE=604800,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="4.5rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SIDEBAR_PROVIDER_NAME="SidebarProvider",[SidebarContextProvider,useSidebar]=(0,react_context_namespaceObject.createContext)("SidebarProvider");function SidebarProvider({defaultOpen:e=!0,open:a,onOpenChange:t,className:r,style:i,user:n,modules:s,locale:d="pt-br",children:c,...o}){let b=(0,use_mobile_cjs_namespaceObject.useIsMobile)(),[l,_]=(0,external_react_namespaceObject.useState)(!1),[u,p]=(0,external_react_namespaceObject.useState)(e),m=a??u,x=(0,external_react_namespaceObject.useCallback)(e=>{let a="function"==typeof e?e(m):e;t?t(a):p(a),document.cookie=`${SIDEBAR_COOKIE_NAME}=${a}; path=/; max-age=604800`},[t,m]),j=(0,external_react_namespaceObject.useCallback)(()=>{b?_(e=>!e):x(e=>!e)},[b,x,_]);(0,external_react_namespaceObject.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[j]);let S=m?"expanded":"collapsed";return(0,jsx_runtime_namespaceObject.jsx)(SidebarContextProvider,{isMobile:b,open:m,openMobile:l,setOpen:x,setOpenMobile:_,state:S,toggleSidebar:j,user:n,modules:s,locale:d,children:(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipProvider,{delayDuration:0,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,external_lib_index_cjs_namespaceObject.cn)("group/sidebar-wrapper flex h-svh w-full has-data-[variant=inset]:bg-sidebar",r),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...i},...o,children:c})})})}let SIDEBAR_NAME="Sidebar";function Sidebar({side:e="left",variant:a="sidebar",collapsible:t="icon",className:r,children:i,...n}){let{isMobile:s,state:d,openMobile:c,setOpenMobile:o}=useSidebar("Sidebar");return"none"===t?(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...n,children:i}):s?(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Sheet,{open:c,onOpenChange:o,...n,children:(0,jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.SheetHeader,{className:"sr-only",children:[(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.SheetTitle,{children:"Sidebar"}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex h-full w-full flex-col",children:i})]})}):(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":"collapsed"===d?t:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-gap",className:(0,external_lib_index_cjs_namespaceObject.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-container",className:(0,external_lib_index_cjs_namespaceObject.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===a||"inset"===a?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...n,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:i})})]})}let SIDEBAR_TRIGGER_NAME="SidebarTrigger";function SidebarTrigger({className:e,onClick:a,...t}){let{toggleSidebar:r}=useSidebar("SidebarTrigger");return(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,external_lib_index_cjs_namespaceObject.cn)("size-7",e),onClick:e=>{a?.(e),r()},...t,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.PanelLeftIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}let SIDEBAR_RAIL_NAME="SidebarRail";function SidebarRail({className:e,...a}){let{toggleSidebar:t}=useSidebar("SidebarRail");return(0,jsx_runtime_namespaceObject.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:t,title:"Toggle Sidebar",className:(0,external_lib_index_cjs_namespaceObject.cn)("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...a})}function SidebarHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,external_lib_index_cjs_namespaceObject.cn)("mx-2 w-auto bg-sidebar-border",e),...a})}function SidebarContent({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",e),...a})}function SidebarGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,external_lib_index_cjs_namespaceObject.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarGroupLabel({className:e,asChild:a=!1,...t}){let r=a?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function SidebarMenu({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex w-full min-w-0 flex-col gap-1",e),...a})}function SidebarMenuItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,external_lib_index_cjs_namespaceObject.cn)("group/menu-item relative",e),...a})}let sidebarMenuButtonVariants=(0,external_lib_index_cjs_namespaceObject.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:gap-3 group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),SIDEBAR_MENU_BUTTON_NAME="SidebarMenuButton";function SidebarMenuButton({asChild:e=!1,isActive:a=!1,variant:t="default",size:r="default",tooltip:i,className:n,onClick:s,...d}){let c=e?react_slot_namespaceObject.Slot:"button",{isMobile:o,open:b,setOpen:l,state:_}=useSidebar("SidebarMenuButton"),u=(0,jsx_runtime_namespaceObject.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":a,className:(0,external_lib_index_cjs_namespaceObject.cn)(sidebarMenuButtonVariants({variant:t,size:r}),n),onClick:e=>{s?.(e),b||l(!0)},...d});return i?("string"==typeof i&&(i={children:i}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:u}),(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==_||o,...i})]})):u}function SidebarMenuAction({className:e,asChild:a=!1,showOnHover:t=!1,...r}){let i=a?react_slot_namespaceObject.Slot:"button";return(0,jsx_runtime_namespaceObject.jsx)(i,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,external_lib_index_cjs_namespaceObject.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}function SidebarMenuSkeleton({className:e,showIcon:a=!1,...t}){let r=(0,external_react_namespaceObject.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...t,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function SidebarMenuSub({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,external_lib_index_cjs_namespaceObject.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",e),...a})}function SidebarMenuSubItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,external_lib_index_cjs_namespaceObject.cn)("group/menu-sub-item relative",e),...a})}for(var __webpack_i__ in exports.SIDEBAR_COOKIE_NAME=__webpack_exports__.SIDEBAR_COOKIE_NAME,exports.Sidebar=__webpack_exports__.Sidebar,exports.SidebarContent=__webpack_exports__.SidebarContent,exports.SidebarFooter=__webpack_exports__.SidebarFooter,exports.SidebarGroup=__webpack_exports__.SidebarGroup,exports.SidebarGroupLabel=__webpack_exports__.SidebarGroupLabel,exports.SidebarHeader=__webpack_exports__.SidebarHeader,exports.SidebarMenu=__webpack_exports__.SidebarMenu,exports.SidebarMenuAction=__webpack_exports__.SidebarMenuAction,exports.SidebarMenuButton=__webpack_exports__.SidebarMenuButton,exports.SidebarMenuItem=__webpack_exports__.SidebarMenuItem,exports.SidebarMenuSkeleton=__webpack_exports__.SidebarMenuSkeleton,exports.SidebarMenuSub=__webpack_exports__.SidebarMenuSub,exports.SidebarMenuSubItem=__webpack_exports__.SidebarMenuSubItem,exports.SidebarProvider=__webpack_exports__.SidebarProvider,exports.SidebarRail=__webpack_exports__.SidebarRail,exports.SidebarSeparator=__webpack_exports__.SidebarSeparator,exports.SidebarTrigger=__webpack_exports__.SidebarTrigger,exports.useSidebar=__webpack_exports__.useSidebar,__webpack_exports__)-1===["SIDEBAR_COOKIE_NAME","Sidebar","SidebarContent","SidebarFooter","SidebarGroup","SidebarGroupLabel","SidebarHeader","SidebarMenu","SidebarMenuAction","SidebarMenuButton","SidebarMenuItem","SidebarMenuSkeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarProvider","SidebarRail","SidebarSeparator","SidebarTrigger","useSidebar"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SidebarMenuItem:()=>SidebarMenuItem,SidebarHeader:()=>SidebarHeader,SidebarMenuSkeleton:()=>SidebarMenuSkeleton,SidebarMenu:()=>SidebarMenu,SidebarGroup:()=>SidebarGroup,SidebarSeparator:()=>SidebarSeparator,SidebarRail:()=>SidebarRail,Sidebar:()=>Sidebar,SidebarTrigger:()=>SidebarTrigger,SidebarGroupLabel:()=>SidebarGroupLabel,useSidebar:()=>useSidebar,SIDEBAR_COOKIE_NAME:()=>SIDEBAR_COOKIE_NAME,SidebarMenuSubItem:()=>SidebarMenuSubItem,SidebarFooter:()=>SidebarFooter,SidebarMenuButton:()=>SidebarMenuButton,SidebarContent:()=>SidebarContent,SidebarMenuAction:()=>SidebarMenuAction,SidebarProvider:()=>SidebarProvider,SidebarMenuSub:()=>SidebarMenuSub});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_context_namespaceObject=require("@radix-ui/react-context"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../../button/index.cjs"),external_separator_cjs_namespaceObject=require("../../separator.cjs"),external_sheet_index_cjs_namespaceObject=require("../../sheet/index.cjs"),external_skeleton_index_cjs_namespaceObject=require("../../skeleton/index.cjs"),tooltip_cjs_namespaceObject=require("../../tooltip/tooltip.cjs"),use_mobile_cjs_namespaceObject=require("../../../hooks/use-mobile.cjs"),external_lib_index_cjs_namespaceObject=require("../../../lib/index.cjs"),SIDEBAR_COOKIE_NAME="gbm_sidebar_open",SIDEBAR_COOKIE_MAX_AGE=604800,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="4.5rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SIDEBAR_PROVIDER_NAME="SidebarProvider",[SidebarContextProvider,useSidebar]=(0,react_context_namespaceObject.createContext)("SidebarProvider");function SidebarProvider({defaultOpen:e=!0,open:a,onOpenChange:t,className:r,style:i,user:n,modules:s,locale:d="pt-br",children:c,...o}){let b=(0,use_mobile_cjs_namespaceObject.useIsMobile)(),[_,l]=(0,external_react_namespaceObject.useState)(!1),[u,p]=(0,external_react_namespaceObject.useState)(e),m=a??u,x=(0,external_react_namespaceObject.useCallback)(e=>{let a="function"==typeof e?e(m):e;t?t(a):p(a),document.cookie=`${SIDEBAR_COOKIE_NAME}=${a}; path=/; max-age=604800`},[t,m]),j=(0,external_react_namespaceObject.useCallback)(()=>{b?l(e=>!e):x(e=>!e)},[b,x,l]);(0,external_react_namespaceObject.useEffect)(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[j]);let S=m?"expanded":"collapsed";return(0,jsx_runtime_namespaceObject.jsx)(SidebarContextProvider,{isMobile:b,open:m,openMobile:_,setOpen:x,setOpenMobile:l,state:S,toggleSidebar:j,user:n,modules:s,locale:d,children:(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipProvider,{delayDuration:0,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,external_lib_index_cjs_namespaceObject.cn)("group/sidebar-wrapper flex h-svh w-full has-data-[variant=inset]:bg-sidebar",r),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4.5rem",...i},...o,children:c})})})}let SIDEBAR_NAME="Sidebar";function Sidebar({side:e="left",variant:a="sidebar",collapsible:t="icon",className:r,children:i,...n}){let{isMobile:s,state:d,openMobile:c,setOpenMobile:o}=useSidebar("Sidebar");return"none"===t?(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...n,children:i}):s?(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.Sheet,{open:c,onOpenChange:o,...n,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(external_sheet_index_cjs_namespaceObject.SheetHeader,{className:"sr-only",children:[(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetTitle,{children:"Sidebar"}),(0,jsx_runtime_namespaceObject.jsx)(external_sheet_index_cjs_namespaceObject.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex h-full w-full flex-col",children:i})]})}):(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":"collapsed"===d?t:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-gap",className:(0,external_lib_index_cjs_namespaceObject.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-container",className:(0,external_lib_index_cjs_namespaceObject.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===a||"inset"===a?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...n,children:(0,jsx_runtime_namespaceObject.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:i})})]})}let SIDEBAR_TRIGGER_NAME="SidebarTrigger";function SidebarTrigger({className:e,onClick:a,...t}){let{toggleSidebar:r}=useSidebar("SidebarTrigger");return(0,jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,external_lib_index_cjs_namespaceObject.cn)("size-7",e),onClick:e=>{a?.(e),r()},...t,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.PanelLeftIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}let SIDEBAR_RAIL_NAME="SidebarRail";function SidebarRail({className:e,...a}){let{toggleSidebar:t}=useSidebar("SidebarRail");return(0,jsx_runtime_namespaceObject.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:t,title:"Toggle Sidebar",className:(0,external_lib_index_cjs_namespaceObject.cn)("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...a})}function SidebarHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex flex-col gap-2 p-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,external_lib_index_cjs_namespaceObject.cn)("mx-2 w-auto bg-sidebar-border",e),...a})}function SidebarContent({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",e),...a})}function SidebarGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,external_lib_index_cjs_namespaceObject.cn)("relative flex w-full min-w-0 flex-col px-5 group-data-[collapsible=icon]:p-4",e),...a})}function SidebarGroupLabel({className:e,asChild:a=!1,...t}){let r=a?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})}function SidebarMenu({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex w-full min-w-0 flex-col gap-1",e),...a})}function SidebarMenuItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,external_lib_index_cjs_namespaceObject.cn)("group/menu-item relative",e),...a})}let sidebarMenuButtonVariants=(0,external_lib_index_cjs_namespaceObject.tv)({base:"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:gap-3 group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>svg]:size-5",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),SIDEBAR_MENU_BUTTON_NAME="SidebarMenuButton";function SidebarMenuButton({asChild:e=!1,isActive:a=!1,variant:t="default",size:r="default",tooltip:i,className:n,onClick:s,...d}){let c=e?react_slot_namespaceObject.Slot:"button",{isMobile:o,open:b,setOpen:_,state:l}=useSidebar("SidebarMenuButton"),u=(0,jsx_runtime_namespaceObject.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":a,className:(0,external_lib_index_cjs_namespaceObject.cn)(sidebarMenuButtonVariants({variant:t,size:r}),n),onClick:e=>{s?.(e),b||_(!0)},...d});return i?("string"==typeof i&&(i={children:i}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:u}),(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==l||o,...i})]})):u}function SidebarMenuAction({className:e,asChild:a=!1,showOnHover:t=!1,...r}){let i=a?react_slot_namespaceObject.Slot:"button";return(0,jsx_runtime_namespaceObject.jsx)(i,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,external_lib_index_cjs_namespaceObject.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}function SidebarMenuSkeleton({className:e,showIcon:a=!1,...t}){let r=(0,external_react_namespaceObject.useMemo)(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,external_lib_index_cjs_namespaceObject.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...t,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_index_cjs_namespaceObject.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_index_cjs_namespaceObject.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function SidebarMenuSub({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,external_lib_index_cjs_namespaceObject.cn)("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l py-0.5 pl-2.5","group-data-[collapsible=icon]:hidden",e),...a})}function SidebarMenuSubItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,external_lib_index_cjs_namespaceObject.cn)("group/menu-sub-item relative",e),...a})}for(var __webpack_i__ in exports.SIDEBAR_COOKIE_NAME=__webpack_exports__.SIDEBAR_COOKIE_NAME,exports.Sidebar=__webpack_exports__.Sidebar,exports.SidebarContent=__webpack_exports__.SidebarContent,exports.SidebarFooter=__webpack_exports__.SidebarFooter,exports.SidebarGroup=__webpack_exports__.SidebarGroup,exports.SidebarGroupLabel=__webpack_exports__.SidebarGroupLabel,exports.SidebarHeader=__webpack_exports__.SidebarHeader,exports.SidebarMenu=__webpack_exports__.SidebarMenu,exports.SidebarMenuAction=__webpack_exports__.SidebarMenuAction,exports.SidebarMenuButton=__webpack_exports__.SidebarMenuButton,exports.SidebarMenuItem=__webpack_exports__.SidebarMenuItem,exports.SidebarMenuSkeleton=__webpack_exports__.SidebarMenuSkeleton,exports.SidebarMenuSub=__webpack_exports__.SidebarMenuSub,exports.SidebarMenuSubItem=__webpack_exports__.SidebarMenuSubItem,exports.SidebarProvider=__webpack_exports__.SidebarProvider,exports.SidebarRail=__webpack_exports__.SidebarRail,exports.SidebarSeparator=__webpack_exports__.SidebarSeparator,exports.SidebarTrigger=__webpack_exports__.SidebarTrigger,exports.useSidebar=__webpack_exports__.useSidebar,__webpack_exports__)-1===["SIDEBAR_COOKIE_NAME","Sidebar","SidebarContent","SidebarFooter","SidebarGroup","SidebarGroupLabel","SidebarHeader","SidebarMenu","SidebarMenuAction","SidebarMenuButton","SidebarMenuItem","SidebarMenuSkeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarProvider","SidebarRail","SidebarSeparator","SidebarTrigger","useSidebar"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1 +1 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var c in t)__webpack_require__.o(t,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AutocompleteItem:()=>AutocompleteItem,AutocompleteList:()=>AutocompleteList,AutocompleteContext:()=>AutocompleteContext,AutocompleteContent:()=>AutocompleteContent,Autocomplete:()=>Autocomplete,AutocompleteEmpty:()=>AutocompleteEmpty,AutocompleteInput:()=>AutocompleteInput});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_cmdk_namespaceObject=require("cmdk"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../../lib/index.cjs"),external_command_cjs_namespaceObject=require("../command.cjs"),external_skeleton_cjs_namespaceObject=require("../skeleton.cjs");function Autocomplete({children:e,value:t="",onValueChange:c=()=>{},isLoading:o=!1}){let[n,a]=(0,external_react_namespaceObject.useState)(!1),_=(0,external_react_namespaceObject.useRef)(null);return(0,jsx_runtime_namespaceObject.jsx)(AutocompleteContext.Provider,{value:{value:t,onValueChange:c,isOpen:n,onOpenChange:a,inputRef:_,isLoading:o},children:(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command,{children:e})})}let AutocompleteContext=(0,external_react_namespaceObject.createContext)({}),useAutocompleteContext=()=>(0,external_react_namespaceObject.use)(AutocompleteContext);function AutocompleteInput({className:e,...t}){let{value:c,onValueChange:o,onOpenChange:n,inputRef:a}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"relative","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.MagnifyingGlassIcon,{className:"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,index_cjs_namespaceObject.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 pl-10 text-sm shadow-xs outline-hidden placeholder:text-muted-foreground disabled:opacity-50",e),...t,ref:a,value:t.value??c,onValueChange:function(e){o?.(e),t.onValueChange?.(e)},"data-slot":"command-input",onFocus:()=>n(!0),onBlur:()=>n(!1)})]})}function AutocompleteContent({children:e}){let{isOpen:t,isLoading:c}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsx)("div",{className:"relative mt-2",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,index_cjs_namespaceObject.cn)("absolute top-0 z-10 w-full bg-background outline-none",t?"block":"hidden"),children:(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandList,{className:"rounded-md ring-1 ring-border",children:[c&&(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading,{children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:"p-1",children:(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_cjs_namespaceObject.Skeleton,{className:"h-8 w-full"})})}),e]})})})}function AutocompleteList({children:e,...t}){let{isLoading:c}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup,{...t,children:e})}function AutocompleteItem(e){let{value:t,onValueChange:c,onOpenChange:o}=useAutocompleteContext(),n=t===e.value;return(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem,{...e,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:function(){c?.(e.value??""),o(!1)},className:(0,index_cjs_namespaceObject.cn)("flex w-full items-center gap-2",!n&&"pl-8"),children:[n&&(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{className:"size-4"}),e.value]})}function AutocompleteEmpty({className:e,...t}){let{isLoading:c}=useAutocompleteContext();return c?null:(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty,{className:(0,index_cjs_namespaceObject.cn)("select-none rounded-sm px-2 py-3 text-center text-sm",e),...t})}for(var __webpack_i__ in exports.Autocomplete=__webpack_exports__.Autocomplete,exports.AutocompleteContent=__webpack_exports__.AutocompleteContent,exports.AutocompleteContext=__webpack_exports__.AutocompleteContext,exports.AutocompleteEmpty=__webpack_exports__.AutocompleteEmpty,exports.AutocompleteInput=__webpack_exports__.AutocompleteInput,exports.AutocompleteItem=__webpack_exports__.AutocompleteItem,exports.AutocompleteList=__webpack_exports__.AutocompleteList,__webpack_exports__)-1===["Autocomplete","AutocompleteContent","AutocompleteContext","AutocompleteEmpty","AutocompleteInput","AutocompleteItem","AutocompleteList"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var c in t)__webpack_require__.o(t,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AutocompleteItem:()=>AutocompleteItem,AutocompleteList:()=>AutocompleteList,AutocompleteContext:()=>AutocompleteContext,AutocompleteContent:()=>AutocompleteContent,Autocomplete:()=>Autocomplete,AutocompleteEmpty:()=>AutocompleteEmpty,AutocompleteInput:()=>AutocompleteInput});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_cmdk_namespaceObject=require("cmdk"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../../lib/index.cjs"),external_command_cjs_namespaceObject=require("../command.cjs"),external_skeleton_index_cjs_namespaceObject=require("../skeleton/index.cjs");function Autocomplete({children:e,value:t="",onValueChange:c=()=>{},isLoading:n=!1}){let[o,a]=(0,external_react_namespaceObject.useState)(!1),_=(0,external_react_namespaceObject.useRef)(null);return(0,jsx_runtime_namespaceObject.jsx)(AutocompleteContext.Provider,{value:{value:t,onValueChange:c,isOpen:o,onOpenChange:a,inputRef:_,isLoading:n},children:(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command,{children:e})})}let AutocompleteContext=(0,external_react_namespaceObject.createContext)({}),useAutocompleteContext=()=>(0,external_react_namespaceObject.use)(AutocompleteContext);function AutocompleteInput({className:e,...t}){let{value:c,onValueChange:n,onOpenChange:o,inputRef:a}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"relative","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.MagnifyingGlassIcon,{className:"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,index_cjs_namespaceObject.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 pl-10 text-sm shadow-xs outline-hidden placeholder:text-muted-foreground disabled:opacity-50",e),...t,ref:a,value:t.value??c,onValueChange:function(e){n?.(e),t.onValueChange?.(e)},"data-slot":"command-input",onFocus:()=>o(!0),onBlur:()=>o(!1)})]})}function AutocompleteContent({children:e}){let{isOpen:t,isLoading:c}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsx)("div",{className:"relative mt-2",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,index_cjs_namespaceObject.cn)("absolute top-0 z-10 w-full bg-background outline-none",t?"block":"hidden"),children:(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandList,{className:"rounded-md ring-1 ring-border",children:[c&&(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading,{children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:"p-1",children:(0,jsx_runtime_namespaceObject.jsx)(external_skeleton_index_cjs_namespaceObject.Skeleton,{className:"h-8 w-full"})})}),e]})})})}function AutocompleteList({children:e,...t}){let{isLoading:c}=useAutocompleteContext();return(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup,{...t,children:e})}function AutocompleteItem(e){let{value:t,onValueChange:c,onOpenChange:n}=useAutocompleteContext(),o=t===e.value;return(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem,{...e,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:function(){c?.(e.value??""),n(!1)},className:(0,index_cjs_namespaceObject.cn)("flex w-full items-center gap-2",!o&&"pl-8"),children:[o&&(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{className:"size-4"}),e.value]})}function AutocompleteEmpty({className:e,...t}){let{isLoading:c}=useAutocompleteContext();return c?null:(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty,{className:(0,index_cjs_namespaceObject.cn)("select-none rounded-sm px-2 py-3 text-center text-sm",e),...t})}for(var __webpack_i__ in exports.Autocomplete=__webpack_exports__.Autocomplete,exports.AutocompleteContent=__webpack_exports__.AutocompleteContent,exports.AutocompleteContext=__webpack_exports__.AutocompleteContext,exports.AutocompleteEmpty=__webpack_exports__.AutocompleteEmpty,exports.AutocompleteInput=__webpack_exports__.AutocompleteInput,exports.AutocompleteItem=__webpack_exports__.AutocompleteItem,exports.AutocompleteList=__webpack_exports__.AutocompleteList,__webpack_exports__)-1===["Autocomplete","AutocompleteContent","AutocompleteContext","AutocompleteEmpty","AutocompleteInput","AutocompleteItem","AutocompleteList"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{badgeVariants:()=>badgeVariants});let external_tailwind_variants_namespaceObject=require("tailwind-variants"),badgeVariants=(0,external_tailwind_variants_namespaceObject.tv)({base:"inline-flex items-center border font-medium transition-colors focus:outline-none focus:ring-1 focus:ring-ring",variants:{variant:{default:"border-transparent bg-primary text-white hover:bg-primary/80",secondary:"border-transparent bg-muted text-foreground hover:bg-muted/80",tertiary:"border-transparent bg-muted text-muted-foreground hover:bg-muted/80",outline:"text-foreground",destructive:"border-transparent bg-destructive text-white hover:bg-destructive/80",success:"border-transparent bg-success text-white hover:bg-success/80",verified:"border-transparent bg-azure-300 text-white hover:bg-azure-300/80",ghost:"border-transparent bg-transparent text-foreground hover:bg-muted/80"},size:{default:"h-6 rounded-sm px-1.5 py-0.5 text-xs",sm:"h-5 rounded-[3px] px-[0.3125rem] py-[0.1875rem] font-semibold text-xs",lg:"h-7 rounded-[5px] px-2 py-1.5 text-xs",xl:"h-8 rounded-lg px-2 py-1.5 text-sm"}},defaultVariants:{variant:"default",size:"default"}});for(var __webpack_i__ in exports.badgeVariants=__webpack_exports__.badgeVariants,__webpack_exports__)-1===["badgeVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,57 @@
1
+ import { VariantProps } from 'tailwind-variants';
2
+ declare const badgeVariants: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: string;
5
+ secondary: string;
6
+ tertiary: string;
7
+ outline: string;
8
+ destructive: string;
9
+ success: string;
10
+ verified: string;
11
+ ghost: string;
12
+ };
13
+ size: {
14
+ default: string;
15
+ sm: string;
16
+ lg: string;
17
+ xl: string;
18
+ };
19
+ }, undefined, "inline-flex items-center border font-medium transition-colors focus:outline-none focus:ring-1 focus:ring-ring", {
20
+ variant: {
21
+ default: string;
22
+ secondary: string;
23
+ tertiary: string;
24
+ outline: string;
25
+ destructive: string;
26
+ success: string;
27
+ verified: string;
28
+ ghost: string;
29
+ };
30
+ size: {
31
+ default: string;
32
+ sm: string;
33
+ lg: string;
34
+ xl: string;
35
+ };
36
+ }, undefined, import("tailwind-variants").TVReturnType<{
37
+ variant: {
38
+ default: string;
39
+ secondary: string;
40
+ tertiary: string;
41
+ outline: string;
42
+ destructive: string;
43
+ success: string;
44
+ verified: string;
45
+ ghost: string;
46
+ };
47
+ size: {
48
+ default: string;
49
+ sm: string;
50
+ lg: string;
51
+ xl: string;
52
+ };
53
+ }, undefined, "inline-flex items-center border font-medium transition-colors focus:outline-none focus:ring-1 focus:ring-ring", unknown, unknown, undefined>>;
54
+ type BadgeVariants = VariantProps<typeof badgeVariants>;
55
+ export { badgeVariants };
56
+ export type { BadgeVariants };
57
+ //# sourceMappingURL=badge-variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge-variants.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/badge-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAMpD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4JA6BjB,CAAA;AAEF,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAA;AAMvD,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Badge:()=>Badge});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_badge_variants_cjs_namespaceObject=require("./badge-variants.cjs");function Badge({className:e,asChild:_,variant:r,size:a,...t}){let c=_?react_slot_namespaceObject.Slot:"span";return(0,jsx_runtime_namespaceObject.jsx)(c,{className:(0,external_badge_variants_cjs_namespaceObject.badgeVariants)({className:e,variant:r,size:a}),...t})}for(var __webpack_i__ in exports.Badge=__webpack_exports__.Badge,__webpack_exports__)-1===["Badge"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,9 @@
1
+ import { ComponentProps } from 'react';
2
+ import { BadgeVariants } from './badge-variants';
3
+ type BadgeProps = ComponentProps<'span'> & BadgeVariants & {
4
+ asChild?: boolean;
5
+ };
6
+ declare function Badge({ className, asChild, variant, size, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
7
+ export { Badge };
8
+ export type { BadgeProps };
9
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,aAAa,EAAiB,MAAM,kBAAkB,CAAA;AAM/D,KAAK,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GACtC,aAAa,GAAG;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAEH,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CASzE;AAMD,OAAO,EAAE,KAAK,EAAE,CAAA;AAChB,YAAY,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./badge-variants":function(_){_.exports=require("./badge-variants.cjs")},"./badge":function(_){_.exports=require("./badge.cjs")}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r)&&Object.defineProperty(_,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e),__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./badge"),e={};for(var r in _)"default"!==r&&(e[r]=(function(e){return _[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,e);var a=__webpack_require__("./badge-variants"),e={};for(var r in a)"default"!==r&&(e[r]=(function(_){return a[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,e)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,3 @@
1
+ export * from './badge';
2
+ export * from './badge-variants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{buttonVariants:()=>buttonVariants,Button:()=>Button});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_spinner_cjs_namespaceObject=require("../spinner.cjs"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),buttonVariants=(0,utils_cjs_namespaceObject.tv)({base:"flex cursor-pointer items-center justify-center whitespace-nowrap rounded-md font-medium text-sm transition-colors focus-visible:border-primary focus-visible:outline-none",variants:{variant:{primary:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",tertiary:"border bg-background text-primary shadow-xs hover:bg-accent dark:border-input dark:bg-input/30 dark:hover:bg-input/50",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",success:"bg-success text-white shadow-xs hover:bg-success/90 focus-visible:ring-success/20 dark:bg-success/60 dark:focus-visible:ring-success/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{xxs:"h-7 gap-1 rounded px-[0.4375rem] text-[0.8125rem]",xs:"h-8 gap-1 px-2.5 text-xs",sm:"h-9 gap-1.5 p-3 text-sm",default:"h-10 gap-4 p-3",lg:"h-11 gap-6 p-3.5 text-lg",icon:"size-10"},rounded:{true:"rounded-full"},loading:{true:"pointer-events-none",false:""},disabled:{true:"pointer-events-none opacity-50",false:""}},defaultVariants:{variant:"primary",size:"default",rounded:!1,loading:!1}});function Button({children:e,className:t,disabled:r,loaderPosition:a,loading:s,prefix:n,size:_,spinner:i,suffix:c,variant:o,asChild:u,rounded:p,...b}){let d=u?react_slot_namespaceObject.Slot:"button";return(0,jsx_runtime_namespaceObject.jsxs)(d,{className:(0,utils_cjs_namespaceObject.cn)(buttonVariants({variant:o,size:_,rounded:p,loading:s,className:t,disabled:s||r})),"data-slot":"button","data-variant":o,disabled:s||r,type:"button",...b,children:[s&&"prefix"===a?i||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}):n,(0,jsx_runtime_namespaceObject.jsx)(react_slot_namespaceObject.Slottable,{children:s&&!a?(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}):e}),s&&"suffix"===a?i||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}):c]})}for(var __webpack_i__ in exports.Button=__webpack_exports__.Button,exports.buttonVariants=__webpack_exports__.buttonVariants,__webpack_exports__)-1===["Button","buttonVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,5 +1,5 @@
1
- import { ComponentProps, JSX, ReactNode } from 'react';
2
- import type { VariantProps } from '../lib/utils';
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { type VariantProps } from '../../lib/utils';
3
3
  declare const buttonVariants: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
5
5
  primary: string;
@@ -91,7 +91,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
91
91
  false: string;
92
92
  };
93
93
  }, undefined, "flex cursor-pointer items-center justify-center whitespace-nowrap rounded-md font-medium text-sm transition-colors focus-visible:border-primary focus-visible:outline-none", unknown, unknown, undefined>>;
94
- export type ButtonProps = ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
94
+ type ButtonProps = ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
95
95
  asChild?: boolean;
96
96
  };
97
97
  declare function Button({ children, className, disabled, loaderPosition, loading, prefix, size, spinner, suffix, variant, asChild, rounded, ...props }: Omit<ComponentProps<'button'>, 'prefix'> & VariantProps<typeof buttonVariants> & {
@@ -102,9 +102,7 @@ declare function Button({ children, className, disabled, loaderPosition, loading
102
102
  suffix?: ReactNode;
103
103
  asChild?: boolean;
104
104
  rounded?: boolean;
105
- }): JSX.Element;
106
- declare namespace Button {
107
- var displayName: string;
108
- }
105
+ }): import("react/jsx-runtime").JSX.Element;
109
106
  export { Button, buttonVariants };
107
+ export type { ButtonProps };
110
108
  //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAMvD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yNA8ClB,CAAA;AAMF,KAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,GACzC,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAEH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACN,IAAI,EACJ,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,GACzC,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,2CA4BF;AAMD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./button":function(_){_.exports=require("./button.cjs")}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r)&&Object.defineProperty(_,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e),__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./button"),e={};for(var r in _)"default"!==r&&(e[r]=(function(e){return _[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,e)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,2 @@
1
+ export * from './button';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CalendarRangeLabel:()=>CalendarRangeLabel,Calendar:()=>Calendar,CalendarLabel:()=>CalendarLabel});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),external_react_day_picker_namespaceObject=require("react-day-picker"),locale_namespaceObject=require("react-day-picker/locale"),external_button_cjs_namespaceObject=require("./button.cjs"),date_picker_cjs_namespaceObject=require("../lib/date-picker.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_select_cjs_namespaceObject=require("./select.cjs");function Chevron({orientation:e,className:a,...c}){switch(e){case"up":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretUpIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"down":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"left":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretLeftIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"right":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretRightIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});default:return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.DotIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c})}}function Calendar({showOutsideDays:e=!0,classNames:a,yearRange:c,hasMonthAndYearSelection:t=!0,...n}){let r=void 0!==n.mode||void 0!==n.onDayClick,_=(0,external_react_namespaceObject.useMemo)(()=>{let e=locale_namespaceObject.ptBR,{options:a,localize:c,formatLong:t}=n.locale||{};return a&&c&&t&&(e={options:a,localize:c,formatLong:t}),(0,date_picker_cjs_namespaceObject.genMonths)(e)},[]),s=(0,external_react_namespaceObject.useMemo)(()=>(0,date_picker_cjs_namespaceObject.genYears)(c),[]);return(0,jsx_runtime_namespaceObject.jsx)(external_react_day_picker_namespaceObject.DayPicker,{locale:locale_namespaceObject.ptBR,classNames:{[external_react_day_picker_namespaceObject.UI.Root]:(0,utils_cjs_namespaceObject.cn)("p-3",a?.[external_react_day_picker_namespaceObject.UI.Root]),[external_react_day_picker_namespaceObject.UI.Chevron]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Chevron]),[external_react_day_picker_namespaceObject.UI.Day]:(0,utils_cjs_namespaceObject.cn)("grid place-items-center text-center text-sm",r?"group min-w-8.5 has-focus-visible:z-20":"h-8 min-w-8.5",a?.[external_react_day_picker_namespaceObject.UI.Day]),[external_react_day_picker_namespaceObject.UI.DayButton]:(0,utils_cjs_namespaceObject.cn)("size-8 rounded-lg border border-transparent outline-hidden hover:not-disabled:not-group-aria-selected:bg-gray-100 hover:not-disabled:not-group-aria-selected:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 group-[.is-outside]:text-gray-600 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:border-primary group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-ring/20 group-aria-selected:not-group-[.is-range-middle]:bg-primary group-aria-selected:not-group-[.is-range-middle]:text-white group-data-today:not-group-aria-selected:bg-gray-100 group-data-today:not-group-aria-selected:text-foreground dark:group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-ring/40",a?.[external_react_day_picker_namespaceObject.UI.DayButton]),[external_react_day_picker_namespaceObject.UI.CaptionLabel]:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-2 [&>svg]:opacity-50",a?.[external_react_day_picker_namespaceObject.UI.CaptionLabel]),[external_react_day_picker_namespaceObject.UI.Dropdowns]:(0,utils_cjs_namespaceObject.cn)("flex gap-4",a?.[external_react_day_picker_namespaceObject.UI.Dropdowns]),[external_react_day_picker_namespaceObject.UI.Dropdown]:(0,utils_cjs_namespaceObject.cn)("absolute opacity-0",a?.[external_react_day_picker_namespaceObject.UI.Dropdown]),[external_react_day_picker_namespaceObject.UI.DropdownRoot]:(0,utils_cjs_namespaceObject.cn)("relative",a?.[external_react_day_picker_namespaceObject.UI.DropdownRoot]),[external_react_day_picker_namespaceObject.UI.Footer]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Footer]),[external_react_day_picker_namespaceObject.UI.MonthGrid]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.MonthGrid]),[external_react_day_picker_namespaceObject.UI.MonthCaption]:(0,utils_cjs_namespaceObject.cn)("py-1 font-medium text-sm",a?.[external_react_day_picker_namespaceObject.UI.MonthCaption]),[external_react_day_picker_namespaceObject.UI.MonthsDropdown]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.MonthsDropdown]),[external_react_day_picker_namespaceObject.UI.Month]:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-4",a?.[external_react_day_picker_namespaceObject.UI.Month]),[external_react_day_picker_namespaceObject.UI.Months]:(0,utils_cjs_namespaceObject.cn)("relative flex gap-4",a?.[external_react_day_picker_namespaceObject.UI.Months]),[external_react_day_picker_namespaceObject.UI.Nav]:(0,utils_cjs_namespaceObject.cn)("absolute end-0 flex gap-2",a?.[external_react_day_picker_namespaceObject.UI.Nav]),[external_react_day_picker_namespaceObject.UI.NextMonthButton]:(0,external_button_cjs_namespaceObject.buttonVariants)({variant:"ghost",size:"icon",className:["size-7",a?.[external_react_day_picker_namespaceObject.UI.NextMonthButton]]}),[external_react_day_picker_namespaceObject.UI.PreviousMonthButton]:(0,external_button_cjs_namespaceObject.buttonVariants)({variant:"ghost",size:"icon",className:["size-7",a?.[external_react_day_picker_namespaceObject.UI.PreviousMonthButton]]}),[external_react_day_picker_namespaceObject.UI.Week]:(0,utils_cjs_namespaceObject.cn)("mt-2 flex justify-between",a?.[external_react_day_picker_namespaceObject.UI.Week]),[external_react_day_picker_namespaceObject.UI.Weeks]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Weeks]),[external_react_day_picker_namespaceObject.UI.Weekday]:(0,utils_cjs_namespaceObject.cn)("min-w-8.5 font-medium text-gray-600 text-xs",a?.[external_react_day_picker_namespaceObject.UI.Weekday]),[external_react_day_picker_namespaceObject.UI.Weekdays]:(0,utils_cjs_namespaceObject.cn)("flex w-full justify-between",a?.[external_react_day_picker_namespaceObject.UI.Weekdays]),[external_react_day_picker_namespaceObject.UI.WeekNumber]:(0,utils_cjs_namespaceObject.cn)("grid h-8 min-w-8.5 place-items-center font-normal text-gray-600 text-xs [&+*]:rounded-l-lg",a?.[external_react_day_picker_namespaceObject.UI.WeekNumber]),[external_react_day_picker_namespaceObject.UI.WeekNumberHeader]:(0,utils_cjs_namespaceObject.cn)("min-w-8.5",a?.[external_react_day_picker_namespaceObject.UI.WeekNumberHeader]),[external_react_day_picker_namespaceObject.UI.YearsDropdown]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.YearsDropdown]),[external_react_day_picker_namespaceObject.SelectionState.range_end]:(0,utils_cjs_namespaceObject.cn)("is-range-end rounded-r-lg bg-gradient-to-l to-gray-100 first:rounded-l-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_end]),[external_react_day_picker_namespaceObject.SelectionState.range_middle]:(0,utils_cjs_namespaceObject.cn)("is-range-middle bg-gray-100 text-foreground first:rounded-l-lg last:rounded-r-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_middle]),[external_react_day_picker_namespaceObject.SelectionState.range_start]:(0,utils_cjs_namespaceObject.cn)("is-range-start rounded-l-lg bg-gradient-to-r to-gray-100 last:rounded-r-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_start]),[external_react_day_picker_namespaceObject.SelectionState.selected]:(0,utils_cjs_namespaceObject.cn)("is-selected",a?.[external_react_day_picker_namespaceObject.SelectionState.selected]),[external_react_day_picker_namespaceObject.DayFlag.disabled]:(0,utils_cjs_namespaceObject.cn)("is-disabled",a?.[external_react_day_picker_namespaceObject.DayFlag.disabled]),[external_react_day_picker_namespaceObject.DayFlag.focused]:(0,utils_cjs_namespaceObject.cn)("is-focused",a?.[external_react_day_picker_namespaceObject.DayFlag.focused]),[external_react_day_picker_namespaceObject.DayFlag.hidden]:(0,utils_cjs_namespaceObject.cn)("is-hidden size-8",a?.[external_react_day_picker_namespaceObject.DayFlag.hidden]),[external_react_day_picker_namespaceObject.DayFlag.outside]:(0,utils_cjs_namespaceObject.cn)("is-outside",a?.[external_react_day_picker_namespaceObject.DayFlag.outside]),[external_react_day_picker_namespaceObject.DayFlag.today]:(0,utils_cjs_namespaceObject.cn)("is-today",a?.[external_react_day_picker_namespaceObject.DayFlag.today])},components:{Chevron,MonthCaption:t?({calendarMonth:e})=>(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"inline-flex gap-1",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_select_cjs_namespaceObject.Select,{value:e.date.getMonth().toString(),onValueChange:a=>{let c=new Date(e.date);c.setMonth(Number.parseInt(a,10)),n.onMonthChange?.(c)},children:[(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectTrigger,{className:"w-fit gap-1 border-none px-1 shadow-none focus:bg-accent focus:text-accent-foreground",icon:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:"size-4 text-foreground"}),size:"xs",children:(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectValue,{})}),(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectContent,{children:_.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectItem,{value:e.value.toString(),children:e.label},e.value))})]}),(0,jsx_runtime_namespaceObject.jsxs)(external_select_cjs_namespaceObject.Select,{value:e.date.getFullYear().toString(),onValueChange:a=>{let c=new Date(e.date);c.setFullYear(Number.parseInt(a,10)),n.onMonthChange?.(c)},children:[(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectTrigger,{className:"w-fit gap-1 border-none px-1 shadow-none focus:bg-accent focus:text-accent-foreground",icon:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:"size-4 text-foreground"}),size:"xs",children:(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectValue,{})}),(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectContent,{children:s.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectItem,{value:e.value.toString(),children:e.label},e.value))})]})]}):external_react_day_picker_namespaceObject.MonthCaption},showOutsideDays:e,...n})}function CalendarRangeLabel({date:e,formatStr:a="LLL dd, y",placeholder:c="Pick a date"}){if(!e?.from)return(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:c});let t=(0,external_date_fns_namespaceObject.format)(e.from,a);if(!e.to)return(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:t});let n=(0,external_date_fns_namespaceObject.format)(e.to,a);return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"truncate",children:[t," - ",n]})}function CalendarLabel({date:e,formatStr:a="PPP",placeholder:c="Pick a date"}){return e?(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:(0,external_date_fns_namespaceObject.format)(e,a)}):(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:c})}for(var __webpack_i__ in exports.Calendar=__webpack_exports__.Calendar,exports.CalendarLabel=__webpack_exports__.CalendarLabel,exports.CalendarRangeLabel=__webpack_exports__.CalendarRangeLabel,__webpack_exports__)-1===["Calendar","CalendarLabel","CalendarRangeLabel"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CalendarRangeLabel:()=>CalendarRangeLabel,Calendar:()=>Calendar,CalendarLabel:()=>CalendarLabel});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),external_react_day_picker_namespaceObject=require("react-day-picker"),locale_namespaceObject=require("react-day-picker/locale"),index_cjs_namespaceObject=require("./button/index.cjs"),date_picker_cjs_namespaceObject=require("../lib/date-picker.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_select_cjs_namespaceObject=require("./select.cjs");function Chevron({orientation:e,className:a,...c}){switch(e){case"up":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretUpIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"down":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"left":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretLeftIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});case"right":return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretRightIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c});default:return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.DotIcon,{className:(0,utils_cjs_namespaceObject.cn)("size-4",a),...c})}}function Calendar({showOutsideDays:e=!0,classNames:a,yearRange:c,hasMonthAndYearSelection:t=!0,...n}){let r=void 0!==n.mode||void 0!==n.onDayClick,_=(0,external_react_namespaceObject.useMemo)(()=>{let e=locale_namespaceObject.ptBR,{options:a,localize:c,formatLong:t}=n.locale||{};return a&&c&&t&&(e={options:a,localize:c,formatLong:t}),(0,date_picker_cjs_namespaceObject.genMonths)(e)},[]),s=(0,external_react_namespaceObject.useMemo)(()=>(0,date_picker_cjs_namespaceObject.genYears)(c),[]);return(0,jsx_runtime_namespaceObject.jsx)(external_react_day_picker_namespaceObject.DayPicker,{locale:locale_namespaceObject.ptBR,classNames:{[external_react_day_picker_namespaceObject.UI.Root]:(0,utils_cjs_namespaceObject.cn)("p-3",a?.[external_react_day_picker_namespaceObject.UI.Root]),[external_react_day_picker_namespaceObject.UI.Chevron]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Chevron]),[external_react_day_picker_namespaceObject.UI.Day]:(0,utils_cjs_namespaceObject.cn)("grid place-items-center text-center text-sm",r?"group min-w-8.5 has-focus-visible:z-20":"h-8 min-w-8.5",a?.[external_react_day_picker_namespaceObject.UI.Day]),[external_react_day_picker_namespaceObject.UI.DayButton]:(0,utils_cjs_namespaceObject.cn)("size-8 rounded-lg border border-transparent outline-hidden hover:not-disabled:not-group-aria-selected:bg-gray-100 hover:not-disabled:not-group-aria-selected:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 group-[.is-outside]:text-gray-600 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:border-primary group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-ring/20 group-aria-selected:not-group-[.is-range-middle]:bg-primary group-aria-selected:not-group-[.is-range-middle]:text-white group-data-today:not-group-aria-selected:bg-gray-100 group-data-today:not-group-aria-selected:text-foreground dark:group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-ring/40",a?.[external_react_day_picker_namespaceObject.UI.DayButton]),[external_react_day_picker_namespaceObject.UI.CaptionLabel]:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-2 [&>svg]:opacity-50",a?.[external_react_day_picker_namespaceObject.UI.CaptionLabel]),[external_react_day_picker_namespaceObject.UI.Dropdowns]:(0,utils_cjs_namespaceObject.cn)("flex gap-4",a?.[external_react_day_picker_namespaceObject.UI.Dropdowns]),[external_react_day_picker_namespaceObject.UI.Dropdown]:(0,utils_cjs_namespaceObject.cn)("absolute opacity-0",a?.[external_react_day_picker_namespaceObject.UI.Dropdown]),[external_react_day_picker_namespaceObject.UI.DropdownRoot]:(0,utils_cjs_namespaceObject.cn)("relative",a?.[external_react_day_picker_namespaceObject.UI.DropdownRoot]),[external_react_day_picker_namespaceObject.UI.Footer]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Footer]),[external_react_day_picker_namespaceObject.UI.MonthGrid]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.MonthGrid]),[external_react_day_picker_namespaceObject.UI.MonthCaption]:(0,utils_cjs_namespaceObject.cn)("py-1 font-medium text-sm",a?.[external_react_day_picker_namespaceObject.UI.MonthCaption]),[external_react_day_picker_namespaceObject.UI.MonthsDropdown]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.MonthsDropdown]),[external_react_day_picker_namespaceObject.UI.Month]:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-4",a?.[external_react_day_picker_namespaceObject.UI.Month]),[external_react_day_picker_namespaceObject.UI.Months]:(0,utils_cjs_namespaceObject.cn)("relative flex gap-4",a?.[external_react_day_picker_namespaceObject.UI.Months]),[external_react_day_picker_namespaceObject.UI.Nav]:(0,utils_cjs_namespaceObject.cn)("absolute end-0 flex gap-2",a?.[external_react_day_picker_namespaceObject.UI.Nav]),[external_react_day_picker_namespaceObject.UI.NextMonthButton]:(0,index_cjs_namespaceObject.buttonVariants)({variant:"ghost",size:"icon",className:["size-7",a?.[external_react_day_picker_namespaceObject.UI.NextMonthButton]]}),[external_react_day_picker_namespaceObject.UI.PreviousMonthButton]:(0,index_cjs_namespaceObject.buttonVariants)({variant:"ghost",size:"icon",className:["size-7",a?.[external_react_day_picker_namespaceObject.UI.PreviousMonthButton]]}),[external_react_day_picker_namespaceObject.UI.Week]:(0,utils_cjs_namespaceObject.cn)("mt-2 flex justify-between",a?.[external_react_day_picker_namespaceObject.UI.Week]),[external_react_day_picker_namespaceObject.UI.Weeks]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.Weeks]),[external_react_day_picker_namespaceObject.UI.Weekday]:(0,utils_cjs_namespaceObject.cn)("min-w-8.5 font-medium text-gray-600 text-xs",a?.[external_react_day_picker_namespaceObject.UI.Weekday]),[external_react_day_picker_namespaceObject.UI.Weekdays]:(0,utils_cjs_namespaceObject.cn)("flex w-full justify-between",a?.[external_react_day_picker_namespaceObject.UI.Weekdays]),[external_react_day_picker_namespaceObject.UI.WeekNumber]:(0,utils_cjs_namespaceObject.cn)("grid h-8 min-w-8.5 place-items-center font-normal text-gray-600 text-xs [&+*]:rounded-l-lg",a?.[external_react_day_picker_namespaceObject.UI.WeekNumber]),[external_react_day_picker_namespaceObject.UI.WeekNumberHeader]:(0,utils_cjs_namespaceObject.cn)("min-w-8.5",a?.[external_react_day_picker_namespaceObject.UI.WeekNumberHeader]),[external_react_day_picker_namespaceObject.UI.YearsDropdown]:(0,utils_cjs_namespaceObject.cn)(a?.[external_react_day_picker_namespaceObject.UI.YearsDropdown]),[external_react_day_picker_namespaceObject.SelectionState.range_end]:(0,utils_cjs_namespaceObject.cn)("is-range-end rounded-r-lg bg-gradient-to-l to-gray-100 first:rounded-l-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_end]),[external_react_day_picker_namespaceObject.SelectionState.range_middle]:(0,utils_cjs_namespaceObject.cn)("is-range-middle bg-gray-100 text-foreground first:rounded-l-lg last:rounded-r-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_middle]),[external_react_day_picker_namespaceObject.SelectionState.range_start]:(0,utils_cjs_namespaceObject.cn)("is-range-start rounded-l-lg bg-gradient-to-r to-gray-100 last:rounded-r-lg",a?.[external_react_day_picker_namespaceObject.SelectionState.range_start]),[external_react_day_picker_namespaceObject.SelectionState.selected]:(0,utils_cjs_namespaceObject.cn)("is-selected",a?.[external_react_day_picker_namespaceObject.SelectionState.selected]),[external_react_day_picker_namespaceObject.DayFlag.disabled]:(0,utils_cjs_namespaceObject.cn)("is-disabled",a?.[external_react_day_picker_namespaceObject.DayFlag.disabled]),[external_react_day_picker_namespaceObject.DayFlag.focused]:(0,utils_cjs_namespaceObject.cn)("is-focused",a?.[external_react_day_picker_namespaceObject.DayFlag.focused]),[external_react_day_picker_namespaceObject.DayFlag.hidden]:(0,utils_cjs_namespaceObject.cn)("is-hidden size-8",a?.[external_react_day_picker_namespaceObject.DayFlag.hidden]),[external_react_day_picker_namespaceObject.DayFlag.outside]:(0,utils_cjs_namespaceObject.cn)("is-outside",a?.[external_react_day_picker_namespaceObject.DayFlag.outside]),[external_react_day_picker_namespaceObject.DayFlag.today]:(0,utils_cjs_namespaceObject.cn)("is-today",a?.[external_react_day_picker_namespaceObject.DayFlag.today])},components:{Chevron,MonthCaption:t?({calendarMonth:e})=>(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"inline-flex gap-1",children:[(0,jsx_runtime_namespaceObject.jsxs)(external_select_cjs_namespaceObject.Select,{value:e.date.getMonth().toString(),onValueChange:a=>{let c=new Date(e.date);c.setMonth(Number.parseInt(a,10)),n.onMonthChange?.(c)},children:[(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectTrigger,{className:"w-fit gap-1 border-none px-1 shadow-none focus:bg-accent focus:text-accent-foreground",icon:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:"size-4 text-foreground"}),size:"xs",children:(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectValue,{})}),(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectContent,{children:_.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectItem,{value:e.value.toString(),children:e.label},e.value))})]}),(0,jsx_runtime_namespaceObject.jsxs)(external_select_cjs_namespaceObject.Select,{value:e.date.getFullYear().toString(),onValueChange:a=>{let c=new Date(e.date);c.setFullYear(Number.parseInt(a,10)),n.onMonthChange?.(c)},children:[(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectTrigger,{className:"w-fit gap-1 border-none px-1 shadow-none focus:bg-accent focus:text-accent-foreground",icon:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{className:"size-4 text-foreground"}),size:"xs",children:(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectValue,{})}),(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectContent,{children:s.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_select_cjs_namespaceObject.SelectItem,{value:e.value.toString(),children:e.label},e.value))})]})]}):external_react_day_picker_namespaceObject.MonthCaption},showOutsideDays:e,...n})}function CalendarRangeLabel({date:e,formatStr:a="LLL dd, y",placeholder:c="Pick a date"}){if(!e?.from)return(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:c});let t=(0,external_date_fns_namespaceObject.format)(e.from,a);if(!e.to)return(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:t});let n=(0,external_date_fns_namespaceObject.format)(e.to,a);return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"truncate",children:[t," - ",n]})}function CalendarLabel({date:e,formatStr:a="PPP",placeholder:c="Pick a date"}){return e?(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:(0,external_date_fns_namespaceObject.format)(e,a)}):(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate",children:c})}for(var __webpack_i__ in exports.Calendar=__webpack_exports__.Calendar,exports.CalendarLabel=__webpack_exports__.CalendarLabel,exports.CalendarRangeLabel=__webpack_exports__.CalendarRangeLabel,__webpack_exports__)-1===["Calendar","CalendarLabel","CalendarRangeLabel"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,2 @@
1
+ 'use client'
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Checkbox:()=>Checkbox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_checkbox_namespaceObject=require("@radix-ui/react-checkbox"),utils_cjs_namespaceObject=require("../../lib/utils.cjs");function Checkbox({className:e,size:r="md",..._}){return(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root,{className:(0,utils_cjs_namespaceObject.cn)("peer size-4 shrink-0 rounded border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary",{"size-6":"lg"===r},e),..._,children:(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator,{className:"flex items-center justify-center text-current transition-none",children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{weight:"bold",className:"size-3.5 text-primary-foreground"})})})}for(var __webpack_i__ in exports.Checkbox=__webpack_exports__.Checkbox,__webpack_exports__)-1===["Checkbox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,9 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import { ComponentProps } from 'react';
3
+ type CheckboxProps = ComponentProps<typeof CheckboxPrimitive.Root> & {
4
+ size?: 'md' | 'lg';
5
+ };
6
+ declare function Checkbox({ className, size, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
7
+ export { Checkbox };
8
+ export type { CheckboxProps };
9
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAOtC,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,GAAG;IACnE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CACnB,CAAA;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAiBpE;AAMD,OAAO,EAAE,QAAQ,EAAE,CAAA;AACnB,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./checkbox":function(_){_.exports=require("./checkbox.cjs")}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r)&&Object.defineProperty(_,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e),__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./checkbox"),e={};for(var r in _)"default"!==r&&(e[r]=(function(e){return _[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,e)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,2 @@
1
+ export * from './checkbox';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ComboBox:()=>ComboBox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_command_cjs_namespaceObject=require("./command.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_scroll_area_cjs_namespaceObject=require("./scroll-area.cjs"),ComboBox=({items:e,name:a,value:c,valueIcon:t,placeholder:r,language:_="pt-br",disabled:n=!1,clearable:s=!1,className:o,onValueChange:m})=>{let[p,l]=(0,external_react_namespaceObject.useState)(!1),[i,j]=(0,external_react_namespaceObject.useState)(""),b=e?.filter(e=>e.label.toLowerCase().includes(i?.toLowerCase()));return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{open:p,onOpenChange:l,children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{className:"group",disabled:n,asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)((0,external_button_cjs_namespaceObject.buttonVariants)({variant:"outline",disabled:n}),"h-10 w-full justify-between gap-1 hover:bg-transparent",!c&&"text-muted-foreground",o),children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex flex-1 flex-row items-center gap-4 truncate",children:[c&&t&&(0,jsx_runtime_namespaceObject.jsx)("span",{children:t}),c?(0,jsx_runtime_namespaceObject.jsx)("p",{className:"font-normal",children:e?.find(e=>e.value===c)?.label}):(0,jsx_runtime_namespaceObject.jsx)("p",{className:"text-muted-foreground",children:r})]}),s&&c&&!n&&(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{variant:"ghost",size:"sm","aria-label":"Clear date",className:"ms-1 size-6 p-1",onClick:e=>{e.stopPropagation(),e.preventDefault(),m?.(void 0),l(!1)},children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XIcon,{className:"size-4"})}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{weight:"bold",className:"size-4 text-foreground group-data-[state=open]:rotate-180"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-full min-w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.Command,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandInput,{name:a,value:i,onValueChange:j,placeholder:r}),(0,jsx_runtime_namespaceObject.jsx)(external_scroll_area_cjs_namespaceObject.ScrollArea,{className:"h-[200px] overflow-y-auto",children:b?.length===0?(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty,{children:"pt-br"===_?"Nenhuma op\xe7\xe3o encontrada":"en-us"===_?"No options found":"No se encontraron opciones"}):(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup,{children:b?.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem,{value:e.label,onSelect:()=>{m&&m(e.value),l(!1)},children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{className:(0,utils_cjs_namespaceObject.cn)("mr-2 h-4 w-4",e.value===c?"opacity-100":"opacity-0")}),!!e.icon&&(0,jsx_runtime_namespaceObject.jsx)("span",{className:"mr-2",children:e.icon}),e.label]},e.value))})})]})})]})};for(var __webpack_i__ in exports.ComboBox=__webpack_exports__.ComboBox,__webpack_exports__)-1===["ComboBox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ComboBox:()=>ComboBox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),index_cjs_namespaceObject=require("./button/index.cjs"),external_command_cjs_namespaceObject=require("./command.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_scroll_area_cjs_namespaceObject=require("./scroll-area.cjs"),ComboBox=({items:e,name:a,value:c,valueIcon:r,placeholder:t,language:_="pt-br",disabled:n=!1,clearable:s=!1,className:o,onValueChange:m})=>{let[p,i]=(0,external_react_namespaceObject.useState)(!1),[l,j]=(0,external_react_namespaceObject.useState)(""),b=e?.filter(e=>e.label.toLowerCase().includes(l?.toLowerCase()));return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{open:p,onOpenChange:i,children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{className:"group",disabled:n,asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)((0,index_cjs_namespaceObject.buttonVariants)({variant:"outline",disabled:n}),"h-10 w-full justify-between gap-1 hover:bg-transparent",!c&&"text-muted-foreground",o),children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex flex-1 flex-row items-center gap-4 truncate",children:[c&&r&&(0,jsx_runtime_namespaceObject.jsx)("span",{children:r}),c?(0,jsx_runtime_namespaceObject.jsx)("p",{className:"font-normal",children:e?.find(e=>e.value===c)?.label}):(0,jsx_runtime_namespaceObject.jsx)("p",{className:"text-muted-foreground",children:t})]}),s&&c&&!n&&(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{variant:"ghost",size:"sm","aria-label":"Clear date",className:"ms-1 size-6 p-1",onClick:e=>{e.stopPropagation(),e.preventDefault(),m?.(void 0),i(!1)},children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XIcon,{className:"size-4"})}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{weight:"bold",className:"size-4 text-foreground group-data-[state=open]:rotate-180"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-full min-w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.Command,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandInput,{name:a,value:l,onValueChange:j,placeholder:t}),(0,jsx_runtime_namespaceObject.jsx)(external_scroll_area_cjs_namespaceObject.ScrollArea,{className:"h-[200px] overflow-y-auto",children:b?.length===0?(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty,{children:"pt-br"===_?"Nenhuma op\xe7\xe3o encontrada":"en-us"===_?"No options found":"No se encontraron opciones"}):(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup,{children:b?.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem,{value:e.label,onSelect:()=>{m&&m(e.value),i(!1)},children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{className:(0,utils_cjs_namespaceObject.cn)("mr-2 h-4 w-4",e.value===c?"opacity-100":"opacity-0")}),!!e.icon&&(0,jsx_runtime_namespaceObject.jsx)("span",{className:"mr-2",children:e.icon}),e.label]},e.value))})})]})})]})};for(var __webpack_i__ in exports.ComboBox=__webpack_exports__.ComboBox,__webpack_exports__)-1===["ComboBox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CommandEmpty:()=>CommandEmpty,CommandLoading:()=>CommandLoading,CommandShortcut:()=>CommandShortcut,Command:()=>Command,CommandInput:()=>CommandInput,CommandList:()=>CommandList,CommandGroup:()=>CommandGroup,CommandItem:()=>CommandItem,CommandSeparator:()=>CommandSeparator,CommandDialog:()=>CommandDialog});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_visually_hidden_namespaceObject=require("@radix-ui/react-visually-hidden"),external_cmdk_namespaceObject=require("cmdk"),external_lucide_react_namespaceObject=require("lucide-react"),external_dialog_cjs_namespaceObject=require("./dialog.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Command({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command,{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col overflow-hidden rounded-[inherit] bg-white text-foreground outline-hidden",e),"data-slot":"command",...a})}function CommandDialog({children:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog,{"data-slot":"command-dialog",...a,children:(0,jsx_runtime_namespaceObject.jsxs)(external_dialog_cjs_namespaceObject.DialogContent,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[(0,jsx_runtime_namespaceObject.jsxs)(react_visually_hidden_namespaceObject.VisuallyHidden,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogTitle,{children:"Search command"}),(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogDescription,{children:"Use the search bar to find and select the desired command."})]}),(0,jsx_runtime_namespaceObject.jsx)(Command,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-500 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function CommandInput({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,utils_cjs_namespaceObject.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input",...a})]})}function CommandList({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List,{className:(0,utils_cjs_namespaceObject.cn)("max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...a})}function CommandEmpty({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty,{className:(0,utils_cjs_namespaceObject.cn)("py-6 text-center text-sm",e),"data-slot":"command-empty",...a})}function CommandGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group,{className:(0,utils_cjs_namespaceObject.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-500 [&_[cmdk-group-heading]]:text-xs",e),"data-slot":"command-group",...a})}function CommandSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator,{className:(0,utils_cjs_namespaceObject.cn)("-mx-1 h-px bg-stroke",e),"data-slot":"command-separator",...a})}function CommandItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item,{className:(0,utils_cjs_namespaceObject.cn)("group/command-item relative flex cursor-default select-none items-center gap-2 rounded-sm ata-[selected=true]:bg-accent px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item",...a})}function CommandLoading({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading,{className:(0,utils_cjs_namespaceObject.cn)("flex justify-center p-2",e),"data-slot":"command-loading",...a})}function CommandShortcut({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,utils_cjs_namespaceObject.cn)("ml-auto text-gray-500 text-xs tracking-widest",e),"data-slot":"command-shortcut",...a})}for(var __webpack_i__ in exports.Command=__webpack_exports__.Command,exports.CommandDialog=__webpack_exports__.CommandDialog,exports.CommandEmpty=__webpack_exports__.CommandEmpty,exports.CommandGroup=__webpack_exports__.CommandGroup,exports.CommandInput=__webpack_exports__.CommandInput,exports.CommandItem=__webpack_exports__.CommandItem,exports.CommandList=__webpack_exports__.CommandList,exports.CommandLoading=__webpack_exports__.CommandLoading,exports.CommandSeparator=__webpack_exports__.CommandSeparator,exports.CommandShortcut=__webpack_exports__.CommandShortcut,__webpack_exports__)-1===["Command","CommandDialog","CommandEmpty","CommandGroup","CommandInput","CommandItem","CommandList","CommandLoading","CommandSeparator","CommandShortcut"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CommandEmpty:()=>CommandEmpty,Command:()=>Command,CommandLoading:()=>CommandLoading,CommandShortcut:()=>CommandShortcut,CommandInput:()=>CommandInput,CommandList:()=>CommandList,CommandGroup:()=>CommandGroup,CommandItem:()=>CommandItem,CommandSeparator:()=>CommandSeparator,CommandDialog:()=>CommandDialog});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_visually_hidden_namespaceObject=require("@radix-ui/react-visually-hidden"),external_cmdk_namespaceObject=require("cmdk"),external_lucide_react_namespaceObject=require("lucide-react"),external_dialog_cjs_namespaceObject=require("./dialog.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Command({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command,{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col overflow-hidden rounded-[inherit] bg-white text-foreground outline-hidden",e),"data-slot":"command",...a})}function CommandDialog({children:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog,{"data-slot":"command-dialog",...a,children:(0,jsx_runtime_namespaceObject.jsxs)(external_dialog_cjs_namespaceObject.DialogContent,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[(0,jsx_runtime_namespaceObject.jsxs)(react_visually_hidden_namespaceObject.VisuallyHidden,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogTitle,{children:"Search command"}),(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogDescription,{children:"Use the search bar to find and select the desired command."})]}),(0,jsx_runtime_namespaceObject.jsx)(Command,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-500 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function CommandInput({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,utils_cjs_namespaceObject.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input",...a})]})}function CommandList({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List,{className:(0,utils_cjs_namespaceObject.cn)("max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...a})}function CommandEmpty({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty,{className:(0,utils_cjs_namespaceObject.cn)("py-6 text-center text-sm",e),"data-slot":"command-empty",...a})}function CommandGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group,{className:(0,utils_cjs_namespaceObject.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-500 [&_[cmdk-group-heading]]:text-xs",e),"data-slot":"command-group",...a})}function CommandSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator,{className:(0,utils_cjs_namespaceObject.cn)("-mx-1 h-px bg-stroke",e),"data-slot":"command-separator",...a})}function CommandItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item,{className:(0,utils_cjs_namespaceObject.cn)("group/command-item relative flex cursor-default select-none items-center gap-2 rounded-sm ata-[selected=true]:bg-accent px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item",...a})}function CommandLoading({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading,{className:(0,utils_cjs_namespaceObject.cn)("flex justify-center p-2",e),"data-slot":"command-loading",...a})}function CommandShortcut({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,utils_cjs_namespaceObject.cn)("ml-auto text-gray-500 text-xs tracking-widest",e),"data-slot":"command-shortcut",...a})}for(var __webpack_i__ in exports.Command=__webpack_exports__.Command,exports.CommandDialog=__webpack_exports__.CommandDialog,exports.CommandEmpty=__webpack_exports__.CommandEmpty,exports.CommandGroup=__webpack_exports__.CommandGroup,exports.CommandInput=__webpack_exports__.CommandInput,exports.CommandItem=__webpack_exports__.CommandItem,exports.CommandList=__webpack_exports__.CommandList,exports.CommandLoading=__webpack_exports__.CommandLoading,exports.CommandSeparator=__webpack_exports__.CommandSeparator,exports.CommandShortcut=__webpack_exports__.CommandShortcut,__webpack_exports__)-1===["Command","CommandDialog","CommandEmpty","CommandGroup","CommandInput","CommandItem","CommandList","CommandLoading","CommandSeparator","CommandShortcut"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTableActionBarSelection:()=>DataTableActionBarSelection,DataTableActionBarAction:()=>DataTableActionBarAction,DataTableActionBar:()=>DataTableActionBar});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_motion_react_namespaceObject=require("motion/react"),external_react_namespaceObject=require("react"),external_react_dom_namespaceObject=require("react-dom"),external_button_cjs_namespaceObject=require("../button.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),tooltip_cjs_namespaceObject=require("../tooltip/tooltip.cjs"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_spinner_cjs_namespaceObject=require("../spinner.cjs");function DataTableActionBar({table:e,visible:t,container:a,children:c,className:n,...r}){let[s,_]=external_react_namespaceObject.useState(!1);external_react_namespaceObject.useLayoutEffect(()=>{_(!0)},[]),external_react_namespaceObject.useEffect(()=>{function t(t){"Escape"===t.key&&e.toggleAllRowsSelected(!1)}return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]);let i=a??(s?globalThis.document?.body:null);if(!i)return null;let o=t??e.getFilteredSelectedRowModel().rows.length>0;return external_react_dom_namespaceObject.createPortal((0,jsx_runtime_namespaceObject.jsx)(external_motion_react_namespaceObject.AnimatePresence,{children:o&&(0,jsx_runtime_namespaceObject.jsx)(external_motion_react_namespaceObject.motion.div,{role:"toolbar","aria-orientation":"horizontal",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"},className:(0,utils_cjs_namespaceObject.cn)("fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border bg-background p-2 text-foreground shadow-sm",n),...r,children:c})}),i)}function DataTableActionBarAction({size:e="sm",tooltip:t,isPending:a,disabled:c,className:n,children:r,...s}){let _=(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{variant:"outline",size:e,className:(0,utils_cjs_namespaceObject.cn)("gap-1.5 [&>svg]:size-3.5","icon"===e?"size-8":"h-8",n),disabled:c||a,...s,children:a?(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}):r});return t?(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:_}),(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent,{sideOffset:6,className:"[&>span]:hidden",children:(0,jsx_runtime_namespaceObject.jsx)("p",{children:t})})]}):_}function DataTableActionBarSelection({table:e}){let t=external_react_namespaceObject.useCallback(()=>{e.toggleAllRowsSelected(!1)},[e]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex h-8 items-center rounded-md border pr-1 pl-2.5",children:[(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"whitespace-nowrap text-xs",children:[e.getFilteredSelectedRowModel().rows.length," ",1===e.getFilteredSelectedRowModel().rows.length?"selecionado":"selecionados"]}),(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mr-1 ml-2 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{variant:"ghost",size:"icon",className:"size-5",onClick:t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.X,{className:"size-4"})})}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.TooltipContent,{sideOffset:10,className:"flex items-center gap-2 border bg-gray-50 px-2 py-1 font-semibold text-foreground [&>span]:hidden",children:[(0,jsx_runtime_namespaceObject.jsx)("p",{children:"Limpar sele\xe7\xe3o"}),(0,jsx_runtime_namespaceObject.jsx)("kbd",{className:"select-none rounded border bg-background px-1.5 py-px font-mono font-normal text-[0.7rem] text-foreground shadow-xs",children:(0,jsx_runtime_namespaceObject.jsx)("abbr",{title:"Escape",className:"no-underline",children:"Esc"})})]})]})]})}for(var __webpack_i__ in exports.DataTableActionBar=__webpack_exports__.DataTableActionBar,exports.DataTableActionBarAction=__webpack_exports__.DataTableActionBarAction,exports.DataTableActionBarSelection=__webpack_exports__.DataTableActionBarSelection,__webpack_exports__)-1===["DataTableActionBar","DataTableActionBarAction","DataTableActionBarSelection"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTableActionBarSelection:()=>DataTableActionBarSelection,DataTableActionBarAction:()=>DataTableActionBarAction,DataTableActionBar:()=>DataTableActionBar});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_motion_react_namespaceObject=require("motion/react"),external_react_namespaceObject=require("react"),external_react_dom_namespaceObject=require("react-dom"),index_cjs_namespaceObject=require("../button/index.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),tooltip_cjs_namespaceObject=require("../tooltip/tooltip.cjs"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_spinner_cjs_namespaceObject=require("../spinner.cjs");function DataTableActionBar({table:e,visible:t,container:a,children:c,className:n,...r}){let[s,i]=external_react_namespaceObject.useState(!1);external_react_namespaceObject.useLayoutEffect(()=>{i(!0)},[]),external_react_namespaceObject.useEffect(()=>{function t(t){"Escape"===t.key&&e.toggleAllRowsSelected(!1)}return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]);let _=a??(s?globalThis.document?.body:null);if(!_)return null;let o=t??e.getFilteredSelectedRowModel().rows.length>0;return external_react_dom_namespaceObject.createPortal((0,jsx_runtime_namespaceObject.jsx)(external_motion_react_namespaceObject.AnimatePresence,{children:o&&(0,jsx_runtime_namespaceObject.jsx)(external_motion_react_namespaceObject.motion.div,{role:"toolbar","aria-orientation":"horizontal",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"},className:(0,utils_cjs_namespaceObject.cn)("fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border bg-background p-2 text-foreground shadow-sm",n),...r,children:c})}),_)}function DataTableActionBarAction({size:e="sm",tooltip:t,isPending:a,disabled:c,className:n,children:r,...s}){let i=(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{variant:"outline",size:e,className:(0,utils_cjs_namespaceObject.cn)("gap-1.5 [&>svg]:size-3.5","icon"===e?"size-8":"h-8",n),disabled:c||a,...s,children:a?(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}):r});return t?(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:i}),(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent,{sideOffset:6,className:"[&>span]:hidden",children:(0,jsx_runtime_namespaceObject.jsx)("p",{children:t})})]}):i}function DataTableActionBarSelection({table:e}){let t=external_react_namespaceObject.useCallback(()=>{e.toggleAllRowsSelected(!1)},[e]);return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex h-8 items-center rounded-md border pr-1 pl-2.5",children:[(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"whitespace-nowrap text-xs",children:[e.getFilteredSelectedRowModel().rows.length," ",1===e.getFilteredSelectedRowModel().rows.length?"selecionado":"selecionados"]}),(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mr-1 ml-2 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip,{children:[(0,jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{variant:"ghost",size:"icon",className:"size-5",onClick:t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.X,{className:"size-4"})})}),(0,jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.TooltipContent,{sideOffset:10,className:"flex items-center gap-2 border bg-gray-50 px-2 py-1 font-semibold text-foreground [&>span]:hidden",children:[(0,jsx_runtime_namespaceObject.jsx)("p",{children:"Limpar sele\xe7\xe3o"}),(0,jsx_runtime_namespaceObject.jsx)("kbd",{className:"select-none rounded border bg-background px-1.5 py-px font-mono font-normal text-[0.7rem] text-foreground shadow-xs",children:(0,jsx_runtime_namespaceObject.jsx)("abbr",{title:"Escape",className:"no-underline",children:"Esc"})})]})]})]})}for(var __webpack_i__ in exports.DataTableActionBar=__webpack_exports__.DataTableActionBar,exports.DataTableActionBarAction=__webpack_exports__.DataTableActionBarAction,exports.DataTableActionBarSelection=__webpack_exports__.DataTableActionBarSelection,__webpack_exports__)-1===["DataTableActionBar","DataTableActionBarAction","DataTableActionBarSelection"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTableDateFilter:()=>DataTableDateFilter});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("../button.cjs"),external_calendar_cjs_namespaceObject=require("../calendar.cjs"),external_popover_cjs_namespaceObject=require("../popover.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),format_cjs_namespaceObject=require("../../lib/format.cjs");function getIsDateRange(e){return e&&"object"==typeof e&&!Array.isArray(e)}function parseAsDate(e){if(!e)return;let a=new Date("string"==typeof e?Number(e):e);return Number.isNaN(a.getTime())?void 0:a}function parseColumnFilterValue(e){return null==e?[]:Array.isArray(e)?e.map(e=>{if("number"==typeof e||"string"==typeof e)return e}):"string"==typeof e||"number"==typeof e?[e]:[]}function DataTableDateFilter({column:e,title:a,multiple:t}){let r=e.getFilterValue(),n=external_react_namespaceObject.useMemo(()=>{if(!r)return t?{from:void 0,to:void 0}:[];if(t){let e=parseColumnFilterValue(r);return{from:parseAsDate(e[0]),to:parseAsDate(e[1])}}let e=parseAsDate(parseColumnFilterValue(r)[0]);return e?[e]:[]},[r,t]),c=external_react_namespaceObject.useCallback(a=>{if(!a)return void e.setFilterValue(void 0);if(!t||"getTime"in a)!t&&"getTime"in a&&e.setFilterValue(a.getTime());else{let t=a.from?.getTime(),r=a.to?.getTime();e.setFilterValue(t||r?[t,r]:void 0)}},[e,t]),s=external_react_namespaceObject.useCallback(a=>{a.stopPropagation(),e.setFilterValue(void 0)},[e]),_=external_react_namespaceObject.useMemo(()=>t?!!getIsDateRange(n)&&(n.from||n.to):!!Array.isArray(n)&&n.length>0,[t,n]),i=external_react_namespaceObject.useCallback(e=>e.from||e.to?e.from&&e.to?`${(0,format_cjs_namespaceObject.formatDate)(e.from)} - ${(0,format_cjs_namespaceObject.formatDate)(e.to)}`:(0,format_cjs_namespaceObject.formatDate)(e.from??e.to):"",[]),o=external_react_namespaceObject.useMemo(()=>{if(t){if(!getIsDateRange(n))return null;let e=n.from||n.to,t=e?i(n):"Select date range";return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"flex items-center gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{children:a}),e&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mx-0.5 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:t})]})]})}if(getIsDateRange(n))return null;let e=n.length>0,r=e?(0,format_cjs_namespaceObject.formatDate)(n[0]):"Select date";return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"flex items-center gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{children:a}),e&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mx-0.5 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:r})]})]})},[n,t,i,a]);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"outline",size:"sm",children:[_?(0,jsx_runtime_namespaceObject.jsx)("div",{role:"button","aria-label":`Clear ${a} filter`,tabIndex:0,onClick:s,className:"rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XCircleIcon,{})}):(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CalendarBlankIcon,{}),o]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:t?(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{initialFocus:!0,mode:"range",selected:getIsDateRange(n)?n:{from:void 0,to:void 0},onSelect:c}):(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{initialFocus:!0,mode:"single",selected:getIsDateRange(n)?void 0:n[0],onSelect:c})})]})}for(var __webpack_i__ in exports.DataTableDateFilter=__webpack_exports__.DataTableDateFilter,__webpack_exports__)-1===["DataTableDateFilter"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTableDateFilter:()=>DataTableDateFilter});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../button/index.cjs"),external_calendar_cjs_namespaceObject=require("../calendar.cjs"),external_popover_cjs_namespaceObject=require("../popover.cjs"),external_separator_cjs_namespaceObject=require("../separator.cjs"),format_cjs_namespaceObject=require("../../lib/format.cjs");function getIsDateRange(e){return e&&"object"==typeof e&&!Array.isArray(e)}function parseAsDate(e){if(!e)return;let a=new Date("string"==typeof e?Number(e):e);return Number.isNaN(a.getTime())?void 0:a}function parseColumnFilterValue(e){return null==e?[]:Array.isArray(e)?e.map(e=>{if("number"==typeof e||"string"==typeof e)return e}):"string"==typeof e||"number"==typeof e?[e]:[]}function DataTableDateFilter({column:e,title:a,multiple:t}){let r=e.getFilterValue(),n=external_react_namespaceObject.useMemo(()=>{if(!r)return t?{from:void 0,to:void 0}:[];if(t){let e=parseColumnFilterValue(r);return{from:parseAsDate(e[0]),to:parseAsDate(e[1])}}let e=parseAsDate(parseColumnFilterValue(r)[0]);return e?[e]:[]},[r,t]),c=external_react_namespaceObject.useCallback(a=>{if(!a)return void e.setFilterValue(void 0);if(!t||"getTime"in a)!t&&"getTime"in a&&e.setFilterValue(a.getTime());else{let t=a.from?.getTime(),r=a.to?.getTime();e.setFilterValue(t||r?[t,r]:void 0)}},[e,t]),s=external_react_namespaceObject.useCallback(a=>{a.stopPropagation(),e.setFilterValue(void 0)},[e]),_=external_react_namespaceObject.useMemo(()=>t?!!getIsDateRange(n)&&(n.from||n.to):!!Array.isArray(n)&&n.length>0,[t,n]),i=external_react_namespaceObject.useCallback(e=>e.from||e.to?e.from&&e.to?`${(0,format_cjs_namespaceObject.formatDate)(e.from)} - ${(0,format_cjs_namespaceObject.formatDate)(e.to)}`:(0,format_cjs_namespaceObject.formatDate)(e.from??e.to):"",[]),o=external_react_namespaceObject.useMemo(()=>{if(t){if(!getIsDateRange(n))return null;let e=n.from||n.to,t=e?i(n):"Select date range";return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"flex items-center gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{children:a}),e&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mx-0.5 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:t})]})]})}if(getIsDateRange(n))return null;let e=n.length>0,r=e?(0,format_cjs_namespaceObject.formatDate)(n[0]):"Select date";return(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"flex items-center gap-2",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{children:a}),e&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{orientation:"vertical",className:"mx-0.5 data-[orientation=vertical]:h-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:r})]})]})},[n,t,i,a]);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Button,{variant:"outline",size:"sm",children:[_?(0,jsx_runtime_namespaceObject.jsx)("div",{role:"button","aria-label":`Clear ${a} filter`,tabIndex:0,onClick:s,className:"rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XCircleIcon,{})}):(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CalendarBlankIcon,{}),o]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:t?(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{initialFocus:!0,mode:"range",selected:getIsDateRange(n)?n:{from:void 0,to:void 0},onSelect:c}):(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{initialFocus:!0,mode:"single",selected:getIsDateRange(n)?void 0:n[0],onSelect:c})})]})}for(var __webpack_i__ in exports.DataTableDateFilter=__webpack_exports__.DataTableDateFilter,__webpack_exports__)-1===["DataTableDateFilter"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});