@juspay/blend-design-system 0.0.37-beta.7 → 0.0.37

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 (290) hide show
  1. package/dist/{node-C_DmV86X.js → breadcrumbV2.tokens-CovJEwot.js} +16 -0
  2. package/dist/components/Accordion/index.d.ts +2 -0
  3. package/dist/components/AccordionV2/accordionV2.animations.d.ts +1 -1
  4. package/dist/components/Alert/index.d.ts +1 -0
  5. package/dist/components/Avatar/index.d.ts +1 -0
  6. package/dist/components/Breadcrumb/index.d.ts +1 -0
  7. package/dist/components/Button/index.d.ts +1 -0
  8. package/dist/components/ButtonGroup/index.d.ts +1 -0
  9. package/dist/components/Card/index.d.ts +1 -0
  10. package/dist/components/CardV2/CardV2.d.ts +45 -0
  11. package/dist/components/CardV2/CardV2.utils.d.ts +14 -0
  12. package/dist/components/CardV2/CardV2Components.d.ts +8 -0
  13. package/dist/components/CardV2/CardV2Context.d.ts +14 -0
  14. package/dist/components/CardV2/CardV2Skeleton.d.ts +6 -0
  15. package/dist/components/CardV2/accessibility/CardV2AccessibilityReport.d.ts +2 -0
  16. package/dist/components/CardV2/accessibility/index.d.ts +1 -0
  17. package/dist/components/CardV2/cardV2.dark.tokens.d.ts +3 -0
  18. package/dist/components/CardV2/cardV2.light.tokens.d.ts +3 -0
  19. package/dist/components/CardV2/cardV2.tokens.d.ts +5 -0
  20. package/dist/components/CardV2/cardV2.tokens.types.d.ts +92 -0
  21. package/dist/components/CardV2/cardV2.types.d.ts +106 -0
  22. package/dist/components/CardV2/index.d.ts +5 -0
  23. package/dist/components/Charts/index.d.ts +10 -0
  24. package/dist/components/Charts/types.d.ts +2 -0
  25. package/dist/components/ChatInput/index.d.ts +1 -0
  26. package/dist/components/Checkbox/index.d.ts +1 -0
  27. package/dist/components/CodeEditor/index.d.ts +1 -0
  28. package/dist/components/CodeEditor/types.d.ts +22 -2
  29. package/dist/components/CodeEditorV2/CodeEditorV2.d.ts +1 -1
  30. package/dist/components/CodeEditorV2/codeEditorV2.types.d.ts +23 -2
  31. package/dist/components/DataTable/PivotTableModal/pivotModal.styled.d.ts +184 -0
  32. package/dist/components/DataTable/TableBody/types.d.ts +3 -1
  33. package/dist/components/DataTable/hooks/index.d.ts +2 -0
  34. package/dist/components/DataTable/hooks/useReducedMotion.d.ts +1 -0
  35. package/dist/components/DataTable/hooks/useRowFlip.d.ts +6 -0
  36. package/dist/components/DataTable/types.d.ts +26 -0
  37. package/dist/components/DateRangePicker/CalendarGrid.d.ts +5 -2
  38. package/dist/components/DateRangePicker/types.d.ts +3 -1
  39. package/dist/components/DateRangePicker/utils.d.ts +5 -5
  40. package/dist/components/Directory/Directory.d.ts +1 -1
  41. package/dist/components/Directory/NavItem.d.ts +1 -1
  42. package/dist/components/Directory/Section.d.ts +1 -1
  43. package/dist/components/Directory/VirtualizedDirectory.d.ts +3 -0
  44. package/dist/components/Directory/directory.tokens.d.ts +7 -0
  45. package/dist/components/Directory/types.d.ts +38 -1
  46. package/dist/components/Directory/utils.d.ts +3 -1
  47. package/dist/components/Drawer/index.d.ts +1 -0
  48. package/dist/components/Inputs/MultiValueInput/index.d.ts +1 -0
  49. package/dist/components/Inputs/NumberInput/index.d.ts +1 -0
  50. package/dist/components/Inputs/OTPInput/index.d.ts +1 -0
  51. package/dist/components/Inputs/SearchInput/index.d.ts +1 -0
  52. package/dist/components/Inputs/TextArea/index.d.ts +1 -0
  53. package/dist/components/Inputs/TextInput/index.d.ts +1 -0
  54. package/dist/components/InputsV2/TextAreaV2/utils.d.ts +2 -1
  55. package/dist/components/InputsV2/TextInputV2/utils.d.ts +2 -1
  56. package/dist/components/InputsV2/UploadV2/UploadContainerV2.d.ts +24 -0
  57. package/dist/components/InputsV2/UploadV2/UploadV2.d.ts +31 -0
  58. package/dist/components/InputsV2/UploadV2/UploadV2.dark.tokens.d.ts +3 -0
  59. package/dist/components/InputsV2/UploadV2/UploadV2.light.tokens.d.ts +3 -0
  60. package/dist/components/InputsV2/UploadV2/UploadV2.tokens.d.ts +5 -0
  61. package/dist/components/InputsV2/UploadV2/UploadV2.tokens.types.d.ts +115 -0
  62. package/dist/components/InputsV2/UploadV2/UploadV2.types.d.ts +56 -0
  63. package/dist/components/InputsV2/UploadV2/index.d.ts +3 -0
  64. package/dist/components/InputsV2/UploadV2/utils.d.ts +32 -0
  65. package/dist/components/KeyValuePair/index.d.ts +1 -0
  66. package/dist/components/Menu/Menu.d.ts +1 -1
  67. package/dist/components/Menu/index.d.ts +1 -0
  68. package/dist/components/Menu/types.d.ts +7 -0
  69. package/dist/components/Menu/utils.d.ts +10 -2
  70. package/dist/components/MenuV2/MenuV2Content.d.ts +1 -0
  71. package/dist/components/MenuV2/menuV2.types.d.ts +5 -0
  72. package/dist/components/MenuV2/menuV2.utils.d.ts +10 -2
  73. package/dist/components/Modal/index.d.ts +1 -0
  74. package/dist/components/ModalV2/ModalV2.d.ts +22 -0
  75. package/dist/components/ModalV2/ModalV2Footer.d.ts +10 -0
  76. package/dist/components/ModalV2/ModalV2Header.d.ts +15 -0
  77. package/dist/components/ModalV2/ModalV2Skeleton.d.ts +4 -0
  78. package/dist/components/ModalV2/index.d.ts +4 -0
  79. package/dist/components/ModalV2/mobileModalV2.d.ts +23 -0
  80. package/dist/components/ModalV2/modalAnimationV2.d.ts +3 -0
  81. package/dist/components/ModalV2/modalV2.dark.tokens.d.ts +3 -0
  82. package/dist/components/ModalV2/modalV2.light.tokens.d.ts +3 -0
  83. package/dist/components/ModalV2/modalV2.tokens.d.ts +5 -0
  84. package/dist/components/ModalV2/modalV2.tokens.types.d.ts +91 -0
  85. package/dist/components/ModalV2/modalV2.types.d.ts +66 -0
  86. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  87. package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
  88. package/dist/components/MultiSelect/index.d.ts +2 -0
  89. package/dist/components/MultiSelect/types.d.ts +2 -0
  90. package/dist/components/MultiSelectV2/MultiSelectV2.d.ts +1 -1
  91. package/dist/components/MultiSelectV2/MultiSelectV2Menu.d.ts +1 -1
  92. package/dist/components/MultiSelectV2/multiSelectV2.types.d.ts +2 -0
  93. package/dist/components/Popover/index.d.ts +1 -0
  94. package/dist/components/Primitives/Block/Block.d.ts +1 -1
  95. package/dist/components/ProgressBar/index.d.ts +1 -0
  96. package/dist/components/Radio/index.d.ts +2 -0
  97. package/dist/components/Sidebar/SidebarContent.d.ts +9 -1
  98. package/dist/components/Sidebar/index.d.ts +1 -0
  99. package/dist/components/Sidebar/types.d.ts +9 -1
  100. package/dist/components/SidebarV2/SidebarV2Panel.d.ts +10 -2
  101. package/dist/components/SidebarV2/types.d.ts +9 -1
  102. package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
  103. package/dist/components/SingleSelect/SingleSelectMenu.d.ts +2 -1
  104. package/dist/components/SingleSelect/index.d.ts +1 -0
  105. package/dist/components/SingleSelect/types.d.ts +1 -0
  106. package/dist/components/SingleSelectV2/SingleSelectV2.d.ts +1 -1
  107. package/dist/components/SingleSelectV2/SingleSelectV2Menu.d.ts +1 -1
  108. package/dist/components/SingleSelectV2/singleSelectV2.tokens.types.d.ts +8 -0
  109. package/dist/components/SingleSelectV2/singleSelectV2.types.d.ts +2 -0
  110. package/dist/components/Skeleton/SkeletonCompound.d.ts +24 -33
  111. package/dist/components/Snackbar/Snackbar.d.ts +1 -1
  112. package/dist/components/Snackbar/index.d.ts +2 -0
  113. package/dist/components/Snackbar/snackbar.tokens.d.ts +1 -0
  114. package/dist/components/Snackbar/types.d.ts +2 -0
  115. package/dist/components/StatCard/index.d.ts +1 -0
  116. package/dist/components/Stepper/index.d.ts +1 -0
  117. package/dist/components/Switch/index.d.ts +2 -0
  118. package/dist/components/Tabs/index.d.ts +1 -0
  119. package/dist/components/Tags/index.d.ts +1 -0
  120. package/dist/components/Timeline/Timeline.d.ts +13 -37
  121. package/dist/components/Tooltip/index.d.ts +1 -0
  122. package/dist/components/Topbar/index.d.ts +1 -0
  123. package/dist/components/Upload/index.d.ts +1 -0
  124. package/dist/context/ThemeContext.d.ts +6 -0
  125. package/dist/context/useComponentToken.d.ts +4 -1
  126. package/dist/main.d.ts +6 -0
  127. package/dist/main.js +45436 -42186
  128. package/dist/node-B3rrXW84.js +1023 -0
  129. package/dist/node.d.ts +2 -0
  130. package/dist/node.js +21 -18
  131. package/dist/{tokens.js → token-engine.js} +1 -1
  132. package/lib/components/Accordion/AccordionItem.tsx +2 -6
  133. package/lib/components/Accordion/index.ts +2 -0
  134. package/lib/components/AccordionV2/AccordionV2Item.tsx +1 -1
  135. package/lib/components/AccordionV2/accordionV2.animations.ts +1 -5
  136. package/lib/components/Alert/index.ts +1 -0
  137. package/lib/components/Avatar/index.ts +1 -0
  138. package/lib/components/Breadcrumb/index.ts +1 -0
  139. package/lib/components/Button/index.ts +1 -0
  140. package/lib/components/ButtonGroup/index.ts +1 -0
  141. package/lib/components/Card/index.ts +1 -0
  142. package/lib/components/CardV2/CardV2.tsx +327 -0
  143. package/lib/components/CardV2/CardV2.utils.tsx +77 -0
  144. package/lib/components/CardV2/CardV2Components.tsx +297 -0
  145. package/lib/components/CardV2/CardV2Context.tsx +18 -0
  146. package/lib/components/CardV2/CardV2Skeleton.tsx +40 -0
  147. package/lib/components/CardV2/accessibility/CardV2AccessibilityReport.ts +284 -0
  148. package/lib/components/CardV2/accessibility/index.ts +1 -0
  149. package/lib/components/CardV2/cardV2.dark.tokens.ts +177 -0
  150. package/lib/components/CardV2/cardV2.light.tokens.ts +177 -0
  151. package/lib/components/CardV2/cardV2.tokens.ts +21 -0
  152. package/lib/components/CardV2/cardV2.tokens.types.ts +94 -0
  153. package/lib/components/CardV2/cardV2.types.ts +131 -0
  154. package/lib/components/CardV2/index.ts +13 -0
  155. package/lib/components/Charts/ChartLegend.tsx +25 -5
  156. package/lib/components/Charts/Charts.tsx +10 -0
  157. package/lib/components/Charts/index.ts +10 -0
  158. package/lib/components/Charts/types.tsx +2 -0
  159. package/lib/components/ChatInput/index.tsx +1 -0
  160. package/lib/components/Checkbox/index.ts +1 -0
  161. package/lib/components/CodeEditor/MonacoEditorWrapper.tsx +6 -2
  162. package/lib/components/CodeEditor/index.ts +1 -0
  163. package/lib/components/CodeEditor/types.ts +52 -2
  164. package/lib/components/CodeEditorV2/MonacoEditor/MonacoEditorWrapper.tsx +6 -2
  165. package/lib/components/CodeEditorV2/codeEditorV2.types.ts +44 -5
  166. package/lib/components/DataTable/DataTable.tsx +8 -0
  167. package/lib/components/DataTable/TableBody/index.tsx +47 -11
  168. package/lib/components/DataTable/TableBody/types.ts +7 -1
  169. package/lib/components/DataTable/TableCell/index.tsx +1 -1
  170. package/lib/components/DataTable/hooks/index.ts +2 -0
  171. package/lib/components/DataTable/hooks/useReducedMotion.ts +19 -0
  172. package/lib/components/DataTable/hooks/useRowFlip.ts +170 -0
  173. package/lib/components/DataTable/types.ts +32 -0
  174. package/lib/components/DateRangePicker/CalendarGrid.tsx +39 -6
  175. package/lib/components/DateRangePicker/DateRangePicker.tsx +27 -4
  176. package/lib/components/DateRangePicker/types.ts +6 -1
  177. package/lib/components/DateRangePicker/utils.ts +123 -12
  178. package/lib/components/Directory/Directory.tsx +31 -0
  179. package/lib/components/Directory/NavItem.tsx +177 -86
  180. package/lib/components/Directory/Section.tsx +9 -0
  181. package/lib/components/Directory/VirtualizedDirectory.tsx +670 -0
  182. package/lib/components/Directory/directory.tokens.ts +21 -0
  183. package/lib/components/Directory/types.ts +43 -1
  184. package/lib/components/Directory/utils.ts +81 -1
  185. package/lib/components/Drawer/index.ts +1 -0
  186. package/lib/components/Inputs/DropdownInput/DropdownInput.tsx +6 -2
  187. package/lib/components/Inputs/MultiValueInput/index.ts +1 -0
  188. package/lib/components/Inputs/NumberInput/NumberInput.tsx +6 -2
  189. package/lib/components/Inputs/NumberInput/index.ts +1 -0
  190. package/lib/components/Inputs/OTPInput/index.ts +1 -0
  191. package/lib/components/Inputs/SearchInput/index.ts +1 -0
  192. package/lib/components/Inputs/TextArea/TextArea.tsx +4 -2
  193. package/lib/components/Inputs/TextArea/index.ts +1 -0
  194. package/lib/components/Inputs/TextInput/TextInput.tsx +6 -2
  195. package/lib/components/Inputs/TextInput/index.ts +1 -0
  196. package/lib/components/Inputs/UnitInput/UnitInput.tsx +6 -2
  197. package/lib/components/InputsV2/NumberInputV2/NumberInputV2.tsx +6 -2
  198. package/lib/components/InputsV2/TextAreaV2/TextAreaV2.tsx +2 -1
  199. package/lib/components/InputsV2/TextAreaV2/utils.ts +3 -1
  200. package/lib/components/InputsV2/TextInputV2/TextInputV2.tsx +1 -0
  201. package/lib/components/InputsV2/TextInputV2/utils.ts +6 -8
  202. package/lib/components/InputsV2/UploadV2/UploadContainerV2.tsx +470 -0
  203. package/lib/components/InputsV2/UploadV2/UploadV2.dark.tokens.ts +348 -0
  204. package/lib/components/InputsV2/UploadV2/UploadV2.light.tokens.ts +348 -0
  205. package/lib/components/InputsV2/UploadV2/UploadV2.tokens.ts +20 -0
  206. package/lib/components/InputsV2/UploadV2/UploadV2.tokens.types.ts +117 -0
  207. package/lib/components/InputsV2/UploadV2/UploadV2.tsx +336 -0
  208. package/lib/components/InputsV2/UploadV2/UploadV2.types.ts +67 -0
  209. package/lib/components/InputsV2/UploadV2/index.ts +3 -0
  210. package/lib/components/InputsV2/UploadV2/utils.ts +170 -0
  211. package/lib/components/KeyValuePair/index.ts +1 -0
  212. package/lib/components/Menu/Menu.tsx +18 -2
  213. package/lib/components/Menu/SubMenu.tsx +25 -3
  214. package/lib/components/Menu/index.ts +1 -0
  215. package/lib/components/Menu/types.tsx +14 -0
  216. package/lib/components/Menu/utils.ts +46 -3
  217. package/lib/components/MenuV2/MenuV2.tsx +9 -2
  218. package/lib/components/MenuV2/MenuV2Content.tsx +6 -0
  219. package/lib/components/MenuV2/MenuV2SubMenu.tsx +16 -2
  220. package/lib/components/MenuV2/menuV2.types.ts +11 -0
  221. package/lib/components/MenuV2/menuV2.utils.ts +45 -3
  222. package/lib/components/Modal/index.ts +1 -0
  223. package/lib/components/ModalV2/ModalV2.tsx +269 -0
  224. package/lib/components/ModalV2/ModalV2Footer.tsx +76 -0
  225. package/lib/components/ModalV2/ModalV2Header.tsx +144 -0
  226. package/lib/components/ModalV2/ModalV2Skeleton.tsx +80 -0
  227. package/lib/components/ModalV2/index.ts +4 -0
  228. package/lib/components/ModalV2/mobileModalV2.tsx +411 -0
  229. package/lib/components/ModalV2/modalAnimationV2.tsx +19 -0
  230. package/lib/components/ModalV2/modalV2.dark.tokens.ts +183 -0
  231. package/lib/components/ModalV2/modalV2.light.tokens.ts +183 -0
  232. package/lib/components/ModalV2/modalV2.tokens.ts +21 -0
  233. package/lib/components/ModalV2/modalV2.tokens.types.ts +94 -0
  234. package/lib/components/ModalV2/modalV2.types.ts +80 -0
  235. package/lib/components/MultiSelect/MultiSelect.tsx +4 -1
  236. package/lib/components/MultiSelect/MultiSelectMenu.tsx +8 -0
  237. package/lib/components/MultiSelect/MultiSelectTrigger.tsx +2 -1
  238. package/lib/components/MultiSelect/index.ts +2 -0
  239. package/lib/components/MultiSelect/types.ts +2 -0
  240. package/lib/components/MultiSelectV2/MultiSelectV2.tsx +2 -0
  241. package/lib/components/MultiSelectV2/MultiSelectV2Menu.tsx +8 -0
  242. package/lib/components/MultiSelectV2/MultiSelectV2Trigger.tsx +4 -1
  243. package/lib/components/MultiSelectV2/multiSelectV2.types.ts +2 -0
  244. package/lib/components/Popover/index.ts +1 -0
  245. package/lib/components/Primitives/Block/Block.tsx +1 -1
  246. package/lib/components/ProgressBar/index.ts +1 -0
  247. package/lib/components/Radio/index.ts +2 -0
  248. package/lib/components/Sidebar/Sidebar.tsx +38 -0
  249. package/lib/components/Sidebar/SidebarContent.tsx +25 -1
  250. package/lib/components/Sidebar/index.ts +1 -0
  251. package/lib/components/Sidebar/types.ts +13 -1
  252. package/lib/components/SidebarV2/SidebarV2.tsx +30 -0
  253. package/lib/components/SidebarV2/SidebarV2Panel.tsx +25 -1
  254. package/lib/components/SidebarV2/types.ts +9 -1
  255. package/lib/components/SingleSelect/SingleSelect.tsx +4 -1
  256. package/lib/components/SingleSelect/SingleSelectMenu.tsx +171 -138
  257. package/lib/components/SingleSelect/SingleSelectTrigger.tsx +3 -1
  258. package/lib/components/SingleSelect/index.ts +1 -0
  259. package/lib/components/SingleSelect/types.ts +1 -0
  260. package/lib/components/SingleSelectV2/SingleSelectV2.tsx +2 -0
  261. package/lib/components/SingleSelectV2/SingleSelectV2Menu.tsx +84 -58
  262. package/lib/components/SingleSelectV2/SingleSelectV2Search.tsx +1 -0
  263. package/lib/components/SingleSelectV2/SingleSelectV2Trigger.tsx +3 -1
  264. package/lib/components/SingleSelectV2/singleSelectV2.dark.tokens.ts +8 -0
  265. package/lib/components/SingleSelectV2/singleSelectV2.light.tokens.ts +8 -0
  266. package/lib/components/SingleSelectV2/singleSelectV2.tokens.types.ts +8 -0
  267. package/lib/components/SingleSelectV2/singleSelectV2.types.ts +2 -0
  268. package/lib/components/Skeleton/SkeletonCompound.tsx +45 -31
  269. package/lib/components/Snackbar/Snackbar.tsx +18 -8
  270. package/lib/components/Snackbar/index.ts +2 -0
  271. package/lib/components/Snackbar/snackbar.tokens.ts +6 -0
  272. package/lib/components/Snackbar/types.ts +2 -0
  273. package/lib/components/StatCard/StatCard.tsx +29 -0
  274. package/lib/components/StatCard/index.ts +1 -0
  275. package/lib/components/Stepper/index.ts +1 -0
  276. package/lib/components/Switch/index.ts +2 -0
  277. package/lib/components/Tabs/index.ts +1 -0
  278. package/lib/components/Tags/index.ts +1 -0
  279. package/lib/components/Timeline/Timeline.tsx +9 -1
  280. package/lib/components/Tooltip/index.ts +1 -0
  281. package/lib/components/Topbar/index.ts +1 -0
  282. package/lib/components/Upload/index.ts +1 -0
  283. package/lib/context/ThemeContext.tsx +16 -0
  284. package/lib/context/initComponentTokens.ts +11 -0
  285. package/lib/context/useComponentToken.ts +15 -1
  286. package/lib/hooks/useResponsiveTokens.ts +63 -0
  287. package/lib/main.ts +16 -0
  288. package/lib/node.ts +2 -0
  289. package/package.json +5 -4
  290. package/dist/tokens.d.ts +0 -2
@@ -7082,6 +7082,14 @@ const f = (r) => {
7082
7082
  color: r.colors.gray[600]
7083
7083
  },
7084
7084
  iconColor: r.colors.gray[400]
7085
+ },
7086
+ footer: {
7087
+ paddingTop: r.unit[16],
7088
+ paddingRight: r.unit[16],
7089
+ paddingBottom: r.unit[16],
7090
+ paddingLeft: r.unit[16],
7091
+ backgroundColor: r.colors.gray[0],
7092
+ borderTop: `${r.border.width[1]} solid ${r.colors.gray[200]}`
7085
7093
  }
7086
7094
  },
7087
7095
  mobilePanel: {
@@ -7428,6 +7436,14 @@ const f = (r) => {
7428
7436
  color: r.colors.gray[200]
7429
7437
  },
7430
7438
  iconColor: r.colors.gray[500]
7439
+ },
7440
+ footer: {
7441
+ paddingTop: r.unit[16],
7442
+ paddingRight: r.unit[16],
7443
+ paddingBottom: r.unit[16],
7444
+ paddingLeft: r.unit[16],
7445
+ backgroundColor: r.colors.gray[800],
7446
+ borderTop: `${r.border.width[1]} solid ${r.colors.gray[700]}`
7431
7447
  }
7432
7448
  },
7433
7449
  mobilePanel: {
@@ -1,4 +1,6 @@
1
+ /** @deprecated Will be deprecated soon. Use AccordionV2 instead. */
1
2
  export { default as Accordion } from './Accordion';
3
+ /** @deprecated Will be deprecated soon. Use AccordionV2 instead. */
2
4
  export { default as AccordionItem } from './AccordionItem';
3
5
  export * from './accordion.tokens';
4
6
  export * from './types';
@@ -1,3 +1,3 @@
1
1
  export declare const accordionDown: import('styled-components/dist/models/Keyframes').default;
2
2
  export declare const accordionUp: import('styled-components/dist/models/Keyframes').default;
3
- export declare const ACCORDION_TRANSITION = "all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)";
3
+ export declare const ACCORDION_TRANSITION = "height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)";
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use AlertV2 instead. */
1
2
  export { default as Alert } from './Alert';
2
3
  export * from './alert.tokens';
3
4
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use AvatarV2 instead. */
1
2
  export { default as Avatar } from './Avatar';
2
3
  export * from './avatar.tokens';
3
4
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use BreadcrumbV2 instead. */
1
2
  export { default as Breadcrumb } from './Breadcrumb';
2
3
  export * from './breadcrumb.tokens';
3
4
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use ButtonV2 instead. */
1
2
  export { default as Button } from './Button';
2
3
  export * from './button.tokens';
3
4
  export * from './types';
@@ -1,2 +1,3 @@
1
+ /** @deprecated Will be deprecated soon. Use ButtonGroupV2 instead. */
1
2
  export { default as ButtonGroup } from './ButtonGroup';
2
3
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use CardV2 instead. */
1
2
  export { default as Card } from './Card';
2
3
  export * from './card.tokens';
3
4
  export * from './types';
@@ -0,0 +1,45 @@
1
+ import { CardV2Actions, CardV2Body, CardV2Content, CardV2Footer, CardV2Header, CardV2Media, CardV2Meta } from './CardV2Components';
2
+ import { default as CardV2Skeleton } from './CardV2Skeleton';
3
+ import { CardV2ActionPlacement, CardV2Orientation, CardV2Padding, CardV2Variant } from './cardV2.types';
4
+ declare const CardV2Root: import('react').ForwardRefExoticComponent<{
5
+ variant?: CardV2Variant;
6
+ orientation?: CardV2Orientation;
7
+ padding?: CardV2Padding;
8
+ title?: import('react').ReactNode;
9
+ truncateTitle?: boolean;
10
+ subtitle?: import('react').ReactNode;
11
+ description?: import('react').ReactNode;
12
+ eyebrow?: import('react').ReactNode;
13
+ media?: import('react').ReactNode;
14
+ mediaWidth?: import('styled-components').CSSObject["width"];
15
+ mediaHeight?: import('styled-components').CSSObject["height"];
16
+ mediaMinHeight?: import('styled-components').CSSObject["minHeight"];
17
+ leadingSlot?: import('react').ReactNode;
18
+ trailingSlot?: import('react').ReactNode;
19
+ footer?: import('react').ReactNode;
20
+ actions?: import('./cardV2.types').CardV2Action | import('./cardV2.types').CardV2Action[];
21
+ actionPlacement?: CardV2ActionPlacement;
22
+ centered?: boolean;
23
+ interactive?: boolean;
24
+ selected?: boolean;
25
+ skeleton?: import('./cardV2.types').CardV2SkeletonProps;
26
+ width?: import('styled-components').CSSObject["width"];
27
+ minWidth?: import('styled-components').CSSObject["minWidth"];
28
+ maxWidth?: import('styled-components').CSSObject["maxWidth"];
29
+ height?: import('styled-components').CSSObject["height"];
30
+ minHeight?: import('styled-components').CSSObject["minHeight"];
31
+ maxHeight?: import('styled-components').CSSObject["maxHeight"];
32
+ scrollable?: boolean;
33
+ children?: import('react').ReactNode;
34
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "title" | "children"> & import('react').RefAttributes<HTMLDivElement>>;
35
+ declare const CardV2: typeof CardV2Root & {
36
+ Header: typeof CardV2Header;
37
+ Meta: typeof CardV2Meta;
38
+ Media: typeof CardV2Media;
39
+ Body: typeof CardV2Body;
40
+ Content: typeof CardV2Content;
41
+ Actions: typeof CardV2Actions;
42
+ Footer: typeof CardV2Footer;
43
+ Skeleton: typeof CardV2Skeleton;
44
+ };
45
+ export default CardV2;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { CardV2TokensType } from './cardV2.tokens';
3
+ import { CardV2Padding, CardV2Action } from './cardV2.types';
4
+ export declare const isTextPrimitive: (value: unknown) => value is string | number;
5
+ export declare const toCardV2ActionArray: (actions?: CardV2Action | CardV2Action[]) => import('../ButtonV2').ButtonV2Props[];
6
+ export declare const getCardV2Padding: (tokens: CardV2TokensType, padding: CardV2Padding) => string;
7
+ export declare const renderCardV2Text: ({ value, id, as, styles, dataElement, truncate, }: {
8
+ value?: ReactNode;
9
+ id: string;
10
+ as: "p" | "h2";
11
+ styles: React.CSSProperties;
12
+ dataElement: string;
13
+ truncate?: boolean;
14
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import { CardV2ActionsProps, CardV2BodyProps, CardV2FooterProps, CardV2HeaderProps, CardV2MediaProps, CardV2MetaProps, CardV2SectionProps } from './cardV2.types';
2
+ export declare const CardV2Meta: ({ title, truncateTitle, subtitle, eyebrow, centered, }: CardV2MetaProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export declare const CardV2Header: ({ title, truncateTitle, subtitle, eyebrow, leadingSlot, trailingSlot, centered, }: CardV2HeaderProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export declare const CardV2Media: ({ children, orientation, width, height, minHeight, }: CardV2MediaProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const CardV2Actions: ({ actions, centered }: CardV2ActionsProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export declare const CardV2Content: ({ children }: CardV2SectionProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const CardV2Body: ({ description, actions, centered, scrollable, children, }: CardV2BodyProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const CardV2Footer: ({ children, actions, centered, divider, }: CardV2FooterProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { CardV2TokensType } from './cardV2.tokens';
2
+ export type CardV2ContextValue = {
3
+ tokens: CardV2TokensType;
4
+ centered: boolean;
5
+ scrollable: boolean;
6
+ ids: {
7
+ eyebrow: string;
8
+ title: string;
9
+ subtitle: string;
10
+ description: string;
11
+ };
12
+ };
13
+ export declare const CardV2Context: import('react').Context<CardV2ContextValue | null>;
14
+ export declare const useCardV2Context: () => CardV2ContextValue | null;
@@ -0,0 +1,6 @@
1
+ import { CardV2SkeletonProps } from './cardV2.types';
2
+ export type CardV2SkeletonComponentProps = {
3
+ skeleton?: CardV2SkeletonProps;
4
+ };
5
+ declare const CardV2Skeleton: ({ skeleton }: CardV2SkeletonComponentProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CardV2Skeleton;
@@ -0,0 +1,2 @@
1
+ import { AccessibilityReport } from '../../StatCard/accessibility/StatCardAccessibilityReport';
2
+ export declare const cardV2AccessibilityReport: AccessibilityReport;
@@ -0,0 +1 @@
1
+ export { cardV2AccessibilityReport } from './CardV2AccessibilityReport';
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveCardV2Tokens } from './cardV2.tokens.types';
3
+ export declare const getCardV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveCardV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveCardV2Tokens } from './cardV2.tokens.types';
3
+ export declare const getCardV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveCardV2Tokens;
@@ -0,0 +1,5 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { Theme } from '../../context/theme.enum';
3
+ import { ResponsiveCardV2Tokens } from './cardV2.tokens.types';
4
+ export type { CardV2TokensType, ResponsiveCardV2Tokens, } from './cardV2.tokens.types';
5
+ export declare const getCardV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveCardV2Tokens;
@@ -0,0 +1,92 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { BreakpointType } from '../../breakpoints/breakPoints';
3
+ import { CardV2Orientation, CardV2Padding, CardV2Variant } from './cardV2.types';
4
+ export type CardV2TokensType = {
5
+ width: CSSObject['width'];
6
+ minWidth: CSSObject['minWidth'];
7
+ maxWidth: CSSObject['maxWidth'];
8
+ borderRadius: CSSObject['borderRadius'];
9
+ border: {
10
+ [key in CardV2Variant]: CSSObject['border'];
11
+ };
12
+ backgroundColor: {
13
+ [key in CardV2Variant]: CSSObject['backgroundColor'];
14
+ };
15
+ boxShadow: {
16
+ [key in CardV2Variant]: CSSObject['boxShadow'];
17
+ };
18
+ state: {
19
+ hover: {
20
+ border: CSSObject['border'];
21
+ boxShadow: CSSObject['boxShadow'];
22
+ };
23
+ selected: {
24
+ border: CSSObject['border'];
25
+ boxShadow: CSSObject['boxShadow'];
26
+ };
27
+ focus: {
28
+ outline: CSSObject['outline'];
29
+ outlineOffset: CSSObject['outlineOffset'];
30
+ };
31
+ };
32
+ padding: {
33
+ [key in CardV2Padding]: {
34
+ x: CSSObject['padding'];
35
+ y: CSSObject['padding'];
36
+ };
37
+ };
38
+ layout: {
39
+ gap: CSSObject['gap'];
40
+ mediaGap: {
41
+ [key in CardV2Orientation]: CSSObject['gap'];
42
+ };
43
+ };
44
+ media: {
45
+ width: CSSObject['width'];
46
+ height: CSSObject['height'];
47
+ minHeight: CSSObject['minHeight'];
48
+ borderRadius: CSSObject['borderRadius'];
49
+ backgroundColor: CSSObject['backgroundColor'];
50
+ };
51
+ header: {
52
+ gap: CSSObject['gap'];
53
+ eyebrow: {
54
+ fontSize: CSSObject['fontSize'];
55
+ fontWeight: CSSObject['fontWeight'];
56
+ lineHeight: CSSObject['lineHeight'];
57
+ color: CSSObject['color'];
58
+ };
59
+ title: {
60
+ fontSize: CSSObject['fontSize'];
61
+ fontWeight: CSSObject['fontWeight'];
62
+ lineHeight: CSSObject['lineHeight'];
63
+ color: CSSObject['color'];
64
+ };
65
+ subtitle: {
66
+ fontSize: CSSObject['fontSize'];
67
+ fontWeight: CSSObject['fontWeight'];
68
+ lineHeight: CSSObject['lineHeight'];
69
+ color: CSSObject['color'];
70
+ };
71
+ };
72
+ body: {
73
+ gap: CSSObject['gap'];
74
+ description: {
75
+ fontSize: CSSObject['fontSize'];
76
+ fontWeight: CSSObject['fontWeight'];
77
+ lineHeight: CSSObject['lineHeight'];
78
+ color: CSSObject['color'];
79
+ };
80
+ };
81
+ footer: {
82
+ gap: CSSObject['gap'];
83
+ paddingTop: CSSObject['paddingTop'];
84
+ borderTop: CSSObject['borderTop'];
85
+ };
86
+ actions: {
87
+ gap: CSSObject['gap'];
88
+ };
89
+ };
90
+ export type ResponsiveCardV2Tokens = {
91
+ [key in keyof BreakpointType]: CardV2TokensType;
92
+ };
@@ -0,0 +1,106 @@
1
+ import { FC, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
+ import { CSSObject } from 'styled-components';
3
+ import { ButtonV2Props } from '../ButtonV2/buttonV2.types';
4
+ import { SkeletonVariant } from '../Skeleton/types';
5
+ export declare enum CardV2Variant {
6
+ OUTLINED = "outlined",
7
+ ELEVATED = "elevated",
8
+ GHOST = "ghost"
9
+ }
10
+ export declare enum CardV2Orientation {
11
+ VERTICAL = "vertical",
12
+ HORIZONTAL = "horizontal"
13
+ }
14
+ export declare enum CardV2Padding {
15
+ NONE = "none",
16
+ COMPACT = "compact",
17
+ COMFORTABLE = "comfortable"
18
+ }
19
+ export declare enum CardV2ActionPlacement {
20
+ BODY = "body",
21
+ FOOTER = "footer"
22
+ }
23
+ export type CardV2SkeletonProps = {
24
+ show?: boolean;
25
+ variant?: SkeletonVariant;
26
+ height?: CSSObject['height'];
27
+ width?: CSSObject['width'];
28
+ };
29
+ export type CardV2Action = ButtonV2Props;
30
+ export type CardV2SectionProps = {
31
+ children?: ReactNode;
32
+ };
33
+ export type CardV2HeaderProps = {
34
+ title?: ReactNode;
35
+ truncateTitle?: boolean;
36
+ subtitle?: ReactNode;
37
+ eyebrow?: ReactNode;
38
+ leadingSlot?: ReactNode;
39
+ trailingSlot?: ReactNode;
40
+ centered?: boolean;
41
+ };
42
+ export type CardV2MetaProps = Pick<CardV2HeaderProps, 'title' | 'truncateTitle' | 'subtitle' | 'eyebrow' | 'centered'>;
43
+ export type CardV2MediaProps = CardV2SectionProps & {
44
+ orientation?: CardV2Orientation;
45
+ width?: CSSObject['width'];
46
+ height?: CSSObject['height'];
47
+ minHeight?: CSSObject['minHeight'];
48
+ };
49
+ export type CardV2BodyProps = CardV2SectionProps & {
50
+ description?: ReactNode;
51
+ actions?: CardV2Action | CardV2Action[];
52
+ centered?: boolean;
53
+ scrollable?: boolean;
54
+ };
55
+ export type CardV2ActionsProps = {
56
+ actions?: CardV2Action | CardV2Action[];
57
+ centered?: boolean;
58
+ };
59
+ export type CardV2FooterProps = CardV2SectionProps & {
60
+ actions?: CardV2Action | CardV2Action[];
61
+ centered?: boolean;
62
+ divider?: boolean;
63
+ };
64
+ export type CardV2Props = {
65
+ variant?: CardV2Variant;
66
+ orientation?: CardV2Orientation;
67
+ padding?: CardV2Padding;
68
+ title?: ReactNode;
69
+ truncateTitle?: boolean;
70
+ subtitle?: ReactNode;
71
+ description?: ReactNode;
72
+ eyebrow?: ReactNode;
73
+ media?: ReactNode;
74
+ mediaWidth?: CSSObject['width'];
75
+ mediaHeight?: CSSObject['height'];
76
+ mediaMinHeight?: CSSObject['minHeight'];
77
+ leadingSlot?: ReactNode;
78
+ trailingSlot?: ReactNode;
79
+ footer?: ReactNode;
80
+ actions?: CardV2Action | CardV2Action[];
81
+ actionPlacement?: CardV2ActionPlacement;
82
+ centered?: boolean;
83
+ interactive?: boolean;
84
+ selected?: boolean;
85
+ skeleton?: CardV2SkeletonProps;
86
+ width?: CSSObject['width'];
87
+ minWidth?: CSSObject['minWidth'];
88
+ maxWidth?: CSSObject['maxWidth'];
89
+ height?: CSSObject['height'];
90
+ minHeight?: CSSObject['minHeight'];
91
+ maxHeight?: CSSObject['maxHeight'];
92
+ scrollable?: boolean;
93
+ children?: ReactNode;
94
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'children'>;
95
+ export type CardV2Component = ForwardRefExoticComponent<CardV2Props & RefAttributes<HTMLDivElement>> & {
96
+ Header: FC<CardV2HeaderProps>;
97
+ Meta: FC<CardV2MetaProps>;
98
+ Media: FC<CardV2MediaProps>;
99
+ Body: FC<CardV2BodyProps>;
100
+ Content: FC<CardV2SectionProps>;
101
+ Actions: FC<CardV2ActionsProps>;
102
+ Footer: FC<CardV2FooterProps>;
103
+ Skeleton: FC<{
104
+ skeleton?: CardV2SkeletonProps;
105
+ }>;
106
+ };
@@ -0,0 +1,5 @@
1
+ export { default as CardV2 } from './CardV2';
2
+ export { CardV2Actions, CardV2Body, CardV2Content, CardV2Footer, CardV2Header, CardV2Media, CardV2Meta, } from './CardV2Components';
3
+ export { default as CardV2Skeleton } from './CardV2Skeleton';
4
+ export * from './cardV2.types';
5
+ export * from './cardV2.tokens';
@@ -1,12 +1,22 @@
1
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
1
2
  export { default as Charts } from './Charts';
3
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
2
4
  export { default as CoreChart } from './CoreChart';
5
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
3
6
  export { default as ChartContainer } from './ChartContainer';
7
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
4
8
  export { default as ChartHeader } from './ChartHeader';
9
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
5
10
  export { default as ChartLegends } from './ChartLegend';
11
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
6
12
  export { default as SankeyNode } from './SankeyNode';
13
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
7
14
  export { default as SankeyLink } from './SankeyLink';
15
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
8
16
  export { default as BlendChart } from './BlendChart';
17
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
9
18
  export { default as BlendChartContainer } from './BlendChartContainer';
19
+ /** @deprecated Will be deprecated soon. Use ChartV2 instead. */
10
20
  export { default as BlendChartHeader } from './BlendChartHeader';
11
21
  export * from './chart.tokens';
12
22
  export * from './types';
@@ -180,6 +180,7 @@ export type ChartsProps = {
180
180
  chartHeaderSlot: ReactNode;
181
181
  stackedLegends?: boolean;
182
182
  stackedLegendsData?: StackedLegendsDataPoint[];
183
+ showAllLegends?: boolean;
183
184
  barsize?: number;
184
185
  xAxis?: XAxisConfig;
185
186
  yAxis?: YAxisConfig;
@@ -238,6 +239,7 @@ export type ChartLegendsProps = {
238
239
  title: string;
239
240
  total?: string;
240
241
  }[];
242
+ showAllLegends?: boolean;
241
243
  };
242
244
  export type CustomTooltipProps = TooltipProps<ValueType, NameType> & {
243
245
  hoveredKey: string | null;
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use ChatInputV2 instead. */
1
2
  export { default as ChatInput } from './ChatInput';
2
3
  export * from './chatInput.tokens';
3
4
  export * from './types';
@@ -1,2 +1,3 @@
1
+ /** @deprecated Will be deprecated soon. Use CheckboxV2 instead. */
1
2
  export { Checkbox } from './Checkbox';
2
3
  export * from './types';
@@ -1,2 +1,3 @@
1
+ /** @deprecated Will be deprecated soon. Use CodeEditorV2 instead. */
1
2
  export { default as CodeEditor } from './CodeEditor';
2
3
  export * from './types';
@@ -1,9 +1,29 @@
1
1
  import { ReactNode } from 'react';
2
- import { SupportedLanguage } from '../CodeBlock/types';
3
2
  export declare enum CodeEditorVariant {
4
3
  DEFAULT = "default",
5
4
  NO_GUTTER = "no-gutter"
6
5
  }
6
+ /**
7
+ * Common Monaco language IDs, provided purely for IDE autocomplete on the
8
+ * `language` prop — NOT a runtime constraint. Every entry is verified against
9
+ * the language IDs monaco-editor actually registers (Monaco does not export a
10
+ * static union of its built-in IDs; they are only enumerable at runtime via
11
+ * `monaco.languages.getLanguages()`). Note Monaco's plain-text ID is
12
+ * `plaintext` and shell scripts are `shell` (there is no `bash` ID). Monaco
13
+ * also has no distinct `jsx`/`tsx` IDs — those still work through the open
14
+ * string arm of {@link CodeEditorLanguage}: the editor maps them onto the
15
+ * `javascript`/`typescript` tokenizers.
16
+ */
17
+ export type KnownCodeEditorLanguage = 'javascript' | 'typescript' | 'json' | 'css' | 'scss' | 'less' | 'html' | 'xml' | 'markdown' | 'yaml' | 'ini' | 'graphql' | 'sql' | 'python' | 'rust' | 'go' | 'java' | 'kotlin' | 'swift' | 'c' | 'cpp' | 'csharp' | 'php' | 'ruby' | 'shell' | 'powershell' | 'dockerfile' | 'plaintext';
18
+ /**
19
+ * Language accepted by {@link CodeEditorProps.language}: autocomplete for
20
+ * {@link KnownCodeEditorLanguage}, while `(string & {})` keeps the prop open
21
+ * to every other Monaco language ID (the component forwards to Monaco, whose
22
+ * own `language` option is a plain `string`). Decoupled from `CodeBlock`'s
23
+ * `SupportedLanguage`, which is scoped to CodeBlock's hand-rolled tokenizer
24
+ * rather than Monaco.
25
+ */
26
+ export type CodeEditorLanguage = KnownCodeEditorLanguage | (string & {});
7
27
  export type CodeEditorProps = {
8
28
  value: string;
9
29
  onChange?: (value: string) => void;
@@ -28,7 +48,7 @@ export type CodeEditorProps = {
28
48
  */
29
49
  showLeftIcon?: boolean;
30
50
  showCopyButton?: boolean;
31
- language?: SupportedLanguage;
51
+ language?: CodeEditorLanguage;
32
52
  placeholder?: string;
33
53
  readOnly?: boolean;
34
54
  disabled?: boolean;
@@ -11,7 +11,7 @@ declare const CodeEditorV2: import('react').ForwardRefExoticComponent<{
11
11
  rightSlot?: import('react').ReactNode;
12
12
  showCopyButton?: boolean;
13
13
  };
14
- language?: import('./codeEditorV2.types').CodeEditorV2SupportedLanguage;
14
+ language?: import('./codeEditorV2.types').CodeEditorV2Language;
15
15
  placeholder?: string;
16
16
  readOnly?: boolean;
17
17
  disabled?: boolean;
@@ -15,7 +15,28 @@ export type CodeEditorV2DiffLine = {
15
15
  content: string;
16
16
  type: CodeEditorV2DiffLineType;
17
17
  };
18
- export type CodeEditorV2SupportedLanguage = 'javascript' | 'typescript' | 'jsx' | 'tsx' | 'json' | 'css' | 'html' | 'markdown' | 'yaml' | 'python' | 'rust' | 'haskell';
18
+ /**
19
+ * Common Monaco language IDs, provided purely for IDE autocomplete on the
20
+ * `language` prop — NOT a runtime constraint. Every entry is verified against
21
+ * the language IDs monaco-editor actually registers (Monaco does not export a
22
+ * static union of its built-in IDs; they are only enumerable at runtime via
23
+ * `monaco.languages.getLanguages()`). Note Monaco's plain-text ID is
24
+ * `plaintext` and shell scripts are `shell` (there is no `bash` ID). Monaco
25
+ * also has no distinct `jsx`/`tsx` IDs — those still work through the open
26
+ * string arm of {@link CodeEditorV2Language}: the editor maps them onto the
27
+ * `javascript`/`typescript` tokenizers.
28
+ */
29
+ export type KnownCodeEditorV2Language = 'javascript' | 'typescript' | 'json' | 'css' | 'scss' | 'less' | 'html' | 'xml' | 'markdown' | 'yaml' | 'ini' | 'graphql' | 'sql' | 'python' | 'rust' | 'go' | 'java' | 'kotlin' | 'swift' | 'c' | 'cpp' | 'csharp' | 'php' | 'ruby' | 'shell' | 'powershell' | 'dockerfile' | 'plaintext';
30
+ /**
31
+ * Language accepted by {@link CodeEditorV2Props.language}: autocomplete for
32
+ * {@link KnownCodeEditorV2Language}, while `(string & {})` keeps the prop open
33
+ * to every other Monaco language ID (matching the internal
34
+ * `MonacoEditorWrapper`'s `language: string` — Monaco itself types the option
35
+ * as a plain `string`).
36
+ */
37
+ export type CodeEditorV2Language = KnownCodeEditorV2Language | (string & {});
38
+ /** @deprecated Use {@link CodeEditorV2Language} instead. */
39
+ export type CodeEditorV2SupportedLanguage = CodeEditorV2Language;
19
40
  export type CodeEditorV2Dimensions = {
20
41
  width?: CSSObject['width'];
21
42
  maxWidth?: CSSObject['maxWidth'];
@@ -37,7 +58,7 @@ export type CodeEditorV2Props = {
37
58
  rightSlot?: ReactNode;
38
59
  showCopyButton?: boolean;
39
60
  };
40
- language?: CodeEditorV2SupportedLanguage;
61
+ language?: CodeEditorV2Language;
41
62
  placeholder?: string;
42
63
  readOnly?: boolean;
43
64
  disabled?: boolean;