@gbmtech/aurora-ui 0.3.53 → 0.3.55

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 (250) hide show
  1. package/README.md +54 -54
  2. package/dist/cjs/components/alert-dialog.cjs.map +1 -1
  3. package/dist/cjs/components/app-layout/app-layout-breadcrumb.cjs.map +1 -1
  4. package/dist/cjs/components/app-layout/app-layout-content.cjs.map +1 -1
  5. package/dist/cjs/components/app-layout/app-layout-filters.cjs.map +1 -1
  6. package/dist/cjs/components/app-layout/app-layout-header.cjs.map +1 -1
  7. package/dist/cjs/components/app-layout/app-layout-provider.cjs.map +1 -1
  8. package/dist/cjs/components/app-layout/app-layout.cjs.map +1 -1
  9. package/dist/cjs/components/app-layout/index.cjs.map +1 -1
  10. package/dist/cjs/components/app-layout/sidebar/app-sidebar.cjs.map +1 -1
  11. package/dist/cjs/components/app-layout/sidebar/index.cjs.map +1 -1
  12. package/dist/cjs/components/app-layout/sidebar/intl/messages.cjs.map +1 -1
  13. package/dist/cjs/components/app-layout/sidebar/logo.cjs.map +1 -1
  14. package/dist/cjs/components/app-layout/sidebar/nav-modules.cjs.map +1 -1
  15. package/dist/cjs/components/app-layout/sidebar/nav-sub-item.cjs.map +1 -1
  16. package/dist/cjs/components/app-layout/sidebar/nav-user.cjs.map +1 -1
  17. package/dist/cjs/components/app-layout/sidebar/sidebar-icons.cjs +1 -1
  18. package/dist/cjs/components/app-layout/sidebar/sidebar-icons.cjs.map +1 -1
  19. package/dist/cjs/components/app-layout/sidebar/sidebar-icons.d.ts.map +1 -1
  20. package/dist/cjs/components/app-layout/sidebar/sidebar.cjs.map +1 -1
  21. package/dist/cjs/components/autocomplete/autocomplete-content.cjs.map +1 -1
  22. package/dist/cjs/components/autocomplete/autocomplete-context.cjs.map +1 -1
  23. package/dist/cjs/components/autocomplete/autocomplete-empty.cjs.map +1 -1
  24. package/dist/cjs/components/autocomplete/autocomplete-input.cjs.map +1 -1
  25. package/dist/cjs/components/autocomplete/autocomplete-item.cjs.map +1 -1
  26. package/dist/cjs/components/autocomplete/autocomplete-list.cjs.map +1 -1
  27. package/dist/cjs/components/autocomplete/autocomplete.cjs.map +1 -1
  28. package/dist/cjs/components/autocomplete/index.cjs.map +1 -1
  29. package/dist/cjs/components/avatar.cjs.map +1 -1
  30. package/dist/cjs/components/badge.cjs.map +1 -1
  31. package/dist/cjs/components/breadcrumb.cjs.map +1 -1
  32. package/dist/cjs/components/button.cjs.map +1 -1
  33. package/dist/cjs/components/calendar.cjs.map +1 -1
  34. package/dist/cjs/components/checkbox.cjs.map +1 -1
  35. package/dist/cjs/components/combobox.cjs.map +1 -1
  36. package/dist/cjs/components/command.cjs.map +1 -1
  37. package/dist/cjs/components/context-menu.cjs.map +1 -1
  38. package/dist/cjs/components/data-table/data-table-action-bar.cjs.map +1 -1
  39. package/dist/cjs/components/data-table/data-table-advanced-toolbar.cjs.map +1 -1
  40. package/dist/cjs/components/data-table/data-table-column-header.cjs.map +1 -1
  41. package/dist/cjs/components/data-table/data-table-date-filter.cjs.map +1 -1
  42. package/dist/cjs/components/data-table/data-table-faceted-filter.cjs.map +1 -1
  43. package/dist/cjs/components/data-table/data-table-filter-list.cjs.map +1 -1
  44. package/dist/cjs/components/data-table/data-table-filter-menu.cjs.map +1 -1
  45. package/dist/cjs/components/data-table/data-table-pagination.cjs.map +1 -1
  46. package/dist/cjs/components/data-table/data-table-range-filter.cjs.map +1 -1
  47. package/dist/cjs/components/data-table/data-table-skeleton.cjs.map +1 -1
  48. package/dist/cjs/components/data-table/data-table-slider-filter.cjs.map +1 -1
  49. package/dist/cjs/components/data-table/data-table-sort-list.cjs.map +1 -1
  50. package/dist/cjs/components/data-table/data-table-toolbar.cjs.map +1 -1
  51. package/dist/cjs/components/data-table/data-table-view-options.cjs.map +1 -1
  52. package/dist/cjs/components/data-table/data-table.cjs.map +1 -1
  53. package/dist/cjs/components/data-table/index.cjs +1 -1
  54. package/dist/cjs/components/data-table/index.cjs.map +1 -1
  55. package/dist/cjs/components/date-picker-with-range.cjs.map +1 -1
  56. package/dist/cjs/components/date-picker.cjs.map +1 -1
  57. package/dist/cjs/components/date-time-picker-with-range.cjs.map +1 -1
  58. package/dist/cjs/components/date-time-picker.cjs.map +1 -1
  59. package/dist/cjs/components/dialog.cjs.map +1 -1
  60. package/dist/cjs/components/dropdown-menu.cjs.map +1 -1
  61. package/dist/cjs/components/faceted.cjs.map +1 -1
  62. package/dist/cjs/components/form.cjs.map +1 -1
  63. package/dist/cjs/components/icons/rumo.cjs.map +1 -1
  64. package/dist/cjs/components/icons/vli.cjs.map +1 -1
  65. package/dist/cjs/components/input-otp.cjs.map +1 -1
  66. package/dist/cjs/components/input-password.cjs.map +1 -1
  67. package/dist/cjs/components/input.cjs.map +1 -1
  68. package/dist/cjs/components/label.cjs.map +1 -1
  69. package/dist/cjs/components/mask-input.cjs.map +1 -1
  70. package/dist/cjs/components/multi-select.cjs.map +1 -1
  71. package/dist/cjs/components/page-layout/index.cjs.map +1 -1
  72. package/dist/cjs/components/page-layout/page-layout-breadcrumb.cjs.map +1 -1
  73. package/dist/cjs/components/page-layout/page-layout-content.cjs.map +1 -1
  74. package/dist/cjs/components/page-layout/page-layout-header.cjs.map +1 -1
  75. package/dist/cjs/components/page-layout/page-layout-root.cjs.map +1 -1
  76. package/dist/cjs/components/page-layout/page-layout-title.cjs.map +1 -1
  77. package/dist/cjs/components/pagination.cjs.map +1 -1
  78. package/dist/cjs/components/popover.cjs.map +1 -1
  79. package/dist/cjs/components/radio-group.cjs.map +1 -1
  80. package/dist/cjs/components/scroll-area.cjs.map +1 -1
  81. package/dist/cjs/components/select.cjs.map +1 -1
  82. package/dist/cjs/components/separator.cjs.map +1 -1
  83. package/dist/cjs/components/sheet/index.cjs.map +1 -1
  84. package/dist/cjs/components/sheet/sheet-content-variants.cjs.map +1 -1
  85. package/dist/cjs/components/sheet/sheet.cjs.map +1 -1
  86. package/dist/cjs/components/skeleton.cjs.map +1 -1
  87. package/dist/cjs/components/slider.cjs.map +1 -1
  88. package/dist/cjs/components/sortable.cjs.map +1 -1
  89. package/dist/cjs/components/spinner.cjs.map +1 -1
  90. package/dist/cjs/components/switch.cjs.map +1 -1
  91. package/dist/cjs/components/table-expandable.cjs.map +1 -1
  92. package/dist/cjs/components/table.cjs.map +1 -1
  93. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  94. package/dist/cjs/components/tabs/tabs-content.cjs.map +1 -1
  95. package/dist/cjs/components/tabs/tabs-list.cjs.map +1 -1
  96. package/dist/cjs/components/tabs/tabs-root.cjs.map +1 -1
  97. package/dist/cjs/components/tabs/tabs-trigger.cjs.map +1 -1
  98. package/dist/cjs/components/textarea.cjs.map +1 -1
  99. package/dist/cjs/components/time-picker-input.cjs.map +1 -1
  100. package/dist/cjs/components/time-picker.cjs.map +1 -1
  101. package/dist/cjs/components/title.cjs.map +1 -1
  102. package/dist/cjs/components/tokens-grid.cjs.map +1 -1
  103. package/dist/cjs/components/tooltip.cjs.map +1 -1
  104. package/dist/cjs/hooks/use-callback-ref.cjs.map +1 -1
  105. package/dist/cjs/hooks/use-data-table.cjs.map +1 -1
  106. package/dist/cjs/hooks/use-debounce.cjs.map +1 -1
  107. package/dist/cjs/hooks/use-debounced-callback.cjs.map +1 -1
  108. package/dist/cjs/hooks/use-mobile.cjs.map +1 -1
  109. package/dist/cjs/lib/composition.cjs.map +1 -1
  110. package/dist/cjs/lib/data-table-config.cjs.map +1 -1
  111. package/dist/cjs/lib/data-table.cjs.map +1 -1
  112. package/dist/cjs/lib/format.cjs.map +1 -1
  113. package/dist/cjs/lib/id.cjs.map +1 -1
  114. package/dist/cjs/lib/index.cjs.map +1 -1
  115. package/dist/cjs/lib/lucide-dynamic-icon.cjs +3 -0
  116. package/dist/cjs/lib/lucide-dynamic-icon.cjs.map +1 -0
  117. package/dist/cjs/lib/lucide-dynamic-icon.d.ts +9 -0
  118. package/dist/cjs/lib/lucide-dynamic-icon.d.ts.map +1 -0
  119. package/dist/cjs/lib/parsers.cjs.map +1 -1
  120. package/dist/cjs/lib/utils.cjs.map +1 -1
  121. package/dist/cjs/primitive/input.cjs.map +1 -1
  122. package/dist/cjs/tokens/colors.cjs.map +1 -1
  123. package/dist/cjs/tokens/index.cjs.map +1 -1
  124. package/dist/cjs/types/data-table.cjs.map +1 -1
  125. package/dist/cjs/types/index.cjs.map +1 -1
  126. package/dist/cjs/types/locale.cjs.map +1 -1
  127. package/dist/cjs/types/module.cjs.map +1 -1
  128. package/dist/cjs/types/user.cjs.map +1 -1
  129. package/dist/cjs/utils/time-picker.cjs.map +1 -1
  130. package/dist/esm/components/alert-dialog.js.map +1 -1
  131. package/dist/esm/components/app-layout/app-layout-breadcrumb.js.map +1 -1
  132. package/dist/esm/components/app-layout/app-layout-content.js.map +1 -1
  133. package/dist/esm/components/app-layout/app-layout-filters.js.map +1 -1
  134. package/dist/esm/components/app-layout/app-layout-header.js.map +1 -1
  135. package/dist/esm/components/app-layout/app-layout-provider.js.map +1 -1
  136. package/dist/esm/components/app-layout/app-layout.js.map +1 -1
  137. package/dist/esm/components/app-layout/sidebar/app-sidebar.js.map +1 -1
  138. package/dist/esm/components/app-layout/sidebar/index.js +1 -2
  139. package/dist/esm/components/app-layout/sidebar/intl/messages.js.map +1 -1
  140. package/dist/esm/components/app-layout/sidebar/logo.js.map +1 -1
  141. package/dist/esm/components/app-layout/sidebar/nav-modules.js.map +1 -1
  142. package/dist/esm/components/app-layout/sidebar/nav-sub-item.js.map +1 -1
  143. package/dist/esm/components/app-layout/sidebar/nav-user.js.map +1 -1
  144. package/dist/esm/components/app-layout/sidebar/sidebar-icons.d.ts.map +1 -1
  145. package/dist/esm/components/app-layout/sidebar/sidebar-icons.js +1 -1
  146. package/dist/esm/components/app-layout/sidebar/sidebar-icons.js.map +1 -1
  147. package/dist/esm/components/app-layout/sidebar/sidebar.js.map +1 -1
  148. package/dist/esm/components/autocomplete/autocomplete-content.js.map +1 -1
  149. package/dist/esm/components/autocomplete/autocomplete-context.js.map +1 -1
  150. package/dist/esm/components/autocomplete/autocomplete-empty.js.map +1 -1
  151. package/dist/esm/components/autocomplete/autocomplete-input.js.map +1 -1
  152. package/dist/esm/components/autocomplete/autocomplete-item.js.map +1 -1
  153. package/dist/esm/components/autocomplete/autocomplete-list.js.map +1 -1
  154. package/dist/esm/components/autocomplete/autocomplete.js.map +1 -1
  155. package/dist/esm/components/avatar.js.map +1 -1
  156. package/dist/esm/components/badge.js.map +1 -1
  157. package/dist/esm/components/breadcrumb.js.map +1 -1
  158. package/dist/esm/components/button.js.map +1 -1
  159. package/dist/esm/components/calendar.js.map +1 -1
  160. package/dist/esm/components/checkbox.js.map +1 -1
  161. package/dist/esm/components/combobox.js.map +1 -1
  162. package/dist/esm/components/command.js.map +1 -1
  163. package/dist/esm/components/context-menu.js.map +1 -1
  164. package/dist/esm/components/data-table/data-table-action-bar.js.map +1 -1
  165. package/dist/esm/components/data-table/data-table-advanced-toolbar.js.map +1 -1
  166. package/dist/esm/components/data-table/data-table-column-header.js.map +1 -1
  167. package/dist/esm/components/data-table/data-table-date-filter.js.map +1 -1
  168. package/dist/esm/components/data-table/data-table-faceted-filter.js.map +1 -1
  169. package/dist/esm/components/data-table/data-table-filter-list.js.map +1 -1
  170. package/dist/esm/components/data-table/data-table-filter-menu.js.map +1 -1
  171. package/dist/esm/components/data-table/data-table-pagination.js.map +1 -1
  172. package/dist/esm/components/data-table/data-table-range-filter.js.map +1 -1
  173. package/dist/esm/components/data-table/data-table-skeleton.js.map +1 -1
  174. package/dist/esm/components/data-table/data-table-slider-filter.js.map +1 -1
  175. package/dist/esm/components/data-table/data-table-sort-list.js.map +1 -1
  176. package/dist/esm/components/data-table/data-table-toolbar.js.map +1 -1
  177. package/dist/esm/components/data-table/data-table-view-options.js.map +1 -1
  178. package/dist/esm/components/data-table/data-table.js.map +1 -1
  179. package/dist/esm/components/data-table/index.js +1 -1
  180. package/dist/esm/components/data-table/index.js.map +1 -1
  181. package/dist/esm/components/date-picker-with-range.js.map +1 -1
  182. package/dist/esm/components/date-picker.js.map +1 -1
  183. package/dist/esm/components/date-time-picker-with-range.js.map +1 -1
  184. package/dist/esm/components/date-time-picker.js.map +1 -1
  185. package/dist/esm/components/dialog.js.map +1 -1
  186. package/dist/esm/components/dropdown-menu.js.map +1 -1
  187. package/dist/esm/components/faceted.js.map +1 -1
  188. package/dist/esm/components/form.js.map +1 -1
  189. package/dist/esm/components/icons/rumo.js.map +1 -1
  190. package/dist/esm/components/icons/vli.js.map +1 -1
  191. package/dist/esm/components/input-otp.js.map +1 -1
  192. package/dist/esm/components/input-password.js.map +1 -1
  193. package/dist/esm/components/input.js.map +1 -1
  194. package/dist/esm/components/label.js.map +1 -1
  195. package/dist/esm/components/mask-input.js.map +1 -1
  196. package/dist/esm/components/multi-select.js.map +1 -1
  197. package/dist/esm/components/page-layout/index.js.map +1 -1
  198. package/dist/esm/components/page-layout/page-layout-breadcrumb.js.map +1 -1
  199. package/dist/esm/components/page-layout/page-layout-content.js.map +1 -1
  200. package/dist/esm/components/page-layout/page-layout-header.js.map +1 -1
  201. package/dist/esm/components/page-layout/page-layout-root.js.map +1 -1
  202. package/dist/esm/components/page-layout/page-layout-title.js.map +1 -1
  203. package/dist/esm/components/pagination.js.map +1 -1
  204. package/dist/esm/components/popover.js.map +1 -1
  205. package/dist/esm/components/radio-group.js.map +1 -1
  206. package/dist/esm/components/scroll-area.js.map +1 -1
  207. package/dist/esm/components/select.js.map +1 -1
  208. package/dist/esm/components/separator.js.map +1 -1
  209. package/dist/esm/components/sheet/sheet-content-variants.js.map +1 -1
  210. package/dist/esm/components/sheet/sheet.js.map +1 -1
  211. package/dist/esm/components/skeleton.js.map +1 -1
  212. package/dist/esm/components/slider.js.map +1 -1
  213. package/dist/esm/components/sortable.js.map +1 -1
  214. package/dist/esm/components/spinner.js.map +1 -1
  215. package/dist/esm/components/switch.js.map +1 -1
  216. package/dist/esm/components/table-expandable.js.map +1 -1
  217. package/dist/esm/components/table.js.map +1 -1
  218. package/dist/esm/components/tabs/index.js.map +1 -1
  219. package/dist/esm/components/tabs/tabs-content.js.map +1 -1
  220. package/dist/esm/components/tabs/tabs-list.js.map +1 -1
  221. package/dist/esm/components/tabs/tabs-root.js.map +1 -1
  222. package/dist/esm/components/tabs/tabs-trigger.js.map +1 -1
  223. package/dist/esm/components/textarea.js.map +1 -1
  224. package/dist/esm/components/time-picker-input.js.map +1 -1
  225. package/dist/esm/components/time-picker.js.map +1 -1
  226. package/dist/esm/components/title.js.map +1 -1
  227. package/dist/esm/components/tokens-grid.js.map +1 -1
  228. package/dist/esm/components/tooltip.js.map +1 -1
  229. package/dist/esm/hooks/use-callback-ref.js.map +1 -1
  230. package/dist/esm/hooks/use-data-table.js.map +1 -1
  231. package/dist/esm/hooks/use-debounce.js.map +1 -1
  232. package/dist/esm/hooks/use-debounced-callback.js.map +1 -1
  233. package/dist/esm/hooks/use-mobile.js.map +1 -1
  234. package/dist/esm/lib/composition.js.map +1 -1
  235. package/dist/esm/lib/data-table-config.js.map +1 -1
  236. package/dist/esm/lib/data-table.js.map +1 -1
  237. package/dist/esm/lib/format.js.map +1 -1
  238. package/dist/esm/lib/id.js.map +1 -1
  239. package/dist/esm/lib/lucide-dynamic-icon.d.ts +9 -0
  240. package/dist/esm/lib/lucide-dynamic-icon.d.ts.map +1 -0
  241. package/dist/esm/lib/lucide-dynamic-icon.js +3 -0
  242. package/dist/esm/lib/lucide-dynamic-icon.js.map +1 -0
  243. package/dist/esm/lib/parsers.js.map +1 -1
  244. package/dist/esm/lib/utils.js.map +1 -1
  245. package/dist/esm/primitive/input.js.map +1 -1
  246. package/dist/esm/tokens/colors.js.map +1 -1
  247. package/dist/esm/utils/time-picker.js.map +1 -1
  248. package/dist/styles/index.css +574 -574
  249. package/package.json +1 -1
  250. package/dist/esm/components/app-layout/sidebar/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components\\sortable.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sortable.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport {\r\n type Announcements,\r\n DndContext,\r\n type DndContextProps,\r\n type DragEndEvent,\r\n DragOverlay,\r\n type DraggableSyntheticListeners,\r\n type DropAnimation,\r\n KeyboardSensor,\r\n MouseSensor,\r\n type ScreenReaderInstructions,\r\n TouchSensor,\r\n type UniqueIdentifier,\r\n closestCenter,\r\n closestCorners,\r\n defaultDropAnimationSideEffects,\r\n useSensor,\r\n useSensors,\r\n} from '@dnd-kit/core'\r\nimport {\r\n restrictToHorizontalAxis,\r\n restrictToParentElement,\r\n restrictToVerticalAxis,\r\n} from '@dnd-kit/modifiers'\r\nimport {\r\n SortableContext,\r\n type SortableContextProps,\r\n arrayMove,\r\n horizontalListSortingStrategy,\r\n sortableKeyboardCoordinates,\r\n useSortable,\r\n verticalListSortingStrategy,\r\n} from '@dnd-kit/sortable'\r\nimport { CSS } from '@dnd-kit/utilities'\r\nimport { Slot } from '@radix-ui/react-slot'\r\nimport * as React from 'react'\r\n\r\nimport { composeEventHandlers, useComposedRefs } from '@/lib/composition'\r\nimport { cn } from '@/lib/utils'\r\nimport * as ReactDOM from 'react-dom'\r\n\r\nconst orientationConfig = {\r\n vertical: {\r\n modifiers: [restrictToVerticalAxis, restrictToParentElement],\r\n strategy: verticalListSortingStrategy,\r\n collisionDetection: closestCenter,\r\n },\r\n horizontal: {\r\n modifiers: [restrictToHorizontalAxis, restrictToParentElement],\r\n strategy: horizontalListSortingStrategy,\r\n collisionDetection: closestCenter,\r\n },\r\n mixed: {\r\n modifiers: [restrictToParentElement],\r\n strategy: undefined,\r\n collisionDetection: closestCorners,\r\n },\r\n}\r\n\r\nconst ROOT_NAME = 'Sortable'\r\nconst CONTENT_NAME = 'SortableContent'\r\nconst ITEM_NAME = 'SortableItem'\r\nconst ITEM_HANDLE_NAME = 'SortableItemHandle'\r\nconst OVERLAY_NAME = 'SortableOverlay'\r\n\r\nconst SORTABLE_ERRORS = {\r\n [ROOT_NAME]: `\\`${ROOT_NAME}\\` components must be within \\`${ROOT_NAME}\\``,\r\n [CONTENT_NAME]: `\\`${CONTENT_NAME}\\` must be within \\`${ROOT_NAME}\\``,\r\n [ITEM_NAME]: `\\`${ITEM_NAME}\\` must be within \\`${CONTENT_NAME}\\``,\r\n [ITEM_HANDLE_NAME]: `\\`${ITEM_HANDLE_NAME}\\` must be within \\`${ITEM_NAME}\\``,\r\n [OVERLAY_NAME]: `\\`${OVERLAY_NAME}\\` must be within \\`${ROOT_NAME}\\``,\r\n} as const\r\n\r\ninterface SortableRootContextValue<T> {\r\n id: string\r\n items: UniqueIdentifier[]\r\n modifiers: DndContextProps['modifiers']\r\n strategy: SortableContextProps['strategy']\r\n activeId: UniqueIdentifier | null\r\n setActiveId: (id: UniqueIdentifier | null) => void\r\n getItemValue: (item: T) => UniqueIdentifier\r\n flatCursor: boolean\r\n}\r\n\r\nconst SortableRootContext =\r\n React.createContext<SortableRootContextValue<unknown> | null>(null)\r\nSortableRootContext.displayName = ROOT_NAME\r\n\r\nfunction useSortableContext(name: keyof typeof SORTABLE_ERRORS) {\r\n const context = React.useContext(SortableRootContext)\r\n if (!context) {\r\n throw new Error(SORTABLE_ERRORS[name])\r\n }\r\n return context\r\n}\r\n\r\ninterface GetItemValue<T> {\r\n /**\r\n * Callback that returns a unique identifier for each sortable item. Required for array of objects.\r\n * @example getItemValue={(item) => item.id}\r\n */\r\n getItemValue: (item: T) => UniqueIdentifier\r\n}\r\n\r\ntype SortableProps<T> = DndContextProps & {\r\n value: T[]\r\n onValueChange?: (items: T[]) => void\r\n onMove?: (\r\n event: DragEndEvent & { activeIndex: number; overIndex: number }\r\n ) => void\r\n strategy?: SortableContextProps['strategy']\r\n orientation?: 'vertical' | 'horizontal' | 'mixed'\r\n flatCursor?: boolean\r\n} & (T extends object ? GetItemValue<T> : Partial<GetItemValue<T>>)\r\n\r\nfunction Sortable<T>(props: SortableProps<T>) {\r\n const {\r\n value,\r\n onValueChange,\r\n collisionDetection,\r\n modifiers,\r\n strategy,\r\n onMove,\r\n orientation = 'vertical',\r\n flatCursor = false,\r\n getItemValue: getItemValueProp,\r\n accessibility,\r\n ...sortableProps\r\n } = props\r\n const id = React.useId()\r\n const [activeId, setActiveId] = React.useState<UniqueIdentifier | null>(null)\r\n\r\n const sensors = useSensors(\r\n useSensor(MouseSensor),\r\n useSensor(TouchSensor),\r\n useSensor(KeyboardSensor, {\r\n coordinateGetter: sortableKeyboardCoordinates,\r\n })\r\n )\r\n const config = React.useMemo(\r\n () => orientationConfig[orientation],\r\n [orientation]\r\n )\r\n\r\n const getItemValue = React.useCallback(\r\n (item: T): UniqueIdentifier => {\r\n if (typeof item === 'object' && !getItemValueProp) {\r\n throw new Error('getItemValue is required when using array of objects.')\r\n }\r\n return getItemValueProp\r\n ? getItemValueProp(item)\r\n : (item as UniqueIdentifier)\r\n },\r\n [getItemValueProp]\r\n )\r\n\r\n const items = React.useMemo(() => {\r\n return value.map(item => getItemValue(item))\r\n }, [value, getItemValue])\r\n\r\n const onDragEnd = React.useCallback(\r\n (event: DragEndEvent) => {\r\n const { active, over } = event\r\n if (over && active.id !== over?.id) {\r\n const activeIndex = value.findIndex(\r\n item => getItemValue(item) === active.id\r\n )\r\n const overIndex = value.findIndex(\r\n item => getItemValue(item) === over.id\r\n )\r\n\r\n if (onMove) {\r\n onMove({ ...event, activeIndex, overIndex })\r\n } else {\r\n onValueChange?.(arrayMove(value, activeIndex, overIndex))\r\n }\r\n }\r\n setActiveId(null)\r\n },\r\n [value, onValueChange, onMove, getItemValue]\r\n )\r\n\r\n const announcements: Announcements = React.useMemo(\r\n () => ({\r\n onDragStart({ active }) {\r\n const activeValue = active.id.toString()\r\n return `Grabbed sortable item \"${activeValue}\". Current position is ${active.data.current?.sortable.index + 1} of ${value.length}. Use arrow keys to move, space to drop.`\r\n },\r\n onDragOver({ active, over }) {\r\n if (over) {\r\n const overIndex = over.data.current?.sortable.index ?? 0\r\n const activeIndex = active.data.current?.sortable.index ?? 0\r\n const moveDirection = overIndex > activeIndex ? 'down' : 'up'\r\n const activeValue = active.id.toString()\r\n return `Sortable item \"${activeValue}\" moved ${moveDirection} to position ${overIndex + 1} of ${value.length}.`\r\n }\r\n return 'Sortable item is no longer over a droppable area. Press escape to cancel.'\r\n },\r\n onDragEnd({ active, over }) {\r\n const activeValue = active.id.toString()\r\n if (over) {\r\n const overIndex = over.data.current?.sortable.index ?? 0\r\n return `Sortable item \"${activeValue}\" dropped at position ${overIndex + 1} of ${value.length}.`\r\n }\r\n return `Sortable item \"${activeValue}\" dropped. No changes were made.`\r\n },\r\n onDragCancel({ active }) {\r\n const activeIndex = active.data.current?.sortable.index ?? 0\r\n const activeValue = active.id.toString()\r\n return `Sorting cancelled. Sortable item \"${activeValue}\" returned to position ${activeIndex + 1} of ${value.length}.`\r\n },\r\n onDragMove({ active, over }) {\r\n if (over) {\r\n const overIndex = over.data.current?.sortable.index ?? 0\r\n const activeIndex = active.data.current?.sortable.index ?? 0\r\n const moveDirection = overIndex > activeIndex ? 'down' : 'up'\r\n const activeValue = active.id.toString()\r\n return `Sortable item \"${activeValue}\" is moving ${moveDirection} to position ${overIndex + 1} of ${value.length}.`\r\n }\r\n return 'Sortable item is no longer over a droppable area. Press escape to cancel.'\r\n },\r\n }),\r\n [value]\r\n )\r\n\r\n const screenReaderInstructions: ScreenReaderInstructions = React.useMemo(\r\n () => ({\r\n draggable: `\r\n To pick up a sortable item, press space or enter.\r\n While dragging, use the ${orientation === 'vertical' ? 'up and down' : orientation === 'horizontal' ? 'left and right' : 'arrow'} keys to move the item.\r\n Press space or enter again to drop the item in its new position, or press escape to cancel.\r\n `,\r\n }),\r\n [orientation]\r\n )\r\n\r\n const contextValue = React.useMemo(\r\n () => ({\r\n id,\r\n items,\r\n modifiers: modifiers ?? config.modifiers,\r\n strategy: strategy ?? config.strategy,\r\n activeId,\r\n setActiveId,\r\n getItemValue,\r\n flatCursor,\r\n }),\r\n [\r\n id,\r\n items,\r\n modifiers,\r\n strategy,\r\n config.modifiers,\r\n config.strategy,\r\n activeId,\r\n getItemValue,\r\n flatCursor,\r\n ]\r\n )\r\n\r\n return (\r\n <SortableRootContext.Provider\r\n value={contextValue as SortableRootContextValue<unknown>}\r\n >\r\n <DndContext\r\n collisionDetection={collisionDetection ?? config.collisionDetection}\r\n modifiers={modifiers ?? config.modifiers}\r\n sensors={sensors}\r\n {...sortableProps}\r\n id={id}\r\n onDragStart={composeEventHandlers(\r\n sortableProps.onDragStart,\r\n ({ active }) => setActiveId(active.id)\r\n )}\r\n onDragEnd={composeEventHandlers(sortableProps.onDragEnd, onDragEnd)}\r\n onDragCancel={composeEventHandlers(sortableProps.onDragCancel, () =>\r\n setActiveId(null)\r\n )}\r\n accessibility={{\r\n announcements,\r\n screenReaderInstructions,\r\n ...accessibility,\r\n }}\r\n />\r\n </SortableRootContext.Provider>\r\n )\r\n}\r\n\r\nconst SortableContentContext = React.createContext<boolean>(false)\r\nSortableContentContext.displayName = CONTENT_NAME\r\n\r\ninterface SortableContentProps extends React.ComponentPropsWithoutRef<'div'> {\r\n strategy?: SortableContextProps['strategy']\r\n children: React.ReactNode\r\n asChild?: boolean\r\n withoutSlot?: boolean\r\n}\r\n\r\nconst SortableContent = React.forwardRef<HTMLDivElement, SortableContentProps>(\r\n (props, forwardedRef) => {\r\n const {\r\n strategy: strategyProp,\r\n asChild,\r\n withoutSlot,\r\n children,\r\n ...contentProps\r\n } = props\r\n const context = useSortableContext(CONTENT_NAME)\r\n\r\n const ContentPrimitive = asChild ? Slot : 'div'\r\n\r\n return (\r\n <SortableContentContext.Provider value={true}>\r\n <SortableContext\r\n items={context.items}\r\n strategy={strategyProp ?? context.strategy}\r\n >\r\n {withoutSlot ? (\r\n children\r\n ) : (\r\n <ContentPrimitive {...contentProps} ref={forwardedRef}>\r\n {children}\r\n </ContentPrimitive>\r\n )}\r\n </SortableContext>\r\n </SortableContentContext.Provider>\r\n )\r\n }\r\n)\r\nSortableContent.displayName = CONTENT_NAME\r\n\r\ninterface SortableItemContextValue {\r\n id: string\r\n attributes: React.HTMLAttributes<HTMLElement>\r\n listeners: DraggableSyntheticListeners | undefined\r\n setActivatorNodeRef: (node: HTMLElement | null) => void\r\n isDragging?: boolean\r\n disabled?: boolean\r\n}\r\n\r\nconst SortableItemContext =\r\n React.createContext<SortableItemContextValue | null>(null)\r\nSortableItemContext.displayName = ITEM_NAME\r\n\r\ninterface SortableItemProps extends React.ComponentPropsWithoutRef<'div'> {\r\n value: UniqueIdentifier\r\n asHandle?: boolean\r\n asChild?: boolean\r\n disabled?: boolean\r\n}\r\n\r\nconst SortableItem = React.forwardRef<HTMLDivElement, SortableItemProps>(\r\n (props, forwardedRef) => {\r\n const {\r\n value,\r\n style,\r\n asHandle,\r\n asChild,\r\n disabled,\r\n className,\r\n ...itemProps\r\n } = props\r\n const inSortableContent = React.useContext(SortableContentContext)\r\n const inSortableOverlay = React.useContext(SortableOverlayContext)\r\n\r\n if (!inSortableContent && !inSortableOverlay) {\r\n throw new Error(SORTABLE_ERRORS[ITEM_NAME])\r\n }\r\n\r\n if (value === '') {\r\n throw new Error(`\\`${ITEM_NAME}\\` value cannot be an empty string`)\r\n }\r\n\r\n const context = useSortableContext(ITEM_NAME)\r\n const id = React.useId()\r\n const {\r\n attributes,\r\n listeners,\r\n setNodeRef,\r\n setActivatorNodeRef,\r\n transform,\r\n transition,\r\n isDragging,\r\n } = useSortable({ id: value, disabled })\r\n\r\n const composedRef = useComposedRefs(forwardedRef, node => {\r\n if (disabled) return\r\n setNodeRef(node)\r\n if (asHandle) setActivatorNodeRef(node)\r\n })\r\n\r\n const composedStyle = React.useMemo<React.CSSProperties>(() => {\r\n return {\r\n transform: CSS.Translate.toString(transform),\r\n transition,\r\n ...style,\r\n }\r\n }, [transform, transition, style])\r\n\r\n const itemContext = React.useMemo<SortableItemContextValue>(\r\n () => ({\r\n id,\r\n attributes,\r\n listeners,\r\n setActivatorNodeRef,\r\n isDragging,\r\n disabled,\r\n }),\r\n [id, attributes, listeners, setActivatorNodeRef, isDragging, disabled]\r\n )\r\n\r\n const ItemPrimitive = asChild ? Slot : 'div'\r\n\r\n return (\r\n <SortableItemContext.Provider value={itemContext}>\r\n <ItemPrimitive\r\n id={id}\r\n data-dragging={isDragging ? '' : undefined}\r\n {...itemProps}\r\n {...(asHandle ? attributes : {})}\r\n {...(asHandle ? listeners : {})}\r\n tabIndex={disabled ? undefined : 0}\r\n ref={composedRef}\r\n style={composedStyle}\r\n className={cn(\r\n 'focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1',\r\n {\r\n 'touch-none select-none': asHandle,\r\n 'cursor-default': context.flatCursor,\r\n 'data-dragging:cursor-grabbing': !context.flatCursor,\r\n 'cursor-grab': !isDragging && asHandle && !context.flatCursor,\r\n 'opacity-50': isDragging,\r\n 'pointer-events-none opacity-50': disabled,\r\n },\r\n className\r\n )}\r\n />\r\n </SortableItemContext.Provider>\r\n )\r\n }\r\n)\r\nSortableItem.displayName = ITEM_NAME\r\n\r\ninterface SortableItemHandleProps\r\n extends React.ComponentPropsWithoutRef<'button'> {\r\n asChild?: boolean\r\n}\r\n\r\nconst SortableItemHandle = React.forwardRef<\r\n HTMLButtonElement,\r\n SortableItemHandleProps\r\n>((props, forwardedRef) => {\r\n const { asChild, disabled, className, ...itemHandleProps } = props\r\n const itemContext = React.useContext(SortableItemContext)\r\n if (!itemContext) {\r\n throw new Error(SORTABLE_ERRORS[ITEM_HANDLE_NAME])\r\n }\r\n const context = useSortableContext(ITEM_HANDLE_NAME)\r\n\r\n const isDisabled = disabled ?? itemContext.disabled\r\n\r\n const composedRef = useComposedRefs(forwardedRef, node => {\r\n if (!isDisabled) return\r\n itemContext.setActivatorNodeRef(node)\r\n })\r\n\r\n const HandlePrimitive = asChild ? Slot : 'button'\r\n\r\n return (\r\n <HandlePrimitive\r\n type=\"button\"\r\n aria-controls={itemContext.id}\r\n data-dragging={itemContext.isDragging ? '' : undefined}\r\n {...itemHandleProps}\r\n {...itemContext.attributes}\r\n {...itemContext.listeners}\r\n ref={composedRef}\r\n className={cn(\r\n 'select-none disabled:pointer-events-none disabled:opacity-50',\r\n context.flatCursor\r\n ? 'cursor-default'\r\n : 'cursor-grab data-dragging:cursor-grabbing',\r\n className\r\n )}\r\n disabled={isDisabled}\r\n />\r\n )\r\n})\r\nSortableItemHandle.displayName = ITEM_HANDLE_NAME\r\n\r\nconst SortableOverlayContext = React.createContext(false)\r\nSortableOverlayContext.displayName = OVERLAY_NAME\r\n\r\nconst dropAnimation: DropAnimation = {\r\n sideEffects: defaultDropAnimationSideEffects({\r\n styles: {\r\n active: {\r\n opacity: '0.4',\r\n },\r\n },\r\n }),\r\n}\r\n\r\ninterface SortableOverlayProps\r\n extends Omit<React.ComponentPropsWithoutRef<typeof DragOverlay>, 'children'> {\r\n container?: Element | DocumentFragment | null\r\n children?:\r\n | ((params: { value: UniqueIdentifier }) => React.ReactNode)\r\n | React.ReactNode\r\n}\r\n\r\nfunction SortableOverlay(props: SortableOverlayProps) {\r\n const { container: containerProp, children, ...overlayProps } = props\r\n const context = useSortableContext(OVERLAY_NAME)\r\n\r\n const [mounted, setMounted] = React.useState(false)\r\n React.useLayoutEffect(() => setMounted(true), [])\r\n\r\n const container =\r\n containerProp ?? (mounted ? globalThis.document?.body : null)\r\n\r\n if (!container) return null\r\n\r\n return ReactDOM.createPortal(\r\n <DragOverlay\r\n dropAnimation={dropAnimation}\r\n modifiers={context.modifiers}\r\n className={cn(!context.flatCursor && 'cursor-grabbing')}\r\n {...overlayProps}\r\n >\r\n <SortableOverlayContext.Provider value={true}>\r\n {context.activeId\r\n ? typeof children === 'function'\r\n ? children({ value: context.activeId })\r\n : children\r\n : null}\r\n </SortableOverlayContext.Provider>\r\n </DragOverlay>,\r\n container\r\n )\r\n}\r\n\r\nconst Root = Sortable\r\nconst Content = SortableContent\r\nconst Item = SortableItem\r\nconst ItemHandle = SortableItemHandle\r\nconst Overlay = SortableOverlay\r\n\r\nexport {\r\n Root,\r\n Content,\r\n Item,\r\n ItemHandle,\r\n Overlay,\r\n //\r\n Sortable,\r\n SortableContent,\r\n SortableItem,\r\n SortableItemHandle,\r\n SortableOverlay,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","orientationConfig","restrictToVerticalAxis","restrictToParentElement","verticalListSortingStrategy","closestCenter","restrictToHorizontalAxis","horizontalListSortingStrategy","undefined","closestCorners","ROOT_NAME","CONTENT_NAME","ITEM_NAME","ITEM_HANDLE_NAME","OVERLAY_NAME","SORTABLE_ERRORS","SortableRootContext","React","useSortableContext","name","context","Error","Sortable","props","value","onValueChange","collisionDetection","modifiers","strategy","onMove","orientation","flatCursor","getItemValueProp","accessibility","sortableProps","id","activeId","setActiveId","sensors","useSensors","useSensor","MouseSensor","TouchSensor","KeyboardSensor","sortableKeyboardCoordinates","config","getItemValue","item","items","onDragEnd","event","active","over","activeIndex","overIndex","arrayMove","announcements","activeValue","screenReaderInstructions","contextValue","DndContext","composeEventHandlers","SortableContentContext","SortableContent","forwardedRef","strategyProp","asChild","withoutSlot","children","contentProps","ContentPrimitive","Slot","SortableContext","SortableItemContext","SortableItem","style","asHandle","disabled","className","itemProps","inSortableContent","inSortableOverlay","SortableOverlayContext","attributes","listeners","setNodeRef","setActivatorNodeRef","transform","transition","isDragging","useSortable","composedRef","useComposedRefs","node","composedStyle","CSS","itemContext","ItemPrimitive","cn","SortableItemHandle","itemHandleProps","isDisabled","HandlePrimitive","dropAnimation","defaultDropAnimationSideEffects","SortableOverlay","containerProp","overlayProps","mounted","setMounted","container","globalThis","ReactDOM","DragOverlay","Root","Content","Item","ItemHandle","Overlay"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,m6BCqCMG,kBAAoB,CACxB,SAAU,CACR,UAAW,CAACC,0BAAAA,sBAAsBA,CAAEC,0BAAAA,uBAAuBA,CAAC,CAC5D,SAAUC,yBAAAA,2BAA2BA,CACrC,mBAAoBC,qBAAAA,aAAaA,EAEnC,WAAY,CACV,UAAW,CAACC,0BAAAA,wBAAwBA,CAAEH,0BAAAA,uBAAuBA,CAAC,CAC9D,SAAUI,yBAAAA,6BAA6BA,CACvC,mBAAoBF,qBAAAA,aAAaA,EAEnC,MAAO,CACL,UAAW,CAACF,0BAAAA,uBAAuBA,CAAC,CACpC,SAAUK,OACV,mBAAoBC,qBAAAA,cAAcA,CAEtC,EAEMC,UAAY,WACZC,aAAe,kBACfC,UAAY,eACZC,iBAAmB,qBACnBC,aAAe,kBAEfC,gBAA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G,WAAW,QAAQ,EAAE,KAAO,IAAG,SAE7D,EAEOC,mCAAAA,YAAqB,CAC1B,oCAACC,qBAAAA,WAAWA,CAAAA,CACV,cAAeV,cACf,UAAWnF,EAAQ,SAAS,CAC5B,UAAW8E,GAAAA,0BAAAA,EAAAA,EAAG,CAAC9E,EAAQ,UAAU,EAAI,mBACpC,GAAGuF,CAAY,C,SAEhB,oCAACzB,uBAAuB,QAAQ,EAAC,MAAO,G,SACrC9D,EAAQ,QAAQ,CACb,mBAAOgD,EACLA,EAAS,CAAE,MAAOhD,EAAQ,QAAQ,GAClCgD,EACF,I,KAGR0C,GAjBqB,IAmBzB,CAEA,IAAMI,KAAO5F,SACP6F,QAAUpD,gBACVqD,KAAO1C,aACP2C,WAAalB,mBACbmB,QAAUb,gB"}
1
+ {"version":3,"file":"components/sortable.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/sortable.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport {\n type Announcements,\n DndContext,\n type DndContextProps,\n type DragEndEvent,\n DragOverlay,\n type DraggableSyntheticListeners,\n type DropAnimation,\n KeyboardSensor,\n MouseSensor,\n type ScreenReaderInstructions,\n TouchSensor,\n type UniqueIdentifier,\n closestCenter,\n closestCorners,\n defaultDropAnimationSideEffects,\n useSensor,\n useSensors,\n} from '@dnd-kit/core'\nimport {\n restrictToHorizontalAxis,\n restrictToParentElement,\n restrictToVerticalAxis,\n} from '@dnd-kit/modifiers'\nimport {\n SortableContext,\n type SortableContextProps,\n arrayMove,\n horizontalListSortingStrategy,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable'\nimport { CSS } from '@dnd-kit/utilities'\nimport { Slot } from '@radix-ui/react-slot'\nimport * as React from 'react'\n\nimport { composeEventHandlers, useComposedRefs } from '@/lib/composition'\nimport { cn } from '@/lib/utils'\nimport * as ReactDOM from 'react-dom'\n\nconst orientationConfig = {\n vertical: {\n modifiers: [restrictToVerticalAxis, restrictToParentElement],\n strategy: verticalListSortingStrategy,\n collisionDetection: closestCenter,\n },\n horizontal: {\n modifiers: [restrictToHorizontalAxis, restrictToParentElement],\n strategy: horizontalListSortingStrategy,\n collisionDetection: closestCenter,\n },\n mixed: {\n modifiers: [restrictToParentElement],\n strategy: undefined,\n collisionDetection: closestCorners,\n },\n}\n\nconst ROOT_NAME = 'Sortable'\nconst CONTENT_NAME = 'SortableContent'\nconst ITEM_NAME = 'SortableItem'\nconst ITEM_HANDLE_NAME = 'SortableItemHandle'\nconst OVERLAY_NAME = 'SortableOverlay'\n\nconst SORTABLE_ERRORS = {\n [ROOT_NAME]: `\\`${ROOT_NAME}\\` components must be within \\`${ROOT_NAME}\\``,\n [CONTENT_NAME]: `\\`${CONTENT_NAME}\\` must be within \\`${ROOT_NAME}\\``,\n [ITEM_NAME]: `\\`${ITEM_NAME}\\` must be within \\`${CONTENT_NAME}\\``,\n [ITEM_HANDLE_NAME]: `\\`${ITEM_HANDLE_NAME}\\` must be within \\`${ITEM_NAME}\\``,\n [OVERLAY_NAME]: `\\`${OVERLAY_NAME}\\` must be within \\`${ROOT_NAME}\\``,\n} as const\n\ninterface SortableRootContextValue<T> {\n id: string\n items: UniqueIdentifier[]\n modifiers: DndContextProps['modifiers']\n strategy: SortableContextProps['strategy']\n activeId: UniqueIdentifier | null\n setActiveId: (id: UniqueIdentifier | null) => void\n getItemValue: (item: T) => UniqueIdentifier\n flatCursor: boolean\n}\n\nconst SortableRootContext =\n React.createContext<SortableRootContextValue<unknown> | null>(null)\nSortableRootContext.displayName = ROOT_NAME\n\nfunction useSortableContext(name: keyof typeof SORTABLE_ERRORS) {\n const context = React.useContext(SortableRootContext)\n if (!context) {\n throw new Error(SORTABLE_ERRORS[name])\n }\n return context\n}\n\ninterface GetItemValue<T> {\n /**\n * Callback that returns a unique identifier for each sortable item. Required for array of objects.\n * @example getItemValue={(item) => item.id}\n */\n getItemValue: (item: T) => UniqueIdentifier\n}\n\ntype SortableProps<T> = DndContextProps & {\n value: T[]\n onValueChange?: (items: T[]) => void\n onMove?: (\n event: DragEndEvent & { activeIndex: number; overIndex: number }\n ) => void\n strategy?: SortableContextProps['strategy']\n orientation?: 'vertical' | 'horizontal' | 'mixed'\n flatCursor?: boolean\n} & (T extends object ? GetItemValue<T> : Partial<GetItemValue<T>>)\n\nfunction Sortable<T>(props: SortableProps<T>) {\n const {\n value,\n onValueChange,\n collisionDetection,\n modifiers,\n strategy,\n onMove,\n orientation = 'vertical',\n flatCursor = false,\n getItemValue: getItemValueProp,\n accessibility,\n ...sortableProps\n } = props\n const id = React.useId()\n const [activeId, setActiveId] = React.useState<UniqueIdentifier | null>(null)\n\n const sensors = useSensors(\n useSensor(MouseSensor),\n useSensor(TouchSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n })\n )\n const config = React.useMemo(\n () => orientationConfig[orientation],\n [orientation]\n )\n\n const getItemValue = React.useCallback(\n (item: T): UniqueIdentifier => {\n if (typeof item === 'object' && !getItemValueProp) {\n throw new Error('getItemValue is required when using array of objects.')\n }\n return getItemValueProp\n ? getItemValueProp(item)\n : (item as UniqueIdentifier)\n },\n [getItemValueProp]\n )\n\n const items = React.useMemo(() => {\n return value.map(item => getItemValue(item))\n }, [value, getItemValue])\n\n const onDragEnd = React.useCallback(\n (event: DragEndEvent) => {\n const { active, over } = event\n if (over && active.id !== over?.id) {\n const activeIndex = value.findIndex(\n item => getItemValue(item) === active.id\n )\n const overIndex = value.findIndex(\n item => getItemValue(item) === over.id\n )\n\n if (onMove) {\n onMove({ ...event, activeIndex, overIndex })\n } else {\n onValueChange?.(arrayMove(value, activeIndex, overIndex))\n }\n }\n setActiveId(null)\n },\n [value, onValueChange, onMove, getItemValue]\n )\n\n const announcements: Announcements = React.useMemo(\n () => ({\n onDragStart({ active }) {\n const activeValue = active.id.toString()\n return `Grabbed sortable item \"${activeValue}\". Current position is ${active.data.current?.sortable.index + 1} of ${value.length}. Use arrow keys to move, space to drop.`\n },\n onDragOver({ active, over }) {\n if (over) {\n const overIndex = over.data.current?.sortable.index ?? 0\n const activeIndex = active.data.current?.sortable.index ?? 0\n const moveDirection = overIndex > activeIndex ? 'down' : 'up'\n const activeValue = active.id.toString()\n return `Sortable item \"${activeValue}\" moved ${moveDirection} to position ${overIndex + 1} of ${value.length}.`\n }\n return 'Sortable item is no longer over a droppable area. Press escape to cancel.'\n },\n onDragEnd({ active, over }) {\n const activeValue = active.id.toString()\n if (over) {\n const overIndex = over.data.current?.sortable.index ?? 0\n return `Sortable item \"${activeValue}\" dropped at position ${overIndex + 1} of ${value.length}.`\n }\n return `Sortable item \"${activeValue}\" dropped. No changes were made.`\n },\n onDragCancel({ active }) {\n const activeIndex = active.data.current?.sortable.index ?? 0\n const activeValue = active.id.toString()\n return `Sorting cancelled. Sortable item \"${activeValue}\" returned to position ${activeIndex + 1} of ${value.length}.`\n },\n onDragMove({ active, over }) {\n if (over) {\n const overIndex = over.data.current?.sortable.index ?? 0\n const activeIndex = active.data.current?.sortable.index ?? 0\n const moveDirection = overIndex > activeIndex ? 'down' : 'up'\n const activeValue = active.id.toString()\n return `Sortable item \"${activeValue}\" is moving ${moveDirection} to position ${overIndex + 1} of ${value.length}.`\n }\n return 'Sortable item is no longer over a droppable area. Press escape to cancel.'\n },\n }),\n [value]\n )\n\n const screenReaderInstructions: ScreenReaderInstructions = React.useMemo(\n () => ({\n draggable: `\n To pick up a sortable item, press space or enter.\n While dragging, use the ${orientation === 'vertical' ? 'up and down' : orientation === 'horizontal' ? 'left and right' : 'arrow'} keys to move the item.\n Press space or enter again to drop the item in its new position, or press escape to cancel.\n `,\n }),\n [orientation]\n )\n\n const contextValue = React.useMemo(\n () => ({\n id,\n items,\n modifiers: modifiers ?? config.modifiers,\n strategy: strategy ?? config.strategy,\n activeId,\n setActiveId,\n getItemValue,\n flatCursor,\n }),\n [\n id,\n items,\n modifiers,\n strategy,\n config.modifiers,\n config.strategy,\n activeId,\n getItemValue,\n flatCursor,\n ]\n )\n\n return (\n <SortableRootContext.Provider\n value={contextValue as SortableRootContextValue<unknown>}\n >\n <DndContext\n collisionDetection={collisionDetection ?? config.collisionDetection}\n modifiers={modifiers ?? config.modifiers}\n sensors={sensors}\n {...sortableProps}\n id={id}\n onDragStart={composeEventHandlers(\n sortableProps.onDragStart,\n ({ active }) => setActiveId(active.id)\n )}\n onDragEnd={composeEventHandlers(sortableProps.onDragEnd, onDragEnd)}\n onDragCancel={composeEventHandlers(sortableProps.onDragCancel, () =>\n setActiveId(null)\n )}\n accessibility={{\n announcements,\n screenReaderInstructions,\n ...accessibility,\n }}\n />\n </SortableRootContext.Provider>\n )\n}\n\nconst SortableContentContext = React.createContext<boolean>(false)\nSortableContentContext.displayName = CONTENT_NAME\n\ninterface SortableContentProps extends React.ComponentPropsWithoutRef<'div'> {\n strategy?: SortableContextProps['strategy']\n children: React.ReactNode\n asChild?: boolean\n withoutSlot?: boolean\n}\n\nconst SortableContent = React.forwardRef<HTMLDivElement, SortableContentProps>(\n (props, forwardedRef) => {\n const {\n strategy: strategyProp,\n asChild,\n withoutSlot,\n children,\n ...contentProps\n } = props\n const context = useSortableContext(CONTENT_NAME)\n\n const ContentPrimitive = asChild ? Slot : 'div'\n\n return (\n <SortableContentContext.Provider value={true}>\n <SortableContext\n items={context.items}\n strategy={strategyProp ?? context.strategy}\n >\n {withoutSlot ? (\n children\n ) : (\n <ContentPrimitive {...contentProps} ref={forwardedRef}>\n {children}\n </ContentPrimitive>\n )}\n </SortableContext>\n </SortableContentContext.Provider>\n )\n }\n)\nSortableContent.displayName = CONTENT_NAME\n\ninterface SortableItemContextValue {\n id: string\n attributes: React.HTMLAttributes<HTMLElement>\n listeners: DraggableSyntheticListeners | undefined\n setActivatorNodeRef: (node: HTMLElement | null) => void\n isDragging?: boolean\n disabled?: boolean\n}\n\nconst SortableItemContext =\n React.createContext<SortableItemContextValue | null>(null)\nSortableItemContext.displayName = ITEM_NAME\n\ninterface SortableItemProps extends React.ComponentPropsWithoutRef<'div'> {\n value: UniqueIdentifier\n asHandle?: boolean\n asChild?: boolean\n disabled?: boolean\n}\n\nconst SortableItem = React.forwardRef<HTMLDivElement, SortableItemProps>(\n (props, forwardedRef) => {\n const {\n value,\n style,\n asHandle,\n asChild,\n disabled,\n className,\n ...itemProps\n } = props\n const inSortableContent = React.useContext(SortableContentContext)\n const inSortableOverlay = React.useContext(SortableOverlayContext)\n\n if (!inSortableContent && !inSortableOverlay) {\n throw new Error(SORTABLE_ERRORS[ITEM_NAME])\n }\n\n if (value === '') {\n throw new Error(`\\`${ITEM_NAME}\\` value cannot be an empty string`)\n }\n\n const context = useSortableContext(ITEM_NAME)\n const id = React.useId()\n const {\n attributes,\n listeners,\n setNodeRef,\n setActivatorNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({ id: value, disabled })\n\n const composedRef = useComposedRefs(forwardedRef, node => {\n if (disabled) return\n setNodeRef(node)\n if (asHandle) setActivatorNodeRef(node)\n })\n\n const composedStyle = React.useMemo<React.CSSProperties>(() => {\n return {\n transform: CSS.Translate.toString(transform),\n transition,\n ...style,\n }\n }, [transform, transition, style])\n\n const itemContext = React.useMemo<SortableItemContextValue>(\n () => ({\n id,\n attributes,\n listeners,\n setActivatorNodeRef,\n isDragging,\n disabled,\n }),\n [id, attributes, listeners, setActivatorNodeRef, isDragging, disabled]\n )\n\n const ItemPrimitive = asChild ? Slot : 'div'\n\n return (\n <SortableItemContext.Provider value={itemContext}>\n <ItemPrimitive\n id={id}\n data-dragging={isDragging ? '' : undefined}\n {...itemProps}\n {...(asHandle ? attributes : {})}\n {...(asHandle ? listeners : {})}\n tabIndex={disabled ? undefined : 0}\n ref={composedRef}\n style={composedStyle}\n className={cn(\n 'focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1',\n {\n 'touch-none select-none': asHandle,\n 'cursor-default': context.flatCursor,\n 'data-dragging:cursor-grabbing': !context.flatCursor,\n 'cursor-grab': !isDragging && asHandle && !context.flatCursor,\n 'opacity-50': isDragging,\n 'pointer-events-none opacity-50': disabled,\n },\n className\n )}\n />\n </SortableItemContext.Provider>\n )\n }\n)\nSortableItem.displayName = ITEM_NAME\n\ninterface SortableItemHandleProps\n extends React.ComponentPropsWithoutRef<'button'> {\n asChild?: boolean\n}\n\nconst SortableItemHandle = React.forwardRef<\n HTMLButtonElement,\n SortableItemHandleProps\n>((props, forwardedRef) => {\n const { asChild, disabled, className, ...itemHandleProps } = props\n const itemContext = React.useContext(SortableItemContext)\n if (!itemContext) {\n throw new Error(SORTABLE_ERRORS[ITEM_HANDLE_NAME])\n }\n const context = useSortableContext(ITEM_HANDLE_NAME)\n\n const isDisabled = disabled ?? itemContext.disabled\n\n const composedRef = useComposedRefs(forwardedRef, node => {\n if (!isDisabled) return\n itemContext.setActivatorNodeRef(node)\n })\n\n const HandlePrimitive = asChild ? Slot : 'button'\n\n return (\n <HandlePrimitive\n type=\"button\"\n aria-controls={itemContext.id}\n data-dragging={itemContext.isDragging ? '' : undefined}\n {...itemHandleProps}\n {...itemContext.attributes}\n {...itemContext.listeners}\n ref={composedRef}\n className={cn(\n 'select-none disabled:pointer-events-none disabled:opacity-50',\n context.flatCursor\n ? 'cursor-default'\n : 'cursor-grab data-dragging:cursor-grabbing',\n className\n )}\n disabled={isDisabled}\n />\n )\n})\nSortableItemHandle.displayName = ITEM_HANDLE_NAME\n\nconst SortableOverlayContext = React.createContext(false)\nSortableOverlayContext.displayName = OVERLAY_NAME\n\nconst dropAnimation: DropAnimation = {\n sideEffects: defaultDropAnimationSideEffects({\n styles: {\n active: {\n opacity: '0.4',\n },\n },\n }),\n}\n\ninterface SortableOverlayProps\n extends Omit<React.ComponentPropsWithoutRef<typeof DragOverlay>, 'children'> {\n container?: Element | DocumentFragment | null\n children?:\n | ((params: { value: UniqueIdentifier }) => React.ReactNode)\n | React.ReactNode\n}\n\nfunction SortableOverlay(props: SortableOverlayProps) {\n const { container: containerProp, children, ...overlayProps } = props\n const context = useSortableContext(OVERLAY_NAME)\n\n const [mounted, setMounted] = React.useState(false)\n React.useLayoutEffect(() => setMounted(true), [])\n\n const container =\n containerProp ?? (mounted ? globalThis.document?.body : null)\n\n if (!container) return null\n\n return ReactDOM.createPortal(\n <DragOverlay\n dropAnimation={dropAnimation}\n modifiers={context.modifiers}\n className={cn(!context.flatCursor && 'cursor-grabbing')}\n {...overlayProps}\n >\n <SortableOverlayContext.Provider value={true}>\n {context.activeId\n ? typeof children === 'function'\n ? children({ value: context.activeId })\n : children\n : null}\n </SortableOverlayContext.Provider>\n </DragOverlay>,\n container\n )\n}\n\nconst Root = Sortable\nconst Content = SortableContent\nconst Item = SortableItem\nconst ItemHandle = SortableItemHandle\nconst Overlay = SortableOverlay\n\nexport {\n Root,\n Content,\n Item,\n ItemHandle,\n Overlay,\n //\n Sortable,\n SortableContent,\n SortableItem,\n SortableItemHandle,\n SortableOverlay,\n}\n"],"names":["__webpack_require__","e","Object","Symbol","orientationConfig","restrictToVerticalAxis","restrictToParentElement","verticalListSortingStrategy","closestCenter","restrictToHorizontalAxis","horizontalListSortingStrategy","undefined","closestCorners","ROOT_NAME","CONTENT_NAME","ITEM_NAME","ITEM_HANDLE_NAME","OVERLAY_NAME","SORTABLE_ERRORS","SortableRootContext","React","useSortableContext","name","context","Error","Sortable","props","value","onValueChange","collisionDetection","modifiers","strategy","onMove","orientation","flatCursor","getItemValueProp","accessibility","sortableProps","id","activeId","setActiveId","sensors","useSensors","useSensor","MouseSensor","TouchSensor","KeyboardSensor","sortableKeyboardCoordinates","config","getItemValue","item","items","onDragEnd","event","active","over","activeIndex","overIndex","arrayMove","announcements","activeValue","screenReaderInstructions","contextValue","DndContext","composeEventHandlers","SortableContentContext","SortableContent","forwardedRef","strategyProp","asChild","withoutSlot","children","contentProps","ContentPrimitive","Slot","SortableContext","SortableItemContext","SortableItem","style","asHandle","disabled","className","itemProps","inSortableContent","inSortableOverlay","SortableOverlayContext","attributes","listeners","setNodeRef","setActivatorNodeRef","transform","transition","isDragging","useSortable","composedRef","useComposedRefs","node","composedStyle","CSS","itemContext","ItemPrimitive","cn","SortableItemHandle","itemHandleProps","isDisabled","HandlePrimitive","dropAnimation","defaultDropAnimationSideEffects","SortableOverlay","containerProp","overlayProps","mounted","setMounted","container","globalThis","ReactDOM","DragOverlay","Root","Content","Item","ItemHandle","Overlay"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,m6BCqCMG,kBAAoB,CACxB,SAAU,CACR,UAAW,CAACC,0B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AAuB,WAAW,CAAGpE,aAErC,IAAMyF,cAA+B,CACnC,YAAaC,GAAAA,qBAAAA,+BAAAA,EAAgC,CAC3C,OAAQ,CACN,OAAQ,CACN,QAAS,KACX,CACF,CACF,EACF,EAUA,SAASC,gBAAgBlF,CAA2B,EAClD,GAAM,CAAE,UAAWmF,CAAa,CAAEtC,SAAAA,CAAQ,CAAE,GAAGuC,EAAc,CAAGpF,EAC1DH,EAAUF,mBAAmBJ,cAE7B,CAAC8F,EAASC,EAAW,CAAG5F,+BAAAA,QAAc,CAAC,IAC7CA,+BAAAA,eAAqB,CAAC,IAAM4F,EAAW,IAAO,EAAE,EAEhD,IAAMC,EACJJ,GAAkBE,CAAAA,EAAUG,WAAW,QAAQ,EAAE,KAAO,IAAG,SAE7D,EAEOC,mCAAAA,YAAqB,CAC1B,oCAACC,qBAAAA,WAAWA,CAAAA,CACV,cAAeV,cACf,UAAWnF,EAAQ,SAAS,CAC5B,UAAW8E,GAAAA,0BAAAA,EAAAA,EAAG,CAAC9E,EAAQ,UAAU,EAAI,mBACpC,GAAGuF,CAAY,C,SAEhB,oCAACzB,uBAAuB,QAAQ,EAAC,MAAO,G,SACrC9D,EAAQ,QAAQ,CACb,mBAAOgD,EACLA,EAAS,CAAE,MAAOhD,EAAQ,QAAQ,GAClCgD,EACF,I,KAGR0C,GAjBqB,IAmBzB,CAEA,IAAMI,KAAO5F,SACP6F,QAAUpD,gBACVqD,KAAO1C,aACP2C,WAAalB,mBACbmB,QAAUb,gB"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\spinner.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/spinner.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { VisuallyHidden } from '@radix-ui/react-visually-hidden'\r\nimport type { CSSProperties, ComponentProps, ReactNode } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Spinner\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst SPINNER_COUNT = 8\r\n\r\nfunction Spinner({\r\n children,\r\n className,\r\n loading = true,\r\n ...props\r\n}: ComponentProps<'span'> & {\r\n loading?: boolean\r\n}): ReactNode {\r\n if (!loading) {\r\n return children\r\n }\r\n\r\n const spinner = (\r\n <span\r\n className={cn(\r\n 'relative flex size-4 items-center justify-center opacity-60',\r\n className\r\n )}\r\n {...props}\r\n >\r\n {Array.from({ length: SPINNER_COUNT }, (_, i) => (\r\n <span\r\n key={i}\r\n className={cn(\r\n 'before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current'\r\n )}\r\n style={\r\n {\r\n '--spinner-delay': `-${((SPINNER_COUNT - i) * 100).toString()}ms`,\r\n '--spinner-duration': `${(SPINNER_COUNT * 100).toString()}ms`,\r\n '--spinner-rotate': `${((360 / SPINNER_COUNT) * i).toString()}deg`,\r\n width: `${(100 / SPINNER_COUNT).toString()}%`,\r\n } as CSSProperties\r\n }\r\n />\r\n ))}\r\n </span>\r\n )\r\n\r\n if (children === undefined) {\r\n return spinner\r\n }\r\n\r\n return (\r\n <span className=\"relative\">\r\n <span aria-hidden className=\"invisible contents\">\r\n {children}\r\n </span>\r\n <VisuallyHidden>{children}</VisuallyHidden>\r\n <span className=\"absolute inset-0 flex items-center justify-center\">\r\n {spinner}\r\n </span>\r\n </span>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Spinner }\r\n"],"names":["__webpack_require__","e","Object","Symbol","SPINNER_COUNT","Spinner","children","className","loading","props","spinner","cn","Array","_","i","undefined","VisuallyHidden"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,2UCGMG,cAAgB,EAEtB,SAASC,QAAQ,CACfC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,QAAAA,EAAU,EAAI,CACd,GAAGC,EAGJ,EACC,GAAI,CAACD,EACH,OAAOF,EAGT,IAAMI,EACJ,oCAAC,QACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,8DACAJ,GAED,GAAGE,CAAK,C,SAERG,MAAM,IAAI,CAAC,CAAE,OAtBE,CAsBoB,EAAG,CAACC,EAAGC,IACzC,oCAAC,QAEC,UAAWH,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,0RAEF,MACE,CACE,kBAAmB,CAAC,CAAC,EAAG,AAACP,CAAAA,CA9BjB,EA8BiCU,CAAAA,EAAK,GAAE,EAAG,QAAQ,GAAG,EAAE,CAAC,CACjE,qBAAsB,QACtB,mBAAoB,CAAC,EAAG,AAAC,IAAuBA,CAAAA,EAAG,QAAQ,GAAG,GAAG,CAAC,CAClE,MAAO,OACT,C,EAVGA,G,UAiBb,AAAIR,AAAaS,SAAbT,EACKI,EAIP,qCAAC,QAAK,UAAU,W,UACd,oCAAC,QAAK,cAAW,GAAC,UAAU,qB,SACzBJ,C,GAEH,oCAACU,sCAAAA,cAAcA,CAAAA,C,SAAEV,C,GACjB,oCAAC,QAAK,UAAU,oD,SACbI,C,KAIT,C"}
1
+ {"version":3,"file":"components/spinner.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/spinner.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { VisuallyHidden } from '@radix-ui/react-visually-hidden'\nimport type { CSSProperties, ComponentProps, ReactNode } from 'react'\n\nimport { cn } from '../lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst SPINNER_COUNT = 8\n\nfunction Spinner({\n children,\n className,\n loading = true,\n ...props\n}: ComponentProps<'span'> & {\n loading?: boolean\n}): ReactNode {\n if (!loading) {\n return children\n }\n\n const spinner = (\n <span\n className={cn(\n 'relative flex size-4 items-center justify-center opacity-60',\n className\n )}\n {...props}\n >\n {Array.from({ length: SPINNER_COUNT }, (_, i) => (\n <span\n key={i}\n className={cn(\n 'before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current'\n )}\n style={\n {\n '--spinner-delay': `-${((SPINNER_COUNT - i) * 100).toString()}ms`,\n '--spinner-duration': `${(SPINNER_COUNT * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / SPINNER_COUNT) * i).toString()}deg`,\n width: `${(100 / SPINNER_COUNT).toString()}%`,\n } as CSSProperties\n }\n />\n ))}\n </span>\n )\n\n if (children === undefined) {\n return spinner\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">\n {spinner}\n </span>\n </span>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Spinner }\n"],"names":["__webpack_require__","e","Object","Symbol","SPINNER_COUNT","Spinner","children","className","loading","props","spinner","cn","Array","_","i","undefined","VisuallyHidden"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,2UCGMG,cAAgB,EAEtB,SAASC,QAAQ,CACfC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,QAAAA,EAAU,EAAI,CACd,GAAGC,EAGJ,EACC,GAAI,CAACD,EACH,OAAOF,EAGT,IAAMI,EACJ,oCAAC,QACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,8DACAJ,GAED,GAAGE,CAAK,C,SAERG,MAAM,IAAI,CAAC,CAAE,OAtBE,CAsBoB,EAAG,CAACC,EAAGC,IACzC,oCAAC,QAEC,UAAWH,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,0RAEF,MACE,CACE,kBAAmB,CAAC,CAAC,EAAG,AAACP,CAAAA,CA9BjB,EA8BiCU,CAAAA,EAAK,GAAE,EAAG,QAAQ,GAAG,EAAE,CAAC,CACjE,qBAAsB,QACtB,mBAAoB,CAAC,EAAG,AAAC,IAAuBA,CAAAA,EAAG,QAAQ,GAAG,GAAG,CAAC,CAClE,MAAO,OACT,C,EAVGA,G,UAiBb,AAAIR,AAAaS,SAAbT,EACKI,EAIP,qCAAC,QAAK,UAAU,W,UACd,oCAAC,QAAK,cAAW,GAAC,UAAU,qB,SACzBJ,C,GAEH,oCAACU,sCAAAA,cAAcA,CAAAA,C,SAAEV,C,GACjB,oCAAC,QAAK,UAAU,oD,SACbI,C,KAIT,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\switch.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport type { ComponentProps, JSX } from 'react'\r\n\r\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Switch\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Switch({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SwitchPrimitives.Root>): JSX.Element {\r\n return (\r\n <SwitchPrimitives.Root\r\n className={cn(\r\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\r\n className\r\n )}\r\n data-slot=\"switch\"\r\n {...props}\r\n >\r\n <SwitchPrimitives.Thumb\r\n className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\"\r\n data-slot=\"switch-thumb\"\r\n />\r\n </SwitchPrimitives.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Switch }\r\n"],"names":["__webpack_require__","e","Object","Symbol","Switch","className","props","SwitchPrimitives","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,uTCMA,SAASG,OAAO,CACdC,UAAAA,CAAS,CACT,GAAGC,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,IAAqB,EACpB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,iKACAH,GAEF,YAAU,SACT,GAAGC,CAAK,C,SAET,oCAACC,6BAAAA,KAAsB,EACrB,UAAU,kOACV,YAAU,c,IAIlB,C"}
1
+ {"version":3,"file":"components/switch.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport type { ComponentProps, JSX } from 'react'\n\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\n\nimport { cn } from '@/lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\nfunction Switch({\n className,\n ...props\n}: ComponentProps<typeof SwitchPrimitives.Root>): JSX.Element {\n return (\n <SwitchPrimitives.Root\n className={cn(\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\n className\n )}\n data-slot=\"switch\"\n {...props}\n >\n <SwitchPrimitives.Thumb\n className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\"\n data-slot=\"switch-thumb\"\n />\n </SwitchPrimitives.Root>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch }\n"],"names":["__webpack_require__","e","Object","Symbol","Switch","className","props","SwitchPrimitives","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,uTCMA,SAASG,OAAO,CACdC,UAAAA,CAAS,CACT,GAAGC,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,IAAqB,EACpB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,iKACAH,GAEF,YAAU,SACT,GAAGC,CAAK,C,SAET,oCAACC,6BAAAA,KAAsB,EACrB,UAAU,kOACV,YAAU,c,IAIlB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\table-expandable.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/table-expandable.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { CaretDown } from '@phosphor-icons/react'\r\nimport { Slot } from '@radix-ui/react-slot'\r\nimport { AnimatePresence, motion } from 'framer-motion'\r\nimport React, { useState } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\ntype ExpandableTableRowWrapperProps = React.HTMLAttributes<HTMLDivElement> & {\r\n children: [React.ReactNode, React.ReactNode]\r\n /**\r\n * Number of columns the content will occupy when expanded\r\n * Not counting the icon column that comes by default\r\n */\r\n contentColSpan: number\r\n isExpanded?: boolean\r\n onToggleExpand?: VoidFunction\r\n}\r\n\r\n/**\r\n * A wrapper for expandable table rows.\r\n *\r\n * @param children - The first must be of type ExpandableTableRow and the second any component, such as a div.\r\n * @param contentColSpan - Number of columns the content will occupy when expanded (excluding the default icon column).\r\n */\r\nconst ExpandableTableRowWrapper = React.forwardRef<\r\n HTMLDivElement,\r\n ExpandableTableRowWrapperProps\r\n>(({ children, contentColSpan, isExpanded, onToggleExpand }) => {\r\n const [internalIsExpanded, setInternalIsExpanded] = useState(false)\r\n const [Row, Content] = children\r\n\r\n const expanded = isExpanded !== undefined ? isExpanded : internalIsExpanded\r\n const toggleExpand = () => {\r\n if (onToggleExpand) {\r\n onToggleExpand()\r\n } else {\r\n setInternalIsExpanded(prev => !prev)\r\n }\r\n }\r\n\r\n const sumOfColspanAndIconColumn = contentColSpan + 1\r\n\r\n return (\r\n <>\r\n <Slot onClick={toggleExpand} data-expanded={expanded}>\r\n {Row}\r\n </Slot>\r\n <ExpandableTableRowContent\r\n colSpan={sumOfColspanAndIconColumn}\r\n aria-colspan={sumOfColspanAndIconColumn}\r\n isExpanded={expanded}\r\n >\r\n {Content}\r\n </ExpandableTableRowContent>\r\n </>\r\n )\r\n})\r\nExpandableTableRowWrapper.displayName = 'ExpandableTableRowWrapper'\r\n\r\ntype ExpandableTableRowProps = React.HTMLAttributes<HTMLTableRowElement> & {\r\n showIcon?: boolean\r\n 'data-expanded'?: boolean\r\n}\r\n\r\nconst ExpandableTableRow = React.forwardRef<\r\n HTMLTableRowElement,\r\n ExpandableTableRowProps\r\n>(({ className, children, showIcon = true, ...props }, ref) => (\r\n <tr\r\n ref={ref}\r\n className={cn(\r\n 'cursor-pointer border-y transition-colors last:border-y-0 hover:bg-stroke/30 data-[state=selected]:bg-gray-100',\r\n className\r\n )}\r\n {...props}\r\n >\r\n <td\r\n className={cn('w-12 p-4 align-middle [&:has([role=checkbox])]:pr-0', {})}\r\n >\r\n <motion.div\r\n initial={{ rotate: 0 }}\r\n animate={{ rotate: props['data-expanded'] ? -180 : 0 }}\r\n transition={{ duration: 0.3 }}\r\n className='w-min origin-center'\r\n >\r\n <CaretDown\r\n size={16}\r\n weight=\"bold\"\r\n className={cn('text-gbm-dark', { 'text-transparent': !showIcon })}\r\n />\r\n </motion.div>\r\n </td>\r\n {children}\r\n </tr>\r\n))\r\nExpandableTableRow.displayName = 'ExpandableTableRow'\r\n\r\ntype ExpandableTableRowContentProps =\r\n React.TdHTMLAttributes<HTMLTableCellElement> & {\r\n isExpanded: boolean\r\n }\r\n\r\nconst ExpandableTableRowContent = React.forwardRef<\r\n HTMLTableCellElement,\r\n ExpandableTableRowContentProps\r\n>(({ className, isExpanded, ...props }, ref) => (\r\n <AnimatePresence initial={false}>\r\n {isExpanded && (\r\n <motion.tr\r\n key=\"expandable-row\"\r\n className={cn('border-y', className)}\r\n initial={{ opacity: 0 }}\r\n animate={{ opacity: 1 }}\r\n exit={{ opacity: 0 }}\r\n transition={{ duration: 0.2 }}\r\n >\r\n <td colSpan={props.colSpan}>\r\n <motion.div\r\n initial={{ height: 0, opacity: 0 }}\r\n animate={{ height: 'auto', opacity: 1 }}\r\n exit={{ height: 0, opacity: 0 }}\r\n transition={{\r\n height: { duration: 0.3, ease: 'linear' },\r\n opacity: { duration: 0.2 },\r\n }}\r\n className=\"overflow-hidden\"\r\n >\r\n <div ref={ref}>{props.children}</div>\r\n </motion.div>\r\n </td>\r\n </motion.tr>\r\n )}\r\n </AnimatePresence>\r\n))\r\nExpandableTableRowContent.displayName = 'ExpandableTableRowContent'\r\n\r\nexport type {\r\n ExpandableTableRowWrapperProps,\r\n ExpandableTableRowProps,\r\n ExpandableTableRowContentProps,\r\n}\r\nexport { ExpandableTableRowWrapper, ExpandableTableRow }\r\n"],"names":["__webpack_require__","e","Object","Symbol","ExpandableTableRowWrapper","React","children","contentColSpan","isExpanded","onToggleExpand","internalIsExpanded","setInternalIsExpanded","useState","Row","Content","expanded","undefined","sumOfColspanAndIconColumn","Slot","prev","ExpandableTableRowContent","ExpandableTableRow","className","showIcon","props","ref","cn","motion","CaretDown","AnimatePresence"],"mappings":"+PACAA,CAAAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,+nBCkBMG,0BAA4BC,yBAAAA,UAAgB,CAGhD,CAAC,CAAEC,SAAAA,CAAQ,CAAEC,eAAAA,CAAc,CAAEC,WAAAA,CAAU,CAAEC,eAAAA,CAAc,CAAE,IACzD,GAAM,CAACC,EAAoBC,EAAsB,CAAGC,AAAAA,GAAAA,+BAAAA,QAAAA,AAAAA,EAAS,IACvD,CAACC,EAAKC,EAAQ,CAAGR,EAEjBS,EAAWP,AAAeQ,SAAfR,EAA2BA,EAAaE,EASnDO,EAA4BV,EAAiB,EAEnD,M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AAA,EAAAA,AAAAA,EAAG,WAAYJ,GAC1B,QAAS,CAAE,QAAS,CAAE,EACtB,QAAS,CAAE,QAAS,CAAE,EACtB,KAAM,CAAE,QAAS,CAAE,EACnB,WAAY,CAAE,SAAU,EAAI,E,SAE5B,oCAAC,MAAG,QAASE,EAAM,OAAO,C,SACxB,oCAACG,uCAAAA,MAAAA,CAAAA,GAAU,EACT,QAAS,CAAE,OAAQ,EAAG,QAAS,CAAE,EACjC,QAAS,CAAE,OAAQ,OAAQ,QAAS,CAAE,EACtC,KAAM,CAAE,OAAQ,EAAG,QAAS,CAAE,EAC9B,WAAY,CACV,OAAQ,CAAE,SAAU,GAAK,KAAM,QAAS,EACxC,QAAS,CAAE,SAAU,EAAI,CAC3B,EACA,UAAU,kB,SAEV,oCAAC,OAAI,IAAKF,E,SAAMD,EAAM,QAAQ,A,QAlB9B,iB,6BAyBZJ,0BAA0B,WAAW,CAAG,4B"}
1
+ {"version":3,"file":"components/table-expandable.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/table-expandable.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { CaretDown } from '@phosphor-icons/react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport React, { useState } from 'react'\n\nimport { cn } from '../lib/utils'\n\ntype ExpandableTableRowWrapperProps = React.HTMLAttributes<HTMLDivElement> & {\n children: [React.ReactNode, React.ReactNode]\n /**\n * Number of columns the content will occupy when expanded\n * Not counting the icon column that comes by default\n */\n contentColSpan: number\n isExpanded?: boolean\n onToggleExpand?: VoidFunction\n}\n\n/**\n * A wrapper for expandable table rows.\n *\n * @param children - The first must be of type ExpandableTableRow and the second any component, such as a div.\n * @param contentColSpan - Number of columns the content will occupy when expanded (excluding the default icon column).\n */\nconst ExpandableTableRowWrapper = React.forwardRef<\n HTMLDivElement,\n ExpandableTableRowWrapperProps\n>(({ children, contentColSpan, isExpanded, onToggleExpand }) => {\n const [internalIsExpanded, setInternalIsExpanded] = useState(false)\n const [Row, Content] = children\n\n const expanded = isExpanded !== undefined ? isExpanded : internalIsExpanded\n const toggleExpand = () => {\n if (onToggleExpand) {\n onToggleExpand()\n } else {\n setInternalIsExpanded(prev => !prev)\n }\n }\n\n const sumOfColspanAndIconColumn = contentColSpan + 1\n\n return (\n <>\n <Slot onClick={toggleExpand} data-expanded={expanded}>\n {Row}\n </Slot>\n <ExpandableTableRowContent\n colSpan={sumOfColspanAndIconColumn}\n aria-colspan={sumOfColspanAndIconColumn}\n isExpanded={expanded}\n >\n {Content}\n </ExpandableTableRowContent>\n </>\n )\n})\nExpandableTableRowWrapper.displayName = 'ExpandableTableRowWrapper'\n\ntype ExpandableTableRowProps = React.HTMLAttributes<HTMLTableRowElement> & {\n showIcon?: boolean\n 'data-expanded'?: boolean\n}\n\nconst ExpandableTableRow = React.forwardRef<\n HTMLTableRowElement,\n ExpandableTableRowProps\n>(({ className, children, showIcon = true, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'cursor-pointer border-y transition-colors last:border-y-0 hover:bg-stroke/30 data-[state=selected]:bg-gray-100',\n className\n )}\n {...props}\n >\n <td\n className={cn('w-12 p-4 align-middle [&:has([role=checkbox])]:pr-0', {})}\n >\n <motion.div\n initial={{ rotate: 0 }}\n animate={{ rotate: props['data-expanded'] ? -180 : 0 }}\n transition={{ duration: 0.3 }}\n className='w-min origin-center'\n >\n <CaretDown\n size={16}\n weight=\"bold\"\n className={cn('text-gbm-dark', { 'text-transparent': !showIcon })}\n />\n </motion.div>\n </td>\n {children}\n </tr>\n))\nExpandableTableRow.displayName = 'ExpandableTableRow'\n\ntype ExpandableTableRowContentProps =\n React.TdHTMLAttributes<HTMLTableCellElement> & {\n isExpanded: boolean\n }\n\nconst ExpandableTableRowContent = React.forwardRef<\n HTMLTableCellElement,\n ExpandableTableRowContentProps\n>(({ className, isExpanded, ...props }, ref) => (\n <AnimatePresence initial={false}>\n {isExpanded && (\n <motion.tr\n key=\"expandable-row\"\n className={cn('border-y', className)}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n transition={{ duration: 0.2 }}\n >\n <td colSpan={props.colSpan}>\n <motion.div\n initial={{ height: 0, opacity: 0 }}\n animate={{ height: 'auto', opacity: 1 }}\n exit={{ height: 0, opacity: 0 }}\n transition={{\n height: { duration: 0.3, ease: 'linear' },\n opacity: { duration: 0.2 },\n }}\n className=\"overflow-hidden\"\n >\n <div ref={ref}>{props.children}</div>\n </motion.div>\n </td>\n </motion.tr>\n )}\n </AnimatePresence>\n))\nExpandableTableRowContent.displayName = 'ExpandableTableRowContent'\n\nexport type {\n ExpandableTableRowWrapperProps,\n ExpandableTableRowProps,\n ExpandableTableRowContentProps,\n}\nexport { ExpandableTableRowWrapper, ExpandableTableRow }\n"],"names":["__webpack_require__","e","Object","Symbol","ExpandableTableRowWrapper","React","children","contentColSpan","isExpanded","onToggleExpand","internalIsExpanded","setInternalIsExpanded","useState","Row","Content","expanded","undefined","sumOfColspanAndIconColumn","Slot","prev","ExpandableTableRowContent","ExpandableTableRow","className","showIcon","props","ref","cn","motion","CaretDown","AnimatePresence"],"mappings":"+PACAA,CAAAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,+nBCkBMG,0BAA4BC,yBAAAA,UAAgB,CAGhD,CAAC,CAAEC,SAAAA,CAAQ,CAAEC,eAAAA,CAAc,CAAEC,WAAAA,CAAU,CAAEC,eAAAA,CAAc,CAAE,IACzD,GAAM,CAACC,EAAoBC,EAAsB,CAAGC,AAAAA,GAAAA,+BAAAA,QAAAA,AAAAA,EAAS,IACvD,CAACC,EAAKC,EAAQ,CAAGR,EAEjBS,EAAWP,AAAeQ,SAAfR,EAA2BA,EAAaE,EASnDO,EAA4BV,EAAiB,EAEnD,MACE,2E,UACE,oCAACW,2BAAAA,IAAIA,CAAAA,CAAC,QAZW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QAAS,CAAE,EACtB,QAAS,CAAE,QAAS,CAAE,EACtB,KAAM,CAAE,QAAS,CAAE,EACnB,WAAY,CAAE,SAAU,EAAI,E,SAE5B,oCAAC,MAAG,QAASE,EAAM,OAAO,C,SACxB,oCAACG,uCAAAA,MAAAA,CAAAA,GAAU,EACT,QAAS,CAAE,OAAQ,EAAG,QAAS,CAAE,EACjC,QAAS,CAAE,OAAQ,OAAQ,QAAS,CAAE,EACtC,KAAM,CAAE,OAAQ,EAAG,QAAS,CAAE,EAC9B,WAAY,CACV,OAAQ,CAAE,SAAU,GAAK,KAAM,QAAS,EACxC,QAAS,CAAE,SAAU,EAAI,CAC3B,EACA,UAAU,kB,SAEV,oCAAC,OAAI,IAAKF,E,SAAMD,EAAM,QAAQ,A,QAlB9B,iB,6BAyBZJ,0BAA0B,WAAW,CAAG,4B"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\table.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/table.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Table\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Table({ className, ...props }: ComponentProps<'table'>): JSX.Element {\r\n return (\r\n <div className=\"overflow-hidden rounded-md border\">\r\n <div\r\n className=\"relative w-full overflow-auto\"\r\n data-slot=\"table-container\"\r\n >\r\n <table\r\n className={cn('w-full caption-bottom text-sm', className)}\r\n data-slot=\"table\"\r\n {...props}\r\n />\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableHeader({\r\n className,\r\n ...props\r\n}: ComponentProps<'thead'>): JSX.Element {\r\n return (\r\n <thead\r\n className={cn(\r\n 'header *:border-b *:has-aria-expanded:bg-transparent',\r\n className\r\n )}\r\n data-slot=\"table-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableBody({\r\n className,\r\n ...props\r\n}: ComponentProps<'tbody'>): JSX.Element {\r\n return (\r\n <tbody\r\n className={cn('*:last-child:border-0', className)}\r\n data-slot=\"table-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableFooter({\r\n className,\r\n ...props\r\n}: ComponentProps<'tfoot'>): JSX.Element {\r\n return (\r\n <tfoot\r\n className={cn(\r\n 'bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent',\r\n className\r\n )}\r\n data-slot=\"table-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableRow\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableRow({ className, ...props }: ComponentProps<'tr'>): JSX.Element {\r\n return (\r\n <tr\r\n className={cn(\r\n 'border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100',\r\n className\r\n )}\r\n data-slot=\"table-row\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableHead\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableHead({ className, ...props }: ComponentProps<'th'>): JSX.Element {\r\n return (\r\n <th\r\n className={cn(\r\n 'h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-gbm-dark [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\r\n className\r\n )}\r\n data-slot=\"table-head\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableCell\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableCell({ className, ...props }: ComponentProps<'td'>): JSX.Element {\r\n return (\r\n <td\r\n className={cn(\r\n 'whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\r\n className\r\n )}\r\n data-slot=\"table-cell\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TableCaption\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TableCaption({\r\n className,\r\n ...props\r\n}: ComponentProps<'caption'>): JSX.Element {\r\n return (\r\n <caption\r\n className={cn('mt-4 text-gray-400 text-sm', className)}\r\n data-slot=\"table-caption\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Table,\r\n TableHeader,\r\n TableBody,\r\n TableFooter,\r\n TableHead,\r\n TableRow,\r\n TableCell,\r\n TableCaption,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","Table","className","props","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CA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CAMA,SAASK,SAAS,CAAEN,UAAAA,CAAS,CAAE,GAAGC,EAA6B,EAC7D,MACE,oCAAC,MACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mHACAF,GAEF,YAAU,YACT,GAAGC,CAAK,A,EAGf,CAMA,SAASM,UAAU,CAAEP,UAAAA,CAAS,CAAE,GAAGC,EAA6B,EAC9D,MACE,oCAAC,MACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mJACAF,GAEF,YAAU,aACT,GAAGC,CAAK,A,EAGf,CAMA,SAASO,UAAU,CAAER,UAAAA,CAAS,CAAE,GAAGC,EAA6B,EAC9D,MACE,oCAAC,MACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,yGACAF,GAEF,YAAU,aACT,GAAGC,CAAK,A,EAGf,CAMA,SAASQ,aAAa,CACpBT,UAAAA,CAAS,CACT,GAAGC,EACuB,EAC1B,MACE,oCAAC,WACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,6BAA8BF,GAC5C,YAAU,gBACT,GAAGC,CAAK,A,EAGf,C"}
1
+ {"version":3,"file":"components/table.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/table.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { ComponentProps, JSX } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\nfunction Table({ className, ...props }: ComponentProps<'table'>): JSX.Element {\n return (\n <div className=\"overflow-hidden rounded-md border\">\n <div\n className=\"relative w-full overflow-auto\"\n data-slot=\"table-container\"\n >\n <table\n className={cn('w-full caption-bottom text-sm', className)}\n data-slot=\"table\"\n {...props}\n />\n </div>\n </div>\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\nfunction TableHeader({\n className,\n ...props\n}: ComponentProps<'thead'>): JSX.Element {\n return (\n <thead\n className={cn(\n 'header *:border-b *:has-aria-expanded:bg-transparent',\n className\n )}\n data-slot=\"table-header\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\nfunction TableBody({\n className,\n ...props\n}: ComponentProps<'tbody'>): JSX.Element {\n return (\n <tbody\n className={cn('*:last-child:border-0', className)}\n data-slot=\"table-body\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\nfunction TableFooter({\n className,\n ...props\n}: ComponentProps<'tfoot'>): JSX.Element {\n return (\n <tfoot\n className={cn(\n 'bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent',\n className\n )}\n data-slot=\"table-footer\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\nfunction TableRow({ className, ...props }: ComponentProps<'tr'>): JSX.Element {\n return (\n <tr\n className={cn(\n 'border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100',\n className\n )}\n data-slot=\"table-row\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\nfunction TableHead({ className, ...props }: ComponentProps<'th'>): JSX.Element {\n return (\n <th\n className={cn(\n 'h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-gbm-dark [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className\n )}\n data-slot=\"table-head\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\nfunction TableCell({ className, ...props }: ComponentProps<'td'>): JSX.Element {\n return (\n <td\n className={cn(\n 'whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className\n )}\n data-slot=\"table-cell\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\nfunction TableCaption({\n className,\n ...props\n}: ComponentProps<'caption'>): JSX.Element {\n return (\n <caption\n className={cn('mt-4 text-gray-400 text-sm', className)}\n data-slot=\"table-caption\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}\n"],"names":["__webpack_require__","e","Object","Symbol","Table","className","props","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,C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S,CAAE,GAAGC,EAA6B,EAC9D,MACE,oCAAC,MACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mJACAF,GAEF,YAAU,aACT,GAAGC,CAAK,A,EAGf,CAMA,SAASO,UAAU,CAAER,UAAAA,CAAS,CAAE,GAAGC,EAA6B,EAC9D,MACE,oCAAC,MACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,yGACAF,GAEF,YAAU,aACT,GAAGC,CAAK,A,EAGf,CAMA,SAASQ,aAAa,CACpBT,UAAAA,CAAS,CACT,GAAGC,EACuB,EAC1B,MACE,oCAAC,WACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,6BAA8BF,GAC5C,YAAU,gBACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/index.ts"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { TabsContent } from './tabs-content'\r\nimport { TabsList } from './tabs-list'\r\nimport { TabsRoot } from './tabs-root'\r\nimport { TabsTrigger } from './tabs-trigger'\r\n\r\nexport const Tabs = {\r\n Root: TabsRoot,\r\n Trigger: TabsTrigger,\r\n List: TabsList,\r\n Content: TabsContent,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","Tabs","TabsRoot","TabsTrigger","TabsList","TabsContent"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,yZCDaG,KAAO,CAClB,KAAMC,uCAAAA,QAAQA,CACd,QAASC,0CAAAA,WAAWA,CACpB,KAAMC,uCAAAA,QAAQA,CACd,QAASC,0CAAAA,WAAWA,AACtB,E"}
1
+ {"version":3,"file":"components/tabs/index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/index.ts"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { TabsContent } from './tabs-content'\nimport { TabsList } from './tabs-list'\nimport { TabsRoot } from './tabs-root'\nimport { TabsTrigger } from './tabs-trigger'\n\nexport const Tabs = {\n Root: TabsRoot,\n Trigger: TabsTrigger,\n List: TabsList,\n Content: TabsContent,\n}\n"],"names":["__webpack_require__","e","Object","Symbol","Tabs","TabsRoot","TabsTrigger","TabsList","TabsContent"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,yZCDaG,KAAO,CAClB,KAAMC,uCAAAA,QAAQA,CACd,QAASC,0CAAAA,WAAWA,CACpB,KAAMC,uCAAAA,QAAQA,CACd,QAASC,0CAAAA,WAAWA,AACtB,E"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-content.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = 'Tabs.Content'\r\n\r\nexport { TabsContent }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,gXCDMG,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mFACAJ,GAED,GAAGC,CAAK,A,6BAGbH,YAAY,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components/tabs/tabs-content.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as TabsPrimitive from '@radix-ui/react-tabs'\nimport * as React from 'react'\n\nimport { cn } from '../../lib/utils'\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ',\n className\n )}\n {...props}\n />\n))\nTabsContent.displayName = 'Tabs.Content'\n\nexport { TabsContent }\n"],"names":["__webpack_require__","e","Object","Symbol","TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,gXCDMG,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mFACAJ,GAED,GAAGC,CAAK,A,6BAGbH,YAAY,WAAW,CAAG,e"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-list.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-list.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsList = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.List>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.List\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex w-full items-center justify-center rounded-md bg-gray-50 p-1 text-gbm-dark',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsList.displayName = 'Tabs.List'\r\n\r\nexport { TabsList }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TabsList","React","className","props","ref","TabsPrimitive","cn"],"mappings":"+PACAA,CAAAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,+bCDMG,SAAWC,yBAAAA,UAAgB,CAG/B,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,IAAkB,EACjB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,yFACAJ,GAED,GAAGC,CAAK,A,6BAGbH,SAAS,WAAW,CAAG,Y"}
1
+ {"version":3,"file":"components/tabs/tabs-list.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-list.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as TabsPrimitive from '@radix-ui/react-tabs'\nimport React from 'react'\n\nimport { cn } from '../../lib/utils'\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'inline-flex w-full items-center justify-center rounded-md bg-gray-50 p-1 text-gbm-dark',\n className\n )}\n {...props}\n />\n))\nTabsList.displayName = 'Tabs.List'\n\nexport { TabsList }\n"],"names":["__webpack_require__","e","Object","Symbol","TabsList","React","className","props","ref","TabsPrimitive","cn"],"mappings":"+PACAA,CAAAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,+bCDMG,SAAWC,yBAAAA,UAAgB,CAG/B,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,IAAkB,EACjB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,yFACAJ,GAED,GAAGC,CAAK,A,6BAGbH,SAAS,WAAW,CAAG,Y"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-root.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-root.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport React, { useContext } from 'react'\r\n\r\ntype tabsVariant = 'primary' | 'secondary'\r\n\r\ntype TabsContext = {\r\n variant?: tabsVariant\r\n}\r\n\r\nconst TabsContext = React.createContext<TabsContext>({\r\n variant: 'primary',\r\n})\r\n\r\nconst useTabsContext = () => {\r\n const context = useContext(TabsContext)\r\n if (!context) {\r\n throw new Error('useTabsContext must be used within a Tabs')\r\n }\r\n\r\n return context\r\n}\r\n\r\nconst TabsRoot = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {\r\n variant?: tabsVariant\r\n }\r\n>(({ variant = 'primary', ...props }, ref) => {\r\n return (\r\n <TabsContext.Provider value={{ variant }}>\r\n <TabsPrimitive.Root ref={ref} {...props} />\r\n </TabsContext.Provider>\r\n )\r\n})\r\nTabsRoot.displayName = 'Tabs.Root'\r\n\r\nexport { TabsRoot, useTabsContext }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TabsContext","React","useTabsContext","context","useContext","Error","TabsRoot","variant","props","ref","TabsPrimitive"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,oaCKA,IAAMG,YAAcC,yBAAAA,aAAmB,CAAc,CACnD,QAAS,SACX,GAEMC,eAAiB,KACrB,IAAMC,EAAUC,GAAAA,+BAAAA,UAAAA,EAAWJ,aAC3B,GAAI,CAACG,EACH,MAAM,MAAU,6CAGlB,OAAOA,CACT,EAEMG,SAAWL,yBAAAA,UAAgB,CAK/B,CAAC,CAAEM,QAAAA,EAAU,SAAS,CAAE,GAAGC,EAAO,CAAEC,IAElC,oCAACT,YAAY,QAAQ,EAAC,MAAO,CAAEO,QAAAA,CAAQ,E,SACrC,oCAACG,2BAAAA,IAAkB,EAAC,IAAKD,EAAM,GAAGD,CAAK,+BAI7CF,SAAS,WAAW,CAAG,Y"}
1
+ {"version":3,"file":"components/tabs/tabs-root.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-root.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\nimport React, { useContext } from 'react'\n\ntype tabsVariant = 'primary' | 'secondary'\n\ntype TabsContext = {\n variant?: tabsVariant\n}\n\nconst TabsContext = React.createContext<TabsContext>({\n variant: 'primary',\n})\n\nconst useTabsContext = () => {\n const context = useContext(TabsContext)\n if (!context) {\n throw new Error('useTabsContext must be used within a Tabs')\n }\n\n return context\n}\n\nconst TabsRoot = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {\n variant?: tabsVariant\n }\n>(({ variant = 'primary', ...props }, ref) => {\n return (\n <TabsContext.Provider value={{ variant }}>\n <TabsPrimitive.Root ref={ref} {...props} />\n </TabsContext.Provider>\n )\n})\nTabsRoot.displayName = 'Tabs.Root'\n\nexport { TabsRoot, useTabsContext }\n"],"names":["__webpack_require__","e","Object","Symbol","TabsContext","React","useTabsContext","context","useContext","Error","TabsRoot","variant","props","ref","TabsPrimitive"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,oaCKA,IAAMG,YAAcC,yBAAAA,aAAmB,CAAc,CACnD,QAAS,SACX,GAEMC,eAAiB,KACrB,IAAMC,EAAUC,GAAAA,+BAAAA,UAAAA,EAAWJ,aAC3B,GAAI,CAACG,EACH,MAAM,MAAU,6CAGlB,OAAOA,CACT,EAEMG,SAAWL,yBAAAA,UAAgB,CAK/B,CAAC,CAAEM,QAAAA,EAAU,SAAS,CAAE,GAAGC,EAAO,CAAEC,IAElC,oCAACT,YAAY,QAAQ,EAAC,MAAO,CAAEO,QAAAA,CAAQ,E,SACrC,oCAACG,2BAAAA,IAAkB,EAAC,IAAKD,EAAM,GAAGD,CAAK,+BAI7CF,SAAS,WAAW,CAAG,Y"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-trigger.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\nimport { useTabsContext } from './tabs-root'\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => {\r\n const { variant } = useTabsContext()\r\n\r\n return (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\r\n {\r\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTabsTrigger.displayName = 'Tabs.Trigger'\r\n\r\nexport { TabsTrigger }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,kbCEMG,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,uCAAAA,cAAAA,IAEpB,MACE,oCAACC,2BAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,0BAAAA,EAAAA,EACT,6XACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,G,yBACAH,YAAY,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components/tabs/tabs-trigger.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\nimport * as React from 'react'\n\nimport { cn } from '../../lib/utils'\nimport { useTabsContext } from './tabs-root'\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => {\n const { variant } = useTabsContext()\n\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\n {\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\n },\n className\n )}\n {...props}\n />\n )\n})\nTabsTrigger.displayName = 'Tabs.Trigger'\n\nexport { TabsTrigger }\n"],"names":["__webpack_require__","e","Object","Symbol","TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,kbCEMG,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,uCAAAA,cAAAA,IAEpB,MACE,oCAACC,2BAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,0BAAAA,EAAAA,EACT,6XACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,G,yBACAH,YAAY,WAAW,CAAG,e"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\textarea.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import type { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Textarea\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Textarea({\r\n className,\r\n ...props\r\n}: ComponentProps<'textarea'>): JSX.Element {\r\n return (\r\n <textarea\r\n className={cn(\r\n 'flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40',\r\n className\r\n )}\r\n data-slot=\"textarea\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Textarea }\r\n"],"names":["__webpack_require__","e","Object","Symbol","Textarea","className","props","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,4PCEA,SAASG,SAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACwB,EAC3B,MACE,oCAAC,YACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,oeACAF,GAEF,YAAU,WACT,GAAGC,CAAK,A,EAGf,C"}
1
+ {"version":3,"file":"components/textarea.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import type { ComponentProps, JSX } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\nfunction Textarea({\n className,\n ...props\n}: ComponentProps<'textarea'>): JSX.Element {\n return (\n <textarea\n className={cn(\n 'flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40',\n className\n )}\n data-slot=\"textarea\"\n {...props}\n />\n )\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea }\n"],"names":["__webpack_require__","e","Object","Symbol","Textarea","className","props","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,4PCEA,SAASG,SAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACwB,EAC3B,MACE,oCAAC,YACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,oeACAF,GAEF,YAAU,WACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\time-picker-input.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/time-picker-input.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport React, { ComponentProps } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport {\r\n TimePickerType,\r\n getArrowByType,\r\n getDateByType,\r\n setDateByType,\r\n} from '../utils/time-picker'\r\n\r\nimport { Input } from './input'\r\n\r\nexport interface TimePickerInputProps extends ComponentProps<typeof Input> {\r\n picker: TimePickerType\r\n date: Date | undefined\r\n setDate: (date: Date | undefined) => void\r\n onRightFocus?: () => void\r\n onLeftFocus?: () => void\r\n}\r\n\r\nconst TimePickerInput = React.forwardRef<\r\n HTMLInputElement,\r\n TimePickerInputProps\r\n>(\r\n (\r\n {\r\n className,\r\n type = 'tel',\r\n value,\r\n id,\r\n name,\r\n date = new Date(new Date().setHours(0, 0, 0, 0)),\r\n setDate,\r\n onChange,\r\n onKeyDown,\r\n picker,\r\n onLeftFocus,\r\n onRightFocus,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n const [flag, setFlag] = React.useState<boolean>(false)\r\n\r\n React.useEffect(() => {\r\n if (flag) {\r\n const timer = setTimeout(() => {\r\n setFlag(false)\r\n }, 2000)\r\n\r\n return () => clearTimeout(timer)\r\n }\r\n }, [flag])\r\n\r\n const calculatedValue = React.useMemo(\r\n () => getDateByType(date, picker),\r\n [date, picker]\r\n )\r\n\r\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (e.key === 'Tab') return\r\n e.preventDefault()\r\n if (e.key === 'ArrowRight') onRightFocus?.()\r\n if (e.key === 'ArrowLeft') onLeftFocus?.()\r\n if (['ArrowUp', 'ArrowDown'].includes(e.key)) {\r\n const step = e.key === 'ArrowUp' ? 1 : -1\r\n const newValue = getArrowByType(calculatedValue, step, picker)\r\n if (flag) setFlag(false)\r\n const tempDate = new Date(date)\r\n setDate(setDateByType(tempDate, newValue, picker))\r\n }\r\n if (e.key >= '0' && e.key <= '9') {\r\n const newValue = !flag\r\n ? '0' + e.key\r\n : calculatedValue.slice(1, 2) + e.key\r\n if (flag) onRightFocus?.()\r\n setFlag(prev => !prev)\r\n const tempDate = new Date(date)\r\n setDate(setDateByType(tempDate, newValue, picker))\r\n }\r\n }\r\n\r\n return (\r\n <Input\r\n ref={ref}\r\n id={id || picker}\r\n name={name || picker}\r\n className={cn(\r\n 'w-[52px] text-center font-mono tabular-nums caret-transparent [&::-webkit-inner-spin-button]:appearance-none',\r\n className\r\n )}\r\n value={value || calculatedValue}\r\n onChange={e => {\r\n e.preventDefault()\r\n onChange?.(e)\r\n }}\r\n type={type}\r\n inputMode=\"decimal\"\r\n onKeyDown={e => {\r\n onKeyDown?.(e)\r\n handleKeyDown(e)\r\n }}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\n\r\nTimePickerInput.displayName = 'TimePickerInput'\r\n\r\nexport { TimePickerInput }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TimePickerInput","React","className","type","value","id","name","date","Date","setDate","onChange","onKeyDown","picker","onLeftFocus","onRightFocus","props","ref","flag","setFlag","timer","setTimeout","clearTimeout","calculatedValue","getDateByType","handleKeyDown","step","newValue","getArrowByType","tempDate","setDateByType","prev","Input","cn"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,6gBCgBMG,gBAAkBC,yBAAAA,UAAgB,CAItC,CACE,CACEC,UAAAA,CAAS,CACTC,KAAAA,EAAO,KAAK,CACZ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EXoB,GAAMH,MACVI,EAAQY,GAAQ,CAACA,GACjB,IAAMF,EAAW,IAAIpB,KAAKD,GAC1BE,EAAQoB,GAAAA,gCAAAA,aAAAA,EAAcD,EAAUF,EAAUd,GAC5C,EACF,EAEA,MACE,oCAACmB,mCAAAA,KAAKA,CAAAA,CACJ,IAAKf,EACL,GAAIX,GAAMO,EACV,KAAMN,GAAQM,EACd,UAAWoB,GAAAA,0BAAAA,EAAAA,EACT,+GACA9B,GAEF,MAAOE,GAASkB,EAChB,SAAUzB,IACRA,EAAE,cAAc,GAChBa,IAAWb,EACb,EACA,KAAMM,EACN,UAAU,UACV,UAAWN,IACTc,IAAYd,GACZ2B,EAAc3B,EAChB,EACC,GAAGkB,CAAK,EAGf,G,yBAGFf,gBAAgB,WAAW,CAAG,kB"}
1
+ {"version":3,"file":"components/time-picker-input.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/time-picker-input.tsx"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport React, { ComponentProps } from 'react'\n\nimport { cn } from '../lib/utils'\nimport {\n TimePickerType,\n getArrowByType,\n getDateByType,\n setDateByType,\n} from '../utils/time-picker'\n\nimport { Input } from './input'\n\nexport interface TimePickerInputProps extends ComponentProps<typeof Input> {\n picker: TimePickerType\n date: Date | undefined\n setDate: (date: Date | undefined) => void\n onRightFocus?: () => void\n onLeftFocus?: () => void\n}\n\nconst TimePickerInput = React.forwardRef<\n HTMLInputElement,\n TimePickerInputProps\n>(\n (\n {\n className,\n type = 'tel',\n value,\n id,\n name,\n date = new Date(new Date().setHours(0, 0, 0, 0)),\n setDate,\n onChange,\n onKeyDown,\n picker,\n onLeftFocus,\n onRightFocus,\n ...props\n },\n ref\n ) => {\n const [flag, setFlag] = React.useState<boolean>(false)\n\n React.useEffect(() => {\n if (flag) {\n const timer = setTimeout(() => {\n setFlag(false)\n }, 2000)\n\n return () => clearTimeout(timer)\n }\n }, [flag])\n\n const calculatedValue = React.useMemo(\n () => getDateByType(date, picker),\n [date, picker]\n )\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Tab') return\n e.preventDefault()\n if (e.key === 'ArrowRight') onRightFocus?.()\n if (e.key === 'ArrowLeft') onLeftFocus?.()\n if (['ArrowUp', 'ArrowDown'].includes(e.key)) {\n const step = e.key === 'ArrowUp' ? 1 : -1\n const newValue = getArrowByType(calculatedValue, step, picker)\n if (flag) setFlag(false)\n const tempDate = new Date(date)\n setDate(setDateByType(tempDate, newValue, picker))\n }\n if (e.key >= '0' && e.key <= '9') {\n const newValue = !flag\n ? '0' + e.key\n : calculatedValue.slice(1, 2) + e.key\n if (flag) onRightFocus?.()\n setFlag(prev => !prev)\n const tempDate = new Date(date)\n setDate(setDateByType(tempDate, newValue, picker))\n }\n }\n\n return (\n <Input\n ref={ref}\n id={id || picker}\n name={name || picker}\n className={cn(\n 'w-[52px] text-center font-mono tabular-nums caret-transparent [&::-webkit-inner-spin-button]:appearance-none',\n className\n )}\n value={value || calculatedValue}\n onChange={e => {\n e.preventDefault()\n onChange?.(e)\n }}\n type={type}\n inputMode=\"decimal\"\n onKeyDown={e => {\n onKeyDown?.(e)\n handleKeyDown(e)\n }}\n {...props}\n />\n )\n }\n)\n\nTimePickerInput.displayName = 'TimePickerInput'\n\nexport { TimePickerInput }\n"],"names":["__webpack_require__","e","Object","Symbol","TimePickerInput","React","className","type","value","id","name","date","Date","setDate","onChange","onKeyDown","picker","onLeftFocus","onRightFocus","props","ref","flag","setFlag","timer","setTimeout","clearTimeout","calculatedValue","getDateByType","handleKeyDown","step","newValue","getArrowByType","tempDate","setDateByType","prev","Input","cn"],"mappings":";+PACAA,CAAAA,oBAAoB,CAAC,CAAG,IACvB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,6gBCgBMG,gBAAkBC,yBAAAA,UAAgB,CAItC,CACE,CACEC,UAAAA,CAAS,CACTC,KAAAA,EAAO,KAAK,CACZC,MAAAA,CAAK,CACLC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AAQY,GAAQ,CAACA,GACjB,IAAMF,EAAW,IAAIpB,KAAKD,GAC1BE,EAAQoB,GAAAA,gCAAAA,aAAAA,EAAcD,EAAUF,EAAUd,GAC5C,EACF,EAEA,MACE,oCAACmB,mCAAAA,KAAKA,CAAAA,CACJ,IAAKf,EACL,GAAIX,GAAMO,EACV,KAAMN,GAAQM,EACd,UAAWoB,GAAAA,0BAAAA,EAAAA,EACT,+GACA9B,GAEF,MAAOE,GAASkB,EAChB,SAAUzB,IACRA,EAAE,cAAc,GAChBa,IAAWb,EACb,EACA,KAAMM,EACN,UAAU,UACV,UAAWN,IACTc,IAAYd,GACZ2B,EAAc3B,EAChB,EACC,GAAGkB,CAAK,EAGf,G,yBAGFf,gBAAgB,WAAW,CAAG,kB"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\time-picker.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/time-picker.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport { Clock } from '@phosphor-icons/react'\r\nimport { useRef } from 'react'\r\n\r\nimport { Label } from './label'\r\nimport { TimePickerInput } from './time-picker-input'\r\n\r\ninterface TimePickerProps {\r\n date: Date | undefined\r\n defaultValue?: Date\r\n onTimeChange: (date: Date | undefined) => void\r\n}\r\n\r\nexport function TimePicker({\r\n date,\r\n defaultValue,\r\n onTimeChange,\r\n}: TimePickerProps) {\r\n const minuteRef = useRef<HTMLInputElement>(null)\r\n const hourRef = useRef<HTMLInputElement>(null)\r\n const secondRef = useRef<HTMLInputElement>(null)\r\n\r\n return (\r\n <div className=\"flex items-end gap-2\">\r\n <div className=\"grid gap-1 text-center\">\r\n <Label htmlFor=\"hours\" className=\"text-xs\">\r\n Hours\r\n </Label>\r\n <TimePickerInput\r\n picker=\"hours\"\r\n date={date ?? defaultValue}\r\n setDate={onTimeChange}\r\n ref={hourRef}\r\n onRightFocus={() => minuteRef.current?.focus()}\r\n />\r\n </div>\r\n\r\n <div className=\"grid gap-1 text-center\">\r\n <Label htmlFor=\"minutes\" className=\"text-xs\">\r\n Minutes\r\n </Label>\r\n <TimePickerInput\r\n picker=\"minutes\"\r\n date={date ?? defaultValue}\r\n setDate={onTimeChange}\r\n ref={minuteRef}\r\n onLeftFocus={() => hourRef.current?.focus()}\r\n onRightFocus={() => secondRef.current?.focus()}\r\n />\r\n </div>\r\n\r\n <div className=\"flex h-12 items-center\">\r\n <Clock size={16} className=\"ml-2\" />\r\n </div>\r\n </div>\r\n )\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","TimePicker","date","defaultValue","onTimeChange","minuteRef","useRef","hourRef","secondRef","Label","TimePickerInput","Clock"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,6bCQO,SAASG,WAAW,CACzBC,KAAAA,CAAI,CACJC,aAAAA,CAAY,CACZC,aAAAA,CAAY,CACI,EAChB,IAAMC,EAAYC,GAAAA,+BAAAA,MAAAA,EAAyB,MACrCC,EAAUD,GAAAA,+BAAAA,MAAAA,EAAyB,MACnCE,EAAYF,GAAAA,+BAAAA,MAAAA,EAAyB,MAE3C,MACE,qCAAC,OAAI,UAAU,uB,UACb,qCAAC,OAAI,UAAU,yB,UACb,oCAACG,mCAAAA,KAAKA,CAAAA,CAAC,QAAQ,QAAQ,UAAU,U,SAAU,O,GAG3C,oCAACC,+CAAAA,eAAeA,CAAAA,CACd,OAAO,QACP,KAAMR,GAAQC,EACd,QAASC,EACT,IAAKG,EACL,aAAc,IAAMF,EAAU,OAAO,EAAE,O,MAI3C,qCAAC,OAAI,UAAU,yB,UACb,oCAACI,mCAAAA,KAAKA,CAAAA,CAAC,QAAQ,UAAU,UAAU,U,SAAU,S,GAG7C,oCAACC,+CAAAA,eAAeA,CAAAA,CACd,OAAO,UACP,KAAMR,GAAQC,EACd,QAASC,EACT,IAAKC,EACL,YAAa,IAAME,EAAQ,OAAO,EAAE,QACpC,aAAc,IAAMC,EAAU,OAAO,EAAE,O,MAI3C,oCAAC,OAAI,UAAU,yB,SACb,oCAACG,sBAAAA,KAAKA,CAAAA,CAAC,KAAM,GAAI,UAAU,M,OAInC,C"}
1
+ {"version":3,"file":"components/time-picker.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/time-picker.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport { Clock } from '@phosphor-icons/react'\nimport { useRef } from 'react'\n\nimport { Label } from './label'\nimport { TimePickerInput } from './time-picker-input'\n\ninterface TimePickerProps {\n date: Date | undefined\n defaultValue?: Date\n onTimeChange: (date: Date | undefined) => void\n}\n\nexport function TimePicker({\n date,\n defaultValue,\n onTimeChange,\n}: TimePickerProps) {\n const minuteRef = useRef<HTMLInputElement>(null)\n const hourRef = useRef<HTMLInputElement>(null)\n const secondRef = useRef<HTMLInputElement>(null)\n\n return (\n <div className=\"flex items-end gap-2\">\n <div className=\"grid gap-1 text-center\">\n <Label htmlFor=\"hours\" className=\"text-xs\">\n Hours\n </Label>\n <TimePickerInput\n picker=\"hours\"\n date={date ?? defaultValue}\n setDate={onTimeChange}\n ref={hourRef}\n onRightFocus={() => minuteRef.current?.focus()}\n />\n </div>\n\n <div className=\"grid gap-1 text-center\">\n <Label htmlFor=\"minutes\" className=\"text-xs\">\n Minutes\n </Label>\n <TimePickerInput\n picker=\"minutes\"\n date={date ?? defaultValue}\n setDate={onTimeChange}\n ref={minuteRef}\n onLeftFocus={() => hourRef.current?.focus()}\n onRightFocus={() => secondRef.current?.focus()}\n />\n </div>\n\n <div className=\"flex h-12 items-center\">\n <Clock size={16} className=\"ml-2\" />\n </div>\n </div>\n )\n}\n"],"names":["__webpack_require__","e","Object","Symbol","TimePicker","date","defaultValue","onTimeChange","minuteRef","useRef","hourRef","secondRef","Label","TimePickerInput","Clock"],"mappings":";+P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QACpC,aAAc,IAAMC,EAAU,OAAO,EAAE,O,MAI3C,oCAAC,OAAI,UAAU,yB,SACb,oCAACG,sBAAAA,KAAKA,CAAAA,CAAC,KAAM,GAAI,UAAU,M,OAInC,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\title.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Slot } from '@radix-ui/react-slot'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Title\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Title({\r\n asChild,\r\n className,\r\n ...props\r\n}: ComponentProps<'h1'> & {\r\n asChild?: boolean\r\n}): JSX.Element {\r\n const Comp = asChild ? Slot : 'h1'\r\n\r\n return (\r\n <Comp\r\n className={cn(\r\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\r\n className\r\n )}\r\n data-slot=\"title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport { Title }\r\n"],"names":["__webpack_require__","e","Object","Symbol","Title","asChild","className","props","Comp","Slot","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,iTCGA,SAASG,MAAM,CACbC,QAAAA,CAAO,CACPC,UAAAA,CAAS,CACT,GAAGC,EAGJ,EACC,IAAMC,EAAOH,EAAUI,2BAAAA,IAAIA,CAAG,KAE9B,MACE,oCAACD,EAAAA,CACC,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,wDACAJ,GAEF,YAAU,QACT,GAAGC,CAAK,A,EAGf,C"}
1
+ {"version":3,"file":"components/title.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Slot } from '@radix-ui/react-slot'\nimport { ComponentProps, JSX } from 'react'\n\nimport { cn } from '../lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: Title\n * -------------------------------------------------------------------------- */\n\nfunction Title({\n asChild,\n className,\n ...props\n}: ComponentProps<'h1'> & {\n asChild?: boolean\n}): JSX.Element {\n const Comp = asChild ? Slot : 'h1'\n\n return (\n <Comp\n className={cn(\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\n className\n )}\n data-slot=\"title\"\n {...props}\n />\n )\n}\n\nexport { Title }\n"],"names":["__webpack_require__","e","Object","Symbol","Title","asChild","className","props","Comp","Slot","cn"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,iTCGA,SAASG,MAAM,CACbC,QAAAA,CAAO,CACPC,UAAAA,CAAS,CACT,GAAGC,EAGJ,EACC,IAAMC,EAAOH,EAAUI,2BAAAA,IAAIA,CAAG,KAE9B,MACE,oCAACD,EAAAA,CACC,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,wDACAJ,GAEF,YAAU,QACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tokens-grid.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tokens-grid.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","interface TokensGridProps {\r\n tokens: Record<string, string>\r\n hasRemValue?: boolean\r\n}\r\n\r\nexport function TokensGrid({ tokens, hasRemValue = false }: TokensGridProps) {\r\n return (\r\n <table className=\"w-full border-collapse [&>tbody>tr>td]:px-8 [&>tbody>tr>td]:py-3 [&>tbody>tr>td]:text-[#2F343C] [&>thead>tr>th]:px-8 [&>thead>tr>th]:py-3 [&>thead>tr>th]:text-left\">\r\n <thead>\r\n <tr>\r\n <th>Name</th>\r\n <th>Value</th>\r\n {hasRemValue && <th>Pixels</th>}\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {Object.entries(tokens).map(([key, value]) => {\r\n return (\r\n <tr key={key}>\r\n <td>{key}</td>\r\n <td>{value}</td>\r\n {hasRemValue && (\r\n <td>{Number(value.replace('rem', '')) * 16}px</td>\r\n )}\r\n </tr>\r\n )\r\n })}\r\n </tbody>\r\n </table>\r\n )\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","TokensGrid","tokens","hasRemValue","key","value","Number"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,0MCDO,SAASG,WAAW,CAAEC,OAAAA,CAAM,CAAEC,YAAAA,EAAc,EAAK,CAAmB,EACzE,MACE,qCAAC,SAAM,UAAU,sK,UACf,oCAAC,S,SACC,qCAAC,M,UACC,oCAAC,M,SAAG,M,GACJ,oCAAC,M,SAAG,O,GACHA,GAAe,oCAAC,M,SAAG,Q,QAGxB,oCAAC,S,SACEJ,OAAO,OAAO,CAACG,GAAQ,GAAG,CAAC,CAAC,CAACE,EAAKC,EAAM,GAErC,qCAAC,M,UACC,oCAAC,M,SAAID,C,GACL,oCAAC,M,SAAIC,C,GACJF,GACC,qCAAC,M,UAAIG,AAAmC,GAAnCA,OAAOD,EAAM,OAAO,CAAC,MAAO,KAAU,K,KAJtCD,G,KAYrB,C"}
1
+ {"version":3,"file":"components/tokens-grid.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tokens-grid.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","interface TokensGridProps {\n tokens: Record<string, string>\n hasRemValue?: boolean\n}\n\nexport function TokensGrid({ tokens, hasRemValue = false }: TokensGridProps) {\n return (\n <table className=\"w-full border-collapse [&>tbody>tr>td]:px-8 [&>tbody>tr>td]:py-3 [&>tbody>tr>td]:text-[#2F343C] [&>thead>tr>th]:px-8 [&>thead>tr>th]:py-3 [&>thead>tr>th]:text-left\">\n <thead>\n <tr>\n <th>Name</th>\n <th>Value</th>\n {hasRemValue && <th>Pixels</th>}\n </tr>\n </thead>\n <tbody>\n {Object.entries(tokens).map(([key, value]) => {\n return (\n <tr key={key}>\n <td>{key}</td>\n <td>{value}</td>\n {hasRemValue && (\n <td>{Number(value.replace('rem', '')) * 16}px</td>\n )}\n </tr>\n )\n })}\n </tbody>\n </table>\n )\n}\n"],"names":["__webpack_require__","e","Object","Symbol","TokensGrid","tokens","hasRemValue","key","value","Number"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,0MCDO,SAASG,WAAW,CAAEC,OAAAA,CAAM,CAAEC,YAAAA,EAAc,EAAK,CAAmB,EACzE,MACE,qCAAC,SAAM,UAAU,sK,UACf,oCAAC,S,SACC,qCAAC,M,UACC,oCAAC,M,SAAG,M,GACJ,oCAAC,M,SAAG,O,GACHA,GAAe,oCAAC,M,SAAG,Q,QAGxB,oCAAC,S,SACEJ,OAAO,OAAO,CAACG,GAAQ,GAAG,CAAC,CAAC,CAACE,EAAKC,EAAM,GAErC,qCAAC,M,UACC,oCAAC,M,SAAID,C,GACL,oCAAC,M,SAAIC,C,GACJF,GACC,qCAAC,M,UAAIG,AAAmC,GAAnCA,OAAOD,EAAM,OAAO,CAAC,MAAO,KAAU,K,KAJtCD,G,KAYrB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tooltip.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipProvider\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipProvider({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\r\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Tooltip\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Tooltip({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\r\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipTrigger({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\r\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipContent({\r\n className,\r\n children,\r\n sideOffset = 4,\r\n variant = 'primary',\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Content> & {\r\n variant?: 'primary' | 'secondary'\r\n}): JSX.Element {\r\n return (\r\n <TooltipPrimitive.Portal>\r\n <TooltipPrimitive.Content\r\n className={cn(\r\n 'data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in',\r\n 'max-w-(--radix-tooltip-content-available-width)',\r\n {\r\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\r\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n collisionPadding={8}\r\n data-slot=\"tooltip-content\"\r\n sideOffset={sideOffset}\r\n {...props}\r\n >\r\n {children}\r\n </TooltipPrimitive.Content>\r\n </TooltipPrimitive.Portal>\r\n )\r\n}\r\n\r\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\r\n"],"names":["__webpack_require__","e","Object","Symbol","TooltipProvider","props","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","variant","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,maCKA,SAASG,gBAAgB,CACvB,GAAGC,EAC8C,EACjD,MAAO,oCAACC,8BAAAA,QAAyB,EAAC,YAAU,mBAAoB,GAAGD,CAAK,EAC1E,CAMA,SAASE,QAAQ,CACf,GAAGF,EAC0C,EAC7C,MAAO,oCAACC,8BAAAA,IAAqB,EAAC,YAAU,UAAW,GAAGD,CAAK,EAC7D,CAMA,SAASG,eAAe,CACtB,GAAGH,EAC6C,EAChD,MAAO,oCAACC,8BAAAA,OAAwB,EAAC,YAAU,kBAAmB,GAAGD,CAAK,EACxE,CAMA,SAASI,eAAe,CACtBC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,WAAAA,EAAa,CAAC,CACdC,QAAAA,EAAU,SAAS,CACnB,GAAGR,EAGJ,EACC,MACE,oCAACC,8BAAAA,MAAuB,E,SACtB,oCAACA,8BAAAA,OAAwB,EACvB,UAAWQ,GAAAA,0BAAAA,EAAAA,EACT,6vBACA,kDACA,CACE,uCAAwCD,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAH,GAEF,iBAAkB,EAClB,YAAU,kBACV,WAAYE,EACX,GAAGP,CAAK,C,SAERM,C,IAIT,C"}
1
+ {"version":3,"file":"components/tooltip.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\n\nimport { ComponentProps, JSX } from 'react'\nimport { cn } from '../lib/utils'\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\nfunction TooltipProvider({\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\nfunction Tooltip({\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TooltipTrigger({\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\nfunction TooltipContent({\n className,\n children,\n sideOffset = 4,\n variant = 'primary',\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content> & {\n variant?: 'primary' | 'secondary'\n}): JSX.Element {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n className={cn(\n 'data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in',\n 'max-w-(--radix-tooltip-content-available-width)',\n {\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\n },\n className\n )}\n collisionPadding={8}\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n )\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"names":["__webpack_require__","e","Object","Symbol","TooltipProvider","props","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","variant","cn"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,maCKA,SAASG,gBAAgB,CACvB,GAAGC,EAC8C,EACjD,MAAO,oCAACC,8BAAAA,QAAyB,EAAC,YAAU,mBAAoB,GAAGD,CAAK,EAC1E,CAMA,SAASE,QAAQ,CACf,GAAGF,EAC0C,EAC7C,MAAO,oCAACC,8BAAAA,IAAqB,EAAC,YAAU,UAAW,GAAGD,CAAK,EAC7D,CAMA,SAASG,eAAe,CACtB,GAAGH,EAC6C,EAChD,MAAO,oCAACC,8BAAAA,OAAwB,EAAC,YAAU,kBAAmB,GAAGD,CAAK,EACxE,CAMA,SAASI,eAAe,CACtBC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,WAAAA,EAAa,CAAC,CACdC,QAAAA,EAAU,SAAS,CACnB,GAAGR,EAGJ,EACC,MACE,oCAACC,8BAAAA,MAAuB,E,SACtB,oCAACA,8BAAAA,OAAwB,EACvB,UAAWQ,GAAAA,0BAAAA,EAAAA,EACT,6vBACA,kDACA,CACE,uCAAwCD,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAH,GAEF,iBAAkB,EAClB,YAAU,kBACV,WAAYE,EACX,GAAGP,CAAK,C,SAERM,C,IAIT,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks\\use-callback-ref.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/hooks/use-callback-ref.ts"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as React from 'react'\r\n\r\n/**\r\n * @see https://github.com/radix-ui/primitives/blob/main/packages/react/use-callback-ref/src/useCallbackRef.tsx\r\n */\r\n\r\n/**\r\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\r\n * prop or avoid re-executing effects when passed as a dependency\r\n */\r\nfunction useCallbackRef<T extends (...args: never[]) => unknown>(\r\n callback: T | undefined\r\n): T {\r\n const callbackRef = React.useRef(callback)\r\n\r\n React.useEffect(() => {\r\n callbackRef.current = callback\r\n })\r\n\r\n // https://github.com/facebook/react/issues/19240\r\n return React.useMemo(\r\n () => ((...args) => callbackRef.current?.(...args)) as T,\r\n []\r\n )\r\n}\r\n\r\nexport { useCallbackRef }\r\n"],"names":["__webpack_require__","e","Object","Symbol","useCallbackRef","callback","callbackRef","React","args"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,yMCIA,SAASG,eACPC,CAAuB,EAEvB,IAAMC,EAAcC,+BAAAA,MAAY,CAACF,GAOjC,OALAE,+BAAAA,SAAe,CAAC,KACdD,EAAY,OAAO,CAAGD,CACxB,GAGOE,+BAAAA,OAAa,CAClB,IAAO,CAAC,GAAGC,IAASF,EAAY,OAAO,MAAME,GAC7C,EAAE,CAEN,C"}
1
+ {"version":3,"file":"hooks/use-callback-ref.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/hooks/use-callback-ref.ts"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as React from 'react'\n\n/**\n * @see https://github.com/radix-ui/primitives/blob/main/packages/react/use-callback-ref/src/useCallbackRef.tsx\n */\n\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\nfunction useCallbackRef<T extends (...args: never[]) => unknown>(\n callback: T | undefined\n): T {\n const callbackRef = React.useRef(callback)\n\n React.useEffect(() => {\n callbackRef.current = callback\n })\n\n // https://github.com/facebook/react/issues/19240\n return React.useMemo(\n () => ((...args) => callbackRef.current?.(...args)) as T,\n []\n )\n}\n\nexport { useCallbackRef }\n"],"names":["__webpack_require__","e","Object","Symbol","useCallbackRef","callback","callbackRef","React","args"],"mappings":"+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,yMCIA,SAASG,eACPC,CAAuB,EAEvB,IAAMC,EAAcC,+BAAAA,MAAY,CAACF,GAOjC,OALAE,+BAAAA,SAAe,CAAC,KACdD,EAAY,OAAO,CAAGD,CACxB,GAGOE,+BAAAA,OAAa,CAClB,IAAO,CAAC,GAAGC,IAASF,EAAY,OAAO,MAAME,GAC7C,EAAE,CAEN,C"}