@omnifyjp/ui 0.5.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +3 -6
  2. package/dist/chunk-2C2HRGM7.js +51 -0
  3. package/dist/chunk-2C2HRGM7.js.map +1 -0
  4. package/dist/chunk-2TUWDXAC.js +196 -0
  5. package/dist/chunk-2TUWDXAC.js.map +1 -0
  6. package/dist/chunk-34ARZSNP.js +63 -0
  7. package/dist/chunk-34ARZSNP.js.map +1 -0
  8. package/dist/chunk-35DNN46W.js +13 -0
  9. package/dist/chunk-35DNN46W.js.map +1 -0
  10. package/dist/chunk-35U6QG4P.js +116 -0
  11. package/dist/chunk-35U6QG4P.js.map +1 -0
  12. package/dist/chunk-36YYHIJU.js +52 -0
  13. package/dist/chunk-36YYHIJU.js.map +1 -0
  14. package/dist/chunk-3EOHW4QN.js +35 -0
  15. package/dist/chunk-3EOHW4QN.js.map +1 -0
  16. package/dist/chunk-3VU56V66.js +41 -0
  17. package/dist/chunk-3VU56V66.js.map +1 -0
  18. package/dist/chunk-55E7D2HR.js +99 -0
  19. package/dist/chunk-55E7D2HR.js.map +1 -0
  20. package/dist/chunk-67YUL2ZS.js +53 -0
  21. package/dist/chunk-67YUL2ZS.js.map +1 -0
  22. package/dist/chunk-6DIDQ4TB.js +131 -0
  23. package/dist/chunk-6DIDQ4TB.js.map +1 -0
  24. package/dist/chunk-6GWVQB3Q.js +155 -0
  25. package/dist/chunk-6GWVQB3Q.js.map +1 -0
  26. package/dist/chunk-75WZR6HF.js +44 -0
  27. package/dist/chunk-75WZR6HF.js.map +1 -0
  28. package/dist/chunk-7IRLBU2I.js +114 -0
  29. package/dist/chunk-7IRLBU2I.js.map +1 -0
  30. package/dist/chunk-7RMTPT6O.js +99 -0
  31. package/dist/chunk-7RMTPT6O.js.map +1 -0
  32. package/dist/chunk-7XH3MGBR.js +128 -0
  33. package/dist/chunk-7XH3MGBR.js.map +1 -0
  34. package/dist/chunk-A3BB5ZOC.js +77 -0
  35. package/dist/chunk-A3BB5ZOC.js.map +1 -0
  36. package/dist/chunk-BAQWGQJG.js +106 -0
  37. package/dist/chunk-BAQWGQJG.js.map +1 -0
  38. package/dist/chunk-BRSM3SZP.js +46 -0
  39. package/dist/chunk-BRSM3SZP.js.map +1 -0
  40. package/dist/chunk-C34KSTWA.js +43 -0
  41. package/dist/chunk-C34KSTWA.js.map +1 -0
  42. package/dist/chunk-C5NZAOA7.js +54 -0
  43. package/dist/chunk-C5NZAOA7.js.map +1 -0
  44. package/dist/chunk-CUZR4JWM.js +23 -0
  45. package/dist/chunk-CUZR4JWM.js.map +1 -0
  46. package/dist/chunk-DGPY4WP3.js +11 -0
  47. package/dist/chunk-DGPY4WP3.js.map +1 -0
  48. package/dist/chunk-DNCZOUNY.js +239 -0
  49. package/dist/chunk-DNCZOUNY.js.map +1 -0
  50. package/dist/chunk-EWBCV7VA.js +65 -0
  51. package/dist/chunk-EWBCV7VA.js.map +1 -0
  52. package/dist/chunk-F2ZJLKDP.js +119 -0
  53. package/dist/chunk-F2ZJLKDP.js.map +1 -0
  54. package/dist/chunk-FLWMT4DB.js +66 -0
  55. package/dist/chunk-FLWMT4DB.js.map +1 -0
  56. package/dist/chunk-FRKG7JQY.js +48 -0
  57. package/dist/chunk-FRKG7JQY.js.map +1 -0
  58. package/dist/chunk-G7HTZBUR.js +187 -0
  59. package/dist/chunk-G7HTZBUR.js.map +1 -0
  60. package/dist/chunk-HWTW64R5.js +90 -0
  61. package/dist/chunk-HWTW64R5.js.map +1 -0
  62. package/dist/chunk-IAWKX5W4.js +219 -0
  63. package/dist/chunk-IAWKX5W4.js.map +1 -0
  64. package/dist/chunk-INLM7UJC.js +238 -0
  65. package/dist/chunk-INLM7UJC.js.map +1 -0
  66. package/dist/chunk-JAJMM32I.js +18 -0
  67. package/dist/chunk-JAJMM32I.js.map +1 -0
  68. package/dist/chunk-JJSVA3TH.js +61 -0
  69. package/dist/chunk-JJSVA3TH.js.map +1 -0
  70. package/dist/chunk-JLTBUACL.js +121 -0
  71. package/dist/chunk-JLTBUACL.js.map +1 -0
  72. package/dist/chunk-JRU2QX7T.js +38 -0
  73. package/dist/chunk-JRU2QX7T.js.map +1 -0
  74. package/dist/chunk-JXGRW2MR.js +17 -0
  75. package/dist/chunk-JXGRW2MR.js.map +1 -0
  76. package/dist/chunk-KTBOZ4NE.js +93 -0
  77. package/dist/chunk-KTBOZ4NE.js.map +1 -0
  78. package/dist/chunk-LMT327XH.js +56 -0
  79. package/dist/chunk-LMT327XH.js.map +1 -0
  80. package/dist/chunk-LTTNCAAA.js +138 -0
  81. package/dist/chunk-LTTNCAAA.js.map +1 -0
  82. package/dist/chunk-LVZNNIK4.js +111 -0
  83. package/dist/chunk-LVZNNIK4.js.map +1 -0
  84. package/dist/chunk-MJLFJPUG.js +143 -0
  85. package/dist/chunk-MJLFJPUG.js.map +1 -0
  86. package/dist/chunk-MZ2P566X.js +65 -0
  87. package/dist/chunk-MZ2P566X.js.map +1 -0
  88. package/dist/chunk-N47H4MHX.js +41 -0
  89. package/dist/chunk-N47H4MHX.js.map +1 -0
  90. package/dist/chunk-NNJTKHCE.js +160 -0
  91. package/dist/chunk-NNJTKHCE.js.map +1 -0
  92. package/dist/chunk-NPL2R5LD.js +171 -0
  93. package/dist/chunk-NPL2R5LD.js.map +1 -0
  94. package/dist/chunk-NU56GKGM.js +44 -0
  95. package/dist/chunk-NU56GKGM.js.map +1 -0
  96. package/dist/chunk-P3M5TZD2.js +24 -0
  97. package/dist/chunk-P3M5TZD2.js.map +1 -0
  98. package/dist/chunk-PGWNOZDX.js +28 -0
  99. package/dist/chunk-PGWNOZDX.js.map +1 -0
  100. package/dist/chunk-QB3UWRZH.js +92 -0
  101. package/dist/chunk-QB3UWRZH.js.map +1 -0
  102. package/dist/chunk-R2CDE5DO.js +33 -0
  103. package/dist/chunk-R2CDE5DO.js.map +1 -0
  104. package/dist/chunk-RQNZDWY3.js +65 -0
  105. package/dist/chunk-RQNZDWY3.js.map +1 -0
  106. package/dist/chunk-S6PDRGR5.js +109 -0
  107. package/dist/chunk-S6PDRGR5.js.map +1 -0
  108. package/dist/chunk-TGYQ3AKH.js +95 -0
  109. package/dist/chunk-TGYQ3AKH.js.map +1 -0
  110. package/dist/chunk-THQUH6WX.js +81 -0
  111. package/dist/chunk-THQUH6WX.js.map +1 -0
  112. package/dist/chunk-TJMK2KBE.js +112 -0
  113. package/dist/chunk-TJMK2KBE.js.map +1 -0
  114. package/dist/chunk-TTH7TWVX.js +30 -0
  115. package/dist/chunk-TTH7TWVX.js.map +1 -0
  116. package/dist/chunk-USIHM7FV.js +211 -0
  117. package/dist/chunk-USIHM7FV.js.map +1 -0
  118. package/dist/chunk-VVYSAGB3.js +104 -0
  119. package/dist/chunk-VVYSAGB3.js.map +1 -0
  120. package/dist/chunk-WD5KZE25.js +25 -0
  121. package/dist/chunk-WD5KZE25.js.map +1 -0
  122. package/dist/chunk-WL4ZO2H3.js +33 -0
  123. package/dist/chunk-WL4ZO2H3.js.map +1 -0
  124. package/dist/chunk-WRCHR4AK.js +23 -0
  125. package/dist/chunk-WRCHR4AK.js.map +1 -0
  126. package/dist/chunk-WS6E7HBT.js +39 -0
  127. package/dist/chunk-WS6E7HBT.js.map +1 -0
  128. package/dist/chunk-XOJJBNDX.js +33 -0
  129. package/dist/chunk-XOJJBNDX.js.map +1 -0
  130. package/dist/chunk-YBMEQZX7.js +164 -0
  131. package/dist/chunk-YBMEQZX7.js.map +1 -0
  132. package/dist/chunk-Z2QAABLM.js +86 -0
  133. package/dist/chunk-Z2QAABLM.js.map +1 -0
  134. package/dist/chunk-ZHEKDP5X.js +41 -0
  135. package/dist/chunk-ZHEKDP5X.js.map +1 -0
  136. package/dist/chunk-ZPMXRW2A.js +63 -0
  137. package/dist/chunk-ZPMXRW2A.js.map +1 -0
  138. package/dist/chunk-ZYEGBF7G.js +25 -0
  139. package/dist/chunk-ZYEGBF7G.js.map +1 -0
  140. package/dist/components/accordion.d.ts +37 -0
  141. package/dist/components/accordion.js +4 -0
  142. package/dist/components/accordion.js.map +1 -0
  143. package/dist/components/alert-dialog.d.ts +56 -0
  144. package/dist/components/alert-dialog.js +5 -0
  145. package/dist/components/alert-dialog.js.map +1 -0
  146. package/dist/components/alert.d.ts +68 -0
  147. package/dist/components/alert.js +4 -0
  148. package/dist/components/alert.js.map +1 -0
  149. package/dist/components/aspect-ratio.d.ts +23 -0
  150. package/dist/components/aspect-ratio.js +3 -0
  151. package/dist/components/aspect-ratio.js.map +1 -0
  152. package/dist/components/avatar.d.ts +48 -0
  153. package/dist/components/avatar.js +4 -0
  154. package/dist/components/avatar.js.map +1 -0
  155. package/dist/components/badge.d.ts +52 -0
  156. package/dist/components/badge.js +4 -0
  157. package/dist/components/badge.js.map +1 -0
  158. package/dist/components/breadcrumb.d.ts +50 -0
  159. package/dist/components/breadcrumb.js +4 -0
  160. package/dist/components/breadcrumb.js.map +1 -0
  161. package/dist/components/button.d.ts +81 -0
  162. package/dist/components/button.js +4 -0
  163. package/dist/components/button.js.map +1 -0
  164. package/dist/components/calendar-category-badge.d.ts +24 -0
  165. package/dist/components/calendar-category-badge.js +5 -0
  166. package/dist/components/calendar-category-badge.js.map +1 -0
  167. package/dist/components/calendar-event-chip.d.ts +41 -0
  168. package/dist/components/calendar-event-chip.js +4 -0
  169. package/dist/components/calendar-event-chip.js.map +1 -0
  170. package/dist/components/calendar-event-sheet.d.ts +68 -0
  171. package/dist/components/calendar-event-sheet.js +9 -0
  172. package/dist/components/calendar-event-sheet.js.map +1 -0
  173. package/dist/components/calendar-mini.d.ts +65 -0
  174. package/dist/components/calendar-mini.js +6 -0
  175. package/dist/components/calendar-mini.js.map +1 -0
  176. package/dist/components/calendar-toolbar.d.ts +58 -0
  177. package/dist/components/calendar-toolbar.js +7 -0
  178. package/dist/components/calendar-toolbar.js.map +1 -0
  179. package/dist/components/calendar.d.ts +19 -0
  180. package/dist/components/calendar.js +5 -0
  181. package/dist/components/calendar.js.map +1 -0
  182. package/dist/components/card.d.ts +43 -0
  183. package/dist/components/card.js +4 -0
  184. package/dist/components/card.js.map +1 -0
  185. package/dist/components/carousel.d.ts +53 -0
  186. package/dist/components/carousel.js +5 -0
  187. package/dist/components/carousel.js.map +1 -0
  188. package/dist/components/chart.d.ts +125 -0
  189. package/dist/components/chart.js +4 -0
  190. package/dist/components/chart.js.map +1 -0
  191. package/dist/components/checkbox.d.ts +24 -0
  192. package/dist/components/checkbox.js +4 -0
  193. package/dist/components/checkbox.js.map +1 -0
  194. package/dist/components/collapsible.d.ts +28 -0
  195. package/dist/components/collapsible.js +3 -0
  196. package/dist/components/collapsible.js.map +1 -0
  197. package/dist/components/color-picker.d.ts +35 -0
  198. package/dist/components/color-picker.js +7 -0
  199. package/dist/components/color-picker.js.map +1 -0
  200. package/dist/components/combobox.d.ts +98 -0
  201. package/dist/components/combobox.js +8 -0
  202. package/dist/components/combobox.js.map +1 -0
  203. package/dist/components/command.d.ts +63 -0
  204. package/dist/components/command.js +5 -0
  205. package/dist/components/command.js.map +1 -0
  206. package/dist/components/context-menu.d.ts +70 -0
  207. package/dist/components/context-menu.js +4 -0
  208. package/dist/components/context-menu.js.map +1 -0
  209. package/dist/components/date-picker.d.ts +71 -0
  210. package/dist/components/date-picker.js +7 -0
  211. package/dist/components/date-picker.js.map +1 -0
  212. package/dist/components/dialog.d.ts +58 -0
  213. package/dist/components/dialog.js +4 -0
  214. package/dist/components/dialog.js.map +1 -0
  215. package/dist/components/drawer.d.ts +60 -0
  216. package/dist/components/drawer.js +4 -0
  217. package/dist/components/drawer.js.map +1 -0
  218. package/dist/components/dropdown-menu.d.ts +76 -0
  219. package/dist/components/dropdown-menu.js +4 -0
  220. package/dist/components/dropdown-menu.js.map +1 -0
  221. package/dist/components/file-upload.d.ts +44 -0
  222. package/dist/components/file-upload.js +5 -0
  223. package/dist/components/file-upload.js.map +1 -0
  224. package/dist/components/form.d.ts +67 -0
  225. package/dist/components/form.js +5 -0
  226. package/dist/components/form.js.map +1 -0
  227. package/dist/components/hover-card.d.ts +43 -0
  228. package/dist/components/hover-card.js +4 -0
  229. package/dist/components/hover-card.js.map +1 -0
  230. package/dist/components/input-otp.d.ts +38 -0
  231. package/dist/components/input-otp.js +4 -0
  232. package/dist/components/input-otp.js.map +1 -0
  233. package/dist/components/input.d.ts +38 -0
  234. package/dist/components/input.js +4 -0
  235. package/dist/components/input.js.map +1 -0
  236. package/dist/components/label.d.ts +20 -0
  237. package/dist/components/label.js +4 -0
  238. package/dist/components/label.js.map +1 -0
  239. package/dist/components/menubar.d.ts +82 -0
  240. package/dist/components/menubar.js +4 -0
  241. package/dist/components/menubar.js.map +1 -0
  242. package/dist/components/navigation-menu.d.ts +64 -0
  243. package/dist/components/navigation-menu.js +4 -0
  244. package/dist/components/navigation-menu.js.map +1 -0
  245. package/dist/components/pagination.d.ts +59 -0
  246. package/dist/components/pagination.js +5 -0
  247. package/dist/components/pagination.js.map +1 -0
  248. package/dist/components/password-input.d.ts +32 -0
  249. package/dist/components/password-input.js +5 -0
  250. package/dist/components/password-input.js.map +1 -0
  251. package/dist/components/permission-grid.d.ts +67 -0
  252. package/dist/components/permission-grid.js +5 -0
  253. package/dist/components/permission-grid.js.map +1 -0
  254. package/dist/components/popover.d.ts +37 -0
  255. package/dist/components/popover.js +4 -0
  256. package/dist/components/popover.js.map +1 -0
  257. package/dist/components/progress.d.ts +20 -0
  258. package/dist/components/progress.js +4 -0
  259. package/dist/components/progress.js.map +1 -0
  260. package/dist/components/radio-group.d.ts +38 -0
  261. package/dist/components/radio-group.js +4 -0
  262. package/dist/components/radio-group.js.map +1 -0
  263. package/dist/components/rating.d.ts +35 -0
  264. package/dist/components/rating.js +4 -0
  265. package/dist/components/rating.js.map +1 -0
  266. package/dist/components/resizable.d.ts +36 -0
  267. package/dist/components/resizable.js +4 -0
  268. package/dist/components/resizable.js.map +1 -0
  269. package/dist/components/scope-tree.d.ts +78 -0
  270. package/dist/components/scope-tree.js +5 -0
  271. package/dist/components/scope-tree.js.map +1 -0
  272. package/dist/components/scope-type-badge.d.ts +35 -0
  273. package/dist/components/scope-type-badge.js +5 -0
  274. package/dist/components/scope-type-badge.js.map +1 -0
  275. package/dist/components/scroll-area.d.ts +29 -0
  276. package/dist/components/scroll-area.js +4 -0
  277. package/dist/components/scroll-area.js.map +1 -0
  278. package/dist/components/select.d.ts +52 -0
  279. package/dist/components/select.js +4 -0
  280. package/dist/components/select.js.map +1 -0
  281. package/dist/components/separator.d.ts +24 -0
  282. package/dist/components/separator.js +4 -0
  283. package/dist/components/separator.js.map +1 -0
  284. package/dist/components/sheet.d.ts +51 -0
  285. package/dist/components/sheet.js +4 -0
  286. package/dist/components/sheet.js.map +1 -0
  287. package/dist/components/skeleton.d.ts +25 -0
  288. package/dist/components/skeleton.js +4 -0
  289. package/dist/components/skeleton.js.map +1 -0
  290. package/dist/components/slider.d.ts +24 -0
  291. package/dist/components/slider.js +4 -0
  292. package/dist/components/slider.js.map +1 -0
  293. package/dist/components/slug-input.d.ts +50 -0
  294. package/dist/components/slug-input.js +6 -0
  295. package/dist/components/slug-input.js.map +1 -0
  296. package/dist/components/sonner.d.ts +22 -0
  297. package/dist/components/sonner.js +3 -0
  298. package/dist/components/sonner.js.map +1 -0
  299. package/dist/components/stage-type-badge.d.ts +30 -0
  300. package/dist/components/stage-type-badge.js +5 -0
  301. package/dist/components/stage-type-badge.js.map +1 -0
  302. package/dist/components/switch.d.ts +26 -0
  303. package/dist/components/switch.js +4 -0
  304. package/dist/components/switch.js.map +1 -0
  305. package/dist/components/table.d.ts +57 -0
  306. package/dist/components/table.js +4 -0
  307. package/dist/components/table.js.map +1 -0
  308. package/dist/components/tabs.d.ts +39 -0
  309. package/dist/components/tabs.js +4 -0
  310. package/dist/components/tabs.js.map +1 -0
  311. package/dist/components/tag-input.d.ts +40 -0
  312. package/dist/components/tag-input.js +5 -0
  313. package/dist/components/tag-input.js.map +1 -0
  314. package/dist/components/textarea.d.ts +21 -0
  315. package/dist/components/textarea.js +4 -0
  316. package/dist/components/textarea.js.map +1 -0
  317. package/dist/components/time-picker.d.ts +57 -0
  318. package/dist/components/time-picker.js +8 -0
  319. package/dist/components/time-picker.js.map +1 -0
  320. package/dist/components/toggle-group.d.ts +45 -0
  321. package/dist/components/toggle-group.js +5 -0
  322. package/dist/components/toggle-group.js.map +1 -0
  323. package/dist/components/toggle.d.ts +31 -0
  324. package/dist/components/toggle.js +4 -0
  325. package/dist/components/toggle.js.map +1 -0
  326. package/dist/components/tooltip.d.ts +34 -0
  327. package/dist/components/tooltip.js +4 -0
  328. package/dist/components/tooltip.js.map +1 -0
  329. package/dist/components/workflow-category-badge.d.ts +32 -0
  330. package/dist/components/workflow-category-badge.js +5 -0
  331. package/dist/components/workflow-category-badge.js.map +1 -0
  332. package/dist/components/workflow-diagram.d.ts +63 -0
  333. package/dist/components/workflow-diagram.js +5 -0
  334. package/dist/components/workflow-diagram.js.map +1 -0
  335. package/dist/components/workflow-status-badge.d.ts +30 -0
  336. package/dist/components/workflow-status-badge.js +5 -0
  337. package/dist/components/workflow-status-badge.js.map +1 -0
  338. package/dist/components/workflow-stepper.d.ts +52 -0
  339. package/dist/components/workflow-stepper.js +4 -0
  340. package/dist/components/workflow-stepper.js.map +1 -0
  341. package/dist/hooks/use-mobile.d.ts +3 -3
  342. package/dist/hooks/use-mobile.js +1 -1
  343. package/dist/hooks/use-mobile.js.map +1 -1
  344. package/dist/index.d.ts +108 -15
  345. package/dist/index.js +69 -13
  346. package/dist/lib/types.d.ts +84 -1
  347. package/dist/lib/types.js +1 -1
  348. package/dist/lib/types.js.map +1 -1
  349. package/dist/lib/utils.d.ts +5 -1
  350. package/dist/lib/utils.js +1 -1
  351. package/dist/lib/utils.js.map +1 -1
  352. package/package.json +68 -31
  353. package/src/styles/fonts.css +0 -0
  354. package/src/styles/index.css +3 -1
  355. package/src/styles/tailwind.css +4 -0
  356. package/src/styles/theme.css +461 -0
  357. package/dist/chunk-2GN4WIOV.js +0 -240
  358. package/dist/chunk-2GN4WIOV.js.map +0 -1
  359. package/dist/chunk-5BL4VFRJ.js +0 -57
  360. package/dist/chunk-5BL4VFRJ.js.map +0 -1
  361. package/dist/chunk-735JNJJO.js +0 -27
  362. package/dist/chunk-735JNJJO.js.map +0 -1
  363. package/dist/chunk-EJEVW4RO.js +0 -49
  364. package/dist/chunk-EJEVW4RO.js.map +0 -1
  365. package/dist/chunk-FVOQZTHE.js +0 -191
  366. package/dist/chunk-FVOQZTHE.js.map +0 -1
  367. package/dist/chunk-ITXOZ4IR.js +0 -85
  368. package/dist/chunk-ITXOZ4IR.js.map +0 -1
  369. package/dist/chunk-NVPNMQSR.js +0 -30
  370. package/dist/chunk-NVPNMQSR.js.map +0 -1
  371. package/dist/chunk-O25D7DCP.js +0 -72
  372. package/dist/chunk-O25D7DCP.js.map +0 -1
  373. package/dist/chunk-O2ADW2GC.js +0 -224
  374. package/dist/chunk-O2ADW2GC.js.map +0 -1
  375. package/dist/chunk-OY3PSPA5.js +0 -661
  376. package/dist/chunk-OY3PSPA5.js.map +0 -1
  377. package/dist/chunk-UASABUQA.js +0 -39
  378. package/dist/chunk-UASABUQA.js.map +0 -1
  379. package/dist/chunk-UR2QLIS2.js +0 -93
  380. package/dist/chunk-UR2QLIS2.js.map +0 -1
  381. package/dist/chunk-XDXGUPCR.js +0 -123
  382. package/dist/chunk-XDXGUPCR.js.map +0 -1
  383. package/dist/components/AppShell.d.ts +0 -27
  384. package/dist/components/AppShell.js +0 -13
  385. package/dist/components/AppShell.js.map +0 -1
  386. package/dist/components/Header.d.ts +0 -11
  387. package/dist/components/Header.js +0 -9
  388. package/dist/components/Header.js.map +0 -1
  389. package/dist/components/LanguageSelector.d.ts +0 -11
  390. package/dist/components/LanguageSelector.js +0 -5
  391. package/dist/components/LanguageSelector.js.map +0 -1
  392. package/dist/components/OrganizationSelector.d.ts +0 -8
  393. package/dist/components/OrganizationSelector.js +0 -4
  394. package/dist/components/OrganizationSelector.js.map +0 -1
  395. package/dist/components/OrganizationSetupModal.d.ts +0 -5
  396. package/dist/components/OrganizationSetupModal.js +0 -4
  397. package/dist/components/OrganizationSetupModal.js.map +0 -1
  398. package/dist/components/PageContainer.d.ts +0 -105
  399. package/dist/components/PageContainer.js +0 -3
  400. package/dist/components/PageContainer.js.map +0 -1
  401. package/dist/components/ServiceMenu.d.ts +0 -11
  402. package/dist/components/ServiceMenu.js +0 -3
  403. package/dist/components/ServiceMenu.js.map +0 -1
  404. package/dist/components/Sidebar.d.ts +0 -11
  405. package/dist/components/Sidebar.js +0 -5
  406. package/dist/components/Sidebar.js.map +0 -1
  407. package/dist/contexts/LanguageContext.d.ts +0 -17
  408. package/dist/contexts/LanguageContext.js +0 -4
  409. package/dist/contexts/LanguageContext.js.map +0 -1
  410. package/dist/contexts/OrganizationContext.d.ts +0 -28
  411. package/dist/contexts/OrganizationContext.js +0 -3
  412. package/dist/contexts/OrganizationContext.js.map +0 -1
  413. package/dist/contexts/ThemeContext.d.ts +0 -14
  414. package/dist/contexts/ThemeContext.js +0 -3
  415. package/dist/contexts/ThemeContext.js.map +0 -1
  416. package/dist/hooks/useDateFormat.d.ts +0 -28
  417. package/dist/hooks/useDateFormat.js +0 -4
  418. package/dist/hooks/useDateFormat.js.map +0 -1
  419. package/dist/i18n.d.ts +0 -38
  420. package/dist/i18n.js +0 -3
  421. package/dist/i18n.js.map +0 -1
  422. package/dist/types.d.ts +0 -91
  423. package/dist/types.js +0 -3
  424. package/dist/types.js.map +0 -1
@@ -0,0 +1,461 @@
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ :root {
4
+ /* ===================================
5
+ * TYPOGRAPHY TOKENS
6
+ * =================================== */
7
+ --font-size: 16px;
8
+ --font-weight-normal: 400;
9
+ --font-weight-medium: 500;
10
+ --font-weight-semibold: 600;
11
+ --font-weight-bold: 700;
12
+
13
+ /* Font sizes */
14
+ --text-xs: 0.75rem; /* 12px */
15
+ --text-sm: 0.875rem; /* 14px */
16
+ --text-base: 1rem; /* 16px */
17
+ --text-lg: 1.125rem; /* 18px */
18
+ --text-xl: 1.25rem; /* 20px */
19
+ --text-2xl: 1.5rem; /* 24px */
20
+ --text-3xl: 1.875rem; /* 30px */
21
+ --text-4xl: 2.25rem; /* 36px */
22
+
23
+ /* Line heights */
24
+ --leading-none: 1;
25
+ --leading-tight: 1.25;
26
+ --leading-normal: 1.5;
27
+ --leading-relaxed: 1.625;
28
+ --leading-loose: 2;
29
+
30
+ /* ===================================
31
+ * COLOR TOKENS
32
+ * =================================== */
33
+ --background: #ffffff;
34
+ --foreground: oklch(0.145 0 0);
35
+ --card: #ffffff;
36
+ --card-foreground: oklch(0.145 0 0);
37
+ --popover: oklch(1 0 0);
38
+ --popover-foreground: oklch(0.145 0 0);
39
+ --primary: #030213;
40
+ --primary-foreground: oklch(1 0 0);
41
+ --secondary: oklch(0.95 0.0058 264.53);
42
+ --secondary-foreground: #030213;
43
+ --muted: #ececf0;
44
+ --muted-foreground: #717182;
45
+ --accent: #e9ebef;
46
+ --accent-foreground: #030213;
47
+ --destructive: #d4183d;
48
+ --destructive-foreground: #ffffff;
49
+ --border: rgba(0, 0, 0, 0.1);
50
+ --input: transparent;
51
+ --input-background: transparent;
52
+ --switch-background: #cbced4;
53
+ --ring: oklch(0.708 0 0);
54
+
55
+ /* Chart colors */
56
+ --chart-1: oklch(0.646 0.222 41.116);
57
+ --chart-2: oklch(0.6 0.118 184.704);
58
+ --chart-3: oklch(0.398 0.07 227.392);
59
+ --chart-4: oklch(0.828 0.189 84.429);
60
+ --chart-5: oklch(0.769 0.188 70.08);
61
+
62
+ /* Sidebar colors */
63
+ --sidebar: oklch(0.985 0 0);
64
+ --sidebar-foreground: oklch(0.145 0 0);
65
+ --sidebar-primary: #030213;
66
+ --sidebar-primary-foreground: oklch(0.985 0 0);
67
+ --sidebar-accent: oklch(0.97 0 0);
68
+ --sidebar-accent-foreground: oklch(0.205 0 0);
69
+ --sidebar-border: oklch(0.922 0 0);
70
+ --sidebar-ring: oklch(0.708 0 0);
71
+
72
+ /* Semantic colors */
73
+ --success: #10b981;
74
+ --success-foreground: #ffffff;
75
+ --warning: #f59e0b;
76
+ --warning-foreground: #ffffff;
77
+ --info: #3b82f6;
78
+ --info-foreground: #ffffff;
79
+ --error: #ef4444;
80
+ --error-foreground: #ffffff;
81
+
82
+ /* Gray scale palette */
83
+ --gray-50: #f9fafb;
84
+ --gray-100: #f3f4f6;
85
+ --gray-200: #e5e7eb;
86
+ --gray-300: #d1d5db;
87
+ --gray-400: #9ca3af;
88
+ --gray-500: #6b7280;
89
+ --gray-600: #4b5563;
90
+ --gray-700: #374151;
91
+ --gray-800: #1f2937;
92
+ --gray-900: #111827;
93
+
94
+ /* Blue palette (for active states) */
95
+ --blue-50: #eff6ff;
96
+ --blue-100: #dbeafe;
97
+ --blue-500: #3b82f6;
98
+ --blue-600: #2563eb;
99
+ --blue-700: #1d4ed8;
100
+
101
+ /* ===================================
102
+ * SPACING TOKENS
103
+ * =================================== */
104
+ --spacing-0: 0;
105
+ --spacing-1: 0.25rem; /* 4px */
106
+ --spacing-2: 0.5rem; /* 8px */
107
+ --spacing-3: 0.75rem; /* 12px */
108
+ --spacing-4: 1rem; /* 16px */
109
+ --spacing-5: 1.25rem; /* 20px */
110
+ --spacing-6: 1.5rem; /* 24px */
111
+ --spacing-8: 2rem; /* 32px */
112
+ --spacing-10: 2.5rem; /* 40px */
113
+ --spacing-12: 3rem; /* 48px */
114
+ --spacing-16: 4rem; /* 64px */
115
+ --spacing-20: 5rem; /* 80px */
116
+ --spacing-24: 6rem; /* 96px */
117
+
118
+ /* ===================================
119
+ * DENSITY TOKENS — Change these to adjust UI density globally
120
+ * =================================== */
121
+
122
+ /* Headings (used in @layer base) */
123
+ --heading-h1: var(--text-xl); /* was --text-2xl */
124
+ --heading-h2: var(--text-lg); /* was --text-xl */
125
+ --heading-h3: var(--text-base); /* was --text-lg */
126
+ --heading-h4: var(--text-sm); /* was --text-base */
127
+
128
+ /* Page layout */
129
+ --density-page: 1rem; /* 16px — page content padding */
130
+ --density-section: 1rem; /* 16px — gap between sections */
131
+ --density-page-title: 1.25rem; /* 20px — page title font-size */
132
+
133
+ /* Standard element height (btn, input, select, tabs) */
134
+ --density-element-xs: 1.5rem; /* 24px — extra small */
135
+ --density-element-sm: 1.75rem; /* 28px — small */
136
+ --density-element: 2rem; /* 32px — default */
137
+ --density-element-lg: 2.25rem; /* 36px — large */
138
+ --density-element-xl: 2.75rem; /* 44px — extra large (login forms) */
139
+
140
+ /* Card padding */
141
+ --density-card: 1rem; /* 16px — was 1.5rem/24px */
142
+
143
+ /* Dialog */
144
+ --density-dialog: 1.25rem; /* 20px — was 1.5rem/24px */
145
+
146
+ /* Table */
147
+ --density-table-head: 2rem; /* 32px — was 2.5rem/40px */
148
+
149
+ /* Single-component tokens (used via var() directly) */
150
+ --density-popover: 0.75rem; /* 12px */
151
+ --density-sheet: 0.75rem; /* 12px */
152
+ --density-accordion: 0.625rem; /* 10px */
153
+ --density-menu-item-py: 0.25rem; /* 4px */
154
+
155
+ /* ===================================
156
+ * LAYOUT TOKENS
157
+ * =================================== */
158
+ --header-height: 3rem; /* 48px — was 4rem/64px */
159
+ --sidebar-width: 16rem; /* 256px */
160
+ --sidebar-collapsed-width: 4rem; /* 64px */
161
+ --sidebar-transition: 300ms;
162
+ --content-sidebar-width: 20rem; /* 320px - for PageContainer sidebar */
163
+ --container-max-width: 1280px;
164
+
165
+ /* ===================================
166
+ * BORDER & RADIUS TOKENS
167
+ * =================================== */
168
+ --radius: 0.375rem; /* 6px */
169
+ --radius-sm: calc(var(--radius) - 4px);
170
+ --radius-md: calc(var(--radius) - 2px);
171
+ --radius-lg: var(--radius);
172
+ --radius-xl: calc(var(--radius) + 4px);
173
+ --radius-full: 9999px;
174
+
175
+ /* Border widths */
176
+ --border-width: 1px;
177
+ --border-width-2: 2px;
178
+ --border-width-4: 4px;
179
+
180
+ /* ===================================
181
+ * SHADOW TOKENS
182
+ * =================================== */
183
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
184
+ --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
185
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
186
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
187
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
188
+ --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
189
+ --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
190
+
191
+ /* ===================================
192
+ * Z-INDEX TOKENS
193
+ * =================================== */
194
+ --z-0: 0;
195
+ --z-10: 10;
196
+ --z-20: 20;
197
+ --z-30: 30;
198
+ --z-40: 40;
199
+ --z-50: 50;
200
+ --z-dropdown: 1000;
201
+ --z-sticky: 1020;
202
+ --z-fixed: 1030;
203
+ --z-modal-backdrop: 1040;
204
+ --z-modal: 1050;
205
+ --z-popover: 1060;
206
+ --z-tooltip: 1070;
207
+
208
+ /* ===================================
209
+ * TRANSITION & ANIMATION TOKENS
210
+ * =================================== */
211
+ --transition-fast: 150ms;
212
+ --transition-base: 200ms;
213
+ --transition-slow: 300ms;
214
+ --transition-slower: 500ms;
215
+
216
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
217
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
218
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
219
+
220
+ /* ===================================
221
+ * OPACITY TOKENS
222
+ * =================================== */
223
+ --opacity-0: 0;
224
+ --opacity-5: 0.05;
225
+ --opacity-10: 0.1;
226
+ --opacity-20: 0.2;
227
+ --opacity-30: 0.3;
228
+ --opacity-40: 0.4;
229
+ --opacity-50: 0.5;
230
+ --opacity-60: 0.6;
231
+ --opacity-70: 0.7;
232
+ --opacity-80: 0.8;
233
+ --opacity-90: 0.9;
234
+ --opacity-100: 1;
235
+ }
236
+
237
+ .dark {
238
+ --background: oklch(0.145 0 0);
239
+ --foreground: oklch(0.985 0 0);
240
+ --card: oklch(0.145 0 0);
241
+ --card-foreground: oklch(0.985 0 0);
242
+ --popover: oklch(0.145 0 0);
243
+ --popover-foreground: oklch(0.985 0 0);
244
+ --primary: oklch(0.985 0 0);
245
+ --primary-foreground: oklch(0.205 0 0);
246
+ --secondary: oklch(0.269 0 0);
247
+ --secondary-foreground: oklch(0.985 0 0);
248
+ --muted: oklch(0.269 0 0);
249
+ --muted-foreground: oklch(0.708 0 0);
250
+ --accent: oklch(0.269 0 0);
251
+ --accent-foreground: oklch(0.985 0 0);
252
+ --destructive: oklch(0.396 0.141 25.723);
253
+ --destructive-foreground: oklch(0.637 0.237 25.331);
254
+ --border: oklch(0.269 0 0);
255
+ --input: oklch(0.269 0 0);
256
+ --ring: oklch(0.439 0 0);
257
+
258
+ --chart-1: oklch(0.488 0.243 264.376);
259
+ --chart-2: oklch(0.696 0.17 162.48);
260
+ --chart-3: oklch(0.769 0.188 70.08);
261
+ --chart-4: oklch(0.627 0.265 303.9);
262
+ --chart-5: oklch(0.645 0.246 16.439);
263
+
264
+ --sidebar: oklch(0.205 0 0);
265
+ --sidebar-foreground: oklch(0.985 0 0);
266
+ --sidebar-primary: oklch(0.488 0.243 264.376);
267
+ --sidebar-primary-foreground: oklch(0.985 0 0);
268
+ --sidebar-accent: oklch(0.269 0 0);
269
+ --sidebar-accent-foreground: oklch(0.985 0 0);
270
+ --sidebar-border: oklch(0.269 0 0);
271
+ --sidebar-ring: oklch(0.439 0 0);
272
+
273
+ /* Semantic colors (dark mode) */
274
+ --success: #34d399;
275
+ --success-foreground: #022c22;
276
+ --warning: #fbbf24;
277
+ --warning-foreground: #422006;
278
+ --info: #60a5fa;
279
+ --info-foreground: #172554;
280
+ --error: #f87171;
281
+ --error-foreground: #450a0a;
282
+
283
+ /* Dark mode gray scale */
284
+ --gray-50: #1f2937;
285
+ --gray-100: #374151;
286
+ --gray-200: #4b5563;
287
+ --gray-300: #6b7280;
288
+ --gray-400: #9ca3af;
289
+ --gray-500: #d1d5db;
290
+ --gray-600: #e5e7eb;
291
+ --gray-700: #f3f4f6;
292
+ --gray-800: #f9fafb;
293
+ --gray-900: #ffffff;
294
+
295
+ /* Dark mode blue palette */
296
+ --blue-50: #1e3a8a;
297
+ --blue-100: #1d4ed8;
298
+ --blue-500: #3b82f6;
299
+ --blue-600: #60a5fa;
300
+ --blue-700: #93c5fd;
301
+ }
302
+
303
+ /* ===================================
304
+ * TAILWIND V4 THEME MAPPING
305
+ * Map CSS variables to Tailwind classes
306
+ * =================================== */
307
+ @theme inline {
308
+ /* Colors */
309
+ --color-background: var(--background);
310
+ --color-foreground: var(--foreground);
311
+ --color-card: var(--card);
312
+ --color-card-foreground: var(--card-foreground);
313
+ --color-popover: var(--popover);
314
+ --color-popover-foreground: var(--popover-foreground);
315
+ --color-primary: var(--primary);
316
+ --color-primary-foreground: var(--primary-foreground);
317
+ --color-secondary: var(--secondary);
318
+ --color-secondary-foreground: var(--secondary-foreground);
319
+ --color-muted: var(--muted);
320
+ --color-muted-foreground: var(--muted-foreground);
321
+ --color-accent: var(--accent);
322
+ --color-accent-foreground: var(--accent-foreground);
323
+ --color-destructive: var(--destructive);
324
+ --color-destructive-foreground: var(--destructive-foreground);
325
+ --color-border: var(--border);
326
+ --color-input: var(--input);
327
+ --color-input-background: var(--input-background);
328
+ --color-switch-background: var(--switch-background);
329
+ --color-ring: var(--ring);
330
+ --color-chart-1: var(--chart-1);
331
+ --color-chart-2: var(--chart-2);
332
+ --color-chart-3: var(--chart-3);
333
+ --color-chart-4: var(--chart-4);
334
+ --color-chart-5: var(--chart-5);
335
+
336
+ /* Sidebar colors */
337
+ --color-sidebar: var(--sidebar);
338
+ --color-sidebar-foreground: var(--sidebar-foreground);
339
+ --color-sidebar-primary: var(--sidebar-primary);
340
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
341
+ --color-sidebar-accent: var(--sidebar-accent);
342
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
343
+ --color-sidebar-border: var(--sidebar-border);
344
+ --color-sidebar-ring: var(--sidebar-ring);
345
+
346
+ /* Semantic colors */
347
+ --color-success: var(--success);
348
+ --color-success-foreground: var(--success-foreground);
349
+ --color-warning: var(--warning);
350
+ --color-warning-foreground: var(--warning-foreground);
351
+ --color-info: var(--info);
352
+ --color-info-foreground: var(--info-foreground);
353
+ --color-error: var(--error);
354
+ --color-error-foreground: var(--error-foreground);
355
+
356
+ /* Gray palette - making available as Tailwind classes */
357
+ --color-gray-50: var(--gray-50);
358
+ --color-gray-100: var(--gray-100);
359
+ --color-gray-200: var(--gray-200);
360
+ --color-gray-300: var(--gray-300);
361
+ --color-gray-400: var(--gray-400);
362
+ --color-gray-500: var(--gray-500);
363
+ --color-gray-600: var(--gray-600);
364
+ --color-gray-700: var(--gray-700);
365
+ --color-gray-800: var(--gray-800);
366
+ --color-gray-900: var(--gray-900);
367
+
368
+ /* Blue palette */
369
+ --color-blue-50: var(--blue-50);
370
+ --color-blue-100: var(--blue-100);
371
+ --color-blue-500: var(--blue-500);
372
+ --color-blue-600: var(--blue-600);
373
+ --color-blue-700: var(--blue-700);
374
+
375
+ /* Density spacing — creates p-page, h-element, gap-section, etc. */
376
+ --spacing-page: var(--density-page);
377
+ --spacing-section: var(--density-section);
378
+ --spacing-element-xs: var(--density-element-xs);
379
+ --spacing-element-sm: var(--density-element-sm);
380
+ --spacing-element: var(--density-element);
381
+ --spacing-element-lg: var(--density-element-lg);
382
+ --spacing-element-xl: var(--density-element-xl);
383
+ --spacing-card: var(--density-card);
384
+ --spacing-dialog: var(--density-dialog);
385
+ --spacing-header: var(--header-height);
386
+ --spacing-table-head: var(--density-table-head);
387
+
388
+ /* Density font sizes — creates text-page-title */
389
+ --font-size-page-title: var(--density-page-title);
390
+
391
+ /* Border radius */
392
+ --radius-sm: calc(var(--radius) - 4px);
393
+ --radius-md: calc(var(--radius) - 2px);
394
+ --radius-lg: var(--radius);
395
+ --radius-xl: calc(var(--radius) + 4px);
396
+ }
397
+
398
+ /* ===================================
399
+ * BASE STYLES
400
+ * Default typography and element styles
401
+ * =================================== */
402
+ @layer base {
403
+ * {
404
+ @apply border-border outline-ring/50;
405
+ }
406
+
407
+ body {
408
+ @apply bg-background text-foreground;
409
+ }
410
+
411
+ /**
412
+ * Default typography styles for HTML elements (h1-h4, p, label, button, input).
413
+ * These are in @layer base, so Tailwind utility classes (like text-sm, text-lg) automatically override them.
414
+ */
415
+
416
+ html {
417
+ font-size: var(--font-size);
418
+ }
419
+
420
+ h1 {
421
+ font-size: var(--heading-h1);
422
+ font-weight: var(--font-weight-medium);
423
+ line-height: var(--leading-normal);
424
+ }
425
+
426
+ h2 {
427
+ font-size: var(--heading-h2);
428
+ font-weight: var(--font-weight-medium);
429
+ line-height: var(--leading-normal);
430
+ }
431
+
432
+ h3 {
433
+ font-size: var(--heading-h3);
434
+ font-weight: var(--font-weight-medium);
435
+ line-height: var(--leading-normal);
436
+ }
437
+
438
+ h4 {
439
+ font-size: var(--heading-h4);
440
+ font-weight: var(--font-weight-medium);
441
+ line-height: var(--leading-normal);
442
+ }
443
+
444
+ label {
445
+ font-size: var(--text-base);
446
+ font-weight: var(--font-weight-medium);
447
+ line-height: var(--leading-normal);
448
+ }
449
+
450
+ button {
451
+ font-size: var(--text-base);
452
+ font-weight: var(--font-weight-medium);
453
+ line-height: var(--leading-normal);
454
+ }
455
+
456
+ input {
457
+ font-size: var(--text-base);
458
+ font-weight: var(--font-weight-normal);
459
+ line-height: var(--leading-normal);
460
+ }
461
+ }
@@ -1,240 +0,0 @@
1
- import { useOrganization } from './chunk-ITXOZ4IR.js';
2
- import { useState } from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import { Button } from '@omnifyjp/ui-components/components/button';
5
- import { Input } from '@omnifyjp/ui-components/components/input';
6
- import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@omnifyjp/ui-components/components/dialog';
7
- import { ArrowLeftRight, Building2, ArrowRight, MapPin, Check, Search } from 'lucide-react';
8
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
9
-
10
- function OrganizationSelector({ variant = "header" }) {
11
- const {
12
- organizations,
13
- selectedOrganization,
14
- selectedBranch,
15
- setSelectedOrganization,
16
- setSelectedBranch,
17
- getBranchesByOrg,
18
- requireBranch
19
- } = useOrganization();
20
- const { t } = useTranslation("shell");
21
- const [showChangeModal, setShowChangeModal] = useState(false);
22
- const [step, setStep] = useState("organization");
23
- const [tempOrgId, setTempOrgId] = useState("");
24
- const [tempBranchId, setTempBranchId] = useState("");
25
- const [branchSearch, setBranchSearch] = useState("");
26
- const handleOpenChange = () => {
27
- setShowChangeModal(true);
28
- setStep("organization");
29
- setTempOrgId(selectedOrganization?.id || "");
30
- setTempBranchId("");
31
- setBranchSearch("");
32
- };
33
- const handleOrganizationNext = () => {
34
- const org = organizations.find((o) => o.id === tempOrgId);
35
- if (org) {
36
- setSelectedOrganization(org);
37
- if (!requireBranch) {
38
- setShowChangeModal(false);
39
- return;
40
- }
41
- setStep("branch");
42
- setTempBranchId("");
43
- setBranchSearch("");
44
- }
45
- };
46
- const handleBranchComplete = () => {
47
- const branch = getBranchesByOrg(selectedOrganization.id).find((b) => b.id === tempBranchId);
48
- if (branch) {
49
- setSelectedBranch(branch);
50
- setShowChangeModal(false);
51
- }
52
- };
53
- const availableBranches = selectedOrganization ? getBranchesByOrg(selectedOrganization.id) : [];
54
- const filteredBranches = availableBranches.filter(
55
- (b) => b.name.toLowerCase().includes(branchSearch.toLowerCase()) || b.location?.toLowerCase().includes(branchSearch.toLowerCase())
56
- );
57
- return /* @__PURE__ */ jsxs(Fragment, { children: [
58
- variant === "header" ? /* @__PURE__ */ jsxs(
59
- Button,
60
- {
61
- variant: "outline",
62
- onClick: handleOpenChange,
63
- className: "gap-2 px-3",
64
- children: [
65
- selectedOrganization && /* @__PURE__ */ jsx(
66
- "div",
67
- {
68
- className: "w-5 h-5 rounded flex items-center justify-center text-white font-bold text-[10px] flex-shrink-0",
69
- style: { backgroundColor: selectedOrganization.color },
70
- children: selectedOrganization.shortName
71
- }
72
- ),
73
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 min-w-0", children: [
74
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate max-w-[120px]", children: selectedOrganization?.name || t("org.noOrgSelected") }),
75
- requireBranch && selectedBranch && /* @__PURE__ */ jsxs(Fragment, { children: [
76
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "/" }),
77
- /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground truncate max-w-[100px]", children: selectedBranch.name })
78
- ] })
79
- ] }),
80
- /* @__PURE__ */ jsx(ArrowLeftRight, { className: "w-3.5 h-3.5 text-muted-foreground flex-shrink-0" })
81
- ]
82
- }
83
- ) : /* @__PURE__ */ jsxs(
84
- "div",
85
- {
86
- className: "flex items-center justify-between gap-2 cursor-pointer hover:bg-sidebar-accent transition-colors rounded-md px-4 py-3",
87
- onClick: handleOpenChange,
88
- children: [
89
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
90
- selectedOrganization && /* @__PURE__ */ jsx(
91
- "div",
92
- {
93
- className: "w-8 h-8 rounded-lg flex items-center justify-center text-white font-bold text-xs flex-shrink-0",
94
- style: { backgroundColor: selectedOrganization.color },
95
- children: selectedOrganization.shortName
96
- }
97
- ),
98
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
99
- /* @__PURE__ */ jsx("div", { className: "font-semibold text-sm truncate", children: selectedOrganization?.name || t("org.noOrgSelected") }),
100
- requireBranch && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground truncate mt-0.5", children: selectedBranch?.name || t("org.noBranchSelected") })
101
- ] })
102
- ] }),
103
- /* @__PURE__ */ jsx(ArrowLeftRight, { className: "w-3.5 h-3.5 text-muted-foreground flex-shrink-0" })
104
- ]
105
- }
106
- ),
107
- /* @__PURE__ */ jsx(Dialog, { open: showChangeModal, onOpenChange: setShowChangeModal, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[520px]", children: [
108
- /* @__PURE__ */ jsxs(DialogHeader, { children: [
109
- /* @__PURE__ */ jsx(DialogTitle, { className: "text-xl font-semibold", children: step === "organization" ? t("org.selectOrg") : t("org.selectBranch") }),
110
- /* @__PURE__ */ jsx(DialogDescription, { className: "text-sm", children: step === "organization" ? t("org.selectOrgDesc") : t("org.selectBranchDesc") })
111
- ] }),
112
- /* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
113
- requireBranch && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-6", children: [
114
- /* @__PURE__ */ jsxs("div", { className: `flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium ${step === "organization" ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"}`, children: [
115
- /* @__PURE__ */ jsx(Building2, { className: "w-4 h-4" }),
116
- t("org.orgStep")
117
- ] }),
118
- /* @__PURE__ */ jsx(ArrowRight, { className: "w-4 h-4 text-muted-foreground" }),
119
- /* @__PURE__ */ jsxs("div", { className: `flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium ${step === "branch" ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"}`, children: [
120
- /* @__PURE__ */ jsx(MapPin, { className: "w-4 h-4" }),
121
- t("org.branchStep")
122
- ] })
123
- ] }),
124
- step === "organization" && /* @__PURE__ */ jsxs("div", { children: [
125
- /* @__PURE__ */ jsx("div", { className: "space-y-2", children: organizations.map((org) => /* @__PURE__ */ jsxs(
126
- "div",
127
- {
128
- className: `relative flex items-center gap-3 rounded-lg border-2 p-4 cursor-pointer transition-all ${tempOrgId === org.id ? "border-primary bg-primary/5" : "border-border hover:border-muted-foreground/30 hover:bg-accent"}`,
129
- onClick: () => setTempOrgId(org.id),
130
- children: [
131
- /* @__PURE__ */ jsx(
132
- "div",
133
- {
134
- className: "w-10 h-10 rounded-lg flex items-center justify-center text-white font-bold text-sm flex-shrink-0",
135
- style: { backgroundColor: org.color },
136
- children: org.shortName
137
- }
138
- ),
139
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
140
- /* @__PURE__ */ jsx("div", { className: "font-semibold text-base", children: org.name }),
141
- org.description && /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: org.description }),
142
- requireBranch && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground mt-1", children: t("org.branchCount", { count: getBranchesByOrg(org.id).length }) })
143
- ] }),
144
- tempOrgId === org.id && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 w-6 h-6 rounded-full bg-primary flex items-center justify-center", children: /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-white" }) })
145
- ]
146
- },
147
- org.id
148
- )) }),
149
- /* @__PURE__ */ jsx("div", { className: "mt-6 flex justify-end", children: /* @__PURE__ */ jsxs(
150
- Button,
151
- {
152
- onClick: handleOrganizationNext,
153
- disabled: !tempOrgId,
154
- size: "lg",
155
- className: "gap-2",
156
- children: [
157
- requireBranch ? t("common.next") : t("common.complete"),
158
- /* @__PURE__ */ jsx(ArrowRight, { className: "w-4 h-4" })
159
- ]
160
- }
161
- ) })
162
- ] }),
163
- step === "branch" && selectedOrganization && /* @__PURE__ */ jsxs("div", { children: [
164
- /* @__PURE__ */ jsxs("div", { className: "mb-4 p-3 bg-muted rounded-lg border border-border", children: [
165
- /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground mb-1.5", children: t("org.selectedOrg") }),
166
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
167
- /* @__PURE__ */ jsx(
168
- "div",
169
- {
170
- className: "w-8 h-8 rounded-lg flex items-center justify-center text-white font-bold text-xs",
171
- style: { backgroundColor: selectedOrganization.color },
172
- children: selectedOrganization.shortName
173
- }
174
- ),
175
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: selectedOrganization.name })
176
- ] })
177
- ] }),
178
- /* @__PURE__ */ jsxs("div", { className: "relative mb-3", children: [
179
- /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" }),
180
- /* @__PURE__ */ jsx(
181
- Input,
182
- {
183
- placeholder: t("org.searchBranch"),
184
- value: branchSearch,
185
- onChange: (e) => setBranchSearch(e.target.value),
186
- className: "pl-9"
187
- }
188
- )
189
- ] }),
190
- /* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[280px] overflow-y-auto", children: filteredBranches.length === 0 ? /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: t("org.noBranchFound") }) : filteredBranches.map((branch) => /* @__PURE__ */ jsxs(
191
- "div",
192
- {
193
- className: `relative flex items-center gap-3 rounded-lg border-2 p-4 cursor-pointer transition-all ${tempBranchId === branch.id ? "border-primary bg-primary/5" : "border-border hover:border-muted-foreground/30 hover:bg-accent"}`,
194
- onClick: () => setTempBranchId(branch.id),
195
- children: [
196
- /* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-lg bg-muted flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-muted-foreground" }) }),
197
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
198
- /* @__PURE__ */ jsx("div", { className: "font-semibold text-base", children: branch.name }),
199
- branch.location && /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: branch.location })
200
- ] }),
201
- tempBranchId === branch.id && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 w-6 h-6 rounded-full bg-primary flex items-center justify-center", children: /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-white" }) })
202
- ]
203
- },
204
- branch.id
205
- )) }),
206
- /* @__PURE__ */ jsxs("div", { className: "mt-6 flex justify-between", children: [
207
- /* @__PURE__ */ jsx(
208
- Button,
209
- {
210
- variant: "outline",
211
- onClick: () => {
212
- setStep("organization");
213
- setTempOrgId(selectedOrganization.id);
214
- },
215
- children: t("common.back")
216
- }
217
- ),
218
- /* @__PURE__ */ jsxs(
219
- Button,
220
- {
221
- onClick: handleBranchComplete,
222
- disabled: !tempBranchId,
223
- size: "lg",
224
- className: "gap-2",
225
- children: [
226
- t("common.complete"),
227
- /* @__PURE__ */ jsx(ArrowRight, { className: "w-4 h-4" })
228
- ]
229
- }
230
- )
231
- ] })
232
- ] })
233
- ] })
234
- ] }) })
235
- ] });
236
- }
237
-
238
- export { OrganizationSelector };
239
- //# sourceMappingURL=chunk-2GN4WIOV.js.map
240
- //# sourceMappingURL=chunk-2GN4WIOV.js.map