@dev-dga/react 1.0.0 → 1.1.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 (280) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +14 -0
  3. package/dist/{chunk-Z2LJBEIV.cjs → chunk-2ISGZAMI.cjs} +3 -3
  4. package/dist/{chunk-Z2LJBEIV.cjs.map → chunk-2ISGZAMI.cjs.map} +1 -1
  5. package/dist/{chunk-TPD2GNR6.js → chunk-3BDWXIO2.js} +4 -4
  6. package/dist/{chunk-KDV7V5S4.js → chunk-3GW6NMDL.js} +4 -4
  7. package/dist/{chunk-VN2YHNUE.cjs → chunk-3IJBHHQP.cjs} +4 -4
  8. package/dist/{chunk-VN2YHNUE.cjs.map → chunk-3IJBHHQP.cjs.map} +1 -1
  9. package/dist/{chunk-DI52GZLA.cjs → chunk-3Y6JPEJ3.cjs} +4 -4
  10. package/dist/{chunk-DI52GZLA.cjs.map → chunk-3Y6JPEJ3.cjs.map} +1 -1
  11. package/dist/{chunk-4HBVLISS.js → chunk-4G42XPSB.js} +4 -4
  12. package/dist/{chunk-7EEKESAA.js → chunk-4IUOTHJC.js} +4 -4
  13. package/dist/{chunk-YOKOPO2W.cjs → chunk-5NBC47JU.cjs} +3 -3
  14. package/dist/{chunk-YOKOPO2W.cjs.map → chunk-5NBC47JU.cjs.map} +1 -1
  15. package/dist/{chunk-GHJEE4NW.js → chunk-6AWYGPVV.js} +4 -4
  16. package/dist/{chunk-WRCHASO2.js → chunk-6LRMCCGU.js} +4 -4
  17. package/dist/{chunk-TG2IDU3W.js → chunk-6UMASQFJ.js} +4 -4
  18. package/dist/{chunk-O7BBEN7E.cjs → chunk-7ECWVWEP.cjs} +3 -3
  19. package/dist/{chunk-O7BBEN7E.cjs.map → chunk-7ECWVWEP.cjs.map} +1 -1
  20. package/dist/{chunk-IFZWOLDF.cjs → chunk-7M3PXCTB.cjs} +3 -3
  21. package/dist/{chunk-IFZWOLDF.cjs.map → chunk-7M3PXCTB.cjs.map} +1 -1
  22. package/dist/{chunk-PLT3EZZ5.js → chunk-7NXFVPPR.js} +4 -4
  23. package/dist/{chunk-EQINOHB6.cjs → chunk-A4JJG7ZS.cjs} +4 -4
  24. package/dist/{chunk-EQINOHB6.cjs.map → chunk-A4JJG7ZS.cjs.map} +1 -1
  25. package/dist/{chunk-CUOYBYI4.cjs → chunk-AOGJVMFE.cjs} +9 -9
  26. package/dist/{chunk-CUOYBYI4.cjs.map → chunk-AOGJVMFE.cjs.map} +1 -1
  27. package/dist/{chunk-REDX5DCT.cjs → chunk-BH7XP6DP.cjs} +4 -4
  28. package/dist/{chunk-REDX5DCT.cjs.map → chunk-BH7XP6DP.cjs.map} +1 -1
  29. package/dist/{chunk-GUI2LDJZ.cjs → chunk-BSVWC2OY.cjs} +4 -4
  30. package/dist/{chunk-GUI2LDJZ.cjs.map → chunk-BSVWC2OY.cjs.map} +1 -1
  31. package/dist/{chunk-7GAELGEB.cjs → chunk-BTXKJ4NE.cjs} +3 -3
  32. package/dist/{chunk-7GAELGEB.cjs.map → chunk-BTXKJ4NE.cjs.map} +1 -1
  33. package/dist/{chunk-V7U2CXYL.cjs → chunk-C5BPJIIC.cjs} +3 -3
  34. package/dist/{chunk-V7U2CXYL.cjs.map → chunk-C5BPJIIC.cjs.map} +1 -1
  35. package/dist/{chunk-NKCBDSI2.js → chunk-C7QGHL2M.js} +2 -2
  36. package/dist/{chunk-7F24FFIV.cjs → chunk-DI3WGH7W.cjs} +5 -5
  37. package/dist/{chunk-7F24FFIV.cjs.map → chunk-DI3WGH7W.cjs.map} +1 -1
  38. package/dist/{chunk-BQZ4XAYH.js → chunk-DUJ2QWTC.js} +4 -4
  39. package/dist/{chunk-VYP5GX57.cjs → chunk-DZTHIGMQ.cjs} +3 -3
  40. package/dist/{chunk-VYP5GX57.cjs.map → chunk-DZTHIGMQ.cjs.map} +1 -1
  41. package/dist/{chunk-BP6BOEVE.js → chunk-EBV35LZE.js} +4 -4
  42. package/dist/{chunk-GEVXV4RL.js → chunk-GGWMXMBP.js} +4 -4
  43. package/dist/{chunk-DU4YQEIM.cjs → chunk-H7V6VNFC.cjs} +3 -3
  44. package/dist/{chunk-DU4YQEIM.cjs.map → chunk-H7V6VNFC.cjs.map} +1 -1
  45. package/dist/{chunk-K27GNXBF.cjs → chunk-HQABMNYD.cjs} +4 -4
  46. package/dist/{chunk-K27GNXBF.cjs.map → chunk-HQABMNYD.cjs.map} +1 -1
  47. package/dist/{chunk-AHUL5WRD.js → chunk-IS7NNFV3.js} +6 -6
  48. package/dist/{chunk-XB6YHZAG.js → chunk-JBTM3SFO.js} +4 -4
  49. package/dist/{chunk-APD5WA65.js → chunk-JHWACBNX.js} +4 -4
  50. package/dist/{chunk-54KSDBGC.js → chunk-JXMXEBXP.js} +2 -2
  51. package/dist/{chunk-FPXFD5XT.js → chunk-KXBRKW25.js} +4 -4
  52. package/dist/{chunk-FF4QNJOQ.js → chunk-MFBGKD5J.js} +4 -4
  53. package/dist/{chunk-WHKNCDTX.js → chunk-N2OE2MUB.js} +7 -7
  54. package/dist/{chunk-QCITJAK6.cjs → chunk-NLAVXC45.cjs} +3 -3
  55. package/dist/{chunk-QCITJAK6.cjs.map → chunk-NLAVXC45.cjs.map} +1 -1
  56. package/dist/{chunk-5GDTEDDH.js → chunk-OUS6KAYF.js} +4 -4
  57. package/dist/{chunk-G6LUBXN2.js → chunk-OXMWQMYF.js} +2 -2
  58. package/dist/{chunk-BNCUXVZF.cjs → chunk-OYSETR4K.cjs} +3 -3
  59. package/dist/{chunk-BNCUXVZF.cjs.map → chunk-OYSETR4K.cjs.map} +1 -1
  60. package/dist/{chunk-ZNDJS2W7.js → chunk-P4AMGEAG.js} +4 -4
  61. package/dist/{chunk-6G2BJQZL.cjs → chunk-P66BFKWQ.cjs} +3 -3
  62. package/dist/{chunk-6G2BJQZL.cjs.map → chunk-P66BFKWQ.cjs.map} +1 -1
  63. package/dist/{chunk-BYSA3YCV.cjs → chunk-RRTB754T.cjs} +4 -4
  64. package/dist/{chunk-BYSA3YCV.cjs.map → chunk-RRTB754T.cjs.map} +1 -1
  65. package/dist/{chunk-GS7QTYLD.js → chunk-S3JTU4FH.js} +4 -4
  66. package/dist/{chunk-RH3CQOEI.cjs → chunk-S6FRVWCG.cjs} +3 -3
  67. package/dist/{chunk-RH3CQOEI.cjs.map → chunk-S6FRVWCG.cjs.map} +1 -1
  68. package/dist/{chunk-WRUVDZRI.js → chunk-S7KATX5T.js} +2 -2
  69. package/dist/{chunk-VJV3K53D.js → chunk-SHP4KSPL.js} +4 -4
  70. package/dist/{chunk-WGCK6KKL.js → chunk-SZRP2ODO.js} +4 -4
  71. package/dist/{chunk-TNIRKGXY.js → chunk-T6RGNFKN.js} +4 -4
  72. package/dist/{chunk-P2CSX4DZ.cjs → chunk-TBI3YP65.cjs} +4 -2
  73. package/dist/chunk-TBI3YP65.cjs.map +1 -0
  74. package/dist/{chunk-EZRPCQSP.js → chunk-TPZTJDCN.js} +4 -4
  75. package/dist/{chunk-J7XCG6SX.cjs → chunk-TQH7AMQ2.cjs} +4 -4
  76. package/dist/{chunk-J7XCG6SX.cjs.map → chunk-TQH7AMQ2.cjs.map} +1 -1
  77. package/dist/{chunk-FV6E33FY.cjs → chunk-TQUB2TCL.cjs} +4 -4
  78. package/dist/{chunk-FV6E33FY.cjs.map → chunk-TQUB2TCL.cjs.map} +1 -1
  79. package/dist/{chunk-YVB5RTKR.js → chunk-TZ6IKB3E.js} +4 -2
  80. package/dist/chunk-TZ6IKB3E.js.map +1 -0
  81. package/dist/{chunk-T3NVC7UU.cjs → chunk-U3W2GAHM.cjs} +4 -4
  82. package/dist/{chunk-T3NVC7UU.cjs.map → chunk-U3W2GAHM.cjs.map} +1 -1
  83. package/dist/{chunk-G6ZOJVIG.cjs → chunk-U6YLGSAQ.cjs} +6 -6
  84. package/dist/{chunk-G6ZOJVIG.cjs.map → chunk-U6YLGSAQ.cjs.map} +1 -1
  85. package/dist/{chunk-K7GLIST7.cjs → chunk-UG2SQ4Q3.cjs} +10 -10
  86. package/dist/{chunk-K7GLIST7.cjs.map → chunk-UG2SQ4Q3.cjs.map} +1 -1
  87. package/dist/{chunk-IM6TYL3P.cjs → chunk-UVBZHPKP.cjs} +3 -3
  88. package/dist/{chunk-IM6TYL3P.cjs.map → chunk-UVBZHPKP.cjs.map} +1 -1
  89. package/dist/{chunk-U7SCEB34.js → chunk-VAGYICPO.js} +2 -2
  90. package/dist/{chunk-DVKPFWP2.cjs → chunk-W46J3DNV.cjs} +4 -4
  91. package/dist/{chunk-DVKPFWP2.cjs.map → chunk-W46J3DNV.cjs.map} +1 -1
  92. package/dist/{chunk-BJIB6S5L.js → chunk-WU3IBHA4.js} +4 -4
  93. package/dist/{chunk-FUFFG2UW.cjs → chunk-X5GBT5VI.cjs} +4 -4
  94. package/dist/{chunk-FUFFG2UW.cjs.map → chunk-X5GBT5VI.cjs.map} +1 -1
  95. package/dist/{chunk-55RHNN3T.js → chunk-Y4JUMIH4.js} +4 -4
  96. package/dist/{chunk-ODNO43HV.cjs → chunk-YPC7FRJX.cjs} +4 -4
  97. package/dist/{chunk-ODNO43HV.cjs.map → chunk-YPC7FRJX.cjs.map} +1 -1
  98. package/dist/{chunk-TYZIRV75.cjs → chunk-ZCRO2PBB.cjs} +4 -4
  99. package/dist/{chunk-TYZIRV75.cjs.map → chunk-ZCRO2PBB.cjs.map} +1 -1
  100. package/dist/components/Charts/Charts.cjs +3 -3
  101. package/dist/components/Charts/Charts.js +2 -2
  102. package/dist/components/Charts/index.cjs +3 -3
  103. package/dist/components/Charts/index.js +2 -2
  104. package/dist/components/Checkbox/Checkbox.cjs +3 -3
  105. package/dist/components/Checkbox/Checkbox.js +2 -2
  106. package/dist/components/Checkbox/index.cjs +3 -3
  107. package/dist/components/Checkbox/index.js +2 -2
  108. package/dist/components/CodeSnippet/CodeSnippet.cjs +5 -5
  109. package/dist/components/CodeSnippet/CodeSnippet.js +4 -4
  110. package/dist/components/CodeSnippet/index.cjs +5 -5
  111. package/dist/components/CodeSnippet/index.js +4 -4
  112. package/dist/components/Command/Command.cjs +3 -3
  113. package/dist/components/Command/Command.js +2 -2
  114. package/dist/components/Command/index.cjs +3 -3
  115. package/dist/components/Command/index.js +2 -2
  116. package/dist/components/DatePicker/DatePicker.cjs +1 -1
  117. package/dist/components/DatePicker/DatePicker.js +1 -1
  118. package/dist/components/DatePicker/index.cjs +1 -1
  119. package/dist/components/DatePicker/index.js +1 -1
  120. package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
  121. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  122. package/dist/components/DateRangePicker/index.cjs +1 -1
  123. package/dist/components/DateRangePicker/index.js +1 -1
  124. package/dist/components/Drawer/Drawer.cjs +3 -3
  125. package/dist/components/Drawer/Drawer.js +2 -2
  126. package/dist/components/Drawer/index.cjs +3 -3
  127. package/dist/components/Drawer/index.js +2 -2
  128. package/dist/components/Dropdown/Dropdown.cjs +3 -3
  129. package/dist/components/Dropdown/Dropdown.js +2 -2
  130. package/dist/components/Dropdown/index.cjs +3 -3
  131. package/dist/components/Dropdown/index.js +2 -2
  132. package/dist/components/DropdownMenu/DropdownMenu.cjs +3 -3
  133. package/dist/components/DropdownMenu/DropdownMenu.js +2 -2
  134. package/dist/components/DropdownMenu/index.cjs +3 -3
  135. package/dist/components/DropdownMenu/index.js +2 -2
  136. package/dist/components/FileUpload/FileUpload.cjs +3 -3
  137. package/dist/components/FileUpload/FileUpload.js +2 -2
  138. package/dist/components/FileUpload/index.cjs +3 -3
  139. package/dist/components/FileUpload/index.js +2 -2
  140. package/dist/components/Filtration/Filtration.cjs +8 -8
  141. package/dist/components/Filtration/Filtration.js +7 -7
  142. package/dist/components/Filtration/index.cjs +8 -8
  143. package/dist/components/Filtration/index.js +7 -7
  144. package/dist/components/InputOTP/InputOTP.cjs +3 -3
  145. package/dist/components/InputOTP/InputOTP.js +2 -2
  146. package/dist/components/InputOTP/index.cjs +3 -3
  147. package/dist/components/InputOTP/index.js +2 -2
  148. package/dist/components/Menubar/Menubar.cjs +3 -3
  149. package/dist/components/Menubar/Menubar.js +2 -2
  150. package/dist/components/Menubar/index.cjs +3 -3
  151. package/dist/components/Menubar/index.js +2 -2
  152. package/dist/components/Metric/index.cjs +2 -2
  153. package/dist/components/Metric/index.cjs.map +1 -1
  154. package/dist/components/Metric/index.js +4 -4
  155. package/dist/components/Modal/Modal.cjs +3 -3
  156. package/dist/components/Modal/Modal.js +2 -2
  157. package/dist/components/Modal/index.cjs +3 -3
  158. package/dist/components/Modal/index.js +2 -2
  159. package/dist/components/NumberInput/NumberInput.cjs +3 -3
  160. package/dist/components/NumberInput/NumberInput.js +2 -2
  161. package/dist/components/NumberInput/index.cjs +3 -3
  162. package/dist/components/NumberInput/index.js +2 -2
  163. package/dist/components/Pagination/Pagination.cjs +3 -3
  164. package/dist/components/Pagination/Pagination.js +2 -2
  165. package/dist/components/Pagination/index.cjs +3 -3
  166. package/dist/components/Pagination/index.js +2 -2
  167. package/dist/components/Popover/Popover.cjs +3 -3
  168. package/dist/components/Popover/Popover.js +2 -2
  169. package/dist/components/Popover/index.cjs +3 -3
  170. package/dist/components/Popover/index.js +2 -2
  171. package/dist/components/Radio/Radio.cjs +3 -3
  172. package/dist/components/Radio/Radio.js +2 -2
  173. package/dist/components/Radio/index.cjs +3 -3
  174. package/dist/components/Radio/index.js +2 -2
  175. package/dist/components/Rating/Rating.cjs +3 -3
  176. package/dist/components/Rating/Rating.js +2 -2
  177. package/dist/components/Rating/index.cjs +3 -3
  178. package/dist/components/Rating/index.js +2 -2
  179. package/dist/components/SaudiRiyal/SaudiRiyal.cjs +3 -3
  180. package/dist/components/SaudiRiyal/SaudiRiyal.js +2 -2
  181. package/dist/components/SaudiRiyal/index.cjs +3 -3
  182. package/dist/components/SaudiRiyal/index.js +2 -2
  183. package/dist/components/SearchBox/SearchBox.cjs +4 -4
  184. package/dist/components/SearchBox/SearchBox.js +3 -3
  185. package/dist/components/SearchBox/index.cjs +4 -4
  186. package/dist/components/SearchBox/index.js +3 -3
  187. package/dist/components/Select/Select.cjs +3 -3
  188. package/dist/components/Select/Select.js +2 -2
  189. package/dist/components/Select/index.cjs +3 -3
  190. package/dist/components/Select/index.js +2 -2
  191. package/dist/components/Sidebar/Sidebar.cjs +4 -4
  192. package/dist/components/Sidebar/Sidebar.js +3 -3
  193. package/dist/components/Sidebar/SidebarMenu.cjs +5 -5
  194. package/dist/components/Sidebar/SidebarMenu.js +4 -4
  195. package/dist/components/Sidebar/index.cjs +7 -7
  196. package/dist/components/Sidebar/index.cjs.map +1 -1
  197. package/dist/components/Sidebar/index.js +6 -6
  198. package/dist/components/SlideoutMenu/SlideoutMenu.cjs +3 -3
  199. package/dist/components/SlideoutMenu/SlideoutMenu.js +2 -2
  200. package/dist/components/SlideoutMenu/index.cjs +3 -3
  201. package/dist/components/SlideoutMenu/index.js +2 -2
  202. package/dist/components/Slider/Slider.cjs +3 -3
  203. package/dist/components/Slider/Slider.js +2 -2
  204. package/dist/components/Slider/index.cjs +3 -3
  205. package/dist/components/Slider/index.js +2 -2
  206. package/dist/components/StructuredList/StructuredList.cjs +4 -4
  207. package/dist/components/StructuredList/StructuredList.js +3 -3
  208. package/dist/components/StructuredList/index.cjs +4 -4
  209. package/dist/components/StructuredList/index.js +3 -3
  210. package/dist/components/Switch/Switch.cjs +3 -3
  211. package/dist/components/Switch/Switch.js +2 -2
  212. package/dist/components/Switch/index.cjs +3 -3
  213. package/dist/components/Switch/index.js +2 -2
  214. package/dist/components/Tabs/Tabs.cjs +4 -4
  215. package/dist/components/Tabs/Tabs.js +3 -3
  216. package/dist/components/Tabs/index.cjs +4 -4
  217. package/dist/components/Tabs/index.js +3 -3
  218. package/dist/components/TagInput/TagInput.cjs +3 -3
  219. package/dist/components/TagInput/TagInput.js +2 -2
  220. package/dist/components/TagInput/index.cjs +3 -3
  221. package/dist/components/TagInput/index.js +2 -2
  222. package/dist/components/TextInput/TextInput.cjs +3 -3
  223. package/dist/components/TextInput/TextInput.js +2 -2
  224. package/dist/components/TextInput/index.cjs +3 -3
  225. package/dist/components/TextInput/index.js +2 -2
  226. package/dist/components/Textarea/Textarea.cjs +3 -3
  227. package/dist/components/Textarea/Textarea.js +2 -2
  228. package/dist/components/Textarea/index.cjs +3 -3
  229. package/dist/components/Textarea/index.js +2 -2
  230. package/dist/components/Tooltip/Tooltip.cjs +3 -3
  231. package/dist/components/Tooltip/Tooltip.js +2 -2
  232. package/dist/components/Tooltip/index.cjs +3 -3
  233. package/dist/components/Tooltip/index.js +2 -2
  234. package/dist/date-picker.cjs +25 -0
  235. package/dist/date-picker.cjs.map +1 -0
  236. package/dist/date-picker.d.cts +147 -0
  237. package/dist/date-picker.d.ts +147 -0
  238. package/dist/date-picker.js +25 -0
  239. package/dist/date-picker.js.map +1 -0
  240. package/dist/index.cjs +89 -89
  241. package/dist/index.cjs.map +1 -1
  242. package/dist/index.d.cts +2 -142
  243. package/dist/index.d.ts +2 -142
  244. package/dist/index.js +113 -113
  245. package/dist/providers/DgaProvider.cjs +2 -2
  246. package/dist/providers/DgaProvider.js +1 -1
  247. package/package.json +13 -3
  248. package/dist/chunk-P2CSX4DZ.cjs.map +0 -1
  249. package/dist/chunk-YVB5RTKR.js.map +0 -1
  250. /package/dist/{chunk-TPD2GNR6.js.map → chunk-3BDWXIO2.js.map} +0 -0
  251. /package/dist/{chunk-KDV7V5S4.js.map → chunk-3GW6NMDL.js.map} +0 -0
  252. /package/dist/{chunk-4HBVLISS.js.map → chunk-4G42XPSB.js.map} +0 -0
  253. /package/dist/{chunk-7EEKESAA.js.map → chunk-4IUOTHJC.js.map} +0 -0
  254. /package/dist/{chunk-GHJEE4NW.js.map → chunk-6AWYGPVV.js.map} +0 -0
  255. /package/dist/{chunk-WRCHASO2.js.map → chunk-6LRMCCGU.js.map} +0 -0
  256. /package/dist/{chunk-TG2IDU3W.js.map → chunk-6UMASQFJ.js.map} +0 -0
  257. /package/dist/{chunk-PLT3EZZ5.js.map → chunk-7NXFVPPR.js.map} +0 -0
  258. /package/dist/{chunk-NKCBDSI2.js.map → chunk-C7QGHL2M.js.map} +0 -0
  259. /package/dist/{chunk-BQZ4XAYH.js.map → chunk-DUJ2QWTC.js.map} +0 -0
  260. /package/dist/{chunk-BP6BOEVE.js.map → chunk-EBV35LZE.js.map} +0 -0
  261. /package/dist/{chunk-GEVXV4RL.js.map → chunk-GGWMXMBP.js.map} +0 -0
  262. /package/dist/{chunk-AHUL5WRD.js.map → chunk-IS7NNFV3.js.map} +0 -0
  263. /package/dist/{chunk-XB6YHZAG.js.map → chunk-JBTM3SFO.js.map} +0 -0
  264. /package/dist/{chunk-APD5WA65.js.map → chunk-JHWACBNX.js.map} +0 -0
  265. /package/dist/{chunk-54KSDBGC.js.map → chunk-JXMXEBXP.js.map} +0 -0
  266. /package/dist/{chunk-FPXFD5XT.js.map → chunk-KXBRKW25.js.map} +0 -0
  267. /package/dist/{chunk-FF4QNJOQ.js.map → chunk-MFBGKD5J.js.map} +0 -0
  268. /package/dist/{chunk-WHKNCDTX.js.map → chunk-N2OE2MUB.js.map} +0 -0
  269. /package/dist/{chunk-5GDTEDDH.js.map → chunk-OUS6KAYF.js.map} +0 -0
  270. /package/dist/{chunk-G6LUBXN2.js.map → chunk-OXMWQMYF.js.map} +0 -0
  271. /package/dist/{chunk-ZNDJS2W7.js.map → chunk-P4AMGEAG.js.map} +0 -0
  272. /package/dist/{chunk-GS7QTYLD.js.map → chunk-S3JTU4FH.js.map} +0 -0
  273. /package/dist/{chunk-WRUVDZRI.js.map → chunk-S7KATX5T.js.map} +0 -0
  274. /package/dist/{chunk-VJV3K53D.js.map → chunk-SHP4KSPL.js.map} +0 -0
  275. /package/dist/{chunk-WGCK6KKL.js.map → chunk-SZRP2ODO.js.map} +0 -0
  276. /package/dist/{chunk-TNIRKGXY.js.map → chunk-T6RGNFKN.js.map} +0 -0
  277. /package/dist/{chunk-EZRPCQSP.js.map → chunk-TPZTJDCN.js.map} +0 -0
  278. /package/dist/{chunk-U7SCEB34.js.map → chunk-VAGYICPO.js.map} +0 -0
  279. /package/dist/{chunk-BJIB6S5L.js.map → chunk-WU3IBHA4.js.map} +0 -0
  280. /package/dist/{chunk-55RHNN3T.js.map → chunk-Y4JUMIH4.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,5 +1,14 @@
1
1
  "use client";
2
2
  import "./chunk-ZY5XXYXJ.js";
3
+ import {
4
+ Textarea,
5
+ textareaVariants
6
+ } from "./chunk-DUJ2QWTC.js";
7
+ import "./chunk-L2D4TPJW.js";
8
+ import {
9
+ Toggle,
10
+ toggleVariants
11
+ } from "./chunk-VISVU5LS.js";
3
12
  import "./chunk-Q3XKCP3I.js";
4
13
  import {
5
14
  Timeline,
@@ -12,27 +21,22 @@ import {
12
21
  timelineMarkerVariants,
13
22
  timelineVariants
14
23
  } from "./chunk-NS4IRTKQ.js";
15
- import "./chunk-L2D4TPJW.js";
16
- import {
17
- Toggle,
18
- toggleVariants
19
- } from "./chunk-VISVU5LS.js";
20
24
  import "./chunk-XBAAHOCP.js";
21
25
  import "./chunk-ZCO5QKH2.js";
22
26
  import {
23
27
  TagInput,
24
28
  tagInputVariants
25
- } from "./chunk-WRCHASO2.js";
29
+ } from "./chunk-6LRMCCGU.js";
26
30
  import "./chunk-VB5VOUED.js";
27
31
  import {
28
32
  Tag,
29
33
  tagVariants
30
34
  } from "./chunk-JWOG4I4P.js";
31
- import {
32
- Textarea,
33
- textareaVariants
34
- } from "./chunk-BQZ4XAYH.js";
35
35
  import "./chunk-T2E5XT7P.js";
36
+ import {
37
+ StatusTag,
38
+ statusTagVariants
39
+ } from "./chunk-QG3PLYK6.js";
36
40
  import "./chunk-MS6HASC6.js";
37
41
  import {
38
42
  StructuredList,
@@ -42,12 +46,12 @@ import {
42
46
  StructuredListHeader,
43
47
  StructuredListRow,
44
48
  structuredListVariants
45
- } from "./chunk-U7SCEB34.js";
49
+ } from "./chunk-VAGYICPO.js";
46
50
  import "./chunk-DPHQAA3B.js";
47
51
  import {
48
52
  Switch,
49
53
  switchVariants
50
- } from "./chunk-GHJEE4NW.js";
54
+ } from "./chunk-6AWYGPVV.js";
51
55
  import "./chunk-VP7DRJUZ.js";
52
56
  import {
53
57
  Table,
@@ -75,17 +79,12 @@ import {
75
79
  SlideoutMenuTitle,
76
80
  SlideoutMenuTrigger,
77
81
  slideoutMenuContentVariants
78
- } from "./chunk-BJIB6S5L.js";
82
+ } from "./chunk-WU3IBHA4.js";
79
83
  import "./chunk-JVUANKS3.js";
80
84
  import {
81
85
  Slider,
82
86
  sliderVariants
83
- } from "./chunk-55RHNN3T.js";
84
- import {
85
- StatusTag,
86
- statusTagVariants
87
- } from "./chunk-QG3PLYK6.js";
88
- import "./chunk-KGXGTWUL.js";
87
+ } from "./chunk-Y4JUMIH4.js";
89
88
  import "./chunk-R2JNRNK4.js";
90
89
  import {
91
90
  Sidebar,
@@ -97,7 +96,7 @@ import {
97
96
  SidebarRail,
98
97
  SidebarSeparator,
99
98
  SidebarTrigger
100
- } from "./chunk-NKCBDSI2.js";
99
+ } from "./chunk-C7QGHL2M.js";
101
100
  import {
102
101
  SidebarGroup,
103
102
  SidebarGroupAction,
@@ -116,7 +115,7 @@ import {
116
115
  SidebarMenuSubItem,
117
116
  sidebarMenuButtonVariants,
118
117
  sidebarMenuSubButtonVariants
119
- } from "./chunk-WHKNCDTX.js";
118
+ } from "./chunk-N2OE2MUB.js";
120
119
  import "./chunk-66R54X6R.js";
121
120
  import {
122
121
  HelpIcon,
@@ -124,37 +123,48 @@ import {
124
123
  TooltipContent,
125
124
  TooltipTrigger,
126
125
  tooltipContentVariants
127
- } from "./chunk-FF4QNJOQ.js";
126
+ } from "./chunk-MFBGKD5J.js";
128
127
  import "./chunk-WY4KTEIL.js";
128
+ import {
129
+ Skeleton,
130
+ skeletonVariants
131
+ } from "./chunk-6LV62GNU.js";
129
132
  import {
130
133
  useSidebar
131
134
  } from "./chunk-F7NPGAKU.js";
132
135
  import {
133
136
  useIsMobile
134
137
  } from "./chunk-QHCXQQ2J.js";
138
+ import "./chunk-KGXGTWUL.js";
135
139
  import {
136
- Skeleton,
137
- skeletonVariants
138
- } from "./chunk-6LV62GNU.js";
140
+ Select,
141
+ SelectItem,
142
+ selectTriggerVariants
143
+ } from "./chunk-3BDWXIO2.js";
139
144
  import "./chunk-TQYLAWHW.js";
145
+ import {
146
+ Rating,
147
+ ratingVariants
148
+ } from "./chunk-SHP4KSPL.js";
140
149
  import "./chunk-7PSLMVCX.js";
141
150
  import {
142
151
  SaudiRiyal,
143
152
  SaudiRiyalSymbol,
144
153
  saudiRiyalSymbolVariants,
145
154
  saudiRiyalVariants
146
- } from "./chunk-7EEKESAA.js";
155
+ } from "./chunk-4IUOTHJC.js";
147
156
  import "./chunk-JQJSYOJP.js";
148
157
  import {
149
158
  ScrollArea,
150
159
  scrollAreaVariants
151
160
  } from "./chunk-TXQK3BAO.js";
152
- import {
153
- Select,
154
- SelectItem,
155
- selectTriggerVariants
156
- } from "./chunk-TPD2GNR6.js";
157
161
  import "./chunk-IW7UX7SA.js";
162
+ import {
163
+ CircularProgress,
164
+ Progress,
165
+ circularProgressVariants,
166
+ progressVariants
167
+ } from "./chunk-JADNUODB.js";
158
168
  import "./chunk-2I7URBEK.js";
159
169
  import {
160
170
  ProgressIndicator,
@@ -177,16 +187,12 @@ import {
177
187
  RadioGroup,
178
188
  radioGroupVariants,
179
189
  radioVariants
180
- } from "./chunk-WGCK6KKL.js";
181
- import {
182
- Rating,
183
- ratingVariants
184
- } from "./chunk-VJV3K53D.js";
190
+ } from "./chunk-SZRP2ODO.js";
185
191
  import "./chunk-J7AM52HN.js";
186
192
  import {
187
193
  NumberInput,
188
194
  numberInputVariants
189
- } from "./chunk-GS7QTYLD.js";
195
+ } from "./chunk-S3JTU4FH.js";
190
196
  import "./chunk-B6ODWTVF.js";
191
197
  import {
192
198
  Pagination,
@@ -199,17 +205,15 @@ import {
199
205
  PaginationPrevious,
200
206
  paginationLinkVariants,
201
207
  paginationVariants
202
- } from "./chunk-PLT3EZZ5.js";
208
+ } from "./chunk-7NXFVPPR.js";
203
209
  import {
204
210
  paginationRange
205
211
  } from "./chunk-HIZSEYQY.js";
206
- import {
207
- CircularProgress,
208
- Progress,
209
- circularProgressVariants,
210
- progressVariants
211
- } from "./chunk-JADNUODB.js";
212
212
  import "./chunk-F5YD6T5D.js";
213
+ import {
214
+ MetricGroup,
215
+ metricGroupVariants
216
+ } from "./chunk-JXATJSBR.js";
213
217
  import "./chunk-WAIVED2F.js";
214
218
  import {
215
219
  Modal,
@@ -222,7 +226,7 @@ import {
222
226
  ModalTitle,
223
227
  ModalTrigger,
224
228
  modalContentVariants
225
- } from "./chunk-ZNDJS2W7.js";
229
+ } from "./chunk-P4AMGEAG.js";
226
230
  import "./chunk-YD2UW3PB.js";
227
231
  import {
228
232
  Notification,
@@ -240,6 +244,7 @@ import {
240
244
  toast,
241
245
  toastStore
242
246
  } from "./chunk-HMXCWHVT.js";
247
+ import "./chunk-JEBCK5VJ.js";
243
248
  import "./chunk-XLJTCZEJ.js";
244
249
  import {
245
250
  Link,
@@ -269,17 +274,14 @@ import {
269
274
  MenubarTrigger,
270
275
  menubarContentVariants,
271
276
  menubarTriggerVariants
272
- } from "./chunk-KDV7V5S4.js";
277
+ } from "./chunk-3GW6NMDL.js";
273
278
  import {
274
279
  Metric,
275
280
  MetricChange,
276
281
  MetricChart,
277
282
  metricVariants
278
283
  } from "./chunk-NOXQQACO.js";
279
- import {
280
- MetricGroup,
281
- metricGroupVariants
282
- } from "./chunk-JXATJSBR.js";
284
+ import "./chunk-MZALAXZZ.js";
283
285
  import "./chunk-44S33DGQ.js";
284
286
  import {
285
287
  Filtration,
@@ -292,18 +294,18 @@ import {
292
294
  FiltrationSection,
293
295
  FiltrationTrigger,
294
296
  filtrationPanelVariants
295
- } from "./chunk-AHUL5WRD.js";
297
+ } from "./chunk-IS7NNFV3.js";
296
298
  import "./chunk-HBCSQSOP.js";
297
299
  import {
298
300
  SearchBox
299
- } from "./chunk-WRUVDZRI.js";
301
+ } from "./chunk-S7KATX5T.js";
300
302
  import "./chunk-CWUZ4SZN.js";
301
303
  import {
302
304
  TextInput,
303
305
  TextInputAffix,
304
306
  TextInputDropdown,
305
307
  textInputVariants
306
- } from "./chunk-4HBVLISS.js";
308
+ } from "./chunk-4G42XPSB.js";
307
309
  import "./chunk-ZPUYNM37.js";
308
310
  import {
309
311
  Popover,
@@ -312,7 +314,7 @@ import {
312
314
  PopoverContent,
313
315
  PopoverTrigger,
314
316
  popoverContentVariants
315
- } from "./chunk-APD5WA65.js";
317
+ } from "./chunk-JHWACBNX.js";
316
318
  import "./chunk-5DBKWVTZ.js";
317
319
  import {
318
320
  FloatingButton,
@@ -324,11 +326,11 @@ import {
324
326
  InlineAlertAction,
325
327
  inlineAlertVariants
326
328
  } from "./chunk-MVKIXWKJ.js";
327
- import "./chunk-JEBCK5VJ.js";
328
329
  import {
329
330
  InputOTP,
330
331
  inputOTPVariants
331
- } from "./chunk-BP6BOEVE.js";
332
+ } from "./chunk-EBV35LZE.js";
333
+ import "./chunk-O6AFVTKN.js";
332
334
  import "./chunk-AMYFRY7K.js";
333
335
  import {
334
336
  Dropdown,
@@ -336,7 +338,7 @@ import {
336
338
  DropdownItem,
337
339
  DropdownSeparator,
338
340
  dropdownTriggerVariants
339
- } from "./chunk-GEVXV4RL.js";
341
+ } from "./chunk-GGWMXMBP.js";
340
342
  import "./chunk-2PESUXE3.js";
341
343
  import "./chunk-AMRMIZNY.js";
342
344
  import {
@@ -347,10 +349,9 @@ import {
347
349
  EmptyStateTitle,
348
350
  emptyStateVariants
349
351
  } from "./chunk-VRPFA4CN.js";
350
- import "./chunk-MZALAXZZ.js";
351
352
  import {
352
353
  FileUpload
353
- } from "./chunk-EZRPCQSP.js";
354
+ } from "./chunk-TPZTJDCN.js";
354
355
  import "./chunk-L23ETA7K.js";
355
356
  import {
356
357
  DescriptionDetails,
@@ -359,17 +360,16 @@ import {
359
360
  DescriptionTerm,
360
361
  descriptionListVariants
361
362
  } from "./chunk-J3RL3NPU.js";
362
- import "./chunk-S72BEZHS.js";
363
- import {
364
- Divider,
365
- dividerVariants
366
- } from "./chunk-CUGEH7EB.js";
367
363
  import "./chunk-H2HKUDBZ.js";
368
364
  import {
369
365
  DigitalStamp,
370
366
  digitalStampVariants
371
367
  } from "./chunk-QU32POS4.js";
372
- import "./chunk-O6AFVTKN.js";
368
+ import "./chunk-S72BEZHS.js";
369
+ import {
370
+ Divider,
371
+ dividerVariants
372
+ } from "./chunk-CUGEH7EB.js";
373
373
  import {
374
374
  Drawer,
375
375
  DrawerBody,
@@ -381,7 +381,8 @@ import {
381
381
  DrawerTitle,
382
382
  DrawerTrigger,
383
383
  drawerVariants
384
- } from "./chunk-TG2IDU3W.js";
384
+ } from "./chunk-6UMASQFJ.js";
385
+ import "./chunk-4WUUV44R.js";
385
386
  import "./chunk-FAHKOTCS.js";
386
387
  import {
387
388
  Command,
@@ -393,49 +394,34 @@ import {
393
394
  CommandList,
394
395
  CommandSeparator,
395
396
  commandVariants
396
- } from "./chunk-FPXFD5XT.js";
397
+ } from "./chunk-KXBRKW25.js";
397
398
  import "./chunk-GIHJ4J47.js";
398
399
  import {
399
400
  ContentSwitcher,
400
401
  ContentSwitcherItem,
401
402
  contentSwitcherVariants
402
403
  } from "./chunk-QE3ZFSJK.js";
403
- import "./chunk-4SDRJW3D.js";
404
- import {
405
- DatePicker,
406
- datePickerVariants
407
- } from "./chunk-BC2DJQ3Y.js";
408
- import "./chunk-7WDQQSRQ.js";
409
- import {
410
- DateRangePicker,
411
- dateRangePickerTriggerVariants,
412
- dateRangePickerVariants
413
- } from "./chunk-XIJKAUCN.js";
414
- import "./chunk-SDFMITFO.js";
415
- import "./chunk-AR7K3D3Z.js";
416
- import "./chunk-OF7NTZ2I.js";
404
+ import "./chunk-AVHWS36I.js";
405
+ import "./chunk-TZWNX7FF.js";
417
406
  import {
418
- Card,
419
- CardContent,
420
- CardDescription,
421
- CardExpandableContent,
422
- CardFooter,
423
- CardHeader,
424
- CardIcon,
425
- CardImage,
426
- CardTitle,
427
- cardVariants
428
- } from "./chunk-NJIQJHJS.js";
407
+ Checkbox,
408
+ checkboxVariants
409
+ } from "./chunk-T6RGNFKN.js";
429
410
  import "./chunk-TPNCV7KA.js";
430
411
  import {
431
412
  Chip,
432
413
  chipVariants
433
414
  } from "./chunk-SQ7NQVEK.js";
434
- import "./chunk-4WUUV44R.js";
415
+ import "./chunk-S5JMXY7Z.js";
416
+ import {
417
+ Collapsible,
418
+ CollapsibleContent,
419
+ CollapsibleTrigger
420
+ } from "./chunk-775MRN7R.js";
435
421
  import {
436
422
  CodeSnippet,
437
423
  CodeSnippetInline
438
- } from "./chunk-54KSDBGC.js";
424
+ } from "./chunk-JXMXEBXP.js";
439
425
  import {
440
426
  Tabs,
441
427
  TabsContent,
@@ -443,7 +429,7 @@ import {
443
429
  TabsTrigger,
444
430
  tabsListVariants,
445
431
  tabsVariants
446
- } from "./chunk-G6LUBXN2.js";
432
+ } from "./chunk-OXMWQMYF.js";
447
433
  import {
448
434
  DropdownMenu,
449
435
  DropdownMenuCheckboxItem,
@@ -459,13 +445,21 @@ import {
459
445
  DropdownMenuSubTrigger,
460
446
  DropdownMenuTrigger,
461
447
  dropdownMenuVariants
462
- } from "./chunk-XB6YHZAG.js";
463
- import "./chunk-S5JMXY7Z.js";
448
+ } from "./chunk-JBTM3SFO.js";
449
+ import "./chunk-FHORBVCQ.js";
450
+ import "./chunk-OF7NTZ2I.js";
464
451
  import {
465
- Collapsible,
466
- CollapsibleContent,
467
- CollapsibleTrigger
468
- } from "./chunk-775MRN7R.js";
452
+ Card,
453
+ CardContent,
454
+ CardDescription,
455
+ CardExpandableContent,
456
+ CardFooter,
457
+ CardHeader,
458
+ CardIcon,
459
+ CardImage,
460
+ CardTitle,
461
+ cardVariants
462
+ } from "./chunk-NJIQJHJS.js";
469
463
  import "./chunk-N5JDL4VE.js";
470
464
  import {
471
465
  Button,
@@ -488,17 +482,11 @@ import {
488
482
  carouselDotsVariants,
489
483
  carouselVariants
490
484
  } from "./chunk-LEDIOXDM.js";
491
- import "./chunk-TZWNX7FF.js";
492
- import {
493
- Checkbox,
494
- checkboxVariants
495
- } from "./chunk-TNIRKGXY.js";
496
- import "./chunk-AVHWS36I.js";
497
485
  import {
498
486
  BarChart,
499
487
  LineChart,
500
488
  PieChart
501
- } from "./chunk-5GDTEDDH.js";
489
+ } from "./chunk-OUS6KAYF.js";
502
490
  import "./chunk-L6HWOYOY.js";
503
491
  import {
504
492
  Accordion,
@@ -519,7 +507,6 @@ import {
519
507
  AvatarImage,
520
508
  avatarVariants
521
509
  } from "./chunk-Y2E2RLBI.js";
522
- import "./chunk-FHORBVCQ.js";
523
510
  import {
524
511
  Breadcrumb,
525
512
  BreadcrumbEllipsis,
@@ -531,7 +518,23 @@ import {
531
518
  BreadcrumbSeparator,
532
519
  breadcrumbVariants
533
520
  } from "./chunk-AMF37AOD.js";
521
+ import "./chunk-7WDQQSRQ.js";
522
+ import "./chunk-4SDRJW3D.js";
523
+ import {
524
+ DatePicker,
525
+ datePickerVariants
526
+ } from "./chunk-BC2DJQ3Y.js";
527
+ import {
528
+ DateRangePicker,
529
+ dateRangePickerTriggerVariants,
530
+ dateRangePickerVariants
531
+ } from "./chunk-XIJKAUCN.js";
532
+ import "./chunk-SDFMITFO.js";
533
+ import "./chunk-AR7K3D3Z.js";
534
534
  import "./chunk-FFGALWM2.js";
535
+ import {
536
+ cn
537
+ } from "./chunk-7NTT2UXP.js";
535
538
  import "./chunk-WI5UIBM5.js";
536
539
  import {
537
540
  FieldMessage
@@ -544,13 +547,10 @@ import {
544
547
  } from "./chunk-XFVRBYPC.js";
545
548
  import {
546
549
  DgaProvider
547
- } from "./chunk-YVB5RTKR.js";
550
+ } from "./chunk-TZ6IKB3E.js";
548
551
  import {
549
552
  useDga
550
553
  } from "./chunk-TMXABSFE.js";
551
- import {
552
- cn
553
- } from "./chunk-7NTT2UXP.js";
554
554
  export {
555
555
  Accordion,
556
556
  AccordionContent,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkP2CSX4DZcjs = require('../chunk-P2CSX4DZ.cjs');
4
+ var _chunkTBI3YP65cjs = require('../chunk-TBI3YP65.cjs');
5
5
  require('../chunk-FQLVTLUI.cjs');
6
6
 
7
7
 
8
- exports.DgaProvider = _chunkP2CSX4DZcjs.DgaProvider;
8
+ exports.DgaProvider = _chunkTBI3YP65cjs.DgaProvider;
9
9
  //# sourceMappingURL=DgaProvider.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  DgaProvider
4
- } from "../chunk-YVB5RTKR.js";
4
+ } from "../chunk-TZ6IKB3E.js";
5
5
  import "../chunk-TMXABSFE.js";
6
6
  export {
7
7
  DgaProvider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-dga/react",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Independent React 19 component library implementing Saudi Arabia's DGA (Digital Government Authority) Platforms Code design system. Accessible (WCAG 2.2 AA), RTL-native, Arabic-first, dark-mode ready, RSC-compatible. Not affiliated with the DGA.",
5
5
  "keywords": [
6
6
  "react",
@@ -53,6 +53,16 @@
53
53
  "types": "./dist/index.d.cts",
54
54
  "default": "./dist/index.cjs"
55
55
  }
56
+ },
57
+ "./date-picker": {
58
+ "import": {
59
+ "types": "./dist/date-picker.d.ts",
60
+ "default": "./dist/date-picker.js"
61
+ },
62
+ "require": {
63
+ "types": "./dist/date-picker.d.cts",
64
+ "default": "./dist/date-picker.cjs"
65
+ }
56
66
  }
57
67
  },
58
68
  "engines": {
@@ -65,12 +75,12 @@
65
75
  "cmdk": "^1.1.1",
66
76
  "radix-ui": "^1.0.0",
67
77
  "react-aria-components": "^1.17.0",
68
- "@dev-dga/tokens": "1.0.0"
78
+ "@dev-dga/tokens": "1.1.0"
69
79
  },
70
80
  "peerDependencies": {
71
81
  "react": "^19.0.0",
72
82
  "react-dom": "^19.0.0",
73
- "@dev-dga/css": "1.0.0"
83
+ "@dev-dga/css": "1.1.0"
74
84
  },
75
85
  "devDependencies": {
76
86
  "@storybook/react-vite": "^10.2.15",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/devdhaif/work/react/dga-dev/packages/react/dist/chunk-P2CSX4DZ.cjs","../src/providers/DgaProvider.tsx"],"names":[],"mappings":"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","file":"/home/devdhaif/work/react/dga-dev/packages/react/dist/chunk-P2CSX4DZ.cjs","sourcesContent":[null,"'use client';\n\nimport { useState, useMemo, useContext, useEffect, useRef } from 'react';\nimport { Direction as DirectionPrimitive, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { buildTheme, type DgaTheme } from '@dev-dga/tokens';\nimport { DgaContext, type DgaContextValue } from './DgaContext';\n\ntype DgaRootElement =\n | 'div'\n | 'main'\n | 'nav'\n | 'section'\n | 'article'\n | 'aside'\n | 'header'\n | 'footer';\n\nexport interface DgaProviderProps {\n dir?: 'ltr' | 'rtl';\n locale?: string;\n mode?: 'light' | 'dark';\n /**\n * Brand theme. `theme.primary` accepts a palette name (`'lavender'`),\n * any CSS color string (`'#7C3AED'` , hover/active auto-derived via\n * `color-mix()`), or an explicit `{ base, hover, active, foreground? }`\n * triplet. The override-object pattern (`style={{ '--ddga-color-primary':\n * '...' }}`) still works , `style` wins over `theme`.\n */\n theme?: DgaTheme;\n as?: DgaRootElement;\n className?: string;\n style?: React.CSSProperties;\n children: React.ReactNode;\n}\n\nexport function DgaProvider({\n dir = 'ltr',\n locale,\n mode = 'light',\n theme,\n as: Component = 'div',\n className,\n style: consumerStyle,\n children,\n}: DgaProviderProps) {\n const parentCtx = useContext(DgaContext);\n const isNested = parentCtx !== null;\n // Callback ref + state so context subscribers (e.g. Select's portal\n // container) re-render when the element actually mounts. With useRef\n // the .current update wouldn't trigger a render and a defaultOpen\n // portal would race to <body> before the ref populated.\n const [rootEl, setRootEl] = useState<HTMLElement | null>(null);\n // The portal element is held in a ref (we directly mutate its attributes\n // + inline CSS variables, which the react-hooks/immutability lint rule\n // forbids on state values). A parallel `portalEl` state mirrors the ref\n // so context subscribers re-render once the element mounts.\n const portalRef = useRef<HTMLDivElement | null>(null);\n const [portalEl, setPortalEl] = useState<HTMLElement | null>(null);\n const resolvedLocale = locale ?? (dir === 'rtl' ? 'ar' : 'en');\n\n // Memoize by reference. Stable palette-name themes (`{ primary: 'lavender' }`\n // declared at module scope) never recompute; consumers passing an inline\n // object accept a per-render `buildTheme` call (cheap , small switch\n // statement over a single string).\n const themeVars = useMemo(() => (theme ? buildTheme(theme) : null), [theme]);\n\n // ─── Body-level portal container ─── //\n //\n // Create a sibling-of-body div that mirrors this provider's theme\n // attributes. Overlay portals (Modal, Drawer, DropdownMenu, etc.) anchor\n // here instead of `rootEl` so:\n //\n // - They escape `overflow: hidden` / `transform` ancestors the consumer\n // might wrap us in (Storybook's docs-story preview block is the\n // motivating case — a `transform` ancestor breaks `position: fixed`\n // descendants, clipping modals to the preview rect).\n // - Theme variables, dark mode, RTL still resolve because we copy\n // `data-theme`, `dir`, and inline CSS vars from this provider onto\n // the portal element.\n //\n // One container per DgaProvider instance — cleaned up on unmount. SSR-safe\n // (effects only run client-side; consumers see `portalEl: null` and the\n // overlays fall back to `rootEl`).\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const el = document.createElement('div');\n el.setAttribute('data-slot', 'dga-portal');\n // Position relative for any child popper computing offset against\n // nearest positioned ancestor; z-index so the portal sits above the\n // main content stack.\n el.style.position = 'relative';\n el.style.zIndex = '50';\n document.body.appendChild(el);\n portalRef.current = el;\n // The setState here exposes the freshly-mounted DOM element to context\n // subscribers (overlay components) so they re-render and target the\n // portal on first commit. Single call on mount + single on unmount;\n // not the cascading-render footgun the lint rule guards against.\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setPortalEl(el);\n return () => {\n el.remove();\n portalRef.current = null;\n\n setPortalEl(null);\n };\n }, []);\n\n // Mirror theme attributes onto the portal element so its descendants\n // resolve `var(--ddga-*)` and respect dark mode / RTL the same way as\n // descendants of `rootEl`. We mutate via the ref (not the state) so the\n // react-hooks/immutability rule stays happy — and run this on every prop\n // change that affects appearance.\n useEffect(() => {\n const el = portalRef.current;\n if (!el) return;\n el.setAttribute('data-theme', mode);\n el.setAttribute('dir', dir);\n el.style.colorScheme = mode;\n if (themeVars) {\n for (const [k, v] of Object.entries(themeVars)) {\n el.style.setProperty(k, String(v));\n }\n }\n }, [mode, dir, themeVars, portalEl]);\n\n const ctxValue = useMemo<DgaContextValue>(\n () => ({ dir, locale: resolvedLocale, mode, rootEl, portalEl }),\n [dir, resolvedLocale, mode, rootEl, portalEl],\n );\n\n // Radix's Direction.Provider propagates `dir` to portal-rendered content\n // (Tooltip/Select/Toast/Modal) that would otherwise inherit body dir,\n // not the dir on this wrapper element. Nested providers reuse the parent\n // direction via their own Direction.Provider, so this is safe to repeat.\n const inner = <DirectionPrimitive.Provider dir={dir}>{children}</DirectionPrimitive.Provider>;\n\n return (\n <DgaContext.Provider value={ctxValue}>\n <Component\n ref={setRootEl}\n dir={dir}\n lang={resolvedLocale}\n data-slot=\"dga-root\"\n data-theme={mode}\n className={className}\n // Order: colorScheme → theme vars → consumer style. A manually-\n // supplied `style` overrides `theme` (escape hatch preserved per\n // THEMING-PLAN.md: every `--ddga-*` remains plain-CSS overridable).\n style={{ colorScheme: mode, ...(themeVars ?? {}), ...consumerStyle }}\n >\n {isNested ? (\n inner\n ) : (\n <TooltipPrimitive.Provider delayDuration={300} skipDelayDuration={100}>\n {inner}\n </TooltipPrimitive.Provider>\n )}\n </Component>\n </DgaContext.Provider>\n );\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/providers/DgaProvider.tsx"],"sourcesContent":["'use client';\n\nimport { useState, useMemo, useContext, useEffect, useRef } from 'react';\nimport { Direction as DirectionPrimitive, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { buildTheme, type DgaTheme } from '@dev-dga/tokens';\nimport { DgaContext, type DgaContextValue } from './DgaContext';\n\ntype DgaRootElement =\n | 'div'\n | 'main'\n | 'nav'\n | 'section'\n | 'article'\n | 'aside'\n | 'header'\n | 'footer';\n\nexport interface DgaProviderProps {\n dir?: 'ltr' | 'rtl';\n locale?: string;\n mode?: 'light' | 'dark';\n /**\n * Brand theme. `theme.primary` accepts a palette name (`'lavender'`),\n * any CSS color string (`'#7C3AED'` , hover/active auto-derived via\n * `color-mix()`), or an explicit `{ base, hover, active, foreground? }`\n * triplet. The override-object pattern (`style={{ '--ddga-color-primary':\n * '...' }}`) still works , `style` wins over `theme`.\n */\n theme?: DgaTheme;\n as?: DgaRootElement;\n className?: string;\n style?: React.CSSProperties;\n children: React.ReactNode;\n}\n\nexport function DgaProvider({\n dir = 'ltr',\n locale,\n mode = 'light',\n theme,\n as: Component = 'div',\n className,\n style: consumerStyle,\n children,\n}: DgaProviderProps) {\n const parentCtx = useContext(DgaContext);\n const isNested = parentCtx !== null;\n // Callback ref + state so context subscribers (e.g. Select's portal\n // container) re-render when the element actually mounts. With useRef\n // the .current update wouldn't trigger a render and a defaultOpen\n // portal would race to <body> before the ref populated.\n const [rootEl, setRootEl] = useState<HTMLElement | null>(null);\n // The portal element is held in a ref (we directly mutate its attributes\n // + inline CSS variables, which the react-hooks/immutability lint rule\n // forbids on state values). A parallel `portalEl` state mirrors the ref\n // so context subscribers re-render once the element mounts.\n const portalRef = useRef<HTMLDivElement | null>(null);\n const [portalEl, setPortalEl] = useState<HTMLElement | null>(null);\n const resolvedLocale = locale ?? (dir === 'rtl' ? 'ar' : 'en');\n\n // Memoize by reference. Stable palette-name themes (`{ primary: 'lavender' }`\n // declared at module scope) never recompute; consumers passing an inline\n // object accept a per-render `buildTheme` call (cheap , small switch\n // statement over a single string).\n const themeVars = useMemo(() => (theme ? buildTheme(theme) : null), [theme]);\n\n // ─── Body-level portal container ─── //\n //\n // Create a sibling-of-body div that mirrors this provider's theme\n // attributes. Overlay portals (Modal, Drawer, DropdownMenu, etc.) anchor\n // here instead of `rootEl` so:\n //\n // - They escape `overflow: hidden` / `transform` ancestors the consumer\n // might wrap us in (Storybook's docs-story preview block is the\n // motivating case — a `transform` ancestor breaks `position: fixed`\n // descendants, clipping modals to the preview rect).\n // - Theme variables, dark mode, RTL still resolve because we copy\n // `data-theme`, `dir`, and inline CSS vars from this provider onto\n // the portal element.\n //\n // One container per DgaProvider instance — cleaned up on unmount. SSR-safe\n // (effects only run client-side; consumers see `portalEl: null` and the\n // overlays fall back to `rootEl`).\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const el = document.createElement('div');\n el.setAttribute('data-slot', 'dga-portal');\n // Position relative for any child popper computing offset against\n // nearest positioned ancestor; z-index so the portal sits above the\n // main content stack.\n el.style.position = 'relative';\n el.style.zIndex = '50';\n document.body.appendChild(el);\n portalRef.current = el;\n // The setState here exposes the freshly-mounted DOM element to context\n // subscribers (overlay components) so they re-render and target the\n // portal on first commit. Single call on mount + single on unmount;\n // not the cascading-render footgun the lint rule guards against.\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setPortalEl(el);\n return () => {\n el.remove();\n portalRef.current = null;\n\n setPortalEl(null);\n };\n }, []);\n\n // Mirror theme attributes onto the portal element so its descendants\n // resolve `var(--ddga-*)` and respect dark mode / RTL the same way as\n // descendants of `rootEl`. We mutate via the ref (not the state) so the\n // react-hooks/immutability rule stays happy — and run this on every prop\n // change that affects appearance.\n useEffect(() => {\n const el = portalRef.current;\n if (!el) return;\n el.setAttribute('data-theme', mode);\n el.setAttribute('dir', dir);\n el.style.colorScheme = mode;\n if (themeVars) {\n for (const [k, v] of Object.entries(themeVars)) {\n el.style.setProperty(k, String(v));\n }\n }\n }, [mode, dir, themeVars, portalEl]);\n\n const ctxValue = useMemo<DgaContextValue>(\n () => ({ dir, locale: resolvedLocale, mode, rootEl, portalEl }),\n [dir, resolvedLocale, mode, rootEl, portalEl],\n );\n\n // Radix's Direction.Provider propagates `dir` to portal-rendered content\n // (Tooltip/Select/Toast/Modal) that would otherwise inherit body dir,\n // not the dir on this wrapper element. Nested providers reuse the parent\n // direction via their own Direction.Provider, so this is safe to repeat.\n const inner = <DirectionPrimitive.Provider dir={dir}>{children}</DirectionPrimitive.Provider>;\n\n return (\n <DgaContext.Provider value={ctxValue}>\n <Component\n ref={setRootEl}\n dir={dir}\n lang={resolvedLocale}\n data-slot=\"dga-root\"\n data-theme={mode}\n className={className}\n // Order: colorScheme → theme vars → consumer style. A manually-\n // supplied `style` overrides `theme` (escape hatch preserved per\n // THEMING-PLAN.md: every `--ddga-*` remains plain-CSS overridable).\n style={{ colorScheme: mode, ...(themeVars ?? {}), ...consumerStyle }}\n >\n {isNested ? (\n inner\n ) : (\n <TooltipPrimitive.Provider delayDuration={300} skipDelayDuration={100}>\n {inner}\n </TooltipPrimitive.Provider>\n )}\n </Component>\n </DgaContext.Provider>\n );\n}\n"],"mappings":";;;;;AAEA,SAAS,UAAU,SAAS,YAAY,WAAW,cAAc;AACjE,SAAS,aAAa,oBAAoB,WAAW,wBAAwB;AAC7E,SAAS,kBAAiC;AAmI1B;AApGT,SAAS,YAAY;AAAA,EAC1B,MAAM;AAAA,EACN;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,IAAI,YAAY;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,GAAqB;AACnB,QAAM,YAAY,WAAW,UAAU;AACvC,QAAM,WAAW,cAAc;AAK/B,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B,IAAI;AAK7D,QAAM,YAAY,OAA8B,IAAI;AACpD,QAAM,CAAC,UAAU,WAAW,IAAI,SAA6B,IAAI;AACjE,QAAM,iBAAiB,WAAW,QAAQ,QAAQ,OAAO;AAMzD,QAAM,YAAY,QAAQ,MAAO,QAAQ,WAAW,KAAK,IAAI,MAAO,CAAC,KAAK,CAAC;AAmB3E,YAAU,MAAM;AACd,QAAI,OAAO,aAAa,YAAa;AACrC,UAAM,KAAK,SAAS,cAAc,KAAK;AACvC,OAAG,aAAa,aAAa,YAAY;AAIzC,OAAG,MAAM,WAAW;AACpB,OAAG,MAAM,SAAS;AAClB,aAAS,KAAK,YAAY,EAAE;AAC5B,cAAU,UAAU;AAMpB,gBAAY,EAAE;AACd,WAAO,MAAM;AACX,SAAG,OAAO;AACV,gBAAU,UAAU;AAEpB,kBAAY,IAAI;AAAA,IAClB;AAAA,EACF,GAAG,CAAC,CAAC;AAOL,YAAU,MAAM;AACd,UAAM,KAAK,UAAU;AACrB,QAAI,CAAC,GAAI;AACT,OAAG,aAAa,cAAc,IAAI;AAClC,OAAG,aAAa,OAAO,GAAG;AAC1B,OAAG,MAAM,cAAc;AACvB,QAAI,WAAW;AACb,iBAAW,CAAC,GAAG,CAAC,KAAK,OAAO,QAAQ,SAAS,GAAG;AAC9C,WAAG,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC;AAAA,MACnC;AAAA,IACF;AAAA,EACF,GAAG,CAAC,MAAM,KAAK,WAAW,QAAQ,CAAC;AAEnC,QAAM,WAAW;AAAA,IACf,OAAO,EAAE,KAAK,QAAQ,gBAAgB,MAAM,QAAQ,SAAS;AAAA,IAC7D,CAAC,KAAK,gBAAgB,MAAM,QAAQ,QAAQ;AAAA,EAC9C;AAMA,QAAM,QAAQ,oBAAC,mBAAmB,UAAnB,EAA4B,KAAW,UAAS;AAE/D,SACE,oBAAC,WAAW,UAAX,EAAoB,OAAO,UAC1B;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA,MAAM;AAAA,MACN,aAAU;AAAA,MACV,cAAY;AAAA,MACZ;AAAA,MAIA,OAAO,EAAE,aAAa,MAAM,GAAI,aAAa,CAAC,GAAI,GAAG,cAAc;AAAA,MAElE,qBACC,QAEA,oBAAC,iBAAiB,UAAjB,EAA0B,eAAe,KAAK,mBAAmB,KAC/D,iBACH;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}