@apexhub/apex-ui-react-source 0.0.0-stage → 1.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 (560) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -2
  3. package/bin/apex-ui-react-source.mjs +717 -0
  4. package/dist/files/AGENTS.md +89 -0
  5. package/dist/files/LICENSE +21 -0
  6. package/dist/files/_assets/adapt-to-page.raw.ts +3 -0
  7. package/dist/files/_assets/adapt-to-page.url.ts +3 -0
  8. package/dist/files/_assets/calendar.raw.ts +3 -0
  9. package/dist/files/_assets/doc-format.raw.ts +3 -0
  10. package/dist/files/_assets/docx-format.raw.ts +3 -0
  11. package/dist/files/_assets/full-screen.raw.ts +3 -0
  12. package/dist/files/_assets/full-screen.url.ts +3 -0
  13. package/dist/files/_assets/gif-format.raw.ts +3 -0
  14. package/dist/files/_assets/jpeg-format.raw.ts +3 -0
  15. package/dist/files/_assets/jpg-format.raw.ts +3 -0
  16. package/dist/files/_assets/ofd-format.raw.ts +3 -0
  17. package/dist/files/_assets/one-to-one.raw.ts +3 -0
  18. package/dist/files/_assets/one-to-one.url.ts +3 -0
  19. package/dist/files/_assets/pdf-format.raw.ts +3 -0
  20. package/dist/files/_assets/png-format.raw.ts +3 -0
  21. package/dist/files/_assets/rotate-left.raw.ts +3 -0
  22. package/dist/files/_assets/rotate-left.url.ts +3 -0
  23. package/dist/files/_assets/rotate-right.raw.ts +3 -0
  24. package/dist/files/_assets/rotate-right.url.ts +3 -0
  25. package/dist/files/_assets/table-empty.url.ts +3 -0
  26. package/dist/files/_assets/txt-format.raw.ts +3 -0
  27. package/dist/files/_assets/upload-file-doc-20.raw.ts +3 -0
  28. package/dist/files/_assets/upload-file-docx-20.raw.ts +3 -0
  29. package/dist/files/_assets/upload-file-gif-20.raw.ts +3 -0
  30. package/dist/files/_assets/upload-file-jpeg-20.raw.ts +3 -0
  31. package/dist/files/_assets/upload-file-jpg-20.raw.ts +3 -0
  32. package/dist/files/_assets/upload-file-ofd-20.raw.ts +3 -0
  33. package/dist/files/_assets/upload-file-pdf-20.raw.ts +3 -0
  34. package/dist/files/_assets/upload-file-png-20.raw.ts +3 -0
  35. package/dist/files/_assets/upload-file-txt-20.raw.ts +3 -0
  36. package/dist/files/_assets/upload-file-xlsx-20.raw.ts +3 -0
  37. package/dist/files/_assets/xlsx-format.raw.ts +3 -0
  38. package/dist/files/_assets/zoom-in.raw.ts +3 -0
  39. package/dist/files/_assets/zoom-in.url.ts +3 -0
  40. package/dist/files/_assets/zoom-out.raw.ts +3 -0
  41. package/dist/files/_assets/zoom-out.url.ts +3 -0
  42. package/dist/files/_headless/dismiss-intent.ts +1 -0
  43. package/dist/files/_headless/placement.ts +1 -0
  44. package/dist/files/_headless/use-embedded-scroll-lock-guard.ts +47 -0
  45. package/dist/files/_headless/use-floating-overlay.tsx +3 -0
  46. package/dist/files/_namespace/constants.ts +23 -0
  47. package/dist/files/_namespace/index.ts +1 -0
  48. package/dist/files/_overlay/auto-update-anchored-overlay.ts +11 -0
  49. package/dist/files/_overlay/collision-boundary.ts +78 -0
  50. package/dist/files/_overlay/dismiss-intent.ts +107 -0
  51. package/dist/files/_overlay/get-overlay-root.ts +157 -0
  52. package/dist/files/_overlay/index.ts +57 -0
  53. package/dist/files/_overlay/observe-anchor-lifecycle.ts +72 -0
  54. package/dist/files/_overlay/overlay-theme.ts +91 -0
  55. package/dist/files/_overlay/overlay-trigger.ts +100 -0
  56. package/dist/files/_overlay/overlay.css +29 -0
  57. package/dist/files/_overlay/placement.ts +18 -0
  58. package/dist/files/_overlay/resolve-portal-container.ts +13 -0
  59. package/dist/files/_overlay/use-anchored-overlay.tsx +493 -0
  60. package/dist/files/_overlay/zIndex.ts +17 -0
  61. package/dist/files/_tags/MaxTagList.tsx +336 -0
  62. package/dist/files/_tags/OverflowTagPopover.tsx +315 -0
  63. package/dist/files/_tags/get-max-tag-display.ts +26 -0
  64. package/dist/files/_tags/index.ts +15 -0
  65. package/dist/files/_tags/resolve-max-tag-popover.ts +28 -0
  66. package/dist/files/_tags/tags.css +126 -0
  67. package/dist/files/_tags/types.ts +46 -0
  68. package/dist/files/_tags/use-responsive-max-tag-count.ts +165 -0
  69. package/dist/files/alert/Alert.tsx +100 -0
  70. package/dist/files/alert/alert.css +85 -0
  71. package/dist/files/alert/index.ts +2 -0
  72. package/dist/files/alert/interface.ts +59 -0
  73. package/dist/files/alert/llm.txt +160 -0
  74. package/dist/files/alert/tokens.txt +44 -0
  75. package/dist/files/alert/variants.ts +17 -0
  76. package/dist/files/apex-env.d.ts +2 -0
  77. package/dist/files/apex-provider/ApexProvider.tsx +53 -0
  78. package/dist/files/apex-provider/apex-provider.css +0 -0
  79. package/dist/files/apex-provider/context.ts +17 -0
  80. package/dist/files/apex-provider/index.ts +18 -0
  81. package/dist/files/apex-provider/interface.ts +181 -0
  82. package/dist/files/apex-provider/llm.txt +367 -0
  83. package/dist/files/apex-provider/localeKind.ts +20 -0
  84. package/dist/files/auto-complete/AutoComplete.tsx +419 -0
  85. package/dist/files/auto-complete/auto-complete.css +108 -0
  86. package/dist/files/auto-complete/auto-complete.stories.css +17 -0
  87. package/dist/files/auto-complete/index.ts +8 -0
  88. package/dist/files/auto-complete/interface.ts +77 -0
  89. package/dist/files/auto-complete/llm.txt +374 -0
  90. package/dist/files/auto-complete/tokens.txt +77 -0
  91. package/dist/files/auto-complete/variants.ts +19 -0
  92. package/dist/files/avatar/Avatar.tsx +277 -0
  93. package/dist/files/avatar/avatar.css +159 -0
  94. package/dist/files/avatar/index.ts +2 -0
  95. package/dist/files/avatar/interface.ts +147 -0
  96. package/dist/files/avatar/llm.txt +195 -0
  97. package/dist/files/avatar/tokens.txt +38 -0
  98. package/dist/files/avatar/use-responsive-size.ts +66 -0
  99. package/dist/files/avatar/variants.ts +41 -0
  100. package/dist/files/breadcrumb/Breadcrumb.stories.css +5 -0
  101. package/dist/files/breadcrumb/Breadcrumb.tsx +238 -0
  102. package/dist/files/breadcrumb/BreadcrumbLink.tsx +63 -0
  103. package/dist/files/breadcrumb/BreadcrumbSeparatorIcon.tsx +30 -0
  104. package/dist/files/breadcrumb/breadcrumb.css +113 -0
  105. package/dist/files/breadcrumb/index.ts +12 -0
  106. package/dist/files/breadcrumb/interface.ts +81 -0
  107. package/dist/files/breadcrumb/llm.txt +249 -0
  108. package/dist/files/breadcrumb/tokens.txt +193 -0
  109. package/dist/files/breadcrumb/variants.ts +8 -0
  110. package/dist/files/button/Button.tsx +235 -0
  111. package/dist/files/button/button.css +261 -0
  112. package/dist/files/button/index.ts +2 -0
  113. package/dist/files/button/interface.ts +145 -0
  114. package/dist/files/button/llm.txt +254 -0
  115. package/dist/files/button/tokens.txt +470 -0
  116. package/dist/files/button/variants.ts +89 -0
  117. package/dist/files/card/Card.tsx +63 -0
  118. package/dist/files/card/card.css +66 -0
  119. package/dist/files/card/index.ts +2 -0
  120. package/dist/files/card/interface.ts +25 -0
  121. package/dist/files/card/llm.txt +93 -0
  122. package/dist/files/card/tokens.txt +27 -0
  123. package/dist/files/cascader/Cascader.tsx +955 -0
  124. package/dist/files/cascader/_adapter/locale.ts +4 -0
  125. package/dist/files/cascader/cascader-data.ts +354 -0
  126. package/dist/files/cascader/cascader.css +382 -0
  127. package/dist/files/cascader/index.ts +16 -0
  128. package/dist/files/cascader/interface.ts +358 -0
  129. package/dist/files/cascader/llm.txt +897 -0
  130. package/dist/files/cascader/tokens.txt +253 -0
  131. package/dist/files/cascader/variants.ts +35 -0
  132. package/dist/files/checkbox/Checkbox.tsx +477 -0
  133. package/dist/files/checkbox/checkbox.css +196 -0
  134. package/dist/files/checkbox/index.ts +9 -0
  135. package/dist/files/checkbox/interface.ts +162 -0
  136. package/dist/files/checkbox/llm.txt +326 -0
  137. package/dist/files/checkbox/tokens.txt +28 -0
  138. package/dist/files/checkbox/variants.ts +29 -0
  139. package/dist/files/clear/Clear.tsx +49 -0
  140. package/dist/files/clear/clear.css +60 -0
  141. package/dist/files/clear/index.ts +2 -0
  142. package/dist/files/clear/interface.ts +8 -0
  143. package/dist/files/collapse/Collapse.tsx +163 -0
  144. package/dist/files/collapse/collapse.css +174 -0
  145. package/dist/files/collapse/index.ts +2 -0
  146. package/dist/files/collapse/interface.ts +132 -0
  147. package/dist/files/collapse/llm.txt +328 -0
  148. package/dist/files/collapse/tokens.txt +84 -0
  149. package/dist/files/core/date-picker/index.ts +191 -0
  150. package/dist/files/core/form/index.ts +212 -0
  151. package/dist/files/core/index.ts +11 -0
  152. package/dist/files/core/input-number/index.ts +112 -0
  153. package/dist/files/core/namespace/index.ts +14 -0
  154. package/dist/files/core/overlay/index.ts +40 -0
  155. package/dist/files/core/pagination/index.ts +128 -0
  156. package/dist/files/core/table/access.ts +37 -0
  157. package/dist/files/core/table/columns.ts +4 -0
  158. package/dist/files/core/table/data-model.ts +58 -0
  159. package/dist/files/core/table/fixed-offset.ts +29 -0
  160. package/dist/files/core/table/grouped-header.ts +24 -0
  161. package/dist/files/core/table/index.ts +11 -0
  162. package/dist/files/core/table/merge.ts +132 -0
  163. package/dist/files/core/table/pagination.ts +51 -0
  164. package/dist/files/core/table/rowModel.ts +4 -0
  165. package/dist/files/core/table/types.ts +14 -0
  166. package/dist/files/core/typography/index.ts +125 -0
  167. package/dist/files/core/upload/file-type.ts +160 -0
  168. package/dist/files/core/upload/format-size.ts +17 -0
  169. package/dist/files/core/upload/index.ts +19 -0
  170. package/dist/files/core/upload/limits.ts +76 -0
  171. package/dist/files/core/utils/cn.ts +6 -0
  172. package/dist/files/core/utils/index.ts +2 -0
  173. package/dist/files/core/utils/svg.ts +101 -0
  174. package/dist/files/date-picker/DatePicker.tsx +601 -0
  175. package/dist/files/date-picker/RangePicker.tsx +1047 -0
  176. package/dist/files/date-picker/Trigger.tsx +115 -0
  177. package/dist/files/date-picker/_adapter/calendar.ts +136 -0
  178. package/dist/files/date-picker/_adapter/disable.ts +89 -0
  179. package/dist/files/date-picker/_adapter/format.ts +54 -0
  180. package/dist/files/date-picker/_adapter/keymap.ts +17 -0
  181. package/dist/files/date-picker/_adapter/locale.ts +4 -0
  182. package/dist/files/date-picker/_adapter/presets.ts +30 -0
  183. package/dist/files/date-picker/_adapter/range.ts +44 -0
  184. package/dist/files/date-picker/_adapter/types.ts +29 -0
  185. package/dist/files/date-picker/context.ts +60 -0
  186. package/dist/files/date-picker/date-picker.css +1093 -0
  187. package/dist/files/date-picker/index.ts +26 -0
  188. package/dist/files/date-picker/interface.ts +135 -0
  189. package/dist/files/date-picker/llm.txt +422 -0
  190. package/dist/files/date-picker/panels/DatePanel.tsx +110 -0
  191. package/dist/files/date-picker/panels/DecadePanel.tsx +49 -0
  192. package/dist/files/date-picker/panels/Footer.tsx +109 -0
  193. package/dist/files/date-picker/panels/Header.tsx +228 -0
  194. package/dist/files/date-picker/panels/MonthPanel.tsx +83 -0
  195. package/dist/files/date-picker/panels/Panel.tsx +339 -0
  196. package/dist/files/date-picker/panels/QuarterPanel.tsx +70 -0
  197. package/dist/files/date-picker/panels/TimePanel.tsx +171 -0
  198. package/dist/files/date-picker/panels/WeekPanel.tsx +145 -0
  199. package/dist/files/date-picker/panels/YearPanel.tsx +89 -0
  200. package/dist/files/date-picker/panels/time-panel-utils.ts +33 -0
  201. package/dist/files/date-picker/tokens.txt +171 -0
  202. package/dist/files/date-picker/variants.ts +20 -0
  203. package/dist/files/divider/Divider.tsx +80 -0
  204. package/dist/files/divider/divider.css +66 -0
  205. package/dist/files/divider/index.ts +7 -0
  206. package/dist/files/divider/interface.ts +58 -0
  207. package/dist/files/divider/llm.txt +158 -0
  208. package/dist/files/divider/tokens.txt +22 -0
  209. package/dist/files/drawer/Drawer.tsx +491 -0
  210. package/dist/files/drawer/drawer.css +201 -0
  211. package/dist/files/drawer/index.ts +13 -0
  212. package/dist/files/drawer/interface.ts +172 -0
  213. package/dist/files/drawer/llm.txt +374 -0
  214. package/dist/files/drawer/tokens.txt +71 -0
  215. package/dist/files/drawer/variants.ts +14 -0
  216. package/dist/files/dropdown/Dropdown.tsx +629 -0
  217. package/dist/files/dropdown/dropdown.css +243 -0
  218. package/dist/files/dropdown/index.ts +12 -0
  219. package/dist/files/dropdown/interface.ts +91 -0
  220. package/dist/files/dropdown/lib.ts +78 -0
  221. package/dist/files/dropdown/llm.txt +427 -0
  222. package/dist/files/dropdown/tokens.txt +59 -0
  223. package/dist/files/form/Form.tsx +229 -0
  224. package/dist/files/form/FormItem.tsx +526 -0
  225. package/dist/files/form/_adapter/bindField.ts +189 -0
  226. package/dist/files/form/_adapter/compileRules.ts +185 -0
  227. package/dist/files/form/_adapter/controlStatus.ts +23 -0
  228. package/dist/files/form/_adapter/deriveStatus.ts +42 -0
  229. package/dist/files/form/_adapter/instance.ts +281 -0
  230. package/dist/files/form/_adapter/messages.ts +15 -0
  231. package/dist/files/form/_adapter/types.ts +82 -0
  232. package/dist/files/form/_adapter/validationMeta.ts +29 -0
  233. package/dist/files/form/_adapter/validationTransaction.ts +69 -0
  234. package/dist/files/form/context.ts +38 -0
  235. package/dist/files/form/form.css +268 -0
  236. package/dist/files/form/index.ts +13 -0
  237. package/dist/files/form/interface.ts +99 -0
  238. package/dist/files/form/llm.txt +346 -0
  239. package/dist/files/form/tokens.txt +26 -0
  240. package/dist/files/form/useForm.ts +150 -0
  241. package/dist/files/form/utils.ts +28 -0
  242. package/dist/files/form/variants.ts +30 -0
  243. package/dist/files/global.css +8 -0
  244. package/dist/files/grid/Col.tsx +104 -0
  245. package/dist/files/grid/Grid.tsx +18 -0
  246. package/dist/files/grid/Row.tsx +129 -0
  247. package/dist/files/grid/grid.css +990 -0
  248. package/dist/files/grid/index.ts +12 -0
  249. package/dist/files/grid/interface.ts +109 -0
  250. package/dist/files/grid/llm.txt +419 -0
  251. package/dist/files/grid/useBreakpoint.ts +67 -0
  252. package/dist/files/icon/Icon.tsx +16 -0
  253. package/dist/files/icon/icon.css +26 -0
  254. package/dist/files/icon/icons-map.ts +1 -0
  255. package/dist/files/icon/index.ts +2 -0
  256. package/dist/files/icon/interface.ts +9 -0
  257. package/dist/files/icons/ActionIcons.tsx +105 -0
  258. package/dist/files/icons/AlertCloseIcon.tsx +21 -0
  259. package/dist/files/icons/CalendarIcon.tsx +6 -0
  260. package/dist/files/icons/CaretIcons.tsx +43 -0
  261. package/dist/files/icons/FileFormatIcons.tsx +27 -0
  262. package/dist/files/icons/Icons.tsx +10 -0
  263. package/dist/files/icons/MagnifyingGlassIcon.tsx +26 -0
  264. package/dist/files/icons/MessageIcons.tsx +111 -0
  265. package/dist/files/icons/NavigationIcons.tsx +126 -0
  266. package/dist/files/icons/PreviewIcons.tsx +18 -0
  267. package/dist/files/icons/StarIcons.tsx +71 -0
  268. package/dist/files/icons/UploadIcons.tsx +167 -0
  269. package/dist/files/icons/XCloseIcon.tsx +26 -0
  270. package/dist/files/icons/createAssetIcon.tsx +64 -0
  271. package/dist/files/icons/icons.css +4 -0
  272. package/dist/files/icons/index.ts +36 -0
  273. package/dist/files/icons/interface.ts +9 -0
  274. package/dist/files/icons/registry.ts +94 -0
  275. package/dist/files/image/Image.tsx +328 -0
  276. package/dist/files/image/ImageActionIcons.tsx +60 -0
  277. package/dist/files/image/ImagePreview.tsx +684 -0
  278. package/dist/files/image/_adapter/locale.ts +4 -0
  279. package/dist/files/image/image.css +451 -0
  280. package/dist/files/image/index.ts +7 -0
  281. package/dist/files/image/interface.ts +139 -0
  282. package/dist/files/image/llm.txt +429 -0
  283. package/dist/files/image/tokens.txt +28 -0
  284. package/dist/files/input/Input.tsx +261 -0
  285. package/dist/files/input/icons.tsx +3 -0
  286. package/dist/files/input/index.ts +12 -0
  287. package/dist/files/input/input-clear.stories.css +12 -0
  288. package/dist/files/input/input-size.ts +36 -0
  289. package/dist/files/input/input.css +366 -0
  290. package/dist/files/input/interface.ts +204 -0
  291. package/dist/files/input/lib.ts +51 -0
  292. package/dist/files/input/llm.txt +419 -0
  293. package/dist/files/input/tokens.txt +136 -0
  294. package/dist/files/input/variants.ts +17 -0
  295. package/dist/files/input-number/InputNumber.tsx +510 -0
  296. package/dist/files/input-number/icons.tsx +28 -0
  297. package/dist/files/input-number/index.ts +15 -0
  298. package/dist/files/input-number/input-number.css +440 -0
  299. package/dist/files/input-number/interface.ts +269 -0
  300. package/dist/files/input-number/lib.ts +128 -0
  301. package/dist/files/input-number/llm.txt +484 -0
  302. package/dist/files/input-number/tokens.txt +159 -0
  303. package/dist/files/input-number/variants.ts +27 -0
  304. package/dist/files/layout/Layout.tsx +360 -0
  305. package/dist/files/layout/index.ts +21 -0
  306. package/dist/files/layout/interface.ts +106 -0
  307. package/dist/files/layout/layout.css +278 -0
  308. package/dist/files/layout/llm.txt +296 -0
  309. package/dist/files/layout/tokens.txt +29 -0
  310. package/dist/files/llms-theme.txt +32 -0
  311. package/dist/files/llms.txt +895 -0
  312. package/dist/files/locale/en_US.ts +167 -0
  313. package/dist/files/locale/zh_CN.ts +166 -0
  314. package/dist/files/menu/Menu.stories.shared.tsx +85 -0
  315. package/dist/files/menu/Menu.tsx +713 -0
  316. package/dist/files/menu/demo/menu-sliding-panel.css +71 -0
  317. package/dist/files/menu/demo/use-sliding-panel.ts +35 -0
  318. package/dist/files/menu/icons.tsx +92 -0
  319. package/dist/files/menu/index.ts +17 -0
  320. package/dist/files/menu/interface.ts +229 -0
  321. package/dist/files/menu/lib.ts +160 -0
  322. package/dist/files/menu/llm.txt +686 -0
  323. package/dist/files/menu/menu.css +455 -0
  324. package/dist/files/menu/tokens.txt +87 -0
  325. package/dist/files/message/Message.tsx +217 -0
  326. package/dist/files/message/index.ts +2 -0
  327. package/dist/files/message/interface.ts +149 -0
  328. package/dist/files/message/lib/constants.ts +18 -0
  329. package/dist/files/message/lib/helpers.ts +26 -0
  330. package/dist/files/message/lib/motion.ts +117 -0
  331. package/dist/files/message/lib/store.ts +72 -0
  332. package/dist/files/message/llm.txt +301 -0
  333. package/dist/files/message/message.css +178 -0
  334. package/dist/files/message/tokens.txt +25 -0
  335. package/dist/files/modal/Modal.tsx +547 -0
  336. package/dist/files/modal/_adapter/locale.ts +4 -0
  337. package/dist/files/modal/index.ts +16 -0
  338. package/dist/files/modal/interface.ts +368 -0
  339. package/dist/files/modal/lib/ConfirmDialog.tsx +229 -0
  340. package/dist/files/modal/lib/confirm.tsx +112 -0
  341. package/dist/files/modal/lib/confirmIcons.tsx +21 -0
  342. package/dist/files/modal/lib/useModal.tsx +130 -0
  343. package/dist/files/modal/llm.txt +586 -0
  344. package/dist/files/modal/modal-padding.stories.css +22 -0
  345. package/dist/files/modal/modal.css +322 -0
  346. package/dist/files/modal/tokens.txt +96 -0
  347. package/dist/files/modal/variants.ts +41 -0
  348. package/dist/files/notification/Notification.tsx +354 -0
  349. package/dist/files/notification/index.ts +8 -0
  350. package/dist/files/notification/interface.ts +140 -0
  351. package/dist/files/notification/lib/constants.ts +40 -0
  352. package/dist/files/notification/lib/helpers.ts +31 -0
  353. package/dist/files/notification/lib/motion.ts +148 -0
  354. package/dist/files/notification/lib/store.ts +149 -0
  355. package/dist/files/notification/llm.txt +386 -0
  356. package/dist/files/notification/notification.css +416 -0
  357. package/dist/files/notification/tokens.txt +79 -0
  358. package/dist/files/pagination/PageButton.tsx +48 -0
  359. package/dist/files/pagination/PageSizeChanger.tsx +42 -0
  360. package/dist/files/pagination/Pagination.tsx +308 -0
  361. package/dist/files/pagination/QuickJumper.tsx +52 -0
  362. package/dist/files/pagination/TotalText.tsx +28 -0
  363. package/dist/files/pagination/_adapter/calculate.ts +33 -0
  364. package/dist/files/pagination/_adapter/locale.ts +4 -0
  365. package/dist/files/pagination/_adapter/responsive.ts +22 -0
  366. package/dist/files/pagination/_adapter/types.ts +27 -0
  367. package/dist/files/pagination/context.ts +15 -0
  368. package/dist/files/pagination/index.ts +3 -0
  369. package/dist/files/pagination/interface.ts +55 -0
  370. package/dist/files/pagination/llm.txt +204 -0
  371. package/dist/files/pagination/pagination.css +241 -0
  372. package/dist/files/pagination/tokens.txt +33 -0
  373. package/dist/files/pagination/useResizeObserver.ts +40 -0
  374. package/dist/files/pagination/variants.ts +3 -0
  375. package/dist/files/popover/Popover.tsx +353 -0
  376. package/dist/files/popover/index.ts +2 -0
  377. package/dist/files/popover/interface.ts +124 -0
  378. package/dist/files/popover/llm.txt +235 -0
  379. package/dist/files/popover/placement.ts +39 -0
  380. package/dist/files/popover/popover.css +65 -0
  381. package/dist/files/popover/popover.stories.css +42 -0
  382. package/dist/files/popover/tokens.txt +28 -0
  383. package/dist/files/progress/Progress.tsx +213 -0
  384. package/dist/files/progress/index.ts +4 -0
  385. package/dist/files/progress/interface.ts +89 -0
  386. package/dist/files/progress/llm.txt +277 -0
  387. package/dist/files/progress/progress.css +192 -0
  388. package/dist/files/progress/tokens.txt +83 -0
  389. package/dist/files/radio/Radio.tsx +315 -0
  390. package/dist/files/radio/context.tsx +16 -0
  391. package/dist/files/radio/helpers.ts +163 -0
  392. package/dist/files/radio/index.ts +13 -0
  393. package/dist/files/radio/interface.ts +207 -0
  394. package/dist/files/radio/llm.txt +344 -0
  395. package/dist/files/radio/radio.css +137 -0
  396. package/dist/files/radio/tokens.txt +21 -0
  397. package/dist/files/radio/variants.ts +20 -0
  398. package/dist/files/rate/Rate.tsx +199 -0
  399. package/dist/files/rate/RateItem.tsx +113 -0
  400. package/dist/files/rate/StarFilled.tsx +19 -0
  401. package/dist/files/rate/index.ts +11 -0
  402. package/dist/files/rate/interface.ts +116 -0
  403. package/dist/files/rate/lib.ts +72 -0
  404. package/dist/files/rate/llm.txt +237 -0
  405. package/dist/files/rate/rate.css +126 -0
  406. package/dist/files/rate/tokens.txt +20 -0
  407. package/dist/files/rate/variants.ts +19 -0
  408. package/dist/files/scrollbar.css +148 -0
  409. package/dist/files/select/Select.tsx +1366 -0
  410. package/dist/files/select/_adapter/locale.ts +4 -0
  411. package/dist/files/select/index.ts +17 -0
  412. package/dist/files/select/interface.ts +494 -0
  413. package/dist/files/select/llm.txt +828 -0
  414. package/dist/files/select/select-overflow.stories.css +3 -0
  415. package/dist/files/select/select.css +443 -0
  416. package/dist/files/select/tokens.txt +160 -0
  417. package/dist/files/select/variants.ts +63 -0
  418. package/dist/files/skeleton/Skeleton.tsx +345 -0
  419. package/dist/files/skeleton/index.ts +19 -0
  420. package/dist/files/skeleton/interface.ts +101 -0
  421. package/dist/files/skeleton/llm.txt +274 -0
  422. package/dist/files/skeleton/skeleton.css +171 -0
  423. package/dist/files/skeleton/tokens.txt +15 -0
  424. package/dist/files/skeleton/variants.ts +40 -0
  425. package/dist/files/spin/Spin.tsx +197 -0
  426. package/dist/files/spin/index.ts +2 -0
  427. package/dist/files/spin/interface.ts +69 -0
  428. package/dist/files/spin/llm.txt +294 -0
  429. package/dist/files/spin/spin.css +111 -0
  430. package/dist/files/spin/tokens.txt +21 -0
  431. package/dist/files/spin/variants.ts +19 -0
  432. package/dist/files/steps/Steps.tsx +211 -0
  433. package/dist/files/steps/index.ts +11 -0
  434. package/dist/files/steps/interface.ts +155 -0
  435. package/dist/files/steps/lib.ts +46 -0
  436. package/dist/files/steps/llm.txt +296 -0
  437. package/dist/files/steps/steps.css +268 -0
  438. package/dist/files/steps/tokens.txt +30 -0
  439. package/dist/files/steps/variants.ts +15 -0
  440. package/dist/files/switch/Switch.tsx +131 -0
  441. package/dist/files/switch/index.ts +2 -0
  442. package/dist/files/switch/interface.ts +92 -0
  443. package/dist/files/switch/llm.txt +212 -0
  444. package/dist/files/switch/switch.css +198 -0
  445. package/dist/files/switch/tokens.txt +38 -0
  446. package/dist/files/switch/variants.ts +15 -0
  447. package/dist/files/table/Table.stories.css +56 -0
  448. package/dist/files/table/Table.tsx +481 -0
  449. package/dist/files/table/_adapter/locale.ts +4 -0
  450. package/dist/files/table/constants.ts +7 -0
  451. package/dist/files/table/context.ts +46 -0
  452. package/dist/files/table/hooks/useColumnControl.ts +135 -0
  453. package/dist/files/table/hooks/useColumns.ts +87 -0
  454. package/dist/files/table/hooks/useExpandable.tsx +271 -0
  455. package/dist/files/table/hooks/useOverlayScrollbar.ts +304 -0
  456. package/dist/files/table/hooks/usePagination.ts +110 -0
  457. package/dist/files/table/hooks/useRowSelection.tsx +250 -0
  458. package/dist/files/table/hooks/useScrollShadow.ts +66 -0
  459. package/dist/files/table/hooks/useSkeletonRowCount.ts +78 -0
  460. package/dist/files/table/hooks/useTableLayoutScale.ts +38 -0
  461. package/dist/files/table/hooks/useTableModel.ts +91 -0
  462. package/dist/files/table/index.ts +24 -0
  463. package/dist/files/table/interface.ts +407 -0
  464. package/dist/files/table/llm.txt +1050 -0
  465. package/dist/files/table/parts/TableBody.tsx +396 -0
  466. package/dist/files/table/parts/TableCell.tsx +123 -0
  467. package/dist/files/table/parts/TableColgroup.tsx +35 -0
  468. package/dist/files/table/parts/TableEmpty.tsx +48 -0
  469. package/dist/files/table/parts/TableEmptyIllustration.tsx +27 -0
  470. package/dist/files/table/parts/TableHeader.tsx +102 -0
  471. package/dist/files/table/parts/TablePagination.tsx +46 -0
  472. package/dist/files/table/parts/TableRow.tsx +42 -0
  473. package/dist/files/table/parts/TableScrollbars.tsx +79 -0
  474. package/dist/files/table/parts/TableSkeleton.tsx +47 -0
  475. package/dist/files/table/parts/TableSummary.tsx +121 -0
  476. package/dist/files/table/table.css +850 -0
  477. package/dist/files/table/tokenScopes.ts +28 -0
  478. package/dist/files/table/tokens.txt +94 -0
  479. package/dist/files/table/utils/computeMergeGrid.ts +41 -0
  480. package/dist/files/table/utils/dataModel.ts +45 -0
  481. package/dist/files/table/utils/getCellValue.ts +7 -0
  482. package/dist/files/table/utils/getGroupedHeaderSpan.ts +73 -0
  483. package/dist/files/table/utils/getRowKey.ts +31 -0
  484. package/dist/files/table/utils/paginationState.ts +31 -0
  485. package/dist/files/table/utils/prefixSvgIds.ts +6 -0
  486. package/dist/files/table/utils/scaleFixedOffset.ts +19 -0
  487. package/dist/files/tabs/Tabs.tsx +140 -0
  488. package/dist/files/tabs/index.ts +2 -0
  489. package/dist/files/tabs/interface.ts +117 -0
  490. package/dist/files/tabs/llm.txt +305 -0
  491. package/dist/files/tabs/tabs.css +299 -0
  492. package/dist/files/tabs/tokens.txt +78 -0
  493. package/dist/files/tabs/variants.ts +51 -0
  494. package/dist/files/tag/Tag.tsx +180 -0
  495. package/dist/files/tag/index.ts +8 -0
  496. package/dist/files/tag/interface.ts +68 -0
  497. package/dist/files/tag/llm.txt +301 -0
  498. package/dist/files/tag/tag.css +96 -0
  499. package/dist/files/tag/tokens.txt +76 -0
  500. package/dist/files/tag/variants.ts +71 -0
  501. package/dist/files/theme/aliases.css +217 -0
  502. package/dist/files/theme/component-tokens.css +2211 -0
  503. package/dist/files/theme/index.css +4 -0
  504. package/dist/files/theme/primitives.css +182 -0
  505. package/dist/files/theme/static.css +13 -0
  506. package/dist/files/tooltip/Tooltip.tsx +362 -0
  507. package/dist/files/tooltip/index.ts +7 -0
  508. package/dist/files/tooltip/interface.ts +118 -0
  509. package/dist/files/tooltip/llm.txt +308 -0
  510. package/dist/files/tooltip/placement.ts +51 -0
  511. package/dist/files/tooltip/tokens.txt +22 -0
  512. package/dist/files/tooltip/tooltip.css +78 -0
  513. package/dist/files/tree/Tree.tsx +1069 -0
  514. package/dist/files/tree/constants.ts +2 -0
  515. package/dist/files/tree/index.ts +22 -0
  516. package/dist/files/tree/interface.ts +447 -0
  517. package/dist/files/tree/llm.txt +501 -0
  518. package/dist/files/tree/tokens.txt +36 -0
  519. package/dist/files/tree/tree-data.ts +260 -0
  520. package/dist/files/tree/tree.css +231 -0
  521. package/dist/files/tree/variants.ts +25 -0
  522. package/dist/files/tree-select/TreeSelect.tsx +864 -0
  523. package/dist/files/tree-select/_adapter/locale.ts +4 -0
  524. package/dist/files/tree-select/index.ts +23 -0
  525. package/dist/files/tree-select/interface.ts +415 -0
  526. package/dist/files/tree-select/llm.txt +754 -0
  527. package/dist/files/tree-select/tokens.txt +174 -0
  528. package/dist/files/tree-select/tree-select-data.ts +294 -0
  529. package/dist/files/tree-select/tree-select.css +303 -0
  530. package/dist/files/tree-select/variants.ts +42 -0
  531. package/dist/files/typography/Typography.tsx +739 -0
  532. package/dist/files/typography/_adapter/locale.ts +4 -0
  533. package/dist/files/typography/canvasTextMeasure.ts +148 -0
  534. package/dist/files/typography/index.ts +21 -0
  535. package/dist/files/typography/interface.ts +154 -0
  536. package/dist/files/typography/llm.txt +412 -0
  537. package/dist/files/typography/tokens.txt +60 -0
  538. package/dist/files/typography/typography.css +312 -0
  539. package/dist/files/typography/useEllipsisSuffix.ts +245 -0
  540. package/dist/files/typography/variants.ts +24 -0
  541. package/dist/files/upload/Upload.stories.css +54 -0
  542. package/dist/files/upload/Upload.stories.shared.ts +21 -0
  543. package/dist/files/upload/Upload.tsx +1108 -0
  544. package/dist/files/upload/UploadActionIcons.tsx +13 -0
  545. package/dist/files/upload/UploadFileIcon.tsx +52 -0
  546. package/dist/files/upload/_adapter/locale.ts +4 -0
  547. package/dist/files/upload/constants.ts +46 -0
  548. package/dist/files/upload/index.ts +38 -0
  549. package/dist/files/upload/interface.ts +302 -0
  550. package/dist/files/upload/lib/file-type.ts +60 -0
  551. package/dist/files/upload/lib/format-size.ts +6 -0
  552. package/dist/files/upload/lib/limits.ts +46 -0
  553. package/dist/files/upload/llm.txt +705 -0
  554. package/dist/files/upload/tokens.txt +201 -0
  555. package/dist/files/upload/upload.css +460 -0
  556. package/dist/files/utils/cn.ts +16 -0
  557. package/dist/files/utils/env.ts +16 -0
  558. package/dist/files/utils/normalizeRawSvg.ts +12 -0
  559. package/dist/manifest.json +580 -0
  560. package/package.json +41 -3
@@ -0,0 +1,167 @@
1
+ 'use client'
2
+
3
+ import type { AssetIconProps } from './interface'
4
+
5
+ /** Path data aligned with `assets/upload-trigger.svg` */
6
+ export function UploadTriggerIcon({ className }: AssetIconProps) {
7
+ return (
8
+ <svg
9
+ className={className}
10
+ viewBox="0 0 14 14"
11
+ width="1em"
12
+ height="1em"
13
+ fill="none"
14
+ aria-hidden="true"
15
+ focusable="false"
16
+ >
17
+ <path
18
+ d="M6.56251 12.8334C6.56251 13.075 6.75838 13.2709 7.00001 13.2709C7.24163 13.2709 7.43751 13.075 7.43751 12.8334V10.3895L7.85735 10.8094C8.0282 10.9802 8.30515 10.9802 8.476 10.8094C8.64685 10.6385 8.64685 10.3616 8.476 10.1907L7.30933 9.02405C7.13848 8.85319 6.86154 8.85319 6.69068 9.02405L5.52401 10.1907C5.35316 10.3616 5.35316 10.6385 5.52401 10.8094C5.69487 10.9802 5.97181 10.9802 6.14267 10.8094L6.56251 10.3895V12.8334Z"
19
+ fill="currentColor"
20
+ />
21
+ <path
22
+ d="M0.729187 8.61271C0.729205 7.0353 1.99489 5.75933 3.5661 5.70687C3.5271 5.49169 3.50687 5.27024 3.50686 5.04435C3.50686 2.97857 5.20034 1.3125 7.27802 1.3125C9.12016 1.3126 10.6582 2.62159 10.9842 4.35848C11.4685 4.56388 11.9007 4.86632 12.2551 5.24145C12.4208 5.41707 12.413 5.69366 12.2375 5.85954C12.0619 6.02547 11.7848 6.01751 11.6188 5.84188C11.3001 5.50454 10.8995 5.24348 10.4488 5.08936C10.1522 4.98797 9.83326 4.93273 9.50027 4.9327C9.16041 4.9327 8.83472 4.99023 8.53298 5.09562C8.30492 5.17516 8.0555 5.05479 7.97585 4.82674C7.89622 4.59865 8.01664 4.34928 8.24473 4.26961C8.63804 4.13224 9.06095 4.0577 9.50027 4.0577C9.67248 4.05771 9.84206 4.06967 10.0084 4.09188C9.61152 2.98493 8.54156 2.18759 7.27802 2.1875C5.6738 2.1875 4.38186 3.47155 4.38186 5.04435C4.38188 5.31413 4.41958 5.5747 4.49009 5.82137C4.78 5.90506 5.05151 6.03116 5.29673 6.19336C5.49825 6.32667 5.55365 6.59796 5.42035 6.79948C5.28705 7.00099 5.01575 7.05638 4.81423 6.9231C4.59213 6.77618 4.33968 6.6705 4.06797 6.61776C3.93865 6.59266 3.80447 6.57961 3.66693 6.57959C2.52296 6.57959 1.60421 7.49475 1.60419 8.61271C1.60419 9.51898 2.20729 10.2919 3.04657 10.5524C3.27722 10.6241 3.40586 10.8691 3.33425 11.0999C3.26262 11.3306 3.01756 11.4597 2.7868 11.3881C1.59761 11.0189 0.729187 9.91886 0.729187 8.61271ZM12.3959 7.78898C12.396 7.54746 12.5918 7.35148 12.8334 7.35148C13.0749 7.35148 13.2707 7.54746 13.2709 7.78898C13.2709 9.34085 12.3144 10.6676 10.9597 11.2309C10.7367 11.3236 10.4806 11.218 10.3878 10.995C10.2951 10.772 10.4006 10.5159 10.6236 10.4231C11.6679 9.98892 12.3959 8.97044 12.3959 7.78898Z"
23
+ fill="currentColor"
24
+ />
25
+ </svg>
26
+ )
27
+ }
28
+
29
+ /** Path data aligned with `assets/upload-list-item.svg` */
30
+ export function UploadListItemIcon({ className }: AssetIconProps) {
31
+ return (
32
+ <svg
33
+ className={className}
34
+ viewBox="0 0 16 16"
35
+ width="1em"
36
+ height="1em"
37
+ fill="none"
38
+ aria-hidden="true"
39
+ focusable="false"
40
+ >
41
+ <path
42
+ d="M13.5 9.33331V6.66665C13.5 6.3905 13.7239 6.16665 14 6.16665C14.2761 6.16665 14.5 6.3905 14.5 6.66665V9.33331C14.5 10.5763 14.5009 11.5589 14.3978 12.3262C14.2927 13.1077 14.0711 13.74 13.5723 14.2389C13.0734 14.7378 12.441 14.9593 11.6595 15.0644C10.8923 15.1676 9.90961 15.1666 8.66667 15.1666H7.33333C6.09039 15.1666 5.10773 15.1676 4.3405 15.0644C3.55896 14.9593 2.92661 14.7378 2.42773 14.2389C1.87113 13.6823 1.65988 12.9594 1.57031 12.0488C1.54333 11.774 1.74409 11.5296 2.01888 11.5026C2.29364 11.4756 2.53808 11.6764 2.5651 11.9512C2.64605 12.774 2.82048 13.2176 3.13477 13.5319C3.41691 13.814 3.80323 13.9834 4.47396 14.0735C5.15906 14.1656 6.06216 14.1666 7.33333 14.1666H8.66667C9.93784 14.1666 10.8409 14.1656 11.526 14.0735C12.1968 13.9834 12.5831 13.814 12.8652 13.5319C13.1474 13.2497 13.3167 12.8634 13.4069 12.1927C13.499 11.5076 13.5 10.6045 13.5 9.33331ZM1.5 9.33331V6.66665C1.5 5.4237 1.49906 4.44104 1.60221 3.67381C1.70731 2.89227 1.92886 2.25992 2.42773 1.76105C2.92661 1.26217 3.55896 1.04062 4.3405 0.935527C5.10773 0.832375 6.09039 0.833313 7.33333 0.833313H8.66667C9.90961 0.833313 10.8923 0.832375 11.6595 0.935527C12.441 1.04062 13.0734 1.26218 13.5723 1.76105C14.1289 2.31766 14.3401 3.04058 14.4297 3.95115C14.4567 4.22593 14.2559 4.47035 13.9811 4.49738C13.7064 4.52432 13.4619 4.32358 13.4349 4.04881C13.3539 3.22596 13.1795 2.78237 12.8652 2.46808C12.5831 2.18594 12.1968 2.01659 11.526 1.92641C10.8409 1.83431 9.93784 1.83331 8.66667 1.83331H7.33333C6.06216 1.83331 5.15906 1.83431 4.47396 1.92641C3.80323 2.01659 3.41691 2.18594 3.13477 2.46808C2.85263 2.75022 2.68328 3.13655 2.5931 3.80727C2.501 4.49237 2.5 5.39547 2.5 6.66665V9.33331C2.5 9.60945 2.27614 9.83331 2 9.83331C1.72386 9.83331 1.5 9.60945 1.5 9.33331Z"
43
+ fill="currentColor"
44
+ />
45
+ <path
46
+ d="M8.66665 8.83331C8.94279 8.83331 9.16665 9.05717 9.16665 9.33331C9.16665 9.60946 8.94279 9.83331 8.66665 9.83331H5.33331C5.05717 9.83331 4.83331 9.60946 4.83331 9.33331C4.83331 9.05717 5.05717 8.83331 5.33331 8.83331H8.66665Z"
47
+ fill="currentColor"
48
+ />
49
+ <path
50
+ d="M5.99998 6.16669C6.27612 6.16669 6.49998 6.39054 6.49998 6.66669C6.49998 6.94283 6.27612 7.16669 5.99998 7.16669H5.33331C5.05717 7.16669 4.83331 6.94283 4.83331 6.66669C4.83331 6.39054 5.05717 6.16669 5.33331 6.16669H5.99998ZM10.6666 6.16669C10.9428 6.16669 11.1666 6.39054 11.1666 6.66669C11.1666 6.94283 10.9428 7.16669 10.6666 7.16669H7.99998C7.72384 7.16669 7.49998 6.94283 7.49998 6.66669C7.49998 6.39054 7.72384 6.16669 7.99998 6.16669H10.6666Z"
51
+ fill="currentColor"
52
+ />
53
+ </svg>
54
+ )
55
+ }
56
+
57
+ /** Path data aligned with `assets/upload-card-error.svg` */
58
+ export function UploadCardErrorIcon({ className }: AssetIconProps) {
59
+ return (
60
+ <svg
61
+ className={className}
62
+ viewBox="0 0 24 24"
63
+ width="1em"
64
+ height="1em"
65
+ fill="none"
66
+ aria-hidden="true"
67
+ focusable="false"
68
+ >
69
+ <path
70
+ d="M3.25779 10.4031C4.46622 9.34573 6.28742 9.40635 7.42283 10.5418L11.7129 14.8308C12.1424 15.2603 12.8184 15.3197 13.3154 14.9705L13.6133 14.7605C15.0435 13.7554 16.9789 13.8714 18.2783 15.0408L21.5019 17.9422C21.8098 18.2192 21.8347 18.6938 21.5576 19.0017C21.2805 19.3096 20.8059 19.3345 20.498 19.0574L17.2744 16.156C16.4947 15.4546 15.3336 15.385 14.4756 15.988L14.1777 16.197C13.0845 16.9653 11.5973 16.8369 10.6523 15.8923L6.36229 11.6023C5.78528 11.0253 4.85922 10.9946 4.2451 11.532L2.49412 13.0642C2.18241 13.337 1.7083 13.3056 1.43553 12.9939C1.16279 12.6822 1.19418 12.2081 1.50584 11.9353L3.25779 10.4031Z"
71
+ fill="currentColor"
72
+ />
73
+ <path
74
+ d="M21.4697 1.46979C21.7626 1.17692 22.2374 1.1769 22.5303 1.46979C22.8232 1.76267 22.8231 2.23744 22.5303 2.53033L20.0606 5.00006L22.5303 7.46979C22.8231 7.76268 22.8231 8.23745 22.5303 8.53033C22.2374 8.82321 21.7626 8.82319 21.4697 8.53033L19 6.06061L16.5303 8.53033C16.2374 8.82323 15.7626 8.82323 15.4697 8.53033C15.1768 8.23744 15.1768 7.76268 15.4697 7.46979L17.9395 5.00006L15.4697 2.53033C15.1768 2.23744 15.1768 1.76268 15.4697 1.46979C15.7626 1.17691 16.2374 1.1769 16.5303 1.46979L19 3.93951L21.4697 1.46979Z"
75
+ fill="currentColor"
76
+ />
77
+ <path
78
+ d="M1.25 12C1.25 10.8741 1.25019 9.87109 1.27051 8.98242C1.28021 8.56856 1.62321 8.2406 2.03711 8.25C2.45122 8.25947 2.779 8.60347 2.76953 9.01758C2.7497 9.8855 2.75 10.8694 2.75 12C2.75 14.3782 2.75198 16.0867 2.92676 17.3867C3.09865 18.6649 3.42551 19.4353 3.99512 20.0049C4.56472 20.5745 5.33508 20.9014 6.61328 21.0732C7.91326 21.248 9.62178 21.25 12 21.25C14.3782 21.25 16.0867 21.248 17.3867 21.0732C18.6649 20.9014 19.4353 20.5745 20.0049 20.0049C20.5745 19.4353 20.9014 18.6649 21.0732 17.3867C21.248 16.0867 21.25 14.3782 21.25 12C21.25 11.5858 21.5858 11.25 22 11.25C22.4142 11.25 22.75 11.5858 22.75 12C22.75 14.3356 22.7518 16.1628 22.5605 17.5859C22.3663 19.0307 21.9602 20.1706 21.0654 21.0654C20.1706 21.9602 19.0307 22.3663 17.5859 22.5605C16.1628 22.7518 14.3356 22.75 12 22.75C9.66439 22.75 7.83717 22.7518 6.41406 22.5605C4.96933 22.3663 3.82938 21.9602 2.93457 21.0654C2.03976 20.1706 1.63369 19.0307 1.43945 17.5859C1.24817 16.1628 1.25 14.3356 1.25 12ZM12 1.25C12.4142 1.25 12.75 1.58579 12.75 2C12.75 2.41421 12.4142 2.75 12 2.75C9.62178 2.75 7.91326 2.75198 6.61328 2.92676C5.33508 3.09865 4.56472 3.42551 3.99512 3.99512C3.65928 4.33095 3.41299 4.73014 3.23145 5.24805C3.09441 5.63891 2.66627 5.84502 2.27539 5.70801C1.88472 5.57086 1.67943 5.14273 1.81641 4.75195C2.06306 4.0483 2.42077 3.44837 2.93457 2.93457C3.82938 2.03976 4.96933 1.63369 6.41406 1.43945C7.83717 1.24817 9.66439 1.25 12 1.25Z"
79
+ fill="currentColor"
80
+ />
81
+ </svg>
82
+ )
83
+ }
84
+
85
+ /** Path data aligned with `assets/view.svg` */
86
+ export function ViewIcon({ className }: AssetIconProps) {
87
+ return (
88
+ <svg
89
+ className={className}
90
+ viewBox="0 0 16 16"
91
+ width="1em"
92
+ height="1em"
93
+ fill="none"
94
+ aria-hidden="true"
95
+ focusable="false"
96
+ >
97
+ <path
98
+ d="M0.833313 7.99996C0.833313 7.4078 0.910524 6.96867 1.08852 6.56571C1.25917 6.17943 1.51288 5.85425 1.78709 5.49801C2.12275 5.06192 2.52508 4.60674 2.99738 4.17769C3.20176 3.99205 3.51743 4.00719 3.7031 4.21155C3.88878 4.41595 3.87365 4.73225 3.66925 4.91793C3.24798 5.30065 2.8853 5.71062 2.57941 6.10803C2.2872 6.48766 2.11587 6.71452 2.00323 6.96936C1.89795 7.20767 1.83331 7.49925 1.83331 7.99996C1.83331 8.50067 1.89795 8.79225 2.00323 9.03056C2.11587 9.2854 2.2872 9.51226 2.57941 9.89189C3.66569 11.3031 5.43355 12.8333 7.99998 12.8333C10.5664 12.8333 12.3343 11.3031 13.4206 9.89189C13.7128 9.51226 13.8841 9.2854 13.9967 9.03056C14.102 8.79225 14.1666 8.50067 14.1666 7.99996C14.1666 7.49925 14.102 7.20767 13.9967 6.96936C13.8841 6.71451 13.7128 6.48766 13.4206 6.10803C12.3343 4.69678 10.5664 3.16663 7.99998 3.16663C7.32645 3.16663 6.7117 3.2717 6.15167 3.44983C5.88852 3.53353 5.60712 3.38746 5.52342 3.12431C5.43993 2.86129 5.58533 2.58044 5.84829 2.4967C6.50361 2.28826 7.22075 2.16663 7.99998 2.16663C11.0094 2.16663 13.0364 3.96956 14.2129 5.49801C14.4871 5.85425 14.7408 6.17943 14.9114 6.56571C15.0894 6.96867 15.1666 7.4078 15.1666 7.99996C15.1666 8.59212 15.0894 9.03125 14.9114 9.4342C14.7408 9.82049 14.4871 10.1457 14.2129 10.5019C13.0364 12.0304 11.0094 13.8333 7.99998 13.8333C4.99056 13.8333 2.96357 12.0304 1.78709 10.5019C1.51288 10.1457 1.25917 9.82049 1.08852 9.4342C0.910524 9.03125 0.833313 8.59212 0.833313 7.99996Z"
99
+ fill="currentColor"
100
+ />
101
+ <path
102
+ d="M9.5 8C9.5 7.17157 8.82843 6.5 8 6.5C7.17157 6.5 6.5 7.17157 6.5 8C6.5 8.82843 7.17157 9.5 8 9.5C8.82843 9.5 9.5 8.82843 9.5 8ZM10.5 8C10.5 9.38071 9.38071 10.5 8 10.5C6.61929 10.5 5.5 9.38071 5.5 8C5.5 6.61929 6.61929 5.5 8 5.5C9.38071 5.5 10.5 6.61929 10.5 8Z"
103
+ fill="currentColor"
104
+ />
105
+ </svg>
106
+ )
107
+ }
108
+
109
+ /** Path data aligned with `assets/delete.svg` */
110
+ export function DeleteIcon({ className }: AssetIconProps) {
111
+ return (
112
+ <svg
113
+ className={className}
114
+ viewBox="0 0 16 16"
115
+ width="1em"
116
+ height="1em"
117
+ fill="none"
118
+ aria-hidden="true"
119
+ focusable="false"
120
+ >
121
+ <path
122
+ d="M13.6666 3.5C13.9427 3.5 14.1666 3.72386 14.1666 4C14.1666 4.27614 13.9427 4.5 13.6666 4.5H2.33325C2.05711 4.5 1.83325 4.27614 1.83325 4C1.83325 3.72386 2.05711 3.5 2.33325 3.5H13.6666Z"
123
+ fill="currentColor"
124
+ />
125
+ <path
126
+ d="M6.28384 6.83599C6.55851 6.80866 6.80325 7.00922 6.83072 7.2839L7.16405 10.6172C7.19138 10.8919 6.99082 11.1366 6.71614 11.1641C6.44147 11.1914 6.19673 10.9909 6.16926 10.7162L5.83593 7.38286C5.8086 7.1082 6.00916 6.86346 6.28384 6.83599Z"
127
+ fill="currentColor"
128
+ />
129
+ <path
130
+ d="M9.71614 6.83599C9.99082 6.86346 10.1914 7.1082 10.1641 7.38286L9.83072 10.7162C9.80325 10.9909 9.55851 11.1914 9.28384 11.1641C9.00916 11.1366 8.8086 10.8919 8.83593 10.6172L9.16926 7.2839C9.19673 7.00922 9.44147 6.80866 9.71614 6.83599Z"
131
+ fill="currentColor"
132
+ />
133
+ <path
134
+ d="M9.09633 1.50002C9.25352 1.50002 9.38863 1.49864 9.5156 1.5189C9.98445 1.59377 10.3901 1.88621 10.6094 2.30731C10.6688 2.42139 10.71 2.55007 10.7597 2.69924L10.8248 2.89325C10.8373 2.93069 10.8407 2.94148 10.8437 2.94989C10.9605 3.27263 11.2636 3.49132 11.6068 3.50002C11.6157 3.50024 11.6269 3.50002 11.6666 3.50002V4.50002C11.6322 4.50002 11.6061 4.49999 11.5814 4.49937C10.8266 4.48024 10.1605 4.00039 9.90363 3.29038C9.89522 3.26716 9.88712 3.24217 9.87628 3.20966L9.81118 3.01499C9.75048 2.83291 9.73651 2.79555 9.72264 2.7689C9.64952 2.62862 9.51427 2.53148 9.35805 2.50653C9.32837 2.50179 9.28854 2.50002 9.09633 2.50002H6.90363C6.71141 2.50002 6.67159 2.50179 6.64191 2.50653C6.48569 2.53148 6.35044 2.62862 6.27732 2.7689C6.26345 2.79555 6.24948 2.83291 6.18878 3.01499L6.12368 3.20966C6.11282 3.24224 6.10473 3.26716 6.09633 3.29038C5.83948 4.00039 5.1734 4.48024 4.4186 4.49937C4.39389 4.49999 4.36772 4.50002 4.33331 4.50002V3.50002C4.37303 3.50002 4.38423 3.50024 4.39321 3.50002C4.73631 3.49132 5.03948 3.27263 5.15623 2.94989C5.15927 2.94146 5.16263 2.9307 5.17511 2.89325L5.24021 2.69924C5.28994 2.55007 5.3312 2.42139 5.3906 2.30731C5.60991 1.88621 6.01551 1.59377 6.48435 1.5189C6.61133 1.49864 6.74644 1.50002 6.90363 1.50002H9.09633Z"
135
+ fill="currentColor"
136
+ />
137
+ <path
138
+ d="M3.41132 5.168C3.68683 5.14965 3.92485 5.35798 3.94322 5.63349L4.24986 10.2331C4.30976 11.1315 4.35277 11.7569 4.44648 12.2272C4.53733 12.6832 4.66411 12.9246 4.84622 13.0951C5.02849 13.2656 5.27811 13.3765 5.73945 13.4369C6.21501 13.4991 6.84162 13.5 7.74205 13.5H8.25768C9.15824 13.5 9.78533 13.4991 10.2609 13.4369C10.7221 13.3765 10.9713 13.2656 11.1535 13.0951C11.3357 12.9246 11.463 12.6834 11.5539 12.2272C11.6476 11.7569 11.69 11.1315 11.7499 10.2331C11.7682 9.95757 12.0069 9.74859 12.2824 9.76696C12.5579 9.78539 12.7663 10.024 12.7479 10.2995C12.6898 11.1708 12.6438 11.8731 12.5344 12.4226C12.4221 12.986 12.2314 13.4566 11.8371 13.8256C11.4427 14.1945 10.9602 14.3539 10.3905 14.4284C9.83499 14.5011 9.13098 14.5 8.25768 14.5H7.74205C6.86893 14.5 6.16532 14.5011 5.60989 14.4284C5.04012 14.3539 4.55767 14.1945 4.16327 13.8256C3.76891 13.4566 3.57762 12.9861 3.46536 12.4226C3.35591 11.8732 3.31055 11.1708 3.25247 10.2995L2.94583 5.6999C2.92748 5.42439 3.1358 5.18636 3.41132 5.168ZM12.5891 5.168C12.8645 5.18645 13.0729 5.42445 13.0545 5.6999L12.9211 7.6999C12.9027 7.97539 12.6647 8.18369 12.3892 8.16539C12.1137 8.14703 11.9053 7.90901 11.9237 7.63349L12.0565 5.63349C12.0749 5.35796 12.3135 5.14963 12.5891 5.168Z"
139
+ fill="currentColor"
140
+ />
141
+ </svg>
142
+ )
143
+ }
144
+
145
+ /** Path data aligned with `assets/download.svg` */
146
+ export function DownloadIcon({ className }: AssetIconProps) {
147
+ return (
148
+ <svg
149
+ className={className}
150
+ viewBox="0 0 16 16"
151
+ width="1em"
152
+ height="1em"
153
+ fill="none"
154
+ aria-hidden="true"
155
+ focusable="false"
156
+ >
157
+ <path
158
+ d="M7.49998 2.00002V9.37893L5.70245 7.41278C5.51616 7.20903 5.19988 7.19468 4.99607 7.38088C4.79232 7.56717 4.77797 7.88345 4.96417 8.08726L7.63084 11.0039C7.72556 11.1075 7.8596 11.1667 7.99998 11.1667C8.14035 11.1667 8.27439 11.1075 8.36912 11.0039L11.0358 8.08726C11.222 7.88345 11.2076 7.56717 11.0039 7.38088C10.8001 7.19468 10.4838 7.20903 10.2975 7.41278L8.49998 9.37893V2.00002C8.49998 1.72388 8.27612 1.50002 7.99998 1.50002C7.72383 1.50002 7.49998 1.72388 7.49998 2.00002Z"
159
+ fill="currentColor"
160
+ />
161
+ <path
162
+ d="M1.5 10C1.5 9.72386 1.72386 9.5 2 9.5C2.27614 9.5 2.5 9.72386 2.5 10C2.5 10.9568 2.50135 11.6241 2.56901 12.1276C2.63478 12.6168 2.75495 12.876 2.93945 13.0605C3.12396 13.2451 3.38321 13.3652 3.8724 13.431C4.37593 13.4987 5.04323 13.5 6 13.5H10C10.2761 13.5 10.5 13.7239 10.5 14C10.5 14.2761 10.2761 14.5 10 14.5H6C5.07139 14.5 4.3246 14.5013 3.73893 14.4225C3.13886 14.3418 2.6337 14.1689 2.23242 13.7676C1.83115 13.3663 1.65815 12.8611 1.57748 12.2611C1.49875 11.6754 1.5 10.9286 1.5 10ZM13.5 10C13.5 9.72386 13.7239 9.5 14 9.5C14.2761 9.5 14.5 9.72386 14.5 10C14.5 10.9286 14.5013 11.6754 14.4225 12.2611C14.3418 12.8611 14.1689 13.3663 13.7676 13.7676C13.4966 14.0386 13.1751 14.2083 12.8027 14.3138C12.5371 14.3889 12.2608 14.2344 12.1855 13.9688C12.1103 13.7031 12.2649 13.4268 12.5306 13.3516C12.7707 13.2835 12.9319 13.1892 13.0605 13.0605C13.2451 12.876 13.3652 12.6168 13.431 12.1276C13.4987 11.6241 13.5 10.9568 13.5 10Z"
163
+ fill="currentColor"
164
+ />
165
+ </svg>
166
+ )
167
+ }
@@ -0,0 +1,26 @@
1
+ 'use client'
2
+
3
+ import type { AssetIconProps } from './interface'
4
+
5
+ /** Path data aligned with `assets/x.svg`; use `currentColor` for parent `color` / icon tokens */
6
+ const X_CLOSE_PATHS = [
7
+ 'M15.5286 3.52859L3.52858 15.5286C3.40355 15.6536 3.33331 15.8232 3.33331 16C3.33331 16.1768 3.40355 16.3464 3.52858 16.4714C3.6536 16.5964 3.82317 16.6667 3.99998 16.6667C4.17679 16.6667 4.34636 16.5964 4.47138 16.4714L16.4714 4.4714C16.5964 4.34638 16.6666 4.17681 16.6666 4C16.6666 3.82319 16.5964 3.65362 16.4714 3.52859C16.3464 3.40357 16.1768 3.33333 16 3.33333C15.8232 3.33333 15.6536 3.40357 15.5286 3.52859Z',
8
+ 'M4.47138 3.52859C4.34636 3.40357 4.17679 3.33333 3.99998 3.33333C3.82317 3.33333 3.6536 3.40357 3.52858 3.52859C3.40355 3.65362 3.33331 3.82319 3.33331 4C3.33331 4.17681 3.40355 4.34638 3.52858 4.4714L15.5286 16.4714C15.6536 16.5964 15.8232 16.6667 16 16.6667C16.1768 16.6667 16.3464 16.5964 16.4714 16.4714C16.5964 16.3464 16.6666 16.1768 16.6666 16C16.6666 15.8232 16.5964 15.6536 16.4714 15.5286L4.47138 3.52859Z',
9
+ ] as const
10
+
11
+ export function XCloseIcon({ className }: AssetIconProps) {
12
+ return (
13
+ <svg
14
+ className={className}
15
+ viewBox="0 0 20 20"
16
+ width="1em"
17
+ height="1em"
18
+ aria-hidden="true"
19
+ focusable="false"
20
+ >
21
+ {X_CLOSE_PATHS.map((d) => (
22
+ <path key={d.slice(0, 12)} d={d} fill="currentColor" />
23
+ ))}
24
+ </svg>
25
+ )
26
+ }
@@ -0,0 +1,64 @@
1
+ 'use client'
2
+
3
+ import { normalizeRawSvg } from '../utils/normalizeRawSvg'
4
+ import type { AssetIconProps, IconComponent } from './interface'
5
+
6
+ function parseAssetSvg(raw: string) {
7
+ const svg = normalizeRawSvg(raw)
8
+ const viewBoxMatch = svg.match(/viewBox="([^"]+)"/)
9
+ const viewBox = viewBoxMatch?.[1] ?? '0 0 16 16'
10
+ const inner = svg
11
+ .replace(/<\?xml[\s\S]*?\?>\s*/g, '')
12
+ .replace(/<!--[\s\S]*?-->/g, '')
13
+ .replace(/<svg[\s\S]*?>/, '')
14
+ .replace(/<\/svg>\s*/g, '')
15
+ .replace(/fill="#[^"]+"/gi, 'fill="currentColor"')
16
+ return { viewBox, inner }
17
+ }
18
+
19
+ /** Preserve colors; the fallback covers optimizers that omit a redundant viewBox. */
20
+ export function createColoredAssetIcon(raw: string, fallbackViewBox = '0 0 32 32'): IconComponent {
21
+ const svg = normalizeRawSvg(raw)
22
+ const viewBoxMatch = svg.match(/viewBox="([^"]+)"/)
23
+ const viewBox = viewBoxMatch?.[1] ?? fallbackViewBox
24
+ const inner = svg
25
+ .replace(/<\?xml[\s\S]*?\?>\s*/g, '')
26
+ .replace(/<!--[\s\S]*?-->/g, '')
27
+ .replace(/<svg[\s\S]*?>/, '')
28
+ .replace(/<\/svg>\s*/g, '')
29
+
30
+ return function ColoredAssetIcon({ className }: AssetIconProps) {
31
+ return (
32
+ <svg
33
+ className={className}
34
+ viewBox={viewBox}
35
+ width="1em"
36
+ height="1em"
37
+ fill="none"
38
+ aria-hidden="true"
39
+ focusable="false"
40
+ dangerouslySetInnerHTML={{ __html: inner }}
41
+ />
42
+ )
43
+ }
44
+ }
45
+
46
+ /** Wrap `import svg from '../_assets/foo.raw'` as an `<Icon name="…" />` registry component. */
47
+ export function createAssetIcon(raw: string): IconComponent {
48
+ const { viewBox, inner } = parseAssetSvg(raw)
49
+
50
+ return function AssetIcon({ className }: AssetIconProps) {
51
+ return (
52
+ <svg
53
+ className={className ? `${className} apex-icon__svg--16` : 'apex-icon__svg--16'}
54
+ viewBox={viewBox}
55
+ width="16"
56
+ height="16"
57
+ fill="none"
58
+ aria-hidden="true"
59
+ focusable="false"
60
+ dangerouslySetInnerHTML={{ __html: inner }}
61
+ />
62
+ )
63
+ }
64
+ }
@@ -0,0 +1,4 @@
1
+ /* ==========================================================================
2
+ Icons — shared SVG primitives (`packages/react/src/icons/*`)
3
+ Styled `<Icon name="…" />` wrapper lives in `../icon/icon.css`.
4
+ ========================================================================== */
@@ -0,0 +1,36 @@
1
+ export { CheckIcon, CheckOutlinedIcon, InputCloseIcon, MinusIcon, PlusIcon } from './ActionIcons'
2
+ export { AlertCloseIcon } from './AlertCloseIcon'
3
+ export { CalendarIcon } from './CalendarIcon'
4
+ export { CaretDownIcon, CaretUpIcon } from './CaretIcons'
5
+ export type { AssetIconProps, IconComponent } from './interface'
6
+ export { MagnifyingGlassIcon } from './MagnifyingGlassIcon'
7
+ export {
8
+ MessageErrorIcon,
9
+ MessageInfoIcon,
10
+ MessageSuccessIcon,
11
+ MessageWarningIcon,
12
+ } from './MessageIcons'
13
+ export {
14
+ AppIcon,
15
+ DoubleCaretLeftIcon,
16
+ DoubleCaretRightIcon,
17
+ HouseIcon,
18
+ } from './NavigationIcons'
19
+ export {
20
+ FullScreenIcon,
21
+ OneToOneIcon,
22
+ RotateLeftIcon,
23
+ RotateRightIcon,
24
+ ZoomInIcon,
25
+ ZoomOutIcon,
26
+ } from './PreviewIcons'
27
+ export { iconNames, iconRegistry } from './registry'
28
+ export {
29
+ DeleteIcon,
30
+ DownloadIcon,
31
+ UploadCardErrorIcon,
32
+ UploadListItemIcon,
33
+ UploadTriggerIcon,
34
+ ViewIcon,
35
+ } from './UploadIcons'
36
+ export { XCloseIcon } from './XCloseIcon'
@@ -0,0 +1,9 @@
1
+ import type * as React from 'react'
2
+
3
+ /** Props shared by inline SVG primitives in this module */
4
+ export type AssetIconProps = {
5
+ className?: string
6
+ }
7
+
8
+ /** Registry entry: one `assets/*.svg` basename → React component */
9
+ export type IconComponent = React.FC<AssetIconProps>
@@ -0,0 +1,94 @@
1
+ import { CheckIcon, CheckOutlinedIcon, MinusIcon, PlusIcon } from './ActionIcons'
2
+ import { AlertCloseIcon } from './AlertCloseIcon'
3
+ import { CalendarIcon } from './CalendarIcon'
4
+ import { CaretDownIcon, CaretUpIcon } from './CaretIcons'
5
+ import {
6
+ DocFormatIcon,
7
+ DocxFormatIcon,
8
+ GifFormatIcon,
9
+ JpegFormatIcon,
10
+ JpgFormatIcon,
11
+ OfdFormatIcon,
12
+ PdfFormatIcon,
13
+ PngFormatIcon,
14
+ TxtFormatIcon,
15
+ XlsxFormatIcon,
16
+ } from './FileFormatIcons'
17
+ import type { IconComponent } from './interface'
18
+ import { MagnifyingGlassIcon } from './MagnifyingGlassIcon'
19
+ import {
20
+ MessageErrorIcon,
21
+ MessageInfoIcon,
22
+ MessageSuccessIcon,
23
+ MessageWarningIcon,
24
+ } from './MessageIcons'
25
+ import { AppIcon, DoubleCaretLeftIcon, DoubleCaretRightIcon, HouseIcon } from './NavigationIcons'
26
+ import {
27
+ AdaptToPageIcon,
28
+ FullScreenIcon,
29
+ OneToOneIcon,
30
+ RotateLeftIcon,
31
+ RotateRightIcon,
32
+ ZoomInIcon,
33
+ ZoomOutIcon,
34
+ } from './PreviewIcons'
35
+ import { StarFilledIcon, StarHalfFilledIcon, StarOutlinedIcon } from './StarIcons'
36
+ import {
37
+ DeleteIcon,
38
+ DownloadIcon,
39
+ UploadCardErrorIcon,
40
+ UploadListItemIcon,
41
+ UploadTriggerIcon,
42
+ ViewIcon,
43
+ } from './UploadIcons'
44
+ import { XCloseIcon } from './XCloseIcon'
45
+
46
+ /** Registry keys match `assets/*.svg` basenames consumed by `<Icon name="…" />`. */
47
+ export const iconRegistry: Record<string, IconComponent> = {
48
+ 'alert-close': AlertCloseIcon,
49
+ 'adapt-to-page': AdaptToPageIcon,
50
+ app: AppIcon,
51
+ calendar: CalendarIcon,
52
+ 'caret-down': CaretDownIcon,
53
+ 'caret-up': CaretUpIcon,
54
+ check: CheckIcon,
55
+ 'check-outlined': CheckOutlinedIcon,
56
+ delete: DeleteIcon,
57
+ 'doc-format': DocFormatIcon,
58
+ 'txt-format': TxtFormatIcon,
59
+ 'ofd-format': OfdFormatIcon,
60
+ 'docx-format': DocxFormatIcon,
61
+ 'double-caret-left': DoubleCaretLeftIcon,
62
+ 'double-caret-right': DoubleCaretRightIcon,
63
+ download: DownloadIcon,
64
+ 'gif-format': GifFormatIcon,
65
+ 'full-screen': FullScreenIcon,
66
+ 'house-icon': HouseIcon,
67
+ 'jpeg-format': JpegFormatIcon,
68
+ 'jpg-format': JpgFormatIcon,
69
+ 'magnifying-glass': MagnifyingGlassIcon,
70
+ 'message-error': MessageErrorIcon,
71
+ 'message-info': MessageInfoIcon,
72
+ 'message-success': MessageSuccessIcon,
73
+ 'message-warning': MessageWarningIcon,
74
+ minus: MinusIcon,
75
+ 'one-to-one': OneToOneIcon,
76
+ 'pdf-format': PdfFormatIcon,
77
+ 'png-format': PngFormatIcon,
78
+ plus: PlusIcon,
79
+ 'rotate-left': RotateLeftIcon,
80
+ 'rotate-right': RotateRightIcon,
81
+ 'star-filled': StarFilledIcon,
82
+ 'star-half-filled': StarHalfFilledIcon,
83
+ 'star-outline': StarOutlinedIcon,
84
+ 'upload-card-error': UploadCardErrorIcon,
85
+ 'upload-list-item': UploadListItemIcon,
86
+ 'upload-trigger': UploadTriggerIcon,
87
+ view: ViewIcon,
88
+ x: XCloseIcon,
89
+ 'xlsx-format': XlsxFormatIcon,
90
+ 'zoom-in': ZoomInIcon,
91
+ 'zoom-out': ZoomOutIcon,
92
+ }
93
+
94
+ export const iconNames = Object.keys(iconRegistry).sort()