@gobolt/genesis 0.1.5 → 0.2.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 (685) hide show
  1. package/README.md +6 -8
  2. package/dist/AntdIcon-DH0CLM1Y.cjs +58 -0
  3. package/dist/CSSMotionList-BkQaDrZL.cjs +54 -0
  4. package/dist/CSSMotionList-Bnxp3McO.js +3043 -0
  5. package/dist/CheckCircleFilled-CjHdYIbm.cjs +1 -0
  6. package/dist/CheckOutlined-zCdr5BJm.cjs +1 -0
  7. package/dist/ClockCircleOutlined-5UFb32Vd.cjs +1 -0
  8. package/dist/CloseCircleFilled-DTf4XAEx.cjs +1 -0
  9. package/dist/CloseOutlined-Bdhtz5G6.cjs +1 -0
  10. package/dist/{Compact-DFcWZrNo.js → Compact-DLyEiUiM.js} +4 -4
  11. package/dist/Compact-DbbroFuI.cjs +1 -0
  12. package/dist/Context-C1u4yclk.cjs +1 -0
  13. package/dist/ContextIsolator-CoEIkMNv.cjs +1 -0
  14. package/dist/{ContextIsolator-CUJnq-4F.js → ContextIsolator-DmNIEQ4a.js} +2 -2
  15. package/dist/{DownOutlined-Bv7ua5i8.js → DownOutlined-B6sv2Wz7.js} +5 -5
  16. package/dist/DownOutlined-BQeYXxEW.cjs +4 -0
  17. package/dist/EllipsisOutlined-41dQ6mc7.cjs +1 -0
  18. package/dist/{EllipsisOutlined-BodkguEc.js → EllipsisOutlined-p42n6YT6.js} +62 -61
  19. package/dist/ExclamationCircleFilled-CKIE3287.cjs +1 -0
  20. package/dist/{Input--qsU-6vp.js → Input-BQWrpo9X.js} +10 -10
  21. package/dist/Input-DR_AoU5d.cjs +1 -0
  22. package/dist/KeyCode-CIq7HTTY.cjs +1 -0
  23. package/dist/Keyframes-CLS7wZIp.cjs +1 -0
  24. package/dist/{Keyframes-CyO2Aeq-.js → Keyframes-DIF9LGg-.js} +1 -1
  25. package/dist/LoadingOutlined-ByLc1sSe.cjs +1 -0
  26. package/dist/MinusCircleOutlined-d1WYK6RE.cjs +1 -0
  27. package/dist/{Overflow-CVbsx7Gn.js → Overflow-BjFvsSs4.js} +60 -59
  28. package/dist/Overflow-Bthkof3a.cjs +4 -0
  29. package/dist/SearchOutlined-BzV3qXvi.cjs +1 -0
  30. package/dist/{Skeleton-CudViN0a.js → Skeleton-CUGMlCIU.js} +3 -3
  31. package/dist/Skeleton-DJMABrvW.cjs +8 -0
  32. package/dist/TextArea-B8UHj7uQ.cjs +15 -0
  33. package/dist/{TextArea-CHo3cxKw.js → TextArea-FhT_niDe.js} +11 -11
  34. package/dist/{Typography-B2J8CPnt.js → Typography-BKm8uXM1.js} +52 -50
  35. package/dist/Typography-DCxwDJFP.cjs +10 -0
  36. package/dist/_baseIsEqual-DnZ6AoVd.cjs +1 -0
  37. package/dist/_commonjsHelpers-BTDuMlIz.cjs +1 -0
  38. package/dist/asyncToGenerator-Dr7BhN2C.cjs +1 -0
  39. package/dist/{button-CYVlK7G0.js → button-CvcGKj7O.js} +31 -31
  40. package/dist/button-vyLzOdPi.cjs +1 -0
  41. package/dist/collapse-DNCMuTyD.cjs +3 -0
  42. package/dist/compact-item-B2FiQh6y.cjs +1 -0
  43. package/dist/components/Avatar/Avatar.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  44. package/dist/components/Avatar/__tests__/Avatar.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  45. package/dist/components/Avatar/index.cjs.js +1 -0
  46. package/dist/components/Avatar/index.es.js +4 -0
  47. package/dist/components/Avatar/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  48. package/dist/components/Avatar/styles.d.ts +1 -12
  49. package/dist/components/Badge/Badge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  50. package/dist/components/Badge/Badge.d.ts +4 -1
  51. package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
  52. package/dist/components/Badge/__tests__/Badge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  53. package/dist/components/Badge/index.cjs.js +1 -0
  54. package/dist/components/Badge/index.es.js +4 -0
  55. package/dist/components/Badge/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +10 -14
  56. package/dist/components/Badge/styles.d.ts +1 -8
  57. package/dist/components/Breadcrumb/Breadcrumb.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  58. package/dist/components/Breadcrumb/Breadcrumb.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  59. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  60. package/dist/components/Breadcrumb/index.cjs.js +1 -0
  61. package/dist/components/Breadcrumb/index.es.js +4 -0
  62. package/dist/components/Breadcrumb/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +60 -0
  63. package/dist/components/Breadcrumb/styles.d.ts +2 -23
  64. package/dist/components/Button/Button.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  65. package/dist/components/Button/Button.d.ts +4 -3
  66. package/dist/components/Button/IconButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  67. package/dist/components/Button/IconButton.d.ts +8 -0
  68. package/dist/components/Button/UtilityButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  69. package/dist/components/Button/UtilityButton.d.ts +5 -0
  70. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -4
  71. package/dist/components/Button/__stories__/IconButton.stories.d.ts +8 -0
  72. package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +8 -0
  73. package/dist/components/Button/__tests__/Button.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  74. package/dist/components/Button/icon-button-styles.[format === /"es/" ? /"js/" : /"cjs/"]" +61 -0
  75. package/dist/components/Button/icon-button-styles.d.ts +1 -0
  76. package/dist/components/Button/index.cjs.js +1 -0
  77. package/dist/components/Button/index.d.ts +4 -0
  78. package/dist/components/Button/index.es.js +8 -0
  79. package/dist/components/Button/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +66 -0
  80. package/dist/components/Button/styles.d.ts +1 -15
  81. package/dist/components/Card/Card.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  82. package/dist/components/Card/__tests__/Card.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  83. package/dist/components/Card/index.cjs.js +1 -0
  84. package/dist/components/Card/index.es.js +4 -0
  85. package/dist/components/Card/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  86. package/dist/components/Card/styles.d.ts +1 -10
  87. package/dist/components/Checkbox/Checkbox.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  88. package/dist/components/Checkbox/__tests__/Checkbox.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  89. package/dist/components/Checkbox/index.cjs.js +1 -0
  90. package/dist/components/Checkbox/index.es.js +4 -0
  91. package/dist/components/Checkbox/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +17 -23
  92. package/dist/components/Checkbox/styles.d.ts +2 -7
  93. package/dist/components/Dashboard/Dashboard.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  94. package/dist/components/Dashboard/__mocks__/dashboard-data.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  95. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  96. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  97. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  98. package/dist/components/Dashboard/__stories__/charts/LineChart.[format === /"es/" ? /"js/" : /"cjs/"]" +2 -0
  99. package/dist/components/Dashboard/__tests__/Dashboard.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  100. package/dist/components/Dashboard/index.cjs.js +1 -0
  101. package/dist/components/Dashboard/index.es.js +4 -0
  102. package/dist/components/Dashboard/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  103. package/dist/components/Dashboard/styles.d.ts +1 -8
  104. package/dist/components/DatePicker/DatePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  105. package/dist/components/DatePicker/__tests__/DatePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  106. package/dist/components/DatePicker/index.cjs.js +1 -0
  107. package/dist/components/DatePicker/index.es.js +4 -0
  108. package/dist/components/DateRangePicker/DateRangePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  109. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  110. package/dist/components/DateRangePicker/index.cjs.js +1 -0
  111. package/dist/components/DateRangePicker/index.es.js +4 -0
  112. package/dist/components/ErrorBoundary/ErrorBoundary.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  113. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  114. package/dist/components/ErrorBoundary/index.cjs.js +1 -0
  115. package/dist/components/ErrorBoundary/index.es.js +4 -0
  116. package/dist/components/ErrorBoundary/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  117. package/dist/components/ErrorBoundary/styles.d.ts +1 -8
  118. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  119. package/dist/components/ErrorBoundaryFallback/index.cjs.js +1 -0
  120. package/dist/components/ErrorBoundaryFallback/index.es.js +4 -0
  121. package/dist/components/ErrorBoundaryFallback/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
  122. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
  123. package/dist/components/Form/Form.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  124. package/dist/components/Form/__stories__/FormStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  125. package/dist/components/Form/__tests__/form.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  126. package/dist/components/Form/index.cjs.js +1 -0
  127. package/dist/components/Form/index.es.js +4 -0
  128. package/dist/components/Form/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  129. package/dist/components/Glyph/Glyph.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  130. package/dist/components/Glyph/index.cjs.js +1 -0
  131. package/dist/components/Glyph/index.es.js +4 -0
  132. package/dist/components/Glyph/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  133. package/dist/components/Glyph/styles.d.ts +1 -8
  134. package/dist/components/Input/Input.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  135. package/dist/components/Input/Input.d.ts +3 -2
  136. package/dist/components/Input/__stories__/Input.stories.d.ts +1 -0
  137. package/dist/components/Input/__tests__/Input.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  138. package/dist/components/Input/index.cjs.js +1 -0
  139. package/dist/components/Input/index.es.js +4 -0
  140. package/dist/components/Input/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  141. package/dist/components/Input/styles.d.ts +1 -15
  142. package/dist/components/Layout/Content/Content.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  143. package/dist/components/Layout/Content/ResponsiveContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  144. package/dist/components/Layout/Content/index.cjs.js +1 -0
  145. package/dist/components/Layout/Content/index.es.js +4 -0
  146. package/dist/components/Layout/Content/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
  147. package/dist/components/Layout/Content/styles.d.ts +1 -7
  148. package/dist/components/Layout/Layout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  149. package/dist/components/Layout/MainLayout/MainLayout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  150. package/dist/components/Layout/MainLayout/index.cjs.js +1 -0
  151. package/dist/components/Layout/MainLayout/index.es.js +4 -0
  152. package/dist/components/Layout/MainLayout/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +62 -0
  153. package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
  154. package/dist/components/Layout/__tests__/Layout.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  155. package/dist/components/Layout/index.cjs.js +1 -0
  156. package/dist/components/Layout/index.es.js +4 -0
  157. package/dist/components/Message/Message.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  158. package/dist/components/Message/__tests__/Message.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  159. package/dist/components/Message/index.cjs.js +1 -0
  160. package/dist/components/Message/index.es.js +4 -0
  161. package/dist/components/Message/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
  162. package/dist/components/Message/styles.d.ts +3 -9
  163. package/dist/components/Notification/Notification.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  164. package/dist/components/Notification/NotificationBadge/NotificationBadge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  165. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  166. package/dist/components/Notification/NotificationBadge/icons/ASN.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  167. package/dist/components/Notification/NotificationBadge/icons/Appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  168. package/dist/components/Notification/NotificationBadge/icons/Inventory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  169. package/dist/components/Notification/NotificationBadge/icons/Parcel.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  170. package/dist/components/Notification/NotificationBadge/icons/Product.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  171. package/dist/components/Notification/NotificationBadge/icons/Route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  172. package/dist/components/Notification/NotificationBadge/icons/Shipment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  173. package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  174. package/dist/components/Notification/NotificationBadge/icons/System.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  175. package/dist/components/Notification/NotificationBadge/index.cjs.js +1 -0
  176. package/dist/components/Notification/NotificationBadge/index.es.js +4 -0
  177. package/dist/components/Notification/NotificationBadge/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +28 -0
  178. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
  179. package/dist/components/Notification/NotificationRightChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  180. package/dist/components/Notification/__tests__/Notification.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  181. package/dist/components/Notification/index.cjs.js +1 -0
  182. package/dist/components/Notification/index.es.js +4 -0
  183. package/dist/components/Notification/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +56 -0
  184. package/dist/components/Notification/styles.d.ts +5 -16
  185. package/dist/components/Popover/Popover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  186. package/dist/components/Popover/__tests__/Popover.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  187. package/dist/components/Popover/index.cjs.js +1 -0
  188. package/dist/components/Popover/index.es.js +4 -0
  189. package/dist/components/Popover/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  190. package/dist/components/Popover/styles.d.ts +1 -13
  191. package/dist/components/Progress/Progress.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  192. package/dist/components/Progress/Progress.util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  193. package/dist/components/Progress/ProgressText.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  194. package/dist/components/Progress/__tests__/Progress.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  195. package/dist/components/Progress/index.cjs.js +1 -0
  196. package/dist/components/Progress/index.es.js +4 -0
  197. package/dist/components/Progress/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  198. package/dist/components/Progress/styles.d.ts +1 -13
  199. package/dist/components/Radio/Radio.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  200. package/dist/components/Radio/Radio.d.ts +1 -4
  201. package/dist/components/Radio/RadioGroup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  202. package/dist/components/Radio/__tests__/RadioGroup.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  203. package/dist/components/Radio/index.cjs.js +1 -0
  204. package/dist/components/Radio/index.es.js +4 -0
  205. package/dist/components/Radio/states/RadioChecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  206. package/dist/components/Radio/states/RadioCheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  207. package/dist/components/Radio/states/RadioCheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  208. package/dist/components/Radio/states/RadioCheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  209. package/dist/components/Radio/states/RadioUnchecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  210. package/dist/components/Radio/states/RadioUncheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  211. package/dist/components/Radio/states/RadioUncheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  212. package/dist/components/Radio/states/RadioUncheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  213. package/dist/components/Row/Row.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  214. package/dist/components/Row/RowActions/RowActions.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  215. package/dist/components/Row/RowActions/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -9
  216. package/dist/components/Row/RowActions/styles.d.ts +2 -2
  217. package/dist/components/Row/RowLabelValue/RowLabelValue.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  218. package/dist/components/Row/RowLabelValue/RowSkeleton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  219. package/dist/components/Row/RowLabelValue/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +18 -0
  220. package/dist/components/Row/RowLabelValue/styles.d.ts +2 -12
  221. package/dist/components/Row/__tests__/Row.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  222. package/dist/components/Row/index.cjs.js +1 -0
  223. package/dist/components/Row/index.es.js +4 -0
  224. package/dist/components/Row/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +10 -0
  225. package/dist/components/Row/styles.d.ts +1 -9
  226. package/dist/components/SegmentedControls/SegmentedControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  227. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  228. package/dist/components/SegmentedControls/index.cjs.js +1 -0
  229. package/dist/components/SegmentedControls/index.es.js +4 -0
  230. package/dist/components/SegmentedControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +22 -0
  231. package/dist/components/SegmentedControls/styles.d.ts +1 -9
  232. package/dist/components/Select/DropdownChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  233. package/dist/components/Select/Select.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  234. package/dist/components/Select/Select.d.ts +5 -2
  235. package/dist/components/Select/__stories__/Select.stories.d.ts +1 -0
  236. package/dist/components/Select/__tests__/Select.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  237. package/dist/components/Select/index.cjs.js +1 -0
  238. package/dist/components/Select/index.es.js +4 -0
  239. package/dist/components/Select/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +129 -0
  240. package/dist/components/Select/styles.d.ts +5 -21
  241. package/dist/components/Shapes/Shapes.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  242. package/dist/components/Shapes/__tests__/Shapes.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  243. package/dist/components/Shapes/index.cjs.js +1 -0
  244. package/dist/components/Shapes/index.es.js +4 -0
  245. package/dist/components/Shapes/variants/Circle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  246. package/dist/components/Shapes/variants/Rectangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  247. package/dist/components/Shapes/variants/Triangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  248. package/dist/components/Switch/Switch.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  249. package/dist/components/Switch/__stories__/Switch.stories.d.ts +2 -1
  250. package/dist/components/Switch/__tests__/Switch.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  251. package/dist/components/Switch/index.cjs.js +1 -0
  252. package/dist/components/Switch/index.es.js +4 -0
  253. package/dist/components/Switch/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +58 -0
  254. package/dist/components/Switch/styles.d.ts +1 -7
  255. package/dist/components/Table/Table.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  256. package/dist/components/Table/Table.d.ts +40 -11
  257. package/dist/components/Table/TableControls/PrimaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  258. package/dist/components/Table/TableControls/PrimaryTableControls.d.ts +15 -0
  259. package/dist/components/Table/TableControls/SecondaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  260. package/dist/components/Table/TableControls/SecondaryTableControls.d.ts +10 -0
  261. package/dist/components/Table/TableControls/TableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  262. package/dist/components/Table/TableControls/TableControls.d.ts +8 -0
  263. package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +6 -0
  264. package/dist/components/Table/TableControls/__tests__/TableControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  265. package/dist/components/Table/TableControls/index.cjs.js +1 -0
  266. package/dist/components/Table/TableControls/index.d.ts +2 -0
  267. package/dist/components/Table/TableControls/index.es.js +4 -0
  268. package/dist/components/Table/TableControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  269. package/dist/components/Table/TableControls/styles.d.ts +6 -0
  270. package/dist/components/Table/TableWithControls/TableWithControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  271. package/dist/components/Table/TableWithControls/TableWithControls.d.ts +12 -0
  272. package/dist/components/Table/TableWithControls/__stories__/TableWithControls.stories.d.ts +6 -0
  273. package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  274. package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.d.ts +1 -0
  275. package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  276. package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.d.ts +1 -0
  277. package/dist/components/Table/TableWithControls/index.cjs.js +1 -0
  278. package/dist/components/Table/TableWithControls/index.d.ts +2 -0
  279. package/dist/components/Table/TableWithControls/index.es.js +4 -0
  280. package/dist/components/Table/__mocks__/table-mocks.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  281. package/dist/components/Table/__mocks__/table-mocks.d.ts +2 -1
  282. package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +3 -0
  283. package/dist/components/Table/__stories__/Table.stories.d.ts +3 -1
  284. package/dist/components/Table/__stories__/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  285. package/dist/components/Table/__stories__/use-table-hook.d.ts +9 -0
  286. package/dist/components/Table/__tests__/Table.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  287. package/dist/components/Table/index.cjs.js +1 -0
  288. package/dist/components/Table/index.es.js +4 -0
  289. package/dist/components/Table/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  290. package/dist/components/Table/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  291. package/dist/components/Table/use-table-hook.d.ts +23 -0
  292. package/dist/components/Tabs/Tabs.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  293. package/dist/components/Tabs/__tests__/Tabs.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  294. package/dist/components/Tabs/index.cjs.js +1 -0
  295. package/dist/components/Tabs/index.es.js +4 -0
  296. package/dist/components/Tabs/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -10
  297. package/dist/components/Tabs/styles.d.ts +1 -9
  298. package/dist/components/Tile/Tile.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  299. package/dist/components/Tile/__tests__/Tile.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  300. package/dist/components/Tile/index.cjs.js +1 -0
  301. package/dist/components/Tile/index.es.js +4 -0
  302. package/dist/components/Tile/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
  303. package/dist/components/Tile/styles.d.ts +1 -7
  304. package/dist/components/Toast/Toast.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  305. package/dist/components/Toast/__tests__/Toast.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  306. package/dist/components/Toast/index.cjs.js +1 -0
  307. package/dist/components/Toast/index.es.js +4 -0
  308. package/dist/components/Toast/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
  309. package/dist/components/Toast/styles.d.ts +3 -9
  310. package/dist/components/Tooltip/Tooltip.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  311. package/dist/components/Tooltip/__tests__/Tooltip.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  312. package/dist/components/Tooltip/index.cjs.js +1 -0
  313. package/dist/components/Tooltip/index.es.js +4 -0
  314. package/dist/components/Tooltip/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +5 -0
  315. package/dist/components/Tooltip/styles.d.ts +1 -14
  316. package/dist/components/Typography/Typography.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  317. package/dist/components/Typography/Typography.d.ts +1 -2
  318. package/dist/components/Typography/__tests__/Typography.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  319. package/dist/components/Typography/index.cjs.js +1 -0
  320. package/dist/components/Typography/index.es.js +4 -0
  321. package/dist/components/Typography/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +29 -0
  322. package/dist/components/Typography/styles.d.ts +3 -21
  323. package/dist/components/index.cjs.js +1 -0
  324. package/dist/components/index.d.cjs.js +1 -0
  325. package/dist/components/index.d.ts +4 -0
  326. package/dist/components/index.es.js +62 -0
  327. package/dist/constants/index.cjs.js +1 -0
  328. package/dist/constants/index.d.ts +2 -0
  329. package/dist/constants/{index.js → index.es.js} +14 -13
  330. package/dist/{context-CQfFkrkv.js → context-CTca8gjn.js} +3 -3
  331. package/dist/context-DdubDZbV.cjs +1 -0
  332. package/dist/declaration.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  333. package/dist/{dropdown-BlRB2LxQ.js → dropdown-CZHhUAdC.js} +13 -13
  334. package/dist/dropdown-DDY5X1Q0.cjs +27 -0
  335. package/dist/generateCategoricalChart-Dcyk3onh.cjs +90 -0
  336. package/dist/genesis/GenesisThemeBreakdown.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  337. package/dist/genesis/GenesisThemeDemo.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  338. package/dist/genesis/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +3 -10
  339. package/dist/genesis/styles.d.ts +2 -11
  340. package/dist/iconBase-C4boY5mo.cjs +1 -0
  341. package/dist/index-B2Z5NSa0.cjs +4 -0
  342. package/dist/{index-DRGbc-fW.js → index-B56O6LEG.js} +38 -37
  343. package/dist/index-B6nsE0F_.cjs +16 -0
  344. package/dist/index-BD5op9DA.cjs +6 -0
  345. package/dist/{index-BZ050Dyl.js → index-BJgt3NQN.js} +7 -7
  346. package/dist/index-Bj0GOR4e.cjs +1 -0
  347. package/dist/index-Bml8d_Df.cjs +15 -0
  348. package/dist/index-CNA8GQQR.cjs +1 -0
  349. package/dist/index-CSLsxIxR.cjs +1 -0
  350. package/dist/index-CUpwy6fl.cjs +24 -0
  351. package/dist/{index-CzMIlMTV.js → index-CXee0v2G.js} +2 -2
  352. package/dist/{index-C2K1BzmJ.js → index-CYbLY3uE.js} +22 -21
  353. package/dist/{index-DCopujxC.js → index-Ce7BgA_I.js} +32 -32
  354. package/dist/index-Cft4ZDoE.cjs +1 -0
  355. package/dist/{index-Br3D3cFM.js → index-CkrCy-wr.js} +49 -48
  356. package/dist/index-CmiuhnsO.js +11 -0
  357. package/dist/{index-RtWhGOwR.js → index-CsSLy_ri.js} +9 -9
  358. package/dist/{index-Bxbr727t.js → index-D0AjEeN2.js} +1 -1
  359. package/dist/{index-B7FXyiY_.js → index-D76Ewoqp.js} +4 -4
  360. package/dist/{index-BHCqeC4j.js → index-D9i74AKg.js} +11 -11
  361. package/dist/{index-DavB5GQ3.js → index-DAtTGIsZ.js} +19 -19
  362. package/dist/{index-Y0KgiFZb.js → index-DJcvYBdb.js} +9 -9
  363. package/dist/index-DLI4yl_y.cjs +22 -0
  364. package/dist/index-DPPQ1GIl.cjs +10 -0
  365. package/dist/index-DV4cHHkU.cjs +1 -0
  366. package/dist/index-DY6qmEFc.js +23 -0
  367. package/dist/index-DdF9CYRQ.cjs +1 -0
  368. package/dist/index-Dwe6wwhx.cjs +7 -0
  369. package/dist/{index-sX7KZ-nU.js → index-FDGutzXP.js} +42 -42
  370. package/dist/{index-RAH9f-qb.js → index-emugciTm.js} +6 -6
  371. package/dist/index-x6LPvHOw.cjs +17 -0
  372. package/dist/index-zDIwuuqH.cjs +3 -0
  373. package/dist/index.cjs.js +1 -0
  374. package/dist/index.es.js +69 -0
  375. package/dist/interface/address.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  376. package/dist/interface/appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  377. package/dist/interface/appointmentV2.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  378. package/dist/interface/appointmentsState.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  379. package/dist/interface/common.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  380. package/dist/interface/completionData.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  381. package/dist/interface/deliveryPartner.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  382. package/dist/interface/organization.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  383. package/dist/interface/pagination.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  384. package/dist/interface/roles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  385. package/dist/interface/route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  386. package/dist/interface/routeAnalysis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  387. package/dist/interface/routeAutomationJob.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  388. package/dist/interface/routeAutomationLog.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  389. package/dist/interface/routeEvent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  390. package/dist/interface/serviceArea.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  391. package/dist/interface/util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  392. package/dist/interface/vehicle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  393. package/dist/interface/workOrder.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  394. package/dist/isVisible-BNxwNfFH.cjs +1 -0
  395. package/dist/magic-string.es-BMxHbF2i.cjs +10 -0
  396. package/dist/motion-B_a-We1F.cjs +1 -0
  397. package/dist/{motion-C-XpKcZG.js → motion-Tyjtqn8t.js} +2 -2
  398. package/dist/omit-BrHx-Kj7.cjs +1 -0
  399. package/dist/pickAttrs-BUFdQiVt.cjs +18 -0
  400. package/dist/presetColors-DyrVjOJc.cjs +1 -0
  401. package/dist/presets-CCbttGCy.cjs +6 -0
  402. package/dist/providers/BreakpointProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  403. package/dist/providers/BreakpointProvider.d.ts +7 -0
  404. package/dist/providers/GenesisProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  405. package/dist/providers/ToastProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  406. package/dist/providers/index.cjs.js +1 -0
  407. package/dist/providers/index.es.js +6 -0
  408. package/dist/providers/useGenesis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  409. package/dist/providers/useGenesis.d.ts +2 -1
  410. package/dist/reactNode-DcoR9VZw.cjs +1 -0
  411. package/dist/{roundedArrow-BxPlu4Hq.js → roundedArrow-BtSC7b_q.js} +1 -1
  412. package/dist/roundedArrow-i9Dmpgeh.cjs +1 -0
  413. package/dist/{setup-aZdxWCJq.js → setup-D5hJ8cId.js} +6300 -5518
  414. package/dist/setup-Lma-RJTH.cjs +148 -0
  415. package/dist/setup.types-DNdmb6tK.cjs +46 -0
  416. package/dist/shadow-1q6dM13I.cjs +1 -0
  417. package/dist/statusUtils-DExYjn05.cjs +1 -0
  418. package/dist/styleChecker-Vc3-yig2.cjs +1 -0
  419. package/dist/styles/design-tokens/border-tokens/BorderTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  420. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  421. package/dist/styles/design-tokens/variables.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  422. package/dist/styles/design-tokens/variables.d.ts +2 -0
  423. package/dist/styles/{global-styles.js → global-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +2 -6
  424. package/dist/styles/global-styles.d.ts +1 -1
  425. package/dist/styles/theme/genesis-theme.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  426. package/dist/styles/theme/genesis-theme.d.ts +2 -0
  427. package/dist/styles/theme/genesis-theme.test.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  428. package/dist/styles/theme/genesis-theme.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  429. package/dist/styles/theme/genesis-theme.types.d.ts +7 -0
  430. package/dist/styles/theme/index.cjs.js +1 -0
  431. package/dist/styles/theme/{index.js → index.es.js} +1 -1
  432. package/dist/styles/theme/theme-tree/ThemeTree.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
  433. package/dist/styles-BEj8fZMe.cjs +3 -0
  434. package/dist/styles-BWTP_Zyu.cjs +103 -0
  435. package/dist/styles-BfoQ93tm.cjs +91 -0
  436. package/dist/{styles-Wpm1RiGr.js → styles-Bnh9HSiM.js} +46 -45
  437. package/dist/{styles-XuoEGUZZ.js → styles-CRSK7_lW.js} +135 -122
  438. package/dist/{styles-DNay6iFa.js → styles-CSzrJlJ9.js} +7 -7
  439. package/dist/{index-CupwdUIJ.js → styles-DXLK47iT.js} +167 -157
  440. package/dist/styles-j60Er7XY.cjs +16 -0
  441. package/dist/test/setup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  442. package/dist/test/setup.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  443. package/dist/{toArray-D5kvYi_U.js → toArray-BdEmgTlP.js} +1 -1
  444. package/dist/toArray-Cnq83wS3.cjs +1 -0
  445. package/dist/useBreakpoint-BkvhZP6y.cjs +1 -0
  446. package/dist/{useBreakpoint-ByLol0R9.js → useBreakpoint-C6P2JavP.js} +1 -1
  447. package/dist/{useCSSVarCls-YfJY1twF.js → useCSSVarCls-CwGsW74t.js} +1 -1
  448. package/dist/useCSSVarCls-Eahl89PI.cjs +1 -0
  449. package/dist/{useIcons-CoxuumP_.js → useIcons-BP_qFbBH.js} +3 -3
  450. package/dist/useIcons-elrpktrI.cjs +6 -0
  451. package/dist/useId-BDresUbx.cjs +1 -0
  452. package/dist/useLocale-Ccu6a0gD.cjs +1 -0
  453. package/dist/{useLocale-BQ3mKRyJ.js → useLocale-DkcoQ5u9.js} +1 -1
  454. package/dist/{useMergedState-D1-TbeEv.js → useMergedState-dLe_CnQY.js} +1 -1
  455. package/dist/useMergedState-g1JWsrDw.cjs +1 -0
  456. package/dist/{useSize-Ct1guc-z.js → useSize-D_iM0JXw.js} +1 -1
  457. package/dist/useSize-OiGNe58i.cjs +1 -0
  458. package/dist/{useVariants-C6UAAu9f.js → useVariants-BO1luVHT.js} +3 -3
  459. package/dist/useVariants-CAEx8XcP.cjs +1 -0
  460. package/dist/useZIndex-B720RqFH.cjs +1 -0
  461. package/dist/{useZIndex-tgX56o1r.js → useZIndex-DNLQPZBP.js} +2 -2
  462. package/dist/utils/icon-util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  463. package/dist/utils/icon-util.d.ts +1 -0
  464. package/dist/utils/styled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  465. package/dist/utils/styled.d.ts +7 -0
  466. package/dist/vi.B5EKKJdE-CoUxwxV9.cjs +434 -0
  467. package/dist/vite-env.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  468. package/package.json +26 -11
  469. package/dist/CSSMotionList-DB0khM6h.js +0 -22193
  470. package/dist/components/Avatar/Avatar.js +0 -62
  471. package/dist/components/Avatar/__tests__/Avatar.test.js +0 -17
  472. package/dist/components/Avatar/index.js +0 -4
  473. package/dist/components/Avatar/styles.js +0 -328
  474. package/dist/components/Badge/Badge.js +0 -71
  475. package/dist/components/Badge/__tests__/Badge.test.js +0 -17
  476. package/dist/components/Badge/index.js +0 -4
  477. package/dist/components/Breadcrumb/Breadcrumb.js +0 -11
  478. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +0 -23
  479. package/dist/components/Breadcrumb/index.js +0 -4
  480. package/dist/components/Breadcrumb/styles.js +0 -415
  481. package/dist/components/Button/Button.js +0 -26
  482. package/dist/components/Button/__tests__/Button.test.js +0 -17
  483. package/dist/components/Button/index.js +0 -4
  484. package/dist/components/Button/styles.js +0 -74
  485. package/dist/components/Card/Card.js +0 -16
  486. package/dist/components/Card/__tests__/Card.test.js +0 -16
  487. package/dist/components/Card/index.js +0 -4
  488. package/dist/components/Card/styles.js +0 -12
  489. package/dist/components/Checkbox/Checkbox.js +0 -52
  490. package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -19
  491. package/dist/components/Checkbox/index.js +0 -4
  492. package/dist/components/Dashboard/Dashboard.js +0 -5
  493. package/dist/components/Dashboard/__mocks__/dashboard-data.js +0 -186
  494. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +0 -947
  495. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +0 -86
  496. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +0 -23
  497. package/dist/components/Dashboard/__stories__/charts/LineChart.js +0 -534
  498. package/dist/components/Dashboard/__tests__/Dashboard.test.js +0 -16
  499. package/dist/components/Dashboard/index.js +0 -4
  500. package/dist/components/Dashboard/styles.js +0 -11
  501. package/dist/components/DatePicker/DatePicker.js +0 -5
  502. package/dist/components/DatePicker/__tests__/DatePicker.test.js +0 -19
  503. package/dist/components/DatePicker/index.js +0 -4
  504. package/dist/components/DateRangePicker/DateRangePicker.js +0 -5
  505. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +0 -23
  506. package/dist/components/DateRangePicker/index.js +0 -4
  507. package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -73
  508. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +0 -30
  509. package/dist/components/ErrorBoundary/index.js +0 -4
  510. package/dist/components/ErrorBoundary/styles.js +0 -11
  511. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +0 -56
  512. package/dist/components/ErrorBoundaryFallback/index.js +0 -4
  513. package/dist/components/ErrorBoundaryFallback/styles.js +0 -933
  514. package/dist/components/Form/Form.js +0 -8
  515. package/dist/components/Form/__stories__/FormStory.js +0 -171
  516. package/dist/components/Form/__tests__/form.test.js +0 -19
  517. package/dist/components/Form/index.js +0 -4
  518. package/dist/components/Form/styles.js +0 -13
  519. package/dist/components/FormBrandon/Form.d.ts +0 -25
  520. package/dist/components/FormBrandon/Form.js +0 -18
  521. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +0 -6
  522. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +0 -1
  523. package/dist/components/FormBrandon/__stories__/FormStory.js +0 -172
  524. package/dist/components/FormBrandon/__tests__/form.test.js +0 -19
  525. package/dist/components/FormBrandon/index.d.ts +0 -2
  526. package/dist/components/FormBrandon/index.js +0 -4
  527. package/dist/components/FormBrandon/styles.d.ts +0 -2
  528. package/dist/components/FormBrandon/styles.js +0 -13
  529. package/dist/components/Glyph/Glyph.js +0 -9
  530. package/dist/components/Glyph/index.js +0 -4
  531. package/dist/components/Glyph/styles.js +0 -11
  532. package/dist/components/Input/Input.js +0 -22
  533. package/dist/components/Input/__tests__/Input.test.js +0 -25
  534. package/dist/components/Input/index.js +0 -4
  535. package/dist/components/Input/styles.js +0 -6
  536. package/dist/components/Layout/Content/Content.js +0 -32
  537. package/dist/components/Layout/Content/ResponsiveContent.js +0 -82
  538. package/dist/components/Layout/Content/index.js +0 -4
  539. package/dist/components/Layout/Content/styles.js +0 -16
  540. package/dist/components/Layout/Layout.js +0 -6
  541. package/dist/components/Layout/MainLayout/MainLayout.js +0 -28
  542. package/dist/components/Layout/MainLayout/index.js +0 -4
  543. package/dist/components/Layout/MainLayout/styles.js +0 -69
  544. package/dist/components/Layout/__tests__/Layout.test.js +0 -14
  545. package/dist/components/Layout/index.js +0 -4
  546. package/dist/components/Message/Message.js +0 -106
  547. package/dist/components/Message/__tests__/Message.test.js +0 -43
  548. package/dist/components/Message/index.js +0 -4
  549. package/dist/components/Message/styles.js +0 -45
  550. package/dist/components/Notification/Notification.js +0 -1462
  551. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +0 -49
  552. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +0 -18
  553. package/dist/components/Notification/NotificationBadge/icons/ASN.js +0 -23
  554. package/dist/components/Notification/NotificationBadge/icons/Appointment.js +0 -23
  555. package/dist/components/Notification/NotificationBadge/icons/Inventory.js +0 -23
  556. package/dist/components/Notification/NotificationBadge/icons/Parcel.js +0 -23
  557. package/dist/components/Notification/NotificationBadge/icons/Product.js +0 -23
  558. package/dist/components/Notification/NotificationBadge/icons/Route.js +0 -23
  559. package/dist/components/Notification/NotificationBadge/icons/Shipment.js +0 -23
  560. package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.js +0 -23
  561. package/dist/components/Notification/NotificationBadge/icons/System.js +0 -23
  562. package/dist/components/Notification/NotificationBadge/index.js +0 -4
  563. package/dist/components/Notification/NotificationBadge/styles.js +0 -34
  564. package/dist/components/Notification/NotificationRightChevron.js +0 -23
  565. package/dist/components/Notification/__tests__/Notification.test.js +0 -15
  566. package/dist/components/Notification/index.js +0 -4
  567. package/dist/components/Notification/styles.js +0 -65
  568. package/dist/components/Popover/Popover.js +0 -24
  569. package/dist/components/Popover/__tests__/Popover.test.js +0 -33
  570. package/dist/components/Popover/index.js +0 -4
  571. package/dist/components/Popover/styles.js +0 -6
  572. package/dist/components/Progress/Progress.js +0 -93
  573. package/dist/components/Progress/Progress.util.js +0 -63
  574. package/dist/components/Progress/ProgressText.js +0 -68
  575. package/dist/components/Progress/__tests__/Progress.test.js +0 -21
  576. package/dist/components/Progress/index.js +0 -4
  577. package/dist/components/Progress/styles.js +0 -796
  578. package/dist/components/Radio/Radio.js +0 -45
  579. package/dist/components/Radio/RadioGroup.js +0 -33
  580. package/dist/components/Radio/__tests__/RadioGroup.test.js +0 -31
  581. package/dist/components/Radio/index.js +0 -4
  582. package/dist/components/Radio/states/RadioChecked.js +0 -18
  583. package/dist/components/Radio/states/RadioCheckedDisabled.js +0 -18
  584. package/dist/components/Radio/states/RadioCheckedFocussed.js +0 -30
  585. package/dist/components/Radio/states/RadioCheckedHover.js +0 -18
  586. package/dist/components/Radio/states/RadioUnchecked.js +0 -15
  587. package/dist/components/Radio/states/RadioUncheckedDisabled.js +0 -15
  588. package/dist/components/Radio/states/RadioUncheckedFocussed.js +0 -29
  589. package/dist/components/Radio/states/RadioUncheckedHover.js +0 -18
  590. package/dist/components/Row/Row.js +0 -41
  591. package/dist/components/Row/RowActions/RowActions.js +0 -60
  592. package/dist/components/Row/RowLabelValue/RowLabelValue.js +0 -63
  593. package/dist/components/Row/RowLabelValue/RowSkeleton.js +0 -24
  594. package/dist/components/Row/RowLabelValue/styles.js +0 -25
  595. package/dist/components/Row/__tests__/Row.test.js +0 -16
  596. package/dist/components/Row/index.js +0 -4
  597. package/dist/components/Row/styles.js +0 -15
  598. package/dist/components/SegmentedControls/SegmentedControls.js +0 -26
  599. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +0 -24
  600. package/dist/components/SegmentedControls/index.js +0 -4
  601. package/dist/components/SegmentedControls/styles.js +0 -522
  602. package/dist/components/Select/DropdownChevron.js +0 -23
  603. package/dist/components/Select/Select.js +0 -36
  604. package/dist/components/Select/__tests__/Select.test.js +0 -55
  605. package/dist/components/Select/index.js +0 -4
  606. package/dist/components/Select/styles.js +0 -119
  607. package/dist/components/Shapes/Shapes.js +0 -8
  608. package/dist/components/Shapes/__tests__/Shapes.test.js +0 -16
  609. package/dist/components/Shapes/index.js +0 -4
  610. package/dist/components/Shapes/variants/Circle.js +0 -23
  611. package/dist/components/Shapes/variants/Rectangle.js +0 -23
  612. package/dist/components/Shapes/variants/Triangle.js +0 -23
  613. package/dist/components/Switch/Switch.js +0 -22
  614. package/dist/components/Switch/__tests__/Switch.test.js +0 -25
  615. package/dist/components/Switch/index.js +0 -4
  616. package/dist/components/Switch/styles.js +0 -456
  617. package/dist/components/Table/Table.js +0 -23
  618. package/dist/components/Table/__mocks__/table-mocks.js +0 -322
  619. package/dist/components/Table/__tests__/Table.test.js +0 -34
  620. package/dist/components/Table/index.js +0 -4
  621. package/dist/components/Table/styles.js +0 -6
  622. package/dist/components/Tabs/Tabs.js +0 -23
  623. package/dist/components/Tabs/__tests__/Tabs.test.js +0 -37
  624. package/dist/components/Tabs/index.js +0 -4
  625. package/dist/components/Tile/Tile.js +0 -21
  626. package/dist/components/Tile/__tests__/Tile.test.js +0 -21
  627. package/dist/components/Tile/index.js +0 -4
  628. package/dist/components/Tile/styles.js +0 -12
  629. package/dist/components/Toast/Toast.js +0 -37
  630. package/dist/components/Toast/__tests__/Toast.test.js +0 -19
  631. package/dist/components/Toast/index.js +0 -4
  632. package/dist/components/Toast/styles.js +0 -45
  633. package/dist/components/Tooltip/Tooltip.js +0 -51
  634. package/dist/components/Tooltip/__tests__/Tooltip.test.js +0 -25
  635. package/dist/components/Tooltip/index.js +0 -4
  636. package/dist/components/Tooltip/styles.js +0 -11
  637. package/dist/components/Typography/Typography.js +0 -8
  638. package/dist/components/Typography/__tests__/Typography.test.js +0 -24
  639. package/dist/components/Typography/index.js +0 -4
  640. package/dist/components/Typography/styles.js +0 -84
  641. package/dist/components/index.d.js +0 -1
  642. package/dist/components/index.js +0 -58
  643. package/dist/declaration.d.js +0 -1
  644. package/dist/genesis/GenesisThemeBreakdown.js +0 -145
  645. package/dist/genesis/GenesisThemeDemo.js +0 -7
  646. package/dist/index.js +0 -65
  647. package/dist/interface/address.js +0 -1
  648. package/dist/interface/appointment.js +0 -5
  649. package/dist/interface/appointmentV2.js +0 -1
  650. package/dist/interface/appointmentsState.js +0 -1
  651. package/dist/interface/common.js +0 -1
  652. package/dist/interface/completionData.js +0 -1
  653. package/dist/interface/deliveryPartner.js +0 -1
  654. package/dist/interface/organization.js +0 -1
  655. package/dist/interface/pagination.js +0 -1
  656. package/dist/interface/roles.js +0 -1
  657. package/dist/interface/route.js +0 -1
  658. package/dist/interface/routeAnalysis.js +0 -1
  659. package/dist/interface/routeAutomationJob.js +0 -10
  660. package/dist/interface/routeAutomationLog.js +0 -1
  661. package/dist/interface/routeEvent.js +0 -5
  662. package/dist/interface/serviceArea.js +0 -1
  663. package/dist/interface/util.js +0 -1
  664. package/dist/interface/vehicle.js +0 -1
  665. package/dist/interface/workOrder.js +0 -1
  666. package/dist/providers/BreakpointThemeProvider.d.ts +0 -8
  667. package/dist/providers/BreakpointThemeProvider.js +0 -21
  668. package/dist/providers/GenesisProvider.js +0 -11
  669. package/dist/providers/ToastProvider.js +0 -37
  670. package/dist/providers/index.js +0 -6
  671. package/dist/providers/useGenesis.js +0 -6
  672. package/dist/styled-components.browser.esm-C47QHsU4.js +0 -1211
  673. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +0 -60
  674. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +0 -64
  675. package/dist/styles/design-tokens/variables.js +0 -697
  676. package/dist/styles/theme/genesis-theme.js +0 -1095
  677. package/dist/styles/theme/genesis-theme.test.js +0 -69
  678. package/dist/styles/theme/genesis-theme.types.js +0 -4
  679. package/dist/styles/theme/theme-tree/ThemeTree.js +0 -1652
  680. package/dist/test/setup.js +0 -91
  681. package/dist/test/setup.types.js +0 -1
  682. package/dist/utils/icon-util.js +0 -93
  683. package/dist/vite-env.d.js +0 -1
  684. /package/dist/components/{FormBrandon/__tests__/form.test.d.ts → Table/TableControls/__tests__/TableControls.test.d.ts} +0 -0
  685. /package/dist/components/{Breadcrumb/Breadcrumb.types.js → index.d.es.js} +0 -0
@@ -1,1652 +0,0 @@
1
- import { jsxs as J, Fragment as yt, jsx as D } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import h, { useContext as ae, useRef as Z, useMemo as xt, useEffect as me, useState as te, createElement as $t } from "react";
4
- import "../../../providers/BreakpointThemeProvider.js";
5
- import { u as Et, a as Ot } from "../../../Typography-B2J8CPnt.js";
6
- import "../../../components/Avatar/styles.js";
7
- import "../../../components/Badge/styles.js";
8
- import "../../../components/Breadcrumb/styles.js";
9
- import "../../../components/Button/styles.js";
10
- import "../../../components/Card/styles.js";
11
- import "../../../components/Checkbox/styles.js";
12
- import "../../../components/DateRangePicker/DateRangePicker.js";
13
- import "../../../components/ErrorBoundaryFallback/styles.js";
14
- import { a as St } from "../../../styles-XuoEGUZZ.js";
15
- import "../../../components/Layout/Content/styles.js";
16
- import "../../../components/Message/styles.js";
17
- import "../../../components/Notification/NotificationBadge/styles.js";
18
- import "../../../components/Notification/styles.js";
19
- import { A as Ae } from "../../../styles-DNay6iFa.js";
20
- import "../../../components/Progress/styles.js";
21
- import "../../../components/Row/styles.js";
22
- import "../../../components/Row/RowLabelValue/styles.js";
23
- import "../../../components/Row/RowActions/styles.js";
24
- import "../../../components/SegmentedControls/styles.js";
25
- import "../../../components/Select/styles.js";
26
- import "../../../components/Switch/styles.js";
27
- import { a as fe } from "../../../styles-Wpm1RiGr.js";
28
- import "../../../components/Tabs/styles.js";
29
- import "../../../components/Tile/styles.js";
30
- import "../../../components/Toast/styles.js";
31
- import "../../../components/Tooltip/styles.js";
32
- import "../../global-styles.js";
33
- import { e as q, _ as A, c as z, f as Ee, a as ve, j as Oe, q as Se, d as wt } from "../../../presets-CSXMiWyc.js";
34
- import { I as Le } from "../../../AntdIcon-DP6hPDqu.js";
35
- import { R as Nt } from "../../../index-BHCqeC4j.js";
36
- import { n as k, A as Pt, p as He, a as It, g as Tt, f as N, m as Mt, j as Rt, o as jt, C as ce, Z as Bt, k as Dt, c as zt } from "../../../CSSMotionList-DB0khM6h.js";
37
- import { b as Ve, a as Ft, d as Ce, C as We, c as _t, e as At, w as Ge, l as Lt } from "../../../index-DCopujxC.js";
38
- import { g as Ht } from "../../../index-Br3D3cFM.js";
39
- import { R as Vt } from "../../../CheckCircleFilled-B-wrMduA.js";
40
- import { R as Wt } from "../../../CloseCircleFilled-WEQ0SaSW.js";
41
- import { R as Gt } from "../../../ExclamationCircleFilled-x8Sr29BN.js";
42
- import { u as Kt, z as qt, C as Ut } from "../../../useZIndex-tgX56o1r.js";
43
- import { g as se } from "../../../motion-C-XpKcZG.js";
44
- import { R as pe } from "../../../CloseOutlined-DzgBOns1.js";
45
- import { i as kt, P as Xt } from "../../../index-DRGbc-fW.js";
46
- import { u as Zt } from "../../../useId-DLf1xVuv.js";
47
- import { K as we } from "../../../KeyCode-B3vHb2gY.js";
48
- import { p as be } from "../../../pickAttrs-yFE4_vFd.js";
49
- import { C as Qt } from "../../../ContextIsolator-CUJnq-4F.js";
50
- import { u as Ke } from "../../../useCSSVarCls-YfJY1twF.js";
51
- import { S as Yt } from "../../../Skeleton-CudViN0a.js";
52
- import { B as qe, c as Jt } from "../../../button-CYVlK7G0.js";
53
- import { u as he } from "../../../useLocale-BQ3mKRyJ.js";
54
- import { g as en } from "../../../index-CupwdUIJ.js";
55
- import { K as Ue } from "../../../Keyframes-CyO2Aeq-.js";
56
- import { i as tn } from "../../../index-Y0KgiFZb.js";
57
- import { w as nn } from "../../../DownOutlined-Bv7ua5i8.js";
58
- var on = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, rn = function(t, o) {
59
- return /* @__PURE__ */ l.createElement(Le, q({}, t, {
60
- ref: o,
61
- icon: on
62
- }));
63
- }, ke = /* @__PURE__ */ l.forwardRef(rn);
64
- process.env.NODE_ENV !== "production" && (ke.displayName = "InfoCircleFilled");
65
- function an() {
66
- const [e, t] = l.useState([]), o = l.useCallback((n) => (t((r) => [].concat(k(r), [n])), () => {
67
- t((r) => r.filter((i) => i !== n));
68
- }), []);
69
- return [e, o];
70
- }
71
- const ln = new Ue("antFadeIn", {
72
- "0%": {
73
- opacity: 0
74
- },
75
- "100%": {
76
- opacity: 1
77
- }
78
- }), sn = new Ue("antFadeOut", {
79
- "0%": {
80
- opacity: 1
81
- },
82
- "100%": {
83
- opacity: 0
84
- }
85
- }), cn = function(e) {
86
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
87
- const {
88
- antCls: o
89
- } = e, n = `${o}-fade`, r = t ? "&" : "";
90
- return [kt(n, ln, sn, e.motionDurationMid, t), {
91
- [`
92
- ${r}${n}-enter,
93
- ${r}${n}-appear
94
- `]: {
95
- opacity: 0,
96
- animationTimingFunction: "linear"
97
- },
98
- [`${r}${n}-leave`]: {
99
- animationTimingFunction: "linear"
100
- }
101
- }];
102
- }, le = /* @__PURE__ */ h.createContext({}), {
103
- Provider: Xe
104
- } = le, Ne = () => {
105
- const {
106
- autoFocusButton: e,
107
- cancelButtonProps: t,
108
- cancelTextLocale: o,
109
- isSilent: n,
110
- mergedOkCancel: r,
111
- rootPrefixCls: i,
112
- close: d,
113
- onCancel: c,
114
- onConfirm: s
115
- } = ae(le);
116
- return r ? /* @__PURE__ */ h.createElement(Ae, {
117
- isSilent: n,
118
- actionFn: c,
119
- close: function() {
120
- d == null || d.apply(void 0, arguments), s == null || s(!1);
121
- },
122
- autoFocus: e === "cancel",
123
- buttonProps: t,
124
- prefixCls: `${i}-btn`
125
- }, o) : null;
126
- }, Pe = () => {
127
- const {
128
- autoFocusButton: e,
129
- close: t,
130
- isSilent: o,
131
- okButtonProps: n,
132
- rootPrefixCls: r,
133
- okTextLocale: i,
134
- okType: d,
135
- onConfirm: c,
136
- onOk: s
137
- } = ae(le);
138
- return /* @__PURE__ */ h.createElement(Ae, {
139
- isSilent: o,
140
- type: d || "primary",
141
- actionFn: s,
142
- close: function() {
143
- t == null || t.apply(void 0, arguments), c == null || c(!0);
144
- },
145
- autoFocus: e === "ok",
146
- buttonProps: n,
147
- prefixCls: `${r}-btn`
148
- }, i);
149
- };
150
- var Ze = /* @__PURE__ */ l.createContext({});
151
- function Ie(e, t, o) {
152
- var n = t;
153
- return !n && o && (n = "".concat(e, "-").concat(o)), n;
154
- }
155
- function Te(e, t) {
156
- var o = e["page".concat(t ? "Y" : "X", "Offset")], n = "scroll".concat(t ? "Top" : "Left");
157
- if (typeof o != "number") {
158
- var r = e.document;
159
- o = r.documentElement[n], typeof o != "number" && (o = r.body[n]);
160
- }
161
- return o;
162
- }
163
- function dn(e) {
164
- var t = e.getBoundingClientRect(), o = {
165
- left: t.left,
166
- top: t.top
167
- }, n = e.ownerDocument, r = n.defaultView || n.parentWindow;
168
- return o.left += Te(r), o.top += Te(r, !0), o;
169
- }
170
- const un = /* @__PURE__ */ l.memo(function(e) {
171
- var t = e.children;
172
- return t;
173
- }, function(e, t) {
174
- var o = t.shouldUpdate;
175
- return !o;
176
- });
177
- var fn = {
178
- width: 0,
179
- height: 0,
180
- overflow: "hidden",
181
- outline: "none"
182
- }, mn = {
183
- outline: "none"
184
- }, ye = /* @__PURE__ */ h.forwardRef(function(e, t) {
185
- var o = e.prefixCls, n = e.className, r = e.style, i = e.title, d = e.ariaId, c = e.footer, s = e.closable, m = e.closeIcon, a = e.onClose, f = e.children, u = e.bodyStyle, v = e.bodyProps, E = e.modalRender, C = e.onMouseDown, p = e.onMouseUp, y = e.holderRef, b = e.visible, P = e.forceRender, O = e.width, I = e.height, S = e.classNames, w = e.styles, L = h.useContext(Ze), B = L.panel, X = Pt(y, B), g = Z(), x = Z();
186
- h.useImperativeHandle(t, function() {
187
- return {
188
- focus: function() {
189
- var G;
190
- (G = g.current) === null || G === void 0 || G.focus({
191
- preventScroll: !0
192
- });
193
- },
194
- changeActive: function(G) {
195
- var oe = document, U = oe.activeElement;
196
- G && U === x.current ? g.current.focus({
197
- preventScroll: !0
198
- }) : !G && U === g.current && x.current.focus({
199
- preventScroll: !0
200
- });
201
- }
202
- };
203
- });
204
- var $ = {};
205
- O !== void 0 && ($.width = O), I !== void 0 && ($.height = I);
206
- var j = c ? /* @__PURE__ */ h.createElement("div", {
207
- className: z("".concat(o, "-footer"), S == null ? void 0 : S.footer),
208
- style: A({}, w == null ? void 0 : w.footer)
209
- }, c) : null, F = i ? /* @__PURE__ */ h.createElement("div", {
210
- className: z("".concat(o, "-header"), S == null ? void 0 : S.header),
211
- style: A({}, w == null ? void 0 : w.header)
212
- }, /* @__PURE__ */ h.createElement("div", {
213
- className: "".concat(o, "-title"),
214
- id: d
215
- }, i)) : null, T = xt(function() {
216
- return Ee(s) === "object" && s !== null ? s : s ? {
217
- closeIcon: m ?? /* @__PURE__ */ h.createElement("span", {
218
- className: "".concat(o, "-close-x")
219
- })
220
- } : {};
221
- }, [s, m, o]), R = be(T, !0), K = Ee(s) === "object" && s.disabled, ne = s ? /* @__PURE__ */ h.createElement("button", q({
222
- type: "button",
223
- onClick: a,
224
- "aria-label": "Close"
225
- }, R, {
226
- className: "".concat(o, "-close"),
227
- disabled: K
228
- }), T.closeIcon) : null, Q = /* @__PURE__ */ h.createElement("div", {
229
- className: z("".concat(o, "-content"), S == null ? void 0 : S.content),
230
- style: w == null ? void 0 : w.content
231
- }, ne, F, /* @__PURE__ */ h.createElement("div", q({
232
- className: z("".concat(o, "-body"), S == null ? void 0 : S.body),
233
- style: A(A({}, u), w == null ? void 0 : w.body)
234
- }, v), f), j);
235
- return /* @__PURE__ */ h.createElement("div", {
236
- key: "dialog-element",
237
- role: "dialog",
238
- "aria-labelledby": i ? d : null,
239
- "aria-modal": "true",
240
- ref: X,
241
- style: A(A({}, r), $),
242
- className: z(o, n),
243
- onMouseDown: C,
244
- onMouseUp: p
245
- }, /* @__PURE__ */ h.createElement("div", {
246
- ref: g,
247
- tabIndex: 0,
248
- style: mn
249
- }, /* @__PURE__ */ h.createElement(un, {
250
- shouldUpdate: b || P
251
- }, E ? E(Q) : Q)), /* @__PURE__ */ h.createElement("div", {
252
- tabIndex: 0,
253
- ref: x,
254
- style: fn
255
- }));
256
- });
257
- process.env.NODE_ENV !== "production" && (ye.displayName = "Panel");
258
- var Qe = /* @__PURE__ */ l.forwardRef(function(e, t) {
259
- var o = e.prefixCls, n = e.title, r = e.style, i = e.className, d = e.visible, c = e.forceRender, s = e.destroyOnClose, m = e.motionName, a = e.ariaId, f = e.onVisibleChanged, u = e.mousePosition, v = Z(), E = l.useState(), C = ve(E, 2), p = C[0], y = C[1], b = {};
260
- p && (b.transformOrigin = p);
261
- function P() {
262
- var O = dn(v.current);
263
- y(u && (u.x || u.y) ? "".concat(u.x - O.left, "px ").concat(u.y - O.top, "px") : "");
264
- }
265
- return /* @__PURE__ */ l.createElement(He, {
266
- visible: d,
267
- onVisibleChanged: f,
268
- onAppearPrepare: P,
269
- onEnterPrepare: P,
270
- forceRender: c,
271
- motionName: m,
272
- removeOnLeave: s,
273
- ref: v
274
- }, function(O, I) {
275
- var S = O.className, w = O.style;
276
- return /* @__PURE__ */ l.createElement(ye, q({}, e, {
277
- ref: t,
278
- title: n,
279
- ariaId: a,
280
- prefixCls: o,
281
- holderRef: I,
282
- style: A(A(A({}, w), r), b),
283
- className: z(i, S)
284
- }));
285
- });
286
- });
287
- Qe.displayName = "Content";
288
- var gn = function(t) {
289
- var o = t.prefixCls, n = t.style, r = t.visible, i = t.maskProps, d = t.motionName, c = t.className;
290
- return /* @__PURE__ */ l.createElement(He, {
291
- key: "mask",
292
- visible: r,
293
- motionName: d,
294
- leavedClassName: "".concat(o, "-mask-hidden")
295
- }, function(s, m) {
296
- var a = s.className, f = s.style;
297
- return /* @__PURE__ */ l.createElement("div", q({
298
- ref: m,
299
- style: A(A({}, f), n),
300
- className: z("".concat(o, "-mask"), a, c)
301
- }, i));
302
- });
303
- }, vn = function(t) {
304
- var o = t.prefixCls, n = o === void 0 ? "rc-dialog" : o, r = t.zIndex, i = t.visible, d = i === void 0 ? !1 : i, c = t.keyboard, s = c === void 0 ? !0 : c, m = t.focusTriggerAfterClose, a = m === void 0 ? !0 : m, f = t.wrapStyle, u = t.wrapClassName, v = t.wrapProps, E = t.onClose, C = t.afterOpenChange, p = t.afterClose, y = t.transitionName, b = t.animation, P = t.closable, O = P === void 0 ? !0 : P, I = t.mask, S = I === void 0 ? !0 : I, w = t.maskTransitionName, L = t.maskAnimation, B = t.maskClosable, X = B === void 0 ? !0 : B, g = t.maskStyle, x = t.maskProps, $ = t.rootClassName, j = t.classNames, F = t.styles;
305
- process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(M) {
306
- Oe(!(M in t), "".concat(M, " is deprecated, please use styles instead."));
307
- }), "wrapClassName" in t && Oe(!1, "wrapClassName is deprecated, please use classNames instead."));
308
- var T = Z(), R = Z(), K = Z(), ne = l.useState(d), Q = ve(ne, 2), Y = Q[0], G = Q[1], oe = Zt();
309
- function U() {
310
- Se(R.current, document.activeElement) || (T.current = document.activeElement);
311
- }
312
- function de() {
313
- if (!Se(R.current, document.activeElement)) {
314
- var M;
315
- (M = K.current) === null || M === void 0 || M.focus();
316
- }
317
- }
318
- function H(M) {
319
- if (M)
320
- de();
321
- else {
322
- if (G(!1), S && T.current && a) {
323
- try {
324
- T.current.focus({
325
- preventScroll: !0
326
- });
327
- } catch {
328
- }
329
- T.current = null;
330
- }
331
- Y && (p == null || p());
332
- }
333
- C == null || C(M);
334
- }
335
- function _(M) {
336
- E == null || E(M);
337
- }
338
- var V = Z(!1), re = Z(), Ct = function() {
339
- clearTimeout(re.current), V.current = !0;
340
- }, pt = function() {
341
- re.current = setTimeout(function() {
342
- V.current = !1;
343
- });
344
- }, $e = null;
345
- X && ($e = function(ue) {
346
- V.current ? V.current = !1 : R.current === ue.target && _(ue);
347
- });
348
- function bt(M) {
349
- if (s && M.keyCode === we.ESC) {
350
- M.stopPropagation(), _(M);
351
- return;
352
- }
353
- d && M.keyCode === we.TAB && K.current.changeActive(!M.shiftKey);
354
- }
355
- me(function() {
356
- d && (G(!0), U());
357
- }, [d]), me(function() {
358
- return function() {
359
- clearTimeout(re.current);
360
- };
361
- }, []);
362
- var ht = A(A(A({
363
- zIndex: r
364
- }, f), F == null ? void 0 : F.wrapper), {}, {
365
- display: Y ? null : "none"
366
- });
367
- return /* @__PURE__ */ l.createElement("div", q({
368
- className: z("".concat(n, "-root"), $)
369
- }, be(t, {
370
- data: !0
371
- })), /* @__PURE__ */ l.createElement(gn, {
372
- prefixCls: n,
373
- visible: S && d,
374
- motionName: Ie(n, w, L),
375
- style: A(A({
376
- zIndex: r
377
- }, g), F == null ? void 0 : F.mask),
378
- maskProps: x,
379
- className: j == null ? void 0 : j.mask
380
- }), /* @__PURE__ */ l.createElement("div", q({
381
- tabIndex: -1,
382
- onKeyDown: bt,
383
- className: z("".concat(n, "-wrap"), u, j == null ? void 0 : j.wrapper),
384
- ref: R,
385
- onClick: $e,
386
- style: ht
387
- }, v), /* @__PURE__ */ l.createElement(Qe, q({}, t, {
388
- onMouseDown: Ct,
389
- onMouseUp: pt,
390
- ref: K,
391
- closable: O,
392
- ariaId: oe,
393
- prefixCls: n,
394
- visible: d && Y,
395
- onClose: _,
396
- onVisibleChanged: H,
397
- motionName: Ie(n, y, b)
398
- }))));
399
- }, Ye = function(t) {
400
- var o = t.visible, n = t.getContainer, r = t.forceRender, i = t.destroyOnClose, d = i === void 0 ? !1 : i, c = t.afterClose, s = t.panelRef, m = l.useState(o), a = ve(m, 2), f = a[0], u = a[1], v = l.useMemo(function() {
401
- return {
402
- panel: s
403
- };
404
- }, [s]);
405
- return l.useEffect(function() {
406
- o && u(!0);
407
- }, [o]), !r && d && !f ? null : /* @__PURE__ */ l.createElement(Ze.Provider, {
408
- value: v
409
- }, /* @__PURE__ */ l.createElement(Xt, {
410
- open: o || r || f,
411
- autoDestroy: !1,
412
- getContainer: n,
413
- autoLock: o || f
414
- }, /* @__PURE__ */ l.createElement(vn, q({}, t, {
415
- destroyOnClose: d,
416
- afterClose: function() {
417
- c == null || c(), u(!1);
418
- }
419
- }))));
420
- };
421
- Ye.displayName = "Dialog";
422
- function Me(e) {
423
- if (e)
424
- return {
425
- closable: e.closable,
426
- closeIcon: e.closeIcon
427
- };
428
- }
429
- function Re(e) {
430
- const {
431
- closable: t,
432
- closeIcon: o
433
- } = e || {};
434
- return h.useMemo(() => {
435
- if (
436
- // If `closable`, whatever rest be should be true
437
- !t && (t === !1 || o === !1 || o === null)
438
- )
439
- return !1;
440
- if (t === void 0 && o === void 0)
441
- return null;
442
- let n = {
443
- closeIcon: typeof o != "boolean" && o !== null ? o : void 0
444
- };
445
- return t && typeof t == "object" && (n = Object.assign(Object.assign({}, n), t)), n;
446
- }, [t, o]);
447
- }
448
- function je() {
449
- const e = {};
450
- for (var t = arguments.length, o = new Array(t), n = 0; n < t; n++)
451
- o[n] = arguments[n];
452
- return o.forEach((r) => {
453
- r && Object.keys(r).forEach((i) => {
454
- r[i] !== void 0 && (e[i] = r[i]);
455
- });
456
- }), e;
457
- }
458
- const Cn = {};
459
- function pn(e, t) {
460
- let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Cn;
461
- const n = Re(e), r = Re(t), i = typeof n != "boolean" ? !!(n != null && n.disabled) : !1, d = h.useMemo(() => Object.assign({
462
- closeIcon: /* @__PURE__ */ h.createElement(pe, null)
463
- }, o), [o]), c = h.useMemo(() => n === !1 ? !1 : n ? je(d, r, n) : r === !1 ? !1 : r ? je(d, r) : d.closable ? d : !1, [n, r, d]);
464
- return h.useMemo(() => {
465
- if (c === !1)
466
- return [!1, null, i];
467
- const {
468
- closeIconRender: s
469
- } = d, {
470
- closeIcon: m
471
- } = c;
472
- let a = m;
473
- if (a != null) {
474
- s && (a = s(m));
475
- const f = be(c, !0);
476
- Object.keys(f).length && (a = /* @__PURE__ */ h.isValidElement(a) ? /* @__PURE__ */ h.cloneElement(a, f) : /* @__PURE__ */ h.createElement("span", Object.assign({}, f), a));
477
- }
478
- return [!0, a, i];
479
- }, [c, d]);
480
- }
481
- const bn = () => wt() && window.document.documentElement;
482
- function Be() {
483
- }
484
- const hn = /* @__PURE__ */ l.createContext({
485
- add: Be,
486
- remove: Be
487
- });
488
- function yn(e) {
489
- const t = l.useContext(hn), o = l.useRef(null);
490
- return It((r) => {
491
- if (r) {
492
- const i = e ? r.querySelector(e) : r;
493
- t.add(i), o.current = i;
494
- } else
495
- t.remove(o.current);
496
- });
497
- }
498
- const De = () => {
499
- const {
500
- cancelButtonProps: e,
501
- cancelTextLocale: t,
502
- onCancel: o
503
- } = ae(le);
504
- return /* @__PURE__ */ h.createElement(qe, Object.assign({
505
- onClick: o
506
- }, e), t);
507
- }, ze = () => {
508
- const {
509
- confirmLoading: e,
510
- okButtonProps: t,
511
- okType: o,
512
- okTextLocale: n,
513
- onOk: r
514
- } = ae(le);
515
- return /* @__PURE__ */ h.createElement(qe, Object.assign({}, Jt(o), {
516
- loading: e,
517
- onClick: r
518
- }, t), n);
519
- };
520
- function Je(e, t) {
521
- return /* @__PURE__ */ h.createElement("span", {
522
- className: `${e}-close-x`
523
- }, t || /* @__PURE__ */ h.createElement(pe, {
524
- className: `${e}-close-icon`
525
- }));
526
- }
527
- const et = (e) => {
528
- const {
529
- okText: t,
530
- okType: o = "primary",
531
- cancelText: n,
532
- confirmLoading: r,
533
- onOk: i,
534
- onCancel: d,
535
- okButtonProps: c,
536
- cancelButtonProps: s,
537
- footer: m
538
- } = e, [a] = he("Modal", Ve()), f = t || (a == null ? void 0 : a.okText), u = n || (a == null ? void 0 : a.cancelText), v = {
539
- confirmLoading: r,
540
- okButtonProps: c,
541
- cancelButtonProps: s,
542
- okTextLocale: f,
543
- cancelTextLocale: u,
544
- okType: o,
545
- onOk: i,
546
- onCancel: d
547
- }, E = h.useMemo(() => v, k(Object.values(v)));
548
- let C;
549
- return typeof m == "function" || typeof m > "u" ? (C = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(De, null), /* @__PURE__ */ h.createElement(ze, null)), typeof m == "function" && (C = m(C, {
550
- OkBtn: ze,
551
- CancelBtn: De
552
- })), C = /* @__PURE__ */ h.createElement(Xe, {
553
- value: E
554
- }, C)) : C = m, /* @__PURE__ */ h.createElement(Ft, {
555
- disabled: !1
556
- }, C);
557
- };
558
- function Fe(e) {
559
- return {
560
- position: e,
561
- inset: 0
562
- };
563
- }
564
- const xn = (e) => {
565
- const {
566
- componentCls: t,
567
- antCls: o
568
- } = e;
569
- return [{
570
- [`${t}-root`]: {
571
- [`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]: {
572
- // reset scale avoid mousePosition bug
573
- transform: "none",
574
- opacity: 0,
575
- animationDuration: e.motionDurationSlow,
576
- // https://github.com/ant-design/ant-design/issues/11777
577
- userSelect: "none"
578
- },
579
- // https://github.com/ant-design/ant-design/issues/37329
580
- // https://github.com/ant-design/ant-design/issues/40272
581
- [`${t}${o}-zoom-leave ${t}-content`]: {
582
- pointerEvents: "none"
583
- },
584
- [`${t}-mask`]: Object.assign(Object.assign({}, Fe("fixed")), {
585
- zIndex: e.zIndexPopupBase,
586
- height: "100%",
587
- backgroundColor: e.colorBgMask,
588
- pointerEvents: "none",
589
- [`${t}-hidden`]: {
590
- display: "none"
591
- }
592
- }),
593
- [`${t}-wrap`]: Object.assign(Object.assign({}, Fe("fixed")), {
594
- zIndex: e.zIndexPopupBase,
595
- overflow: "auto",
596
- outline: 0,
597
- WebkitOverflowScrolling: "touch"
598
- })
599
- }
600
- }, {
601
- [`${t}-root`]: cn(e)
602
- }];
603
- }, $n = (e) => {
604
- const {
605
- componentCls: t
606
- } = e;
607
- return [
608
- // ======================== Root =========================
609
- {
610
- [`${t}-root`]: {
611
- [`${t}-wrap-rtl`]: {
612
- direction: "rtl"
613
- },
614
- [`${t}-centered`]: {
615
- textAlign: "center",
616
- "&::before": {
617
- display: "inline-block",
618
- width: 0,
619
- height: "100%",
620
- verticalAlign: "middle",
621
- content: '""'
622
- },
623
- [t]: {
624
- top: 0,
625
- display: "inline-block",
626
- paddingBottom: 0,
627
- textAlign: "start",
628
- verticalAlign: "middle"
629
- }
630
- },
631
- [`@media (max-width: ${e.screenSMMax}px)`]: {
632
- [t]: {
633
- maxWidth: "calc(100vw - 16px)",
634
- margin: `${N(e.marginXS)} auto`
635
- },
636
- [`${t}-centered`]: {
637
- [t]: {
638
- flex: 1
639
- }
640
- }
641
- }
642
- }
643
- },
644
- // ======================== Modal ========================
645
- {
646
- [t]: Object.assign(Object.assign({}, Rt(e)), {
647
- pointerEvents: "none",
648
- position: "relative",
649
- top: 100,
650
- width: "auto",
651
- maxWidth: `calc(100vw - ${N(e.calc(e.margin).mul(2).equal())})`,
652
- margin: "0 auto",
653
- paddingBottom: e.paddingLG,
654
- [`${t}-title`]: {
655
- margin: 0,
656
- color: e.titleColor,
657
- fontWeight: e.fontWeightStrong,
658
- fontSize: e.titleFontSize,
659
- lineHeight: e.titleLineHeight,
660
- wordWrap: "break-word"
661
- },
662
- [`${t}-content`]: {
663
- position: "relative",
664
- backgroundColor: e.contentBg,
665
- backgroundClip: "padding-box",
666
- border: 0,
667
- borderRadius: e.borderRadiusLG,
668
- boxShadow: e.boxShadow,
669
- pointerEvents: "auto",
670
- padding: e.contentPadding
671
- },
672
- [`${t}-close`]: Object.assign({
673
- position: "absolute",
674
- top: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
675
- insetInlineEnd: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
676
- zIndex: e.calc(e.zIndexPopupBase).add(10).equal(),
677
- padding: 0,
678
- color: e.modalCloseIconColor,
679
- fontWeight: e.fontWeightStrong,
680
- lineHeight: 1,
681
- textDecoration: "none",
682
- background: "transparent",
683
- borderRadius: e.borderRadiusSM,
684
- width: e.modalCloseBtnSize,
685
- height: e.modalCloseBtnSize,
686
- border: 0,
687
- outline: 0,
688
- cursor: "pointer",
689
- transition: `color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,
690
- "&-x": {
691
- display: "flex",
692
- fontSize: e.fontSizeLG,
693
- fontStyle: "normal",
694
- lineHeight: N(e.modalCloseBtnSize),
695
- justifyContent: "center",
696
- textTransform: "none",
697
- textRendering: "auto"
698
- },
699
- "&:disabled": {
700
- pointerEvents: "none"
701
- },
702
- "&:hover": {
703
- color: e.modalCloseIconHoverColor,
704
- backgroundColor: e.colorBgTextHover,
705
- textDecoration: "none"
706
- },
707
- "&:active": {
708
- backgroundColor: e.colorBgTextActive
709
- }
710
- }, jt(e)),
711
- [`${t}-header`]: {
712
- color: e.colorText,
713
- background: e.headerBg,
714
- borderRadius: `${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`,
715
- marginBottom: e.headerMarginBottom,
716
- padding: e.headerPadding,
717
- borderBottom: e.headerBorderBottom
718
- },
719
- [`${t}-body`]: {
720
- fontSize: e.fontSize,
721
- lineHeight: e.lineHeight,
722
- wordWrap: "break-word",
723
- padding: e.bodyPadding,
724
- [`${t}-body-skeleton`]: {
725
- width: "100%",
726
- height: "100%",
727
- display: "flex",
728
- justifyContent: "center",
729
- alignItems: "center",
730
- margin: `${N(e.margin)} auto`
731
- }
732
- },
733
- [`${t}-footer`]: {
734
- textAlign: "end",
735
- background: e.footerBg,
736
- marginTop: e.footerMarginTop,
737
- padding: e.footerPadding,
738
- borderTop: e.footerBorderTop,
739
- borderRadius: e.footerBorderRadius,
740
- [`> ${e.antCls}-btn + ${e.antCls}-btn`]: {
741
- marginInlineStart: e.marginXS
742
- }
743
- },
744
- [`${t}-open`]: {
745
- overflow: "hidden"
746
- }
747
- })
748
- },
749
- // ======================== Pure =========================
750
- {
751
- [`${t}-pure-panel`]: {
752
- top: "auto",
753
- padding: 0,
754
- display: "flex",
755
- flexDirection: "column",
756
- [`${t}-content,
757
- ${t}-body,
758
- ${t}-confirm-body-wrapper`]: {
759
- display: "flex",
760
- flexDirection: "column",
761
- flex: "auto"
762
- },
763
- [`${t}-confirm-body`]: {
764
- marginBottom: "auto"
765
- }
766
- }
767
- }
768
- ];
769
- }, En = (e) => {
770
- const {
771
- componentCls: t
772
- } = e;
773
- return {
774
- [`${t}-root`]: {
775
- [`${t}-wrap-rtl`]: {
776
- direction: "rtl",
777
- [`${t}-confirm-body`]: {
778
- direction: "rtl"
779
- }
780
- }
781
- }
782
- };
783
- }, On = (e) => {
784
- const {
785
- componentCls: t
786
- } = e, o = en(e);
787
- delete o.xs;
788
- const n = Object.keys(o).map((r) => ({
789
- [`@media (min-width: ${N(o[r])})`]: {
790
- width: `var(--${t.replace(".", "")}-${r}-width)`
791
- }
792
- }));
793
- return {
794
- [`${t}-root`]: {
795
- [t]: [{
796
- width: `var(--${t.replace(".", "")}-xs-width)`
797
- }].concat(k(n))
798
- }
799
- };
800
- }, tt = (e) => {
801
- const t = e.padding, o = e.fontSizeHeading5, n = e.lineHeightHeading5;
802
- return Mt(e, {
803
- modalHeaderHeight: e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),
804
- modalFooterBorderColorSplit: e.colorSplit,
805
- modalFooterBorderStyle: e.lineType,
806
- modalFooterBorderWidth: e.lineWidth,
807
- modalCloseIconColor: e.colorIcon,
808
- modalCloseIconHoverColor: e.colorIconHover,
809
- modalCloseBtnSize: e.controlHeight,
810
- modalConfirmIconSize: e.fontHeight,
811
- modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
812
- });
813
- }, nt = (e) => ({
814
- footerBg: "transparent",
815
- headerBg: e.colorBgElevated,
816
- titleLineHeight: e.lineHeightHeading5,
817
- titleFontSize: e.fontSizeHeading5,
818
- contentBg: e.colorBgElevated,
819
- titleColor: e.colorTextHeading,
820
- // internal
821
- contentPadding: e.wireframe ? 0 : `${N(e.paddingMD)} ${N(e.paddingContentHorizontalLG)}`,
822
- headerPadding: e.wireframe ? `${N(e.padding)} ${N(e.paddingLG)}` : 0,
823
- headerBorderBottom: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
824
- headerMarginBottom: e.wireframe ? 0 : e.marginXS,
825
- bodyPadding: e.wireframe ? e.paddingLG : 0,
826
- footerPadding: e.wireframe ? `${N(e.paddingXS)} ${N(e.padding)}` : 0,
827
- footerBorderTop: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
828
- footerBorderRadius: e.wireframe ? `0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}` : 0,
829
- footerMarginTop: e.wireframe ? 0 : e.marginSM,
830
- confirmBodyPadding: e.wireframe ? `${N(e.padding * 2)} ${N(e.padding * 2)} ${N(e.paddingLG)}` : 0,
831
- confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
832
- confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
833
- }), ot = Tt("Modal", (e) => {
834
- const t = tt(e);
835
- return [$n(t), En(t), xn(t), tn(t, "zoom"), On(t)];
836
- }, nt, {
837
- unitless: {
838
- titleLineHeight: !0
839
- }
840
- });
841
- var Sn = function(e, t) {
842
- var o = {};
843
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
844
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
845
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
846
- return o;
847
- };
848
- let ge;
849
- const wn = (e) => {
850
- ge = {
851
- x: e.pageX,
852
- y: e.pageY
853
- }, setTimeout(() => {
854
- ge = null;
855
- }, 100);
856
- };
857
- bn() && document.documentElement.addEventListener("click", wn, !0);
858
- const rt = (e) => {
859
- var t;
860
- const {
861
- getPopupContainer: o,
862
- getPrefixCls: n,
863
- direction: r,
864
- modal: i
865
- } = l.useContext(ce), d = (H) => {
866
- const {
867
- onCancel: _
868
- } = e;
869
- _ == null || _(H);
870
- }, c = (H) => {
871
- const {
872
- onOk: _
873
- } = e;
874
- _ == null || _(H);
875
- };
876
- if (process.env.NODE_ENV !== "production") {
877
- const H = Ce("Modal");
878
- [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((_) => {
879
- let [V, re] = _;
880
- H.deprecated(!(V in e), V, re);
881
- });
882
- }
883
- const {
884
- prefixCls: s,
885
- className: m,
886
- rootClassName: a,
887
- open: f,
888
- wrapClassName: u,
889
- centered: v,
890
- getContainer: E,
891
- focusTriggerAfterClose: C = !0,
892
- style: p,
893
- // Deprecated
894
- visible: y,
895
- width: b = 520,
896
- footer: P,
897
- classNames: O,
898
- styles: I,
899
- children: S,
900
- loading: w
901
- } = e, L = Sn(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), B = n("modal", s), X = n(), g = Ke(B), [x, $, j] = ot(B, g), F = z(u, {
902
- [`${B}-centered`]: v ?? (i == null ? void 0 : i.centered),
903
- [`${B}-wrap-rtl`]: r === "rtl"
904
- }), T = P !== null && !w ? /* @__PURE__ */ l.createElement(et, Object.assign({}, e, {
905
- onOk: c,
906
- onCancel: d
907
- })) : null, [R, K, ne] = pn(Me(e), Me(i), {
908
- closable: !0,
909
- closeIcon: /* @__PURE__ */ l.createElement(pe, {
910
- className: `${B}-close-icon`
911
- }),
912
- closeIconRender: (H) => Je(B, H)
913
- }), Q = yn(`.${B}-content`), [Y, G] = Kt("Modal", L.zIndex), [oe, U] = l.useMemo(() => b && typeof b == "object" ? [void 0, b] : [b, void 0], [b]), de = l.useMemo(() => {
914
- const H = {};
915
- return U && Object.keys(U).forEach((_) => {
916
- const V = U[_];
917
- V !== void 0 && (H[`--${B}-${_}-width`] = typeof V == "number" ? `${V}px` : V);
918
- }), H;
919
- }, [U]);
920
- return x(/* @__PURE__ */ l.createElement(Qt, {
921
- form: !0,
922
- space: !0
923
- }, /* @__PURE__ */ l.createElement(qt.Provider, {
924
- value: G
925
- }, /* @__PURE__ */ l.createElement(Ye, Object.assign({
926
- width: oe
927
- }, L, {
928
- zIndex: Y,
929
- getContainer: E === void 0 ? o : E,
930
- prefixCls: B,
931
- rootClassName: z($, a, j, g),
932
- footer: T,
933
- visible: f ?? y,
934
- mousePosition: (t = L.mousePosition) !== null && t !== void 0 ? t : ge,
935
- onClose: d,
936
- closable: R && {
937
- disabled: ne,
938
- closeIcon: K
939
- },
940
- closeIcon: K,
941
- focusTriggerAfterClose: C,
942
- transitionName: se(X, "zoom", e.transitionName),
943
- maskTransitionName: se(X, "fade", e.maskTransitionName),
944
- className: z($, m, i == null ? void 0 : i.className),
945
- style: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.style), p), de),
946
- classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), O), {
947
- wrapper: z(F, O == null ? void 0 : O.wrapper)
948
- }),
949
- styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), I),
950
- panelRef: Q
951
- }), w ? /* @__PURE__ */ l.createElement(Yt, {
952
- active: !0,
953
- title: !1,
954
- paragraph: {
955
- rows: 4
956
- },
957
- className: `${B}-body-skeleton`
958
- }) : S))));
959
- }, Nn = (e) => {
960
- const {
961
- componentCls: t,
962
- titleFontSize: o,
963
- titleLineHeight: n,
964
- modalConfirmIconSize: r,
965
- fontSize: i,
966
- lineHeight: d,
967
- modalTitleHeight: c,
968
- fontHeight: s,
969
- confirmBodyPadding: m
970
- } = e, a = `${t}-confirm`;
971
- return {
972
- [a]: {
973
- "&-rtl": {
974
- direction: "rtl"
975
- },
976
- [`${e.antCls}-modal-header`]: {
977
- display: "none"
978
- },
979
- [`${a}-body-wrapper`]: Object.assign({}, Dt()),
980
- [`&${t} ${t}-body`]: {
981
- padding: m
982
- },
983
- // ====================== Body ======================
984
- [`${a}-body`]: {
985
- display: "flex",
986
- flexWrap: "nowrap",
987
- alignItems: "start",
988
- [`> ${e.iconCls}`]: {
989
- flex: "none",
990
- fontSize: r,
991
- marginInlineEnd: e.confirmIconMarginInlineEnd,
992
- marginTop: e.calc(e.calc(s).sub(r).equal()).div(2).equal()
993
- },
994
- [`&-has-title > ${e.iconCls}`]: {
995
- marginTop: e.calc(e.calc(c).sub(r).equal()).div(2).equal()
996
- }
997
- },
998
- [`${a}-paragraph`]: {
999
- display: "flex",
1000
- flexDirection: "column",
1001
- flex: "auto",
1002
- rowGap: e.marginXS,
1003
- // https://github.com/ant-design/ant-design/issues/51912
1004
- maxWidth: `calc(100% - ${N(e.marginSM)})`
1005
- },
1006
- // https://github.com/ant-design/ant-design/issues/48159
1007
- [`${e.iconCls} + ${a}-paragraph`]: {
1008
- maxWidth: `calc(100% - ${N(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`
1009
- },
1010
- [`${a}-title`]: {
1011
- color: e.colorTextHeading,
1012
- fontWeight: e.fontWeightStrong,
1013
- fontSize: o,
1014
- lineHeight: n
1015
- },
1016
- [`${a}-content`]: {
1017
- color: e.colorText,
1018
- fontSize: i,
1019
- lineHeight: d
1020
- },
1021
- // ===================== Footer =====================
1022
- [`${a}-btns`]: {
1023
- textAlign: "end",
1024
- marginTop: e.confirmBtnsMarginTop,
1025
- [`${e.antCls}-btn + ${e.antCls}-btn`]: {
1026
- marginBottom: 0,
1027
- marginInlineStart: e.marginXS
1028
- }
1029
- }
1030
- },
1031
- [`${a}-error ${a}-body > ${e.iconCls}`]: {
1032
- color: e.colorError
1033
- },
1034
- [`${a}-warning ${a}-body > ${e.iconCls},
1035
- ${a}-confirm ${a}-body > ${e.iconCls}`]: {
1036
- color: e.colorWarning
1037
- },
1038
- [`${a}-info ${a}-body > ${e.iconCls}`]: {
1039
- color: e.colorInfo
1040
- },
1041
- [`${a}-success ${a}-body > ${e.iconCls}`]: {
1042
- color: e.colorSuccess
1043
- }
1044
- };
1045
- }, Pn = Bt(["Modal", "confirm"], (e) => {
1046
- const t = tt(e);
1047
- return [Nn(t)];
1048
- }, nt, {
1049
- // confirm is weak than modal since no conflict here
1050
- order: -1e3
1051
- });
1052
- var In = function(e, t) {
1053
- var o = {};
1054
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1055
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1056
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1057
- return o;
1058
- };
1059
- function at(e) {
1060
- const {
1061
- prefixCls: t,
1062
- icon: o,
1063
- okText: n,
1064
- cancelText: r,
1065
- confirmPrefixCls: i,
1066
- type: d,
1067
- okCancel: c,
1068
- footer: s,
1069
- // Legacy for static function usage
1070
- locale: m
1071
- } = e, a = In(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
1072
- if (process.env.NODE_ENV !== "production") {
1073
- const w = Ce("Modal");
1074
- process.env.NODE_ENV !== "production" && w(!(typeof o == "string" && o.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`);
1075
- }
1076
- let f = o;
1077
- if (!o && o !== null)
1078
- switch (d) {
1079
- case "info":
1080
- f = /* @__PURE__ */ l.createElement(ke, null);
1081
- break;
1082
- case "success":
1083
- f = /* @__PURE__ */ l.createElement(Vt, null);
1084
- break;
1085
- case "error":
1086
- f = /* @__PURE__ */ l.createElement(Wt, null);
1087
- break;
1088
- default:
1089
- f = /* @__PURE__ */ l.createElement(Gt, null);
1090
- }
1091
- const u = c ?? d === "confirm", v = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [E] = he("Modal"), C = m || E, p = n || (u ? C == null ? void 0 : C.okText : C == null ? void 0 : C.justOkText), y = r || (C == null ? void 0 : C.cancelText), b = Object.assign({
1092
- autoFocusButton: v,
1093
- cancelTextLocale: y,
1094
- okTextLocale: p,
1095
- mergedOkCancel: u
1096
- }, a), P = l.useMemo(() => b, k(Object.values(b))), O = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ne, null), /* @__PURE__ */ l.createElement(Pe, null)), I = e.title !== void 0 && e.title !== null, S = `${i}-body`;
1097
- return /* @__PURE__ */ l.createElement("div", {
1098
- className: `${i}-body-wrapper`
1099
- }, /* @__PURE__ */ l.createElement("div", {
1100
- className: z(S, {
1101
- [`${S}-has-title`]: I
1102
- })
1103
- }, f, /* @__PURE__ */ l.createElement("div", {
1104
- className: `${i}-paragraph`
1105
- }, I && /* @__PURE__ */ l.createElement("span", {
1106
- className: `${i}-title`
1107
- }, e.title), /* @__PURE__ */ l.createElement("div", {
1108
- className: `${i}-content`
1109
- }, e.content))), s === void 0 || typeof s == "function" ? /* @__PURE__ */ l.createElement(Xe, {
1110
- value: P
1111
- }, /* @__PURE__ */ l.createElement("div", {
1112
- className: `${i}-btns`
1113
- }, typeof s == "function" ? s(O, {
1114
- OkBtn: Pe,
1115
- CancelBtn: Ne
1116
- }) : O)) : s, /* @__PURE__ */ l.createElement(Pn, {
1117
- prefixCls: t
1118
- }));
1119
- }
1120
- const lt = (e) => {
1121
- const {
1122
- close: t,
1123
- zIndex: o,
1124
- maskStyle: n,
1125
- direction: r,
1126
- prefixCls: i,
1127
- wrapClassName: d,
1128
- rootPrefixCls: c,
1129
- bodyStyle: s,
1130
- closable: m = !1,
1131
- onConfirm: a,
1132
- styles: f
1133
- } = e;
1134
- if (process.env.NODE_ENV !== "production") {
1135
- const O = Ce("Modal");
1136
- [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((I) => {
1137
- let [S, w] = I;
1138
- O.deprecated(!(S in e), S, w);
1139
- });
1140
- }
1141
- const u = `${i}-confirm`, v = e.width || 416, E = e.style || {}, C = e.mask === void 0 ? !0 : e.mask, p = e.maskClosable === void 0 ? !1 : e.maskClosable, y = z(u, `${u}-${e.type}`, {
1142
- [`${u}-rtl`]: r === "rtl"
1143
- }, e.className), [, b] = zt(), P = l.useMemo(() => o !== void 0 ? o : b.zIndexPopupBase + Ut, [o, b]);
1144
- return /* @__PURE__ */ l.createElement(rt, Object.assign({}, e, {
1145
- className: y,
1146
- wrapClassName: z({
1147
- [`${u}-centered`]: !!e.centered
1148
- }, d),
1149
- onCancel: () => {
1150
- t == null || t({
1151
- triggerCancel: !0
1152
- }), a == null || a(!1);
1153
- },
1154
- title: "",
1155
- footer: null,
1156
- transitionName: se(c || "", "zoom", e.transitionName),
1157
- maskTransitionName: se(c || "", "fade", e.maskTransitionName),
1158
- mask: C,
1159
- maskClosable: p,
1160
- style: E,
1161
- styles: Object.assign({
1162
- body: s,
1163
- mask: n
1164
- }, f),
1165
- width: v,
1166
- zIndex: P,
1167
- closable: m
1168
- }), /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
1169
- confirmPrefixCls: u
1170
- })));
1171
- }, xe = (e) => {
1172
- const {
1173
- rootPrefixCls: t,
1174
- iconPrefixCls: o,
1175
- direction: n,
1176
- theme: r
1177
- } = e;
1178
- return /* @__PURE__ */ l.createElement(We, {
1179
- prefixCls: t,
1180
- iconPrefixCls: o,
1181
- direction: n,
1182
- theme: r
1183
- }, /* @__PURE__ */ l.createElement(lt, Object.assign({}, e)));
1184
- };
1185
- process.env.NODE_ENV !== "production" && (lt.displayName = "ConfirmDialog", xe.displayName = "ConfirmDialogWrapper");
1186
- const ee = [];
1187
- let it = "";
1188
- function st() {
1189
- return it;
1190
- }
1191
- const Tn = (e) => {
1192
- var t, o;
1193
- const {
1194
- prefixCls: n,
1195
- getContainer: r,
1196
- direction: i
1197
- } = e, d = Ve(), c = ae(ce), s = st() || c.getPrefixCls(), m = n || `${s}-modal`;
1198
- let a = r;
1199
- return a === !1 && (a = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ h.createElement(xe, Object.assign({}, e, {
1200
- rootPrefixCls: s,
1201
- prefixCls: m,
1202
- iconPrefixCls: c.iconPrefixCls,
1203
- theme: c.theme,
1204
- direction: i ?? c.direction,
1205
- locale: (o = (t = c.locale) === null || t === void 0 ? void 0 : t.Modal) !== null && o !== void 0 ? o : d,
1206
- getContainer: a
1207
- }));
1208
- };
1209
- function ie(e) {
1210
- const t = At();
1211
- process.env.NODE_ENV !== "production" && !t.holderRender && _t("Modal");
1212
- const o = document.createDocumentFragment();
1213
- let n = Object.assign(Object.assign({}, e), {
1214
- close: s,
1215
- open: !0
1216
- }), r, i;
1217
- function d() {
1218
- for (var a, f = arguments.length, u = new Array(f), v = 0; v < f; v++)
1219
- u[v] = arguments[v];
1220
- if (u.some((p) => p == null ? void 0 : p.triggerCancel)) {
1221
- var C;
1222
- (a = e.onCancel) === null || a === void 0 || (C = a).call.apply(C, [e, () => {
1223
- }].concat(k(u.slice(1))));
1224
- }
1225
- for (let p = 0; p < ee.length; p++)
1226
- if (ee[p] === s) {
1227
- ee.splice(p, 1);
1228
- break;
1229
- }
1230
- i();
1231
- }
1232
- function c(a) {
1233
- clearTimeout(r), r = setTimeout(() => {
1234
- const f = t.getPrefixCls(void 0, st()), u = t.getIconPrefixCls(), v = t.getTheme(), E = /* @__PURE__ */ h.createElement(Tn, Object.assign({}, a));
1235
- i = Ht()(/* @__PURE__ */ h.createElement(We, {
1236
- prefixCls: f,
1237
- iconPrefixCls: u,
1238
- theme: v
1239
- }, t.holderRender ? t.holderRender(E) : E), o);
1240
- });
1241
- }
1242
- function s() {
1243
- for (var a = arguments.length, f = new Array(a), u = 0; u < a; u++)
1244
- f[u] = arguments[u];
1245
- n = Object.assign(Object.assign({}, n), {
1246
- open: !1,
1247
- afterClose: () => {
1248
- typeof e.afterClose == "function" && e.afterClose(), d.apply(this, f);
1249
- }
1250
- }), n.visible && delete n.visible, c(n);
1251
- }
1252
- function m(a) {
1253
- typeof a == "function" ? n = a(n) : n = Object.assign(Object.assign({}, n), a), c(n);
1254
- }
1255
- return c(n), ee.push(s), {
1256
- destroy: s,
1257
- update: m
1258
- };
1259
- }
1260
- function ct(e) {
1261
- return Object.assign(Object.assign({}, e), {
1262
- type: "warning"
1263
- });
1264
- }
1265
- function dt(e) {
1266
- return Object.assign(Object.assign({}, e), {
1267
- type: "info"
1268
- });
1269
- }
1270
- function ut(e) {
1271
- return Object.assign(Object.assign({}, e), {
1272
- type: "success"
1273
- });
1274
- }
1275
- function ft(e) {
1276
- return Object.assign(Object.assign({}, e), {
1277
- type: "error"
1278
- });
1279
- }
1280
- function mt(e) {
1281
- return Object.assign(Object.assign({}, e), {
1282
- type: "confirm"
1283
- });
1284
- }
1285
- function Mn(e) {
1286
- let {
1287
- rootPrefixCls: t
1288
- } = e;
1289
- process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), it = t;
1290
- }
1291
- var Rn = function(e, t) {
1292
- var o = {};
1293
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1294
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1295
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1296
- return o;
1297
- };
1298
- const jn = (e, t) => {
1299
- var o, {
1300
- afterClose: n,
1301
- config: r
1302
- } = e, i = Rn(e, ["afterClose", "config"]);
1303
- const [d, c] = l.useState(!0), [s, m] = l.useState(r), {
1304
- direction: a,
1305
- getPrefixCls: f
1306
- } = l.useContext(ce), u = f("modal"), v = f(), E = () => {
1307
- var b;
1308
- n(), (b = s.afterClose) === null || b === void 0 || b.call(s);
1309
- }, C = function() {
1310
- var b;
1311
- c(!1);
1312
- for (var P = arguments.length, O = new Array(P), I = 0; I < P; I++)
1313
- O[I] = arguments[I];
1314
- if (O.some((L) => L == null ? void 0 : L.triggerCancel)) {
1315
- var w;
1316
- (b = s.onCancel) === null || b === void 0 || (w = b).call.apply(w, [s, () => {
1317
- }].concat(k(O.slice(1))));
1318
- }
1319
- };
1320
- l.useImperativeHandle(t, () => ({
1321
- destroy: C,
1322
- update: (b) => {
1323
- m((P) => Object.assign(Object.assign({}, P), b));
1324
- }
1325
- }));
1326
- const p = (o = s.okCancel) !== null && o !== void 0 ? o : s.type === "confirm", [y] = he("Modal", Lt.Modal);
1327
- return /* @__PURE__ */ l.createElement(xe, Object.assign({
1328
- prefixCls: u,
1329
- rootPrefixCls: v
1330
- }, s, {
1331
- close: C,
1332
- open: d,
1333
- afterClose: E,
1334
- okText: s.okText || (p ? y == null ? void 0 : y.okText : y == null ? void 0 : y.justOkText),
1335
- direction: s.direction || a,
1336
- cancelText: s.cancelText || (y == null ? void 0 : y.cancelText)
1337
- }, i));
1338
- }, Bn = /* @__PURE__ */ l.forwardRef(jn);
1339
- let _e = 0;
1340
- const Dn = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, t) => {
1341
- const [o, n] = an();
1342
- return l.useImperativeHandle(t, () => ({
1343
- patchElement: n
1344
- }), []), /* @__PURE__ */ l.createElement(l.Fragment, null, o);
1345
- }));
1346
- function zn() {
1347
- const e = l.useRef(null), [t, o] = l.useState([]);
1348
- l.useEffect(() => {
1349
- t.length && (k(t).forEach((d) => {
1350
- d();
1351
- }), o([]));
1352
- }, [t]);
1353
- const n = l.useCallback((i) => function(c) {
1354
- var s;
1355
- _e += 1;
1356
- const m = /* @__PURE__ */ l.createRef();
1357
- let a;
1358
- const f = new Promise((p) => {
1359
- a = p;
1360
- });
1361
- let u = !1, v;
1362
- const E = /* @__PURE__ */ l.createElement(Bn, {
1363
- key: `modal-${_e}`,
1364
- config: i(c),
1365
- ref: m,
1366
- afterClose: () => {
1367
- v == null || v();
1368
- },
1369
- isSilent: () => u,
1370
- onConfirm: (p) => {
1371
- a(p);
1372
- }
1373
- });
1374
- return v = (s = e.current) === null || s === void 0 ? void 0 : s.patchElement(E), v && ee.push(v), {
1375
- destroy: () => {
1376
- function p() {
1377
- var y;
1378
- (y = m.current) === null || y === void 0 || y.destroy();
1379
- }
1380
- m.current ? p() : o((y) => [].concat(k(y), [p]));
1381
- },
1382
- update: (p) => {
1383
- function y() {
1384
- var b;
1385
- (b = m.current) === null || b === void 0 || b.update(p);
1386
- }
1387
- m.current ? y() : o((b) => [].concat(k(b), [y]));
1388
- },
1389
- then: (p) => (u = !0, f.then(p))
1390
- };
1391
- }, []);
1392
- return [l.useMemo(() => ({
1393
- info: n(dt),
1394
- success: n(ut),
1395
- error: n(ft),
1396
- warning: n(ct),
1397
- confirm: n(mt)
1398
- }), []), /* @__PURE__ */ l.createElement(Dn, {
1399
- key: "modal-holder",
1400
- ref: e
1401
- })];
1402
- }
1403
- var Fn = function(e, t) {
1404
- var o = {};
1405
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1406
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1407
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1408
- return o;
1409
- };
1410
- const _n = (e) => {
1411
- const {
1412
- prefixCls: t,
1413
- className: o,
1414
- closeIcon: n,
1415
- closable: r,
1416
- type: i,
1417
- title: d,
1418
- children: c,
1419
- footer: s
1420
- } = e, m = Fn(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
1421
- getPrefixCls: a
1422
- } = l.useContext(ce), f = a(), u = t || a("modal"), v = Ke(f), [E, C, p] = ot(u, v), y = `${u}-confirm`;
1423
- let b = {};
1424
- return i ? b = {
1425
- closable: r ?? !1,
1426
- title: "",
1427
- footer: "",
1428
- children: /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
1429
- prefixCls: u,
1430
- confirmPrefixCls: y,
1431
- rootPrefixCls: f,
1432
- content: c
1433
- }))
1434
- } : b = {
1435
- closable: r ?? !0,
1436
- title: d,
1437
- footer: s !== null && /* @__PURE__ */ l.createElement(et, Object.assign({}, e)),
1438
- children: c
1439
- }, E(/* @__PURE__ */ l.createElement(ye, Object.assign({
1440
- prefixCls: u,
1441
- className: z(C, `${u}-pure-panel`, i && y, i && `${y}-${i}`, o, p, v)
1442
- }, m, {
1443
- closeIcon: Je(u, n),
1444
- closable: r
1445
- }, b)));
1446
- }, An = nn(_n);
1447
- function gt(e) {
1448
- return ie(ct(e));
1449
- }
1450
- const W = rt;
1451
- W.useModal = zn;
1452
- W.info = function(t) {
1453
- return ie(dt(t));
1454
- };
1455
- W.success = function(t) {
1456
- return ie(ut(t));
1457
- };
1458
- W.error = function(t) {
1459
- return ie(ft(t));
1460
- };
1461
- W.warning = gt;
1462
- W.warn = gt;
1463
- W.confirm = function(t) {
1464
- return ie(mt(t));
1465
- };
1466
- W.destroyAll = function() {
1467
- for (; ee.length; ) {
1468
- const t = ee.pop();
1469
- t && t();
1470
- }
1471
- };
1472
- W.config = Mn;
1473
- W._InternalPanelDoNotUseOrYouWillBeFired = An;
1474
- process.env.NODE_ENV !== "production" && (W.displayName = "Modal");
1475
- var Ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" }, Hn = function(t, o) {
1476
- return /* @__PURE__ */ l.createElement(Le, q({}, t, {
1477
- ref: o,
1478
- icon: Ln
1479
- }));
1480
- }, vt = /* @__PURE__ */ l.forwardRef(Hn);
1481
- process.env.NODE_ENV !== "production" && (vt.displayName = "MinusOutlined");
1482
- const Ko = () => {
1483
- const { theme: e } = Et(), [t, o] = te(!1), [n, r] = te({ key: "", value: null }), [i, d] = te([]), [c, s] = te(""), [m, a] = te(!0), [f, u] = te([]);
1484
- if (me(() => {
1485
- e && (console.log("Theme changed, updating tree data:", e), u(O(e)));
1486
- }, [e]), !e)
1487
- return null;
1488
- const v = () => {
1489
- d([]), a(!1);
1490
- }, E = () => {
1491
- console.log("resetting"), s(""), v(), u(O(e));
1492
- }, C = (g, x) => {
1493
- const $ = [], j = (F, T) => {
1494
- for (const R of F)
1495
- R.children && (R.children.some((K) => K.key === T) && $.push(R.key), j(R.children, T));
1496
- };
1497
- return j(x, g), $;
1498
- }, p = (g, x) => {
1499
- let $ = [];
1500
- const j = (F) => {
1501
- F.forEach((T) => {
1502
- if (T.title.toLowerCase().includes(x.toLowerCase())) {
1503
- $.push(T.key);
1504
- const R = C(T.key, g);
1505
- $ = [...$, ...R];
1506
- }
1507
- T.children && j(T.children);
1508
- });
1509
- };
1510
- return j(g), [...new Set($)];
1511
- }, y = (g) => {
1512
- if (!g.trim()) {
1513
- E();
1514
- return;
1515
- }
1516
- if (g.length >= 3) {
1517
- const x = O(e);
1518
- u(x);
1519
- const $ = p(x, g);
1520
- d($), s(g), a(!0);
1521
- } else
1522
- v(), s(g);
1523
- }, b = (g) => {
1524
- d(g), a(!1);
1525
- }, P = (g) => `${g}_${Math.floor(Math.random() * 983423219)}`, O = (g) => {
1526
- const x = [];
1527
- for (const $ in g)
1528
- typeof g[$] == "object" ? x.push({
1529
- title: $,
1530
- originalKey: $,
1531
- key: P($),
1532
- children: O(g[$]),
1533
- value: g[$]
1534
- }) : x.push({
1535
- title: $,
1536
- originalKey: $,
1537
- key: P($),
1538
- value: g[$]
1539
- });
1540
- return x;
1541
- }, I = O(e), S = (g) => {
1542
- g.children || (r({
1543
- key: g.originalKey || g.title,
1544
- value: g.value
1545
- }), o(!0));
1546
- }, w = (g) => typeof g == "string" && g.startsWith("#") ? /* @__PURE__ */ J("p", { children: [
1547
- /* @__PURE__ */ D("strong", { children: "Color:" }),
1548
- " ",
1549
- g,
1550
- /* @__PURE__ */ D(
1551
- "div",
1552
- {
1553
- style: {
1554
- width: 100,
1555
- height: 100,
1556
- backgroundColor: g,
1557
- borderWidth: 1,
1558
- border: "1px solid #ccc",
1559
- borderRadius: 4,
1560
- marginTop: 8
1561
- }
1562
- }
1563
- )
1564
- ] }) : /* @__PURE__ */ J("p", { children: [
1565
- /* @__PURE__ */ D("strong", { children: "Value:" }),
1566
- " ",
1567
- String(n.value)
1568
- ] }), L = (g) => g.map((x) => {
1569
- const $ = x.title.toLowerCase().indexOf(c.toLowerCase()), j = x.title.substring(0, $), F = x.title.substring($, $ + c.length), T = x.title.substring($ + c.length), R = $ > -1 ? /* @__PURE__ */ J("span", { children: [
1570
- j,
1571
- /* @__PURE__ */ D("span", { style: { color: "#f50" }, children: F }),
1572
- T
1573
- ] }) : /* @__PURE__ */ D("span", { children: x.title });
1574
- return x.children ? /* @__PURE__ */ D(fe.TreeNode, { title: R, children: L(x.children) }, x.key) : /* @__PURE__ */ $t(
1575
- fe.TreeNode,
1576
- {
1577
- ...x,
1578
- key: x.key,
1579
- title: /* @__PURE__ */ D("span", { onClick: () => S(x), children: R })
1580
- }
1581
- );
1582
- }), B = e.mode.charAt(0).toUpperCase() + e.mode.slice(1), X = (g) => {
1583
- const x = g.target.value;
1584
- s(x), x ? x.length < 3 && v() : E();
1585
- };
1586
- return /* @__PURE__ */ J(yt, { children: [
1587
- /* @__PURE__ */ D("div", { style: { margin: "16px 0px" }, children: /* @__PURE__ */ J(Ot, { variant: "heading2", children: [
1588
- B,
1589
- " Mode"
1590
- ] }) }),
1591
- /* @__PURE__ */ D(
1592
- St.Search,
1593
- {
1594
- style: { marginBottom: 8, width: 300 },
1595
- placeholder: "Search token (min 3 characters)...",
1596
- onSearch: y,
1597
- allowClear: !0,
1598
- onChange: X,
1599
- value: c
1600
- }
1601
- ),
1602
- /* @__PURE__ */ D(
1603
- fe,
1604
- {
1605
- selectable: !1,
1606
- expandedKeys: i,
1607
- autoExpandParent: m,
1608
- onExpand: b,
1609
- switcherIcon: (g) => {
1610
- const { expanded: x } = g;
1611
- return x ? /* @__PURE__ */ D(vt, {}) : /* @__PURE__ */ D(Nt, {});
1612
- },
1613
- children: L(f.length > 0 ? f : I)
1614
- }
1615
- ),
1616
- /* @__PURE__ */ D(
1617
- W,
1618
- {
1619
- title: "Properties",
1620
- open: t,
1621
- onOk: () => o(!1),
1622
- onCancel: () => o(!1),
1623
- width: 300,
1624
- children: /* @__PURE__ */ D(
1625
- "div",
1626
- {
1627
- style: {
1628
- display: "flex",
1629
- flexDirection: "column",
1630
- alignItems: "center",
1631
- width: 250,
1632
- padding: 16,
1633
- borderRadius: 4,
1634
- backgroundColor: "#f9f9f9"
1635
- },
1636
- children: /* @__PURE__ */ J("div", { children: [
1637
- /* @__PURE__ */ D("div", { children: /* @__PURE__ */ J("p", { children: [
1638
- /* @__PURE__ */ D("strong", { children: "Token:" }),
1639
- " ",
1640
- n.key
1641
- ] }) }),
1642
- /* @__PURE__ */ D("div", { children: w(n.value) })
1643
- ] })
1644
- }
1645
- )
1646
- }
1647
- )
1648
- ] });
1649
- };
1650
- export {
1651
- Ko as ThemeTree
1652
- };