@luscii-healthtech/web-ui 0.0.0-alpha.9b38b13 → 0.0.0-alpha.9d7de2a

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 (494) hide show
  1. package/README.md +2 -2
  2. package/dist/codemods/v48-tag-props-update.d.ts +2 -0
  3. package/dist/codemods/v48-tag-props-update.js +163 -0
  4. package/dist/index.development.js +853 -668
  5. package/dist/index.development.js.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/src/components/AccordionList/AccordionList.d.ts +3 -0
  9. package/dist/src/components/ActionController/ActionController.d.ts +38 -0
  10. package/dist/src/components/Box/Box.d.ts +34 -4
  11. package/dist/src/components/DatePicker/LabeledDatePicker.d.ts +7 -0
  12. package/dist/src/components/DetailsDisclosure/DetailsDisclosure.d.ts +7 -0
  13. package/dist/src/components/Dropzone/Dropzone.d.ts +6 -5
  14. package/dist/src/components/Heading/Heading.d.ts +29 -0
  15. package/dist/src/components/Icons/ArrowsUpDownIcon.d.ts +4 -0
  16. package/dist/src/components/Icons/CheckCircleFilledIcon.d.ts +4 -0
  17. package/dist/src/components/Icons/CircleFilledIcon.d.ts +4 -0
  18. package/dist/src/components/Icons/SquareFilledIcon.d.ts +4 -0
  19. package/dist/src/components/Icons/index.d.ts +4 -0
  20. package/dist/src/components/Input/LabeledInput.d.ts +7 -0
  21. package/dist/src/components/List/List.d.ts +3 -0
  22. package/dist/src/components/Modal/Modal.d.ts +7 -0
  23. package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +3 -3
  24. package/dist/src/components/NavMenu/NavLayout.d.ts +8 -0
  25. package/dist/src/components/PrimaryTabBar/PrimaryTabBar.d.ts +48 -0
  26. package/dist/src/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -0
  27. package/dist/src/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -0
  28. package/dist/src/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -0
  29. package/dist/src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +7 -0
  30. package/dist/src/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -0
  31. package/dist/src/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +7 -0
  32. package/dist/src/components/Radio/LabeledRadioCard.d.ts +69 -0
  33. package/dist/src/components/Radio/LabeledRadioCardGroup.d.ts +28 -0
  34. package/dist/src/components/RangeCoverage/RangeCoverage.d.ts +31 -7
  35. package/dist/src/components/RangeCoverage/hooks/use-adaptive-ticks.hook.d.ts +34 -0
  36. package/dist/src/components/Select/LabeledSelect.d.ts +7 -0
  37. package/dist/src/components/Select/Select.d.ts +37 -7
  38. package/dist/src/components/Stack/Stack.d.ts +7 -1
  39. package/dist/src/components/TableNew/TableNew.d.ts +4 -3
  40. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  41. package/dist/src/components/Tag/Tag.d.ts +13 -26
  42. package/dist/src/components/Tag/TagGroup.d.ts +1 -1
  43. package/dist/src/components/Text/Text.d.ts +61 -3
  44. package/dist/src/components/TextEditor/LinkTooltip.d.ts +9 -0
  45. package/dist/src/components/TextEditor/TextEditor.d.ts +4 -11
  46. package/dist/src/components/TextEditor/TextEditorToolbar.d.ts +15 -0
  47. package/dist/src/components/TextEditor/TextEditorToolbarButton.d.ts +10 -0
  48. package/dist/src/components/Title/Title.d.ts +3 -0
  49. package/dist/src/components/Tooltip/Tooltip.d.ts +5 -3
  50. package/dist/src/generated/components/Accordion/Accordion.d.ts +15 -0
  51. package/dist/src/generated/components/Accordion/AccordionItem.d.ts +17 -0
  52. package/dist/src/generated/components/AccordionList/AccordionList.d.ts +54 -0
  53. package/dist/src/generated/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
  54. package/dist/src/generated/components/ActionController/ActionController.d.ts +38 -0
  55. package/dist/src/generated/components/Alerts/AlertWidget.d.ts +20 -0
  56. package/dist/src/generated/components/AsideLayout/AsideLayout.d.ts +7 -0
  57. package/dist/src/generated/components/Avatar/Avatar.d.ts +53 -0
  58. package/dist/src/generated/components/Avatar/AvatarGroup.d.ts +31 -0
  59. package/dist/src/generated/components/Badge/Badge.d.ts +11 -0
  60. package/dist/src/generated/components/BaseList/BaseList.d.ts +7 -0
  61. package/dist/src/generated/components/BaseList/BaseList.types.d.ts +88 -0
  62. package/dist/src/generated/components/BaseList/BaseListEmptyState.d.ts +7 -0
  63. package/dist/src/generated/components/BaseList/BaseListHeader.d.ts +4 -0
  64. package/dist/src/generated/components/BaseList/BaseListIcon.d.ts +5 -0
  65. package/dist/src/generated/components/BaseList/BaseListItem.d.ts +4 -0
  66. package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -0
  67. package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -0
  68. package/dist/src/generated/components/BaseList/DraggableBaseList/index.d.ts +2 -0
  69. package/dist/src/generated/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
  70. package/dist/src/generated/components/BaseList/ListSkeleton/ListSkeleton.d.ts +7 -0
  71. package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
  72. package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
  73. package/dist/src/generated/components/BaseList/SortableBaseList/index.d.ts +2 -0
  74. package/dist/src/generated/components/BaseList/index.d.ts +6 -0
  75. package/dist/src/generated/components/BaseList/utils.d.ts +10 -0
  76. package/dist/src/generated/components/Box/Box.d.ts +69 -0
  77. package/dist/src/generated/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -0
  78. package/dist/src/generated/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  79. package/dist/src/generated/components/Breadcrumbs/Breadcrumbs.types.d.ts +25 -0
  80. package/dist/src/generated/components/Breadcrumbs/index.d.ts +2 -0
  81. package/dist/src/generated/components/ButtonV2/ButtonProps.type.d.ts +104 -0
  82. package/dist/src/generated/components/ButtonV2/ButtonV2.d.ts +3 -0
  83. package/dist/src/generated/components/ButtonV2/PrimaryButton.d.ts +3 -0
  84. package/dist/src/generated/components/ButtonV2/PrimaryIconButton.d.ts +3 -0
  85. package/dist/src/generated/components/ButtonV2/SecondaryButton.d.ts +3 -0
  86. package/dist/src/generated/components/ButtonV2/SecondaryIconButton.d.ts +3 -0
  87. package/dist/src/generated/components/ButtonV2/TertiaryButton.d.ts +3 -0
  88. package/dist/src/generated/components/ButtonV2/TertiaryIconButton.d.ts +15 -0
  89. package/dist/src/generated/components/Card/Actions.d.ts +2 -0
  90. package/dist/src/generated/components/Card/Card.d.ts +78 -0
  91. package/dist/src/generated/components/Card/Padding.d.ts +6 -0
  92. package/dist/src/generated/components/Card/Section.d.ts +6 -0
  93. package/dist/src/generated/components/Card/TopBar.d.ts +10 -0
  94. package/dist/src/generated/components/Carousel/Carousel.d.ts +30 -0
  95. package/dist/src/generated/components/CenteredHero/CenteredHero.d.ts +16 -0
  96. package/dist/src/generated/components/ChatBubble/ChatBubble.d.ts +58 -0
  97. package/dist/src/generated/components/CheckBoxListModal/CheckboxListModal.d.ts +35 -0
  98. package/dist/src/generated/components/Checkbox/Checkbox.d.ts +81 -0
  99. package/dist/src/generated/components/Checkbox/LabeledCheckbox.d.ts +75 -0
  100. package/dist/src/generated/components/Checkbox/LabeledCheckboxCardGroup.d.ts +26 -0
  101. package/dist/src/generated/components/Checkbox/LabeledCheckboxGroup.d.ts +23 -0
  102. package/dist/src/generated/components/Checkbox/StyledCheckbox.d.ts +4 -0
  103. package/dist/src/generated/components/CheckboxList/CheckboxGroup.d.ts +7 -0
  104. package/dist/src/generated/components/CheckboxList/CheckboxList.d.ts +10 -0
  105. package/dist/src/generated/components/CheckboxList/CheckboxList.types.d.ts +74 -0
  106. package/dist/src/generated/components/Chip/Chip.d.ts +9 -0
  107. package/dist/src/generated/components/Collapse/Collapse.d.ts +25 -0
  108. package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -0
  109. package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -0
  110. package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -0
  111. package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -0
  112. package/dist/src/generated/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +52 -0
  113. package/dist/src/generated/components/Container/FlexColumn.d.ts +7 -0
  114. package/dist/src/generated/components/Container/FlexContainer.d.ts +9 -0
  115. package/dist/src/generated/components/Container/FlexRow.d.ts +7 -0
  116. package/dist/src/generated/components/Container/types/FlexContainerProps.type.d.ts +26 -0
  117. package/dist/src/generated/components/DatePicker/DatePicker.d.ts +72 -0
  118. package/dist/src/generated/components/DatePicker/LabeledDatePicker.d.ts +16 -0
  119. package/dist/src/generated/components/DetailsDisclosure/DetailsDisclosure.d.ts +94 -0
  120. package/dist/src/generated/components/Divider/Divider.d.ts +36 -0
  121. package/dist/src/generated/components/DragHandle/DragHandle.d.ts +6 -0
  122. package/dist/src/generated/components/DragHandle/DragHandle.types.d.ts +5 -0
  123. package/dist/src/generated/components/DragHandle/index.d.ts +2 -0
  124. package/dist/src/generated/components/Dropzone/Dropzone.d.ts +7 -0
  125. package/dist/src/generated/components/EmptyListMessage/EmptyListMessage.d.ts +13 -0
  126. package/dist/src/generated/components/FilePreviewModal/FilePreview.d.ts +25 -0
  127. package/dist/src/generated/components/FileUpload/FileUpload.d.ts +36 -0
  128. package/dist/src/generated/components/FilterBar/ActiveFilters.d.ts +9 -0
  129. package/dist/src/generated/components/FilterBar/FilterBar.d.ts +111 -0
  130. package/dist/src/generated/components/FilterBar/FilterBar.utils.d.ts +32 -0
  131. package/dist/src/generated/components/FilterBar/FilterBarProps.type.d.ts +135 -0
  132. package/dist/src/generated/components/FilterBar/FilterMenu.d.ts +10 -0
  133. package/dist/src/generated/components/FilterBar/FiltersMenus.d.ts +11 -0
  134. package/dist/src/generated/components/FilterBar/PresetFiltersMenu.d.ts +9 -0
  135. package/dist/src/generated/components/FilterBar/SortMenu.d.ts +9 -0
  136. package/dist/src/generated/components/FilterBar/index.d.ts +2 -0
  137. package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +64 -0
  138. package/dist/src/generated/components/Heading/Heading.d.ts +29 -0
  139. package/dist/src/generated/components/HoverCard/HoverCard.d.ts +40 -0
  140. package/dist/src/generated/components/HoverCard/index.d.ts +1 -0
  141. package/dist/src/generated/components/HoverIndicatorControl/HoverIndicatorControl.d.ts +24 -0
  142. package/dist/src/generated/components/Icon/Icon.d.ts +17 -0
  143. package/dist/src/generated/components/Icon/index.d.ts +1 -0
  144. package/dist/src/generated/components/Icons/AbsentIcon.d.ts +4 -0
  145. package/dist/src/generated/components/Icons/AddNoteIcon.d.ts +4 -0
  146. package/dist/src/generated/components/Icons/AlarmClockIcon.d.ts +4 -0
  147. package/dist/src/generated/components/Icons/AmberAlertIcon.d.ts +4 -0
  148. package/dist/src/generated/components/Icons/ArrowBackward.d.ts +4 -0
  149. package/dist/src/generated/components/Icons/ArrowForward.d.ts +4 -0
  150. package/dist/src/generated/components/Icons/ArrowsUpDownIcon.d.ts +4 -0
  151. package/dist/src/generated/components/Icons/AssignIcon.d.ts +4 -0
  152. package/dist/src/generated/components/Icons/AssignedIcon.d.ts +4 -0
  153. package/dist/src/generated/components/Icons/BellIcon.d.ts +4 -0
  154. package/dist/src/generated/components/Icons/BellIconSlashed.d.ts +4 -0
  155. package/dist/src/generated/components/Icons/BluetoothIcon.d.ts +4 -0
  156. package/dist/src/generated/components/Icons/BrushIcon.d.ts +4 -0
  157. package/dist/src/generated/components/Icons/CakeIcon.d.ts +4 -0
  158. package/dist/src/generated/components/Icons/CalendarDayIcon.d.ts +4 -0
  159. package/dist/src/generated/components/Icons/CalendarMonthIcon.d.ts +4 -0
  160. package/dist/src/generated/components/Icons/CalendarRepeatIcon.d.ts +4 -0
  161. package/dist/src/generated/components/Icons/ChartBarsIcon.d.ts +4 -0
  162. package/dist/src/generated/components/Icons/ChartLineAndBarsIcon.d.ts +4 -0
  163. package/dist/src/generated/components/Icons/ChartLineIcon.d.ts +4 -0
  164. package/dist/src/generated/components/Icons/ChatBubbleIcon.d.ts +4 -0
  165. package/dist/src/generated/components/Icons/ChatBubbleWithTextIcon.d.ts +4 -0
  166. package/dist/src/generated/components/Icons/CheckCircleFilledIcon.d.ts +4 -0
  167. package/dist/src/generated/components/Icons/CheckIcon.d.ts +4 -0
  168. package/dist/src/generated/components/Icons/ChevronDoubleIcon.d.ts +4 -0
  169. package/dist/src/generated/components/Icons/ChevronDownIcon.d.ts +4 -0
  170. package/dist/src/generated/components/Icons/ChevronLeftIcon.d.ts +4 -0
  171. package/dist/src/generated/components/Icons/ChevronRightIcon.d.ts +4 -0
  172. package/dist/src/generated/components/Icons/CircleFilledIcon.d.ts +4 -0
  173. package/dist/src/generated/components/Icons/ClockIcon.d.ts +4 -0
  174. package/dist/src/generated/components/Icons/CogwheelIcon.d.ts +4 -0
  175. package/dist/src/generated/components/Icons/CompareIcon.d.ts +4 -0
  176. package/dist/src/generated/components/Icons/CopyToClipboardIcon.d.ts +4 -0
  177. package/dist/src/generated/components/Icons/CrossIcon.d.ts +4 -0
  178. package/dist/src/generated/components/Icons/CrossInCircleIcon.d.ts +4 -0
  179. package/dist/src/generated/components/Icons/CrossInFilledCircleIcon.d.ts +4 -0
  180. package/dist/src/generated/components/Icons/DatabaseIcon.d.ts +4 -0
  181. package/dist/src/generated/components/Icons/DownloadIcon.d.ts +4 -0
  182. package/dist/src/generated/components/Icons/DragIndicatorIcon.d.ts +4 -0
  183. package/dist/src/generated/components/Icons/EarthIcon.d.ts +4 -0
  184. package/dist/src/generated/components/Icons/EmailIcon.d.ts +4 -0
  185. package/dist/src/generated/components/Icons/EmojiIcon.d.ts +4 -0
  186. package/dist/src/generated/components/Icons/EmptyIcon.d.ts +4 -0
  187. package/dist/src/generated/components/Icons/ExclamationMarkIcon.d.ts +4 -0
  188. package/dist/src/generated/components/Icons/ExportIcon.d.ts +4 -0
  189. package/dist/src/generated/components/Icons/ExternalLinkIcon.d.ts +4 -0
  190. package/dist/src/generated/components/Icons/EyeClosedIcon.d.ts +4 -0
  191. package/dist/src/generated/components/Icons/EyeOpenIcon.d.ts +4 -0
  192. package/dist/src/generated/components/Icons/FilterIcon.d.ts +4 -0
  193. package/dist/src/generated/components/Icons/FireIcon.d.ts +4 -0
  194. package/dist/src/generated/components/Icons/FirstAidKitIcon.d.ts +4 -0
  195. package/dist/src/generated/components/Icons/FlagIcon.d.ts +4 -0
  196. package/dist/src/generated/components/Icons/FolderIcon.d.ts +4 -0
  197. package/dist/src/generated/components/Icons/ForwardIcon.d.ts +4 -0
  198. package/dist/src/generated/components/Icons/GifIcon.d.ts +4 -0
  199. package/dist/src/generated/components/Icons/GrayAlertIcon.d.ts +4 -0
  200. package/dist/src/generated/components/Icons/GroupIcon.d.ts +4 -0
  201. package/dist/src/generated/components/Icons/GroupOfThreeIcon.d.ts +4 -0
  202. package/dist/src/generated/components/Icons/HamburgerIcon.d.ts +4 -0
  203. package/dist/src/generated/components/Icons/HandUp.d.ts +4 -0
  204. package/dist/src/generated/components/Icons/HandshakeIcon.d.ts +4 -0
  205. package/dist/src/generated/components/Icons/HeartIcon.d.ts +4 -0
  206. package/dist/src/generated/components/Icons/HeartMinusIcon.d.ts +4 -0
  207. package/dist/src/generated/components/Icons/HomeIcon.d.ts +4 -0
  208. package/dist/src/generated/components/Icons/IdBadgeIcon.d.ts +4 -0
  209. package/dist/src/generated/components/Icons/ImageIcon.d.ts +4 -0
  210. package/dist/src/generated/components/Icons/ImageLibraryIcon.d.ts +4 -0
  211. package/dist/src/generated/components/Icons/InfoIcon.d.ts +4 -0
  212. package/dist/src/generated/components/Icons/LifebuoyIcon.d.ts +4 -0
  213. package/dist/src/generated/components/Icons/LightBulbIcon.d.ts +4 -0
  214. package/dist/src/generated/components/Icons/LinkIcon.d.ts +4 -0
  215. package/dist/src/generated/components/Icons/ListDescIcon.d.ts +4 -0
  216. package/dist/src/generated/components/Icons/ListIcon.d.ts +4 -0
  217. package/dist/src/generated/components/Icons/LockIcon.d.ts +4 -0
  218. package/dist/src/generated/components/Icons/LogInIcon.d.ts +4 -0
  219. package/dist/src/generated/components/Icons/LogOutIcon.d.ts +4 -0
  220. package/dist/src/generated/components/Icons/MessageWithArrowIcon.d.ts +4 -0
  221. package/dist/src/generated/components/Icons/MoreIcon.d.ts +4 -0
  222. package/dist/src/generated/components/Icons/MouseIcon.d.ts +4 -0
  223. package/dist/src/generated/components/Icons/NoteIcon.d.ts +4 -0
  224. package/dist/src/generated/components/Icons/OpenAlertIcon.d.ts +4 -0
  225. package/dist/src/generated/components/Icons/OpenFolderIcon.d.ts +4 -0
  226. package/dist/src/generated/components/Icons/PageIcon.d.ts +4 -0
  227. package/dist/src/generated/components/Icons/PageViewIcon.d.ts +4 -0
  228. package/dist/src/generated/components/Icons/PaperclipIcon.d.ts +4 -0
  229. package/dist/src/generated/components/Icons/PatientIcon.d.ts +4 -0
  230. package/dist/src/generated/components/Icons/PencilIcon.d.ts +4 -0
  231. package/dist/src/generated/components/Icons/PersonIcon.d.ts +4 -0
  232. package/dist/src/generated/components/Icons/PhoneIcon.d.ts +4 -0
  233. package/dist/src/generated/components/Icons/PieChartIcon.d.ts +4 -0
  234. package/dist/src/generated/components/Icons/PinIcon.d.ts +4 -0
  235. package/dist/src/generated/components/Icons/PlusIcon.d.ts +4 -0
  236. package/dist/src/generated/components/Icons/PrinterIcon.d.ts +4 -0
  237. package/dist/src/generated/components/Icons/RedAlertIcon.d.ts +4 -0
  238. package/dist/src/generated/components/Icons/RobotIcon.d.ts +4 -0
  239. package/dist/src/generated/components/Icons/RocketIcon.d.ts +4 -0
  240. package/dist/src/generated/components/Icons/SearchIcon.d.ts +4 -0
  241. package/dist/src/generated/components/Icons/SendIcon.d.ts +4 -0
  242. package/dist/src/generated/components/Icons/ShareIcon.d.ts +4 -0
  243. package/dist/src/generated/components/Icons/SidebarIcon.d.ts +4 -0
  244. package/dist/src/generated/components/Icons/SmallArrowDownIcon.d.ts +4 -0
  245. package/dist/src/generated/components/Icons/SmallArrowUpIcon.d.ts +4 -0
  246. package/dist/src/generated/components/Icons/SmallCircleIcon.d.ts +4 -0
  247. package/dist/src/generated/components/Icons/SmallDiamondIcon.d.ts +4 -0
  248. package/dist/src/generated/components/Icons/SmallSquareIcon.d.ts +4 -0
  249. package/dist/src/generated/components/Icons/SmallUpsideDownTriangleIcon.d.ts +4 -0
  250. package/dist/src/generated/components/Icons/SquareFilledIcon.d.ts +4 -0
  251. package/dist/src/generated/components/Icons/StarFilledIcon.d.ts +4 -0
  252. package/dist/src/generated/components/Icons/StarIcon.d.ts +4 -0
  253. package/dist/src/generated/components/Icons/StopwatchIcon.d.ts +4 -0
  254. package/dist/src/generated/components/Icons/SummaryIcon.d.ts +4 -0
  255. package/dist/src/generated/components/Icons/TadaIcon.d.ts +4 -0
  256. package/dist/src/generated/components/Icons/ThresholdIcon.d.ts +4 -0
  257. package/dist/src/generated/components/Icons/TrashBinIcon.d.ts +4 -0
  258. package/dist/src/generated/components/Icons/TreeIcon.d.ts +4 -0
  259. package/dist/src/generated/components/Icons/UnassignedIcon.d.ts +4 -0
  260. package/dist/src/generated/components/Icons/UnlinkIcon.d.ts +4 -0
  261. package/dist/src/generated/components/Icons/UnpinIcon.d.ts +4 -0
  262. package/dist/src/generated/components/Icons/UploadIcon.d.ts +4 -0
  263. package/dist/src/generated/components/Icons/VideoIcon.d.ts +4 -0
  264. package/dist/src/generated/components/Icons/WorkflowIcon.d.ts +4 -0
  265. package/dist/src/generated/components/Icons/iconWrapper/iconWrapper.d.ts +4 -0
  266. package/dist/src/generated/components/Icons/iconWrapper/index.d.ts +1 -0
  267. package/dist/src/generated/components/Icons/index.d.ts +298 -0
  268. package/dist/src/generated/components/Icons/special-icons/AmberAlertColoredIcon.d.ts +4 -0
  269. package/dist/src/generated/components/Icons/special-icons/BeterDichtbijColoredIcon.d.ts +4 -0
  270. package/dist/src/generated/components/Icons/special-icons/ChartLineColoredIcon.d.ts +4 -0
  271. package/dist/src/generated/components/Icons/special-icons/CheckFilledColoredIcon.d.ts +4 -0
  272. package/dist/src/generated/components/Icons/special-icons/FlagDeColoredIcon.d.ts +4 -0
  273. package/dist/src/generated/components/Icons/special-icons/FlagFrColoredIcon.d.ts +4 -0
  274. package/dist/src/generated/components/Icons/special-icons/FlagNlColoredIcon.d.ts +4 -0
  275. package/dist/src/generated/components/Icons/special-icons/FlagPtColoredIcon.d.ts +4 -0
  276. package/dist/src/generated/components/Icons/special-icons/FlagUkColoredIcon.d.ts +4 -0
  277. package/dist/src/generated/components/Icons/special-icons/GearColoredIcon.d.ts +4 -0
  278. package/dist/src/generated/components/Icons/special-icons/GrayAlertColoredIcon.d.ts +4 -0
  279. package/dist/src/generated/components/Icons/special-icons/GreenAlertColoredIcon.d.ts +4 -0
  280. package/dist/src/generated/components/Icons/special-icons/GroupColoredIcon.d.ts +4 -0
  281. package/dist/src/generated/components/Icons/special-icons/RedAlertColoredIcon.d.ts +4 -0
  282. package/dist/src/generated/components/Icons/special-icons/StatusActiveColoredIcon.d.ts +4 -0
  283. package/dist/src/generated/components/Icons/special-icons/StatusAddedColoredIcon.d.ts +4 -0
  284. package/dist/src/generated/components/Icons/special-icons/StatusBlockedColoredIcon.d.ts +4 -0
  285. package/dist/src/generated/components/Icons/special-icons/StatusCancelledColoredIcon.d.ts +4 -0
  286. package/dist/src/generated/components/Icons/special-icons/StatusColoredIcon.d.ts +4 -0
  287. package/dist/src/generated/components/Icons/special-icons/StatusStoppedColoredIcon.d.ts +4 -0
  288. package/dist/src/generated/components/Icons/special-icons/VaultColoredIcon.d.ts +4 -0
  289. package/dist/src/generated/components/Icons/special-icons/index.d.ts +21 -0
  290. package/dist/src/generated/components/Icons/types/IconProps.type.d.ts +18 -0
  291. package/dist/src/generated/components/Image/Image.d.ts +17 -0
  292. package/dist/src/generated/components/InfoField/InfoField.d.ts +28 -0
  293. package/dist/src/generated/components/Input/Input.d.ts +55 -0
  294. package/dist/src/generated/components/Input/LabeledInput.d.ts +31 -0
  295. package/dist/src/generated/components/Input/SearchInput.d.ts +24 -0
  296. package/dist/src/generated/components/Input/StyledInput.d.ts +14 -0
  297. package/dist/src/generated/components/InputSelect/InputSelect.d.ts +37 -0
  298. package/dist/src/generated/components/InputSelect/InputSelect.utils.d.ts +9 -0
  299. package/dist/src/generated/components/InputSelect/InputSelectInput.d.ts +11 -0
  300. package/dist/src/generated/components/InputSelect/InputSelectSelect.d.ts +9 -0
  301. package/dist/src/generated/components/Line/Line.d.ts +14 -0
  302. package/dist/src/generated/components/Link/Link.d.ts +19 -0
  303. package/dist/src/generated/components/List/List.d.ts +9 -0
  304. package/dist/src/generated/components/List/List.types.d.ts +30 -0
  305. package/dist/src/generated/components/List/ListItem.d.ts +4 -0
  306. package/dist/src/generated/components/List/index.d.ts +5 -0
  307. package/dist/src/generated/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
  308. package/dist/src/generated/components/MediaPicker/ImageCategory.d.ts +14 -0
  309. package/dist/src/generated/components/MediaPicker/MediaPicker.d.ts +91 -0
  310. package/dist/src/generated/components/Modal/FullPageModal.d.ts +41 -0
  311. package/dist/src/generated/components/Modal/FullPageModalHeader.d.ts +13 -0
  312. package/dist/src/generated/components/Modal/Modal.d.ts +18 -0
  313. package/dist/src/generated/components/Modal/ModalBase.d.ts +21 -0
  314. package/dist/src/generated/components/Modal/ModalFooter.d.ts +27 -0
  315. package/dist/src/generated/components/Modal/ModalHeader.d.ts +6 -0
  316. package/dist/src/generated/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
  317. package/dist/src/generated/components/ModalDialog/ModalDialog.d.ts +111 -0
  318. package/dist/src/generated/components/ModalDialog/use-on-close-animation-finished.d.ts +8 -0
  319. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +77 -0
  320. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormContext.d.ts +8 -0
  321. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +11 -0
  322. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +21 -0
  323. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +9 -0
  324. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +8 -0
  325. package/dist/src/generated/components/NavMenu/NavLayout.d.ts +47 -0
  326. package/dist/src/generated/components/NotificationBanner/NotificationBanner.d.ts +35 -0
  327. package/dist/src/generated/components/Page/CRUDPage.d.ts +4 -0
  328. package/dist/src/generated/components/Page/CRUDPage.types.d.ts +83 -0
  329. package/dist/src/generated/components/Page/Page.d.ts +56 -0
  330. package/dist/src/generated/components/Page/index.d.ts +3 -0
  331. package/dist/src/generated/components/PageHeader/PageHeader.d.ts +4 -0
  332. package/dist/src/generated/components/PageHeader/PageHeader.types.d.ts +46 -0
  333. package/dist/src/generated/components/PageHeader/index.d.ts +2 -0
  334. package/dist/src/generated/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts +28 -0
  335. package/dist/src/generated/components/PaginationMenu/PaginationMenu.d.ts +2 -0
  336. package/dist/src/generated/components/PaginationMenu/PaginationMenu.types.d.ts +62 -0
  337. package/dist/src/generated/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -0
  338. package/dist/src/generated/components/PaginationMenu/PaginationMenuCursor.d.ts +3 -0
  339. package/dist/src/generated/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -0
  340. package/dist/src/generated/components/PaginationMenu/PaginationMenuSmall.d.ts +2 -0
  341. package/dist/src/generated/components/PreviewPhone/PreviewPhone.d.ts +7 -0
  342. package/dist/src/generated/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
  343. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBar.d.ts +48 -0
  344. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -0
  345. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -0
  346. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -0
  347. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +7 -0
  348. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -0
  349. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +7 -0
  350. package/dist/src/generated/components/Radio/LabeledRadio.d.ts +67 -0
  351. package/dist/src/generated/components/Radio/LabeledRadioCard.d.ts +69 -0
  352. package/dist/src/generated/components/Radio/LabeledRadioCardGroup.d.ts +28 -0
  353. package/dist/src/generated/components/Radio/LabeledRadioGroup.d.ts +23 -0
  354. package/dist/src/generated/components/Radio/RadioV2.d.ts +23 -0
  355. package/dist/src/generated/components/Radio/StyledRadio.d.ts +4 -0
  356. package/dist/src/generated/components/RadioGroup/RadioGroupV2.d.ts +23 -0
  357. package/dist/src/generated/components/RangeCoverage/RangeCoverage.d.ts +96 -0
  358. package/dist/src/generated/components/RangeCoverage/hooks/use-adaptive-ticks.hook.d.ts +34 -0
  359. package/dist/src/generated/components/Section/Section.d.ts +29 -0
  360. package/dist/src/generated/components/Section/SectionItem.d.ts +9 -0
  361. package/dist/src/generated/components/Section/SectionItemWithContent.d.ts +8 -0
  362. package/dist/src/generated/components/Section/subcomponents/SectionActions.d.ts +21 -0
  363. package/dist/src/generated/components/Section/subcomponents/SectionFooter.d.ts +6 -0
  364. package/dist/src/generated/components/Section/subcomponents/SectionHeader.d.ts +8 -0
  365. package/dist/src/generated/components/Select/LabeledSelect.d.ts +29 -0
  366. package/dist/src/generated/components/Select/Select.d.ts +79 -0
  367. package/dist/src/generated/components/Select/Select.types.d.ts +4 -0
  368. package/dist/src/generated/components/Select/SelectDropdownIndicator.d.ts +3 -0
  369. package/dist/src/generated/components/Select/SelectLoadingIndicator.d.ts +3 -0
  370. package/dist/src/generated/components/Select/StyledSelect.d.ts +12 -0
  371. package/dist/src/generated/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -0
  372. package/dist/src/generated/components/Skeleton/Skeleton.d.ts +9 -0
  373. package/dist/src/generated/components/Spinner/Spinner.d.ts +6 -0
  374. package/dist/src/generated/components/SplitViewLayout/SplitViewLayout.d.ts +20 -0
  375. package/dist/src/generated/components/Stack/Stack.d.ts +55 -0
  376. package/dist/src/generated/components/StatusIndicator/StatusIndicator.d.ts +16 -0
  377. package/dist/src/generated/components/Steps/Steps.d.ts +11 -0
  378. package/dist/src/generated/components/Steps/subcomponents/Step.d.ts +7 -0
  379. package/dist/src/generated/components/StyledLists/StyledBaseList.d.ts +33 -0
  380. package/dist/src/generated/components/StyledLists/StyledOrderedList.d.ts +25 -0
  381. package/dist/src/generated/components/StyledLists/StyledUnorderedList.d.ts +43 -0
  382. package/dist/src/generated/components/Switch/Switch.d.ts +23 -0
  383. package/dist/src/generated/components/Switcher/Switcher.d.ts +26 -0
  384. package/dist/src/generated/components/Switcher/SwitcherItem.d.ts +24 -0
  385. package/dist/src/generated/components/Tabbar/Tabbar.d.ts +20 -0
  386. package/dist/src/generated/components/Tabbar/TabbarItem.d.ts +15 -0
  387. package/dist/src/generated/components/Table/Table.d.ts +55 -0
  388. package/dist/src/generated/components/Table/Table.types.d.ts +41 -0
  389. package/dist/src/generated/components/Table/Table.utils.d.ts +58 -0
  390. package/dist/src/generated/components/Table/TableBody.d.ts +32 -0
  391. package/dist/src/generated/components/Table/TableBodyRowDataCell.d.ts +7 -0
  392. package/dist/src/generated/components/Table/TableFooter.d.ts +7 -0
  393. package/dist/src/generated/components/Table/TableHeader.d.ts +18 -0
  394. package/dist/src/generated/components/TableNew/TableNew.d.ts +71 -0
  395. package/dist/src/generated/components/TableNew/index.d.ts +1 -0
  396. package/dist/src/generated/components/Tabs/Tabs.d.ts +50 -0
  397. package/dist/src/generated/components/Tabs/index.d.ts +1 -0
  398. package/dist/src/generated/components/Tag/Tag.d.ts +18 -0
  399. package/dist/src/generated/components/Tag/TagGroup.d.ts +23 -0
  400. package/dist/src/generated/components/Text/Text.d.ts +199 -0
  401. package/dist/src/generated/components/TextEditor/LinkTooltip.d.ts +9 -0
  402. package/dist/src/generated/components/TextEditor/TextEditor.d.ts +62 -0
  403. package/dist/src/generated/components/TextEditor/TextEditorToolbar.d.ts +15 -0
  404. package/dist/src/generated/components/TextEditor/TextEditorToolbarButton.d.ts +10 -0
  405. package/dist/src/generated/components/TextLink/TextLink.d.ts +13 -0
  406. package/dist/src/generated/components/Textarea/Textarea.d.ts +30 -0
  407. package/dist/src/generated/components/Timeline/Timeline.d.ts +13 -0
  408. package/dist/src/generated/components/Timeline/TimelineHeader.d.ts +10 -0
  409. package/dist/src/generated/components/Timeline/TimelineStep.d.ts +10 -0
  410. package/dist/src/generated/components/TimelineCard/LoadingState.d.ts +1 -0
  411. package/dist/src/generated/components/TimelineCard/TimelineCard.d.ts +52 -0
  412. package/dist/src/generated/components/TimelineCardLayout/TimelineCardLayout.d.ts +18 -0
  413. package/dist/src/generated/components/Title/PageTitle.d.ts +6 -0
  414. package/dist/src/generated/components/Title/Title.d.ts +44 -0
  415. package/dist/src/generated/components/Toaster/Toaster.d.ts +3 -0
  416. package/dist/src/generated/components/Toaster/ToasterPanel.d.ts +15 -0
  417. package/dist/src/generated/components/Toaster/toast.d.ts +12 -0
  418. package/dist/src/generated/components/Tooltip/Tooltip.d.ts +42 -0
  419. package/dist/src/generated/components/Tooltip/index.d.ts +3 -0
  420. package/dist/src/generated/components/UnorderedList/UnorderedList.d.ts +63 -0
  421. package/dist/src/generated/components/VerticalMenu/VerticalMenu.d.ts +125 -0
  422. package/dist/src/generated/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
  423. package/dist/src/generated/components/forms/shared/HelperAndErrorText.d.ts +13 -0
  424. package/dist/src/generated/components/forms/shared/LabelText.d.ts +5 -0
  425. package/dist/src/generated/context/LocaleContext.d.ts +3 -0
  426. package/dist/src/generated/generated/iconNames.d.ts +6 -0
  427. package/dist/src/generated/iconNames.d.ts +1 -1
  428. package/dist/src/generated/iconNames.js +122 -0
  429. package/dist/src/generated/iconNames.js.map +1 -0
  430. package/dist/src/generated/index.d.ts +139 -0
  431. package/dist/src/generated/system/Elevation.d.ts +9 -0
  432. package/dist/src/generated/system/Locale.d.ts +3 -0
  433. package/dist/src/generated/system/Sizes.d.ts +62 -0
  434. package/dist/src/generated/tokens/generated/tokens.d.ts +1526 -0
  435. package/dist/src/generated/types/general.types.d.ts +17 -0
  436. package/dist/src/generated/utils/prefixKeys.d.ts +13 -0
  437. package/dist/src/generated/utils/radius.utils.d.ts +37 -0
  438. package/dist/src/generated/utils/responsiveness.utils.d.ts +30 -0
  439. package/dist/src/generated/utils/shadow.utils.d.ts +21 -0
  440. package/dist/src/generated/utils/string.utils.d.ts +7 -0
  441. package/dist/src/generated/utils/useOutsideClick.d.ts +2 -0
  442. package/dist/src/index.d.ts +6 -2
  443. package/dist/src/system/Sizes.d.ts +11 -0
  444. package/dist/src/tokens/generated/tokens.d.ts +11 -7
  445. package/dist/src/types/general.types.d.ts +6 -0
  446. package/dist/stories/AccordionList.stories.d.ts +8 -0
  447. package/dist/stories/AccordionListRecipe.stories.d.ts +58 -0
  448. package/dist/stories/ActionController.stories.d.ts +74 -0
  449. package/dist/stories/AsideLayout.stories.d.ts +17 -2
  450. package/dist/stories/Box.stories.d.ts +1 -0
  451. package/dist/stories/CardTableRecipe.stories.d.ts +37 -0
  452. package/dist/stories/CheckBoxListModal.stories.d.ts +8 -0
  453. package/dist/stories/ConfirmationDialog.stories.d.ts +8 -0
  454. package/dist/stories/DetailsDisclosure.stories.d.ts +1010 -514
  455. package/dist/stories/Divider.stories.d.ts +38 -6
  456. package/dist/stories/DraggableList.stories.d.ts +0 -1
  457. package/dist/stories/Dropzone.stories.d.ts +9 -9
  458. package/dist/stories/FullPageModal.stories.d.ts +8 -0
  459. package/dist/stories/Heading.stories.d.ts +31 -0
  460. package/dist/stories/HoverIndicatorControl.stories.d.ts +17 -2
  461. package/dist/stories/LabeledDatePicker.stories.d.ts +1 -0
  462. package/dist/stories/LabeledInput.stories.d.ts +10 -0
  463. package/dist/stories/LabeledRadio.stories.d.ts +4 -0
  464. package/dist/stories/List.stories.d.ts +1 -0
  465. package/dist/stories/ListRecipe.stories.d.ts +57 -0
  466. package/dist/stories/Modal.stories.d.ts +6 -0
  467. package/dist/stories/ModalDialog.stories.d.ts +96 -96
  468. package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +51 -6
  469. package/dist/stories/PrimaryTabBar.stories.d.ts +299 -0
  470. package/dist/stories/RangeCoverage.stories.d.ts +11 -6
  471. package/dist/stories/Section.stories.d.ts +17 -2
  472. package/dist/stories/SplitViewLayout.stories.d.ts +17 -2
  473. package/dist/stories/Stack.stories.d.ts +1 -0
  474. package/dist/stories/StyledOrderedList.stories.d.ts +2 -2
  475. package/dist/stories/StyledUnorderedList.stories.d.ts +2 -2
  476. package/dist/stories/TableCardRecipe.stories.d.ts +56 -0
  477. package/dist/stories/TableNew.stories.d.ts +2 -1
  478. package/dist/stories/Tabs.stories.d.ts +18 -18
  479. package/dist/stories/Tag.stories.d.ts +1 -1
  480. package/dist/stories/Text.stories.d.ts +67 -35
  481. package/dist/stories/TextColors.stories.d.ts +2 -16
  482. package/dist/stories/TextEditor.stories.d.ts +2 -6
  483. package/dist/stories/TextLegacy.stories.d.ts +32 -0
  484. package/dist/stories/TimelineCardLayout.stories.d.ts +19 -3
  485. package/dist/stories/Title.stories.d.ts +1 -1
  486. package/dist/stories/VerticalMenu.stories.d.ts +17 -2
  487. package/dist/web-ui-tailwind.css +1182 -129
  488. package/dist/web-ui.esm.js +1 -1
  489. package/dist/web-ui.esm.js.map +1 -1
  490. package/package.json +46 -24
  491. package/dist/src/components/Dropdown/Dropdown.d.ts +0 -61
  492. package/dist/src/components/Dropzone/Dropzone.types.d.ts +0 -33
  493. package/dist/src/components/Dropzone/index.d.ts +0 -2
  494. package/dist/stories/Dropdown.stories.d.ts +0 -10
package/README.md CHANGED
@@ -29,13 +29,13 @@ function MyComponent() {
29
29
 
30
30
  ### Fonts
31
31
 
32
- WebUI uses the Inter font family for most of its text. This font should be provided by your application if you're using WebUI. The weights needed to show the full gamut of weights in the design system are 400, 500, 600 and 700. One way of doing this is using a Google Fonts link in your HTML file:
32
+ WebUI uses the Inter font family for most of its text. This font should be provided by your application if you're using WebUI. The weights needed to show the full gamut of weights in the design system are 300, 400, 500, 600 and 700. One way of doing this is using a Google Fonts link in your HTML file:
33
33
 
34
34
  ```html
35
35
  <link rel="preconnect" href="https://fonts.googleapis.com" />
36
36
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
37
37
  <link
38
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
38
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
39
39
  rel="stylesheet"
40
40
  />
41
41
  ```
@@ -0,0 +1,2 @@
1
+ import type { API, FileInfo } from "jscodeshift";
2
+ export default function transformer(file: FileInfo, api: API): string;
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ // Codemod for Tag component breaking changes.
3
+ //
4
+ // Handles:
5
+ // - colorTheme="red"|"amber"|"green"|"gray"|"blue" → _type="danger"|"negative"|"positive"|"neutral"|"info"
6
+ // - size="base" → _size="large", size="small" → _size="small"
7
+ // - variant → _variant
8
+ // - truncate → _truncate
9
+ // - text="..." → children (prop removed, value becomes children)
10
+ // - showIcon → _leadingIcon with a TODO comment (boolean → ReactNode, can't auto-migrate)
11
+ // - as → _as (on direct <Tag> elements only)
12
+ // - Also handles polymorphic usage via `as={Tag}` (e.g. <Stack as={Tag} variant="bordered" />),
13
+ // transforming Tag-specific props on the parent element (but not renaming `as` itself)
14
+ //
15
+ // Usage: npx jscodeshift --parser=tsx --extensions=tsx,ts -t @luscii-healthtech/web-ui/dist/codemods/v48-tag-props-update <target-dir>
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.default = transformer;
18
+ const COLOR_THEME_TO_TYPE = {
19
+ red: "danger",
20
+ amber: "negative",
21
+ green: "positive",
22
+ gray: "neutral",
23
+ blue: "info",
24
+ };
25
+ // Props that simply get an underscore prefix (no value change)
26
+ const RENAMED_PROPS = {
27
+ type: "_type",
28
+ variant: "_variant",
29
+ truncate: "_truncate",
30
+ };
31
+ /**
32
+ * Transform Tag-specific props on a JSX opening element.
33
+ * Returns true if any changes were made.
34
+ */
35
+ function transformTagProps(opening, j) {
36
+ var _a, _b, _c, _d, _e, _f;
37
+ let changed = false;
38
+ // --- colorTheme → _type (with value mapping) ---
39
+ const colorThemeAttr = findAttribute(opening, "colorTheme");
40
+ if (colorThemeAttr) {
41
+ colorThemeAttr.name = j.jsxIdentifier("_type");
42
+ if (((_a = colorThemeAttr.value) === null || _a === void 0 ? void 0 : _a.type) === "StringLiteral") {
43
+ const mapped = COLOR_THEME_TO_TYPE[colorThemeAttr.value.value];
44
+ if (mapped) {
45
+ colorThemeAttr.value = j.stringLiteral(mapped);
46
+ }
47
+ }
48
+ else if (((_b = colorThemeAttr.value) === null || _b === void 0 ? void 0 : _b.type) === "JSXExpressionContainer" &&
49
+ colorThemeAttr.value.expression.type === "StringLiteral") {
50
+ const mapped = COLOR_THEME_TO_TYPE[colorThemeAttr.value.expression.value];
51
+ if (mapped) {
52
+ colorThemeAttr.value = j.stringLiteral(mapped);
53
+ }
54
+ }
55
+ changed = true;
56
+ }
57
+ // --- size → _size (with "base" → "large") ---
58
+ const sizeAttr = findAttribute(opening, "size");
59
+ if (sizeAttr) {
60
+ sizeAttr.name = j.jsxIdentifier("_size");
61
+ if (((_c = sizeAttr.value) === null || _c === void 0 ? void 0 : _c.type) === "StringLiteral") {
62
+ if (sizeAttr.value.value === "base") {
63
+ sizeAttr.value = j.stringLiteral("large");
64
+ }
65
+ }
66
+ else if (((_d = sizeAttr.value) === null || _d === void 0 ? void 0 : _d.type) === "JSXExpressionContainer" &&
67
+ sizeAttr.value.expression.type === "StringLiteral" &&
68
+ sizeAttr.value.expression.value === "base") {
69
+ sizeAttr.value = j.stringLiteral("large");
70
+ }
71
+ changed = true;
72
+ }
73
+ // --- Simple renames (variant → _variant, truncate → _truncate) ---
74
+ for (const [oldName, newName] of Object.entries(RENAMED_PROPS)) {
75
+ const attr = findAttribute(opening, oldName);
76
+ if (attr) {
77
+ attr.name = j.jsxIdentifier(newName);
78
+ changed = true;
79
+ }
80
+ }
81
+ // --- showIcon → _leadingIcon with TODO ---
82
+ const showIconAttr = findAttribute(opening, "showIcon");
83
+ if (showIconAttr) {
84
+ const attrIndex = (_f = (_e = opening.attributes) === null || _e === void 0 ? void 0 : _e.indexOf(showIconAttr)) !== null && _f !== void 0 ? _f : -1;
85
+ if (attrIndex !== -1 && opening.attributes) {
86
+ opening.attributes[attrIndex] = j.jsxAttribute(j.jsxIdentifier("_leadingIcon"), j.jsxExpressionContainer(j.identifier("undefined /* TODO: showIcon was removed — pass a ReactNode icon to _leadingIcon instead */")));
87
+ }
88
+ changed = true;
89
+ }
90
+ return changed;
91
+ }
92
+ function transformer(file, api) {
93
+ const j = api.jscodeshift;
94
+ const root = j(file.source);
95
+ let hasChanges = false;
96
+ // --- Pass 1: Direct <Tag> elements ---
97
+ root.findJSXElements("Tag").forEach((path) => {
98
+ var _a;
99
+ const opening = path.value.openingElement;
100
+ if (transformTagProps(opening, j)) {
101
+ hasChanges = true;
102
+ }
103
+ // --- as → _as (Tag's own polymorphic prop) ---
104
+ const asAttr = findAttribute(opening, "as");
105
+ if (asAttr) {
106
+ asAttr.name = j.jsxIdentifier("_as");
107
+ hasChanges = true;
108
+ }
109
+ // --- text="..." → children (only for direct <Tag> usage) ---
110
+ const textAttr = findAttribute(opening, "text");
111
+ if (textAttr) {
112
+ const textValue = textAttr.value;
113
+ // Remove the text attribute
114
+ opening.attributes = (_a = opening.attributes) === null || _a === void 0 ? void 0 : _a.filter((a) => {
115
+ if (a.type !== "JSXAttribute") {
116
+ return true;
117
+ }
118
+ return a.name.type === "JSXIdentifier" && a.name.name !== "text";
119
+ });
120
+ // Convert self-closing to open/close if needed
121
+ if (path.value.openingElement.selfClosing) {
122
+ path.value.openingElement.selfClosing = false;
123
+ path.value.closingElement = j.jsxClosingElement(j.jsxIdentifier("Tag"));
124
+ }
125
+ if ((textValue === null || textValue === void 0 ? void 0 : textValue.type) === "StringLiteral") {
126
+ path.value.children = [j.jsxText(textValue.value)];
127
+ }
128
+ else if ((textValue === null || textValue === void 0 ? void 0 : textValue.type) === "JSXExpressionContainer") {
129
+ path.value.children = [textValue];
130
+ }
131
+ hasChanges = true;
132
+ }
133
+ });
134
+ // --- Pass 2: Polymorphic as={Tag} usage (e.g. <Stack as={Tag} variant="bordered" />) ---
135
+ root.find(j.JSXOpeningElement).forEach((path) => {
136
+ var _a;
137
+ const opening = path.value;
138
+ const asAttr = findAttribute(opening, "as");
139
+ if (!asAttr) {
140
+ return;
141
+ }
142
+ // Check for as={Tag}
143
+ const isTagAs = ((_a = asAttr.value) === null || _a === void 0 ? void 0 : _a.type) === "JSXExpressionContainer" &&
144
+ asAttr.value.expression.type === "Identifier" &&
145
+ asAttr.value.expression.name === "Tag";
146
+ if (!isTagAs) {
147
+ return;
148
+ }
149
+ if (transformTagProps(opening, j)) {
150
+ hasChanges = true;
151
+ }
152
+ });
153
+ if (!hasChanges) {
154
+ return file.source;
155
+ }
156
+ return root.toSource({ quote: "double" });
157
+ }
158
+ function findAttribute(opening, name) {
159
+ var _a;
160
+ return (_a = opening.attributes) === null || _a === void 0 ? void 0 : _a.find((attr) => attr.type === "JSXAttribute" &&
161
+ attr.name.type === "JSXIdentifier" &&
162
+ attr.name.name === name);
163
+ }