pixelize-design-library 2.4.2-beta.67 → 2.4.2-beta.69

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 (299) hide show
  1. package/CHANGELOG.md +61 -4
  2. package/COMPONENT-GOTCHAS.md +98 -59
  3. package/DESIGN-GUIDE.md +18 -6
  4. package/README.md +14 -11
  5. package/dist/Components/Accordion/AccordionProps.d.ts +10 -0
  6. package/dist/Components/AddressCard/AddressCardProps.d.ts +15 -0
  7. package/dist/Components/Apexcharts/ApexAreaChart/ApexAreaChartProps.d.ts +11 -0
  8. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.d.ts +17 -1
  9. package/dist/Components/Apexcharts/ApexLineChart/ApexLineChartProps.d.ts +10 -0
  10. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +14 -0
  11. package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarChartsProps.d.ts +9 -0
  12. package/dist/Components/Apexcharts/ApexRadialChart/ApexRadialChartProps.d.ts +10 -0
  13. package/dist/Components/AppSwitcher/AppSwitcher.d.ts +1 -0
  14. package/dist/Components/AppSwitcher/AppSwitcher.js +1 -0
  15. package/dist/Components/AppSwitcher/AppSwitcherProps.d.ts +23 -0
  16. package/dist/Components/AppSwitcher/pixelizeSuite.d.ts +1 -0
  17. package/dist/Components/AppearanceSettings/AppearanceSettings.d.ts +1 -0
  18. package/dist/Components/AppearanceSettings/AppearanceSettings.js +1 -0
  19. package/dist/Components/AppearanceSettings/AppearanceSettingsProps.d.ts +11 -0
  20. package/dist/Components/AudioRecorder/AudioRecorder.d.ts +1 -0
  21. package/dist/Components/AudioRecorder/AudioRecorder.js +1 -0
  22. package/dist/Components/AudioRecorder/AudioRecorderProps.d.ts +6 -0
  23. package/dist/Components/Avatar/AvatarGroup.d.ts +1 -0
  24. package/dist/Components/Avatar/AvatarGroup.js +1 -0
  25. package/dist/Components/Avatar/AvatarGroupProps.d.ts +2 -0
  26. package/dist/Components/Avatar/AvatarProps.d.ts +2 -2
  27. package/dist/Components/Avatar/avatarColorway.d.ts +1 -0
  28. package/dist/Components/BagBar/BagBarProps.d.ts +8 -0
  29. package/dist/Components/BulkSelectionBar/BulkSelectionBar.d.ts +1 -0
  30. package/dist/Components/BulkSelectionBar/BulkSelectionBar.js +1 -0
  31. package/dist/Components/BulkSelectionBar/BulkSelectionBarProps.d.ts +6 -0
  32. package/dist/Components/Button/Button.js +1 -0
  33. package/dist/Components/Button/ButtonProps.d.ts +3 -0
  34. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +1 -0
  35. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +1 -0
  36. package/dist/Components/ButtonGroupIcon/ButtonGroupIconProps.d.ts +19 -0
  37. package/dist/Components/CalendarGrid/CalendarGrid.d.ts +1 -0
  38. package/dist/Components/CalendarGrid/CalendarGrid.js +1 -0
  39. package/dist/Components/CalendarGrid/CalendarGridProps.d.ts +11 -0
  40. package/dist/Components/CalendarGrid/calendarMath.d.ts +13 -0
  41. package/dist/Components/Card/CardProps.d.ts +4 -0
  42. package/dist/Components/Card/PaymentCard/PaymentCard.d.ts +1 -0
  43. package/dist/Components/Card/PaymentCard/PaymentCard.js +1 -0
  44. package/dist/Components/Card/PaymentCard/PaymentCardProps.d.ts +19 -0
  45. package/dist/Components/CartItem/CartItemProps.d.ts +10 -0
  46. package/dist/Components/Checkbox/CheckboxProps.d.ts +1 -0
  47. package/dist/Components/ChoiceCard/ChoiceCard.d.ts +1 -0
  48. package/dist/Components/ChoiceCard/ChoiceCard.js +1 -0
  49. package/dist/Components/ChoiceCard/ChoiceCardGroup.d.ts +1 -0
  50. package/dist/Components/ChoiceCard/ChoiceCardGroup.js +1 -0
  51. package/dist/Components/ChoiceCard/ChoiceCardProps.d.ts +3 -0
  52. package/dist/Components/ConfirmDialog/ConfirmDialog.d.ts +1 -0
  53. package/dist/Components/ConfirmDialog/ConfirmDialog.js +1 -0
  54. package/dist/Components/ConfirmDialog/ConfirmDialogProps.d.ts +5 -0
  55. package/dist/Components/ContactForm/ContactFormProps.d.ts +13 -0
  56. package/dist/Components/CouponField/CouponFieldProps.d.ts +16 -0
  57. package/dist/Components/CustomModulesTable/CustomModulesTable.d.ts +1 -0
  58. package/dist/Components/CustomModulesTable/CustomModulesTable.js +1 -0
  59. package/dist/Components/CustomModulesTable/CustomModulesTableProps.d.ts +17 -0
  60. package/dist/Components/CustomModulesTable/DeleteModuleModal.d.ts +1 -0
  61. package/dist/Components/CustomModulesTable/DeleteModuleModal.js +1 -0
  62. package/dist/Components/CustomModulesTable/EditModuleModal.d.ts +1 -0
  63. package/dist/Components/CustomModulesTable/EditModuleModal.js +1 -0
  64. package/dist/Components/DatePicker/DatePickerProps.d.ts +7 -1
  65. package/dist/Components/DetailSections/DetailSectionsProps.d.ts +22 -0
  66. package/dist/Components/Drawer/DrawerProps.d.ts +1 -1
  67. package/dist/Components/Dropdown/DropdownProps.d.ts +1 -0
  68. package/dist/Components/Editor/EditorProps.d.ts +33 -0
  69. package/dist/Components/Editor/editorTokens.d.ts +3 -0
  70. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +8 -0
  71. package/dist/Components/FilePreview/FilePreviewProps.d.ts +4 -0
  72. package/dist/Components/FileUploader/FileUploaderProps.d.ts +1 -0
  73. package/dist/Components/FilterBar/FilterBarProps.d.ts +2 -0
  74. package/dist/Components/FormDrawer/FormDrawer.d.ts +1 -0
  75. package/dist/Components/FormDrawer/FormDrawer.js +1 -0
  76. package/dist/Components/FormDrawer/FormDrawerProps.d.ts +3 -0
  77. package/dist/Components/FormField/FormField.d.ts +1 -0
  78. package/dist/Components/FormField/FormField.js +1 -0
  79. package/dist/Components/FormField/FormFieldProps.d.ts +4 -0
  80. package/dist/Components/Header/Header.d.ts +1 -0
  81. package/dist/Components/Header/Header.js +1 -0
  82. package/dist/Components/Header/HeaderActions.d.ts +16 -0
  83. package/dist/Components/Header/HeaderActions.js +1 -0
  84. package/dist/Components/Header/HeaderProps.d.ts +22 -0
  85. package/dist/Components/Header/components/desktopMenu.d.ts +1 -0
  86. package/dist/Components/Header/components/desktopMenu.js +1 -0
  87. package/dist/Components/Header/components/mobileMenu.d.ts +1 -0
  88. package/dist/Components/Header/components/mobileMenu.js +1 -0
  89. package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.d.ts +1 -1
  90. package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.js +1 -1
  91. package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +11 -0
  92. package/dist/Components/Kbd/Kbd.d.ts +1 -0
  93. package/dist/Components/Kbd/Kbd.js +1 -0
  94. package/dist/Components/Kbd/KbdProps.d.ts +4 -0
  95. package/dist/Components/LauncherTrigger/LauncherTrigger.d.ts +1 -0
  96. package/dist/Components/LauncherTrigger/LauncherTrigger.js +1 -0
  97. package/dist/Components/LauncherTrigger/LauncherTriggerProps.d.ts +1 -0
  98. package/dist/Components/LimitReachedModal/LimitReachedModal.d.ts +1 -0
  99. package/dist/Components/LimitReachedModal/LimitReachedModal.js +1 -0
  100. package/dist/Components/LimitReachedModal/LimitReachedModalProps.d.ts +7 -0
  101. package/dist/Components/Loading/LoadingProps.d.ts +2 -0
  102. package/dist/Components/MediaGallery/MediaGalleryProps.d.ts +7 -1
  103. package/dist/Components/MediaGallery/MediaLightboxProps.d.ts +5 -0
  104. package/dist/Components/MediaViewer/components/MediaAudioPlayer.d.ts +1 -0
  105. package/dist/Components/MediaViewer/components/MediaAudioPlayer.js +1 -0
  106. package/dist/Components/MediaViewer/components/MediaDocumentStage.d.ts +1 -0
  107. package/dist/Components/MediaViewer/components/MediaDocumentStage.js +1 -0
  108. package/dist/Components/MediaViewer/components/MediaImageViewer.d.ts +1 -0
  109. package/dist/Components/MediaViewer/components/MediaImageViewer.js +1 -0
  110. package/dist/Components/MediaViewer/components/MediaVideoPlayer.d.ts +1 -0
  111. package/dist/Components/MediaViewer/components/MediaVideoPlayer.js +1 -0
  112. package/dist/Components/MediaViewer/components/MediaVideoPlayerProps.d.ts +1 -0
  113. package/dist/Components/MediaViewer/hooks/useFileViewer.d.ts +1 -0
  114. package/dist/Components/MediaViewer/mediaItems.d.ts +25 -0
  115. package/dist/Components/MediaViewer/mediaItems.js +5 -0
  116. package/dist/Components/Modal/Modal.d.ts +3 -0
  117. package/dist/Components/Modal/Modal.js +3 -0
  118. package/dist/Components/Modal/ModalProps.d.ts +6 -1
  119. package/dist/Components/MoreItems/MoreItemsProps.d.ts +2 -0
  120. package/dist/Components/MultiSelect/MultiSelect.d.ts +1 -0
  121. package/dist/Components/MultiSelect/MultiSelect.js +1 -0
  122. package/dist/Components/MultiSelect/MultiSelectProps.d.ts +13 -0
  123. package/dist/Components/NavLauncher/NavLauncherProps.d.ts +58 -0
  124. package/dist/Components/NavLauncher/engine/engine.d.ts +19 -0
  125. package/dist/Components/NavLauncher/match.d.ts +34 -0
  126. package/dist/Components/NavigationBar/NavigationBar.d.ts +1 -0
  127. package/dist/Components/NavigationBar/NavigationBar.js +1 -0
  128. package/dist/Components/NavigationBar/NavigationBarProps.d.ts +15 -0
  129. package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +2 -1
  130. package/dist/Components/NotificationBell/NotificationBellProps.d.ts +27 -0
  131. package/dist/Components/NotificationBell/notificationHelpers.d.ts +13 -0
  132. package/dist/Components/NumberInput/NumberInputProps.d.ts +1 -1
  133. package/dist/Components/OffersList/OffersListProps.d.ts +12 -1
  134. package/dist/Components/OptionChip/OptionChipProps.d.ts +5 -0
  135. package/dist/Components/OrderStatusTimeline/OrderStatusTimelineProps.d.ts +10 -0
  136. package/dist/Components/OrderSummary/OrderSummaryProps.d.ts +10 -0
  137. package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts +1 -0
  138. package/dist/Components/OrgSwitcher/OrgSwitcher.js +11 -3
  139. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +1 -0
  140. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +52 -0
  141. package/dist/Components/PageHeader/PageHeaderProps.d.ts +1 -0
  142. package/dist/Components/Pagination/PaginationProps.d.ts +4 -0
  143. package/dist/Components/PaymentOption/PaymentOptionProps.d.ts +9 -0
  144. package/dist/Components/PincodeChecker/PincodeCheckerProps.d.ts +13 -0
  145. package/dist/Components/PlanPill/PlanPill.d.ts +1 -0
  146. package/dist/Components/PlanPill/PlanPill.js +1 -0
  147. package/dist/Components/PlanPill/PlanPillProps.d.ts +1 -0
  148. package/dist/Components/PriceBlock/PriceBlockProps.d.ts +6 -0
  149. package/dist/Components/ProductBadges/ProductBadgesProps.d.ts +3 -0
  150. package/dist/Components/ProductCard/ProductCardProps.d.ts +10 -0
  151. package/dist/Components/ProductCard/QuickAddSheetProps.d.ts +8 -0
  152. package/dist/Components/ProductDetails/ProductDetailsProps.d.ts +25 -1
  153. package/dist/Components/ProfileCard/ProfileCardProps.d.ts +1 -1
  154. package/dist/Components/QuantityStepper/QuantityStepperProps.d.ts +9 -0
  155. package/dist/Components/QueryState/QueryStateProps.d.ts +2 -0
  156. package/dist/Components/RadioButton/RadioButtonProps.d.ts +1 -1
  157. package/dist/Components/Rating/RatingProps.d.ts +2 -0
  158. package/dist/Components/Reorder/ReorderProps.d.ts +6 -0
  159. package/dist/Components/ReviewList/ReviewListProps.d.ts +21 -0
  160. package/dist/Components/ReviewSummary/ReviewSummaryProps.d.ts +8 -1
  161. package/dist/Components/RolesPermission/RolesPermissionProps.d.ts +59 -1
  162. package/dist/Components/SearchSelect/SearchSelect.js +17 -5
  163. package/dist/Components/SearchSelect/SearchSelectProps.d.ts +12 -0
  164. package/dist/Components/SectionRail/SectionRail.d.ts +1 -0
  165. package/dist/Components/SectionRail/SectionRail.js +1 -0
  166. package/dist/Components/SectionRail/SectionRailProps.d.ts +4 -0
  167. package/dist/Components/SegmentedControl/SegmentedControlProps.d.ts +4 -0
  168. package/dist/Components/Select/Select.styles.js +25 -0
  169. package/dist/Components/Select/SelectNative.d.ts +10 -0
  170. package/dist/Components/Select/SelectNative.js +11 -4
  171. package/dist/Components/Select/SelectPopup.js +45 -14
  172. package/dist/Components/Select/SelectProps.d.ts +46 -2
  173. package/dist/Components/Select/selectKeyboardRing.d.ts +2 -0
  174. package/dist/Components/Select/selectKeyboardRing.js +7 -0
  175. package/dist/Components/Select/selectRowInk.d.ts +14 -0
  176. package/dist/Components/Select/selectRowInk.js +41 -0
  177. package/dist/Components/SelectSearch/SelectSearch.js +8 -2
  178. package/dist/Components/SelectSearch/SelectSearchProps.d.ts +9 -0
  179. package/dist/Components/SelectV2/SelectV2Props.d.ts +7 -0
  180. package/dist/Components/SideBar/SecondaryBar.d.ts +1 -0
  181. package/dist/Components/SideBar/SecondaryBar.js +1 -0
  182. package/dist/Components/SideBar/SideBar.d.ts +1 -0
  183. package/dist/Components/SideBar/SideBar.js +1 -0
  184. package/dist/Components/SideBar/SideBarProps.d.ts +32 -0
  185. package/dist/Components/SideBar/sidebarAccentColors.d.ts +2 -0
  186. package/dist/Components/SignInActivityTable/SignInActivityTable.d.ts +1 -0
  187. package/dist/Components/SignInActivityTable/SignInActivityTable.js +1 -0
  188. package/dist/Components/SignInActivityTable/SignInActivityTableProps.d.ts +2 -0
  189. package/dist/Components/SpecTable/SpecTableProps.d.ts +9 -0
  190. package/dist/Components/StageProgress/StageProgressProps.d.ts +2 -0
  191. package/dist/Components/StageProgress/StepperStage.d.ts +1 -0
  192. package/dist/Components/StageProgress/StepperStage.js +1 -0
  193. package/dist/Components/StatCard/StatCardProps.d.ts +1 -0
  194. package/dist/Components/StatusTag/StatusTagProps.d.ts +4 -0
  195. package/dist/Components/StickyBuyBar/StickyBuyBar.d.ts +1 -0
  196. package/dist/Components/StickyBuyBar/StickyBuyBar.js +1 -0
  197. package/dist/Components/StickyBuyBar/StickyBuyBarProps.d.ts +6 -0
  198. package/dist/Components/StockStatus/StockStatusProps.d.ts +2 -0
  199. package/dist/Components/Switch/SwitchProps.d.ts +4 -0
  200. package/dist/Components/Table/TableProps.d.ts +19 -0
  201. package/dist/Components/Table/variants/tokens.d.ts +4 -0
  202. package/dist/Components/Tabs/TabsContext.d.ts +14 -0
  203. package/dist/Components/Tabs/TabsProps.d.ts +18 -0
  204. package/dist/Components/Tabs/components/CountBadge.d.ts +4 -0
  205. package/dist/Components/Tabs/components/TabPanels.d.ts +1 -0
  206. package/dist/Components/Tabs/components/TabPanels.js +1 -0
  207. package/dist/Components/Tabs/tabStyles.d.ts +4 -0
  208. package/dist/Components/Tag/TagProps.d.ts +3 -0
  209. package/dist/Components/TagInput/TagInput.d.ts +1 -0
  210. package/dist/Components/TagInput/TagInput.js +1 -0
  211. package/dist/Components/TagInput/TagInputProps.d.ts +2 -0
  212. package/dist/Components/TimePicker/TimePicker.d.ts +1 -0
  213. package/dist/Components/TimePicker/TimePicker.js +1 -0
  214. package/dist/Components/TimePicker/TimePickerProps.d.ts +2 -0
  215. package/dist/Components/Timeline/TimelineProps.d.ts +7 -1
  216. package/dist/Components/Toggle/TableToggleProps.d.ts +2 -0
  217. package/dist/Components/ToggleSwitch/ToggleSwitchProps.d.ts +2 -0
  218. package/dist/Components/ToolTip/OverflowToolTip.d.ts +1 -0
  219. package/dist/Components/ToolTip/OverflowToolTip.js +1 -1
  220. package/dist/Components/ToolTip/ToolTipProps.d.ts +1 -0
  221. package/dist/Components/TrustBadges/TrustBadgesProps.d.ts +4 -0
  222. package/dist/Components/UpgradeButton/UpgradeButton.d.ts +1 -0
  223. package/dist/Components/UpgradeButton/UpgradeButton.js +1 -0
  224. package/dist/Components/UpgradeButton/UpgradeButtonProps.d.ts +4 -1
  225. package/dist/Components/UserDetails/UserDetailsProps.d.ts +58 -0
  226. package/dist/Components/VariantSelector/VariantSelectorProps.d.ts +4 -0
  227. package/dist/Components/WishlistToggle/WishlistToggleProps.d.ts +4 -0
  228. package/dist/Components/WizardDialog/WizardDialogProps.d.ts +15 -0
  229. package/dist/Components/WizardDialog/wizardSteps.d.ts +17 -5
  230. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.d.ts +1 -0
  231. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +1 -1
  232. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -0
  233. package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +2 -1
  234. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +13 -0
  235. package/dist/Theme/tokens/brands/index.d.ts +1 -1
  236. package/dist/Theme/tokens/brands/index.js +1 -1
  237. package/dist/Theme/tokens/builders/rowStates.d.ts +6 -0
  238. package/dist/Theme/tokens/builders/rowStates.js +14 -1
  239. package/dist/Theme/tokens/builders/scrollShadow.d.ts +1 -0
  240. package/dist/Theme/tokens/builders/scrollShadow.js +16 -0
  241. package/dist/esm/Components/AppSwitcher/AppSwitcher.js +1 -0
  242. package/dist/esm/Components/AppearanceSettings/AppearanceSettings.js +1 -0
  243. package/dist/esm/Components/AudioRecorder/AudioRecorder.js +1 -0
  244. package/dist/esm/Components/Avatar/AvatarGroup.js +1 -0
  245. package/dist/esm/Components/BulkSelectionBar/BulkSelectionBar.js +1 -0
  246. package/dist/esm/Components/Button/Button.js +1 -0
  247. package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.js +1 -0
  248. package/dist/esm/Components/CalendarGrid/CalendarGrid.js +1 -0
  249. package/dist/esm/Components/Card/PaymentCard/PaymentCard.js +1 -0
  250. package/dist/esm/Components/ChoiceCard/ChoiceCard.js +1 -0
  251. package/dist/esm/Components/ChoiceCard/ChoiceCardGroup.js +1 -0
  252. package/dist/esm/Components/ConfirmDialog/ConfirmDialog.js +1 -0
  253. package/dist/esm/Components/CustomModulesTable/CustomModulesTable.js +1 -0
  254. package/dist/esm/Components/CustomModulesTable/DeleteModuleModal.js +1 -0
  255. package/dist/esm/Components/CustomModulesTable/EditModuleModal.js +1 -0
  256. package/dist/esm/Components/FormDrawer/FormDrawer.js +1 -0
  257. package/dist/esm/Components/FormField/FormField.js +1 -0
  258. package/dist/esm/Components/Header/Header.js +1 -0
  259. package/dist/esm/Components/Header/HeaderActions.js +1 -0
  260. package/dist/esm/Components/Header/components/desktopMenu.js +1 -0
  261. package/dist/esm/Components/Header/components/mobileMenu.js +1 -0
  262. package/dist/esm/Components/KanbanBoard/KanbanActions/KanbanActions.js +1 -1
  263. package/dist/esm/Components/Kbd/Kbd.js +1 -0
  264. package/dist/esm/Components/LauncherTrigger/LauncherTrigger.js +1 -0
  265. package/dist/esm/Components/LimitReachedModal/LimitReachedModal.js +1 -0
  266. package/dist/esm/Components/MediaViewer/components/MediaAudioPlayer.js +1 -0
  267. package/dist/esm/Components/MediaViewer/components/MediaDocumentStage.js +1 -0
  268. package/dist/esm/Components/MediaViewer/components/MediaImageViewer.js +1 -0
  269. package/dist/esm/Components/MediaViewer/components/MediaVideoPlayer.js +1 -0
  270. package/dist/esm/Components/MediaViewer/mediaItems.js +5 -0
  271. package/dist/esm/Components/Modal/Modal.js +3 -0
  272. package/dist/esm/Components/MultiSelect/MultiSelect.js +1 -0
  273. package/dist/esm/Components/NavigationBar/NavigationBar.js +1 -0
  274. package/dist/esm/Components/OrgSwitcher/OrgSwitcher.js +13 -5
  275. package/dist/esm/Components/PlanPill/PlanPill.js +1 -0
  276. package/dist/esm/Components/SearchSelect/SearchSelect.js +19 -7
  277. package/dist/esm/Components/SectionRail/SectionRail.js +1 -0
  278. package/dist/esm/Components/Select/Select.styles.js +26 -1
  279. package/dist/esm/Components/Select/SelectNative.js +12 -5
  280. package/dist/esm/Components/Select/SelectPopup.js +47 -16
  281. package/dist/esm/Components/Select/selectKeyboardRing.js +3 -0
  282. package/dist/esm/Components/Select/selectRowInk.js +33 -0
  283. package/dist/esm/Components/SelectSearch/SelectSearch.js +10 -4
  284. package/dist/esm/Components/SideBar/SecondaryBar.js +1 -0
  285. package/dist/esm/Components/SideBar/SideBar.js +1 -0
  286. package/dist/esm/Components/SignInActivityTable/SignInActivityTable.js +1 -0
  287. package/dist/esm/Components/StageProgress/StepperStage.js +1 -0
  288. package/dist/esm/Components/StickyBuyBar/StickyBuyBar.js +1 -0
  289. package/dist/esm/Components/Tabs/components/TabPanels.js +1 -0
  290. package/dist/esm/Components/TagInput/TagInput.js +1 -0
  291. package/dist/esm/Components/TimePicker/TimePicker.js +1 -0
  292. package/dist/esm/Components/ToolTip/OverflowToolTip.js +1 -1
  293. package/dist/esm/Components/UpgradeButton/UpgradeButton.js +1 -0
  294. package/dist/esm/Components/WorkspaceWindow/WorkspaceTrayPreview.js +1 -1
  295. package/dist/esm/Components/WorkspaceWindow/WorkspaceWindow.js +2 -1
  296. package/dist/esm/Theme/tokens/brands/index.js +1 -1
  297. package/dist/esm/Theme/tokens/builders/rowStates.js +13 -1
  298. package/dist/esm/Theme/tokens/builders/scrollShadow.js +15 -0
  299. package/package.json +1 -1
@@ -3,18 +3,26 @@ import type { PriceFormat } from "../Commerce/commerceTypes";
3
3
  export type CouponStatus = "idle" | "applying" | "applied" | "error";
4
4
  /** A coupon the shopper can apply with one tap. */
5
5
  export interface CouponSuggestion {
6
+ /** Coupon code, shown in a badge and passed to `onApply` when the suggestion is tapped. */
6
7
  code: string;
8
+ /** Offer headline shown beside the code, e.g. "10% off". */
7
9
  title: string;
8
10
  /** Terms line, e.g. "Min. order ₹999". */
9
11
  detail?: string;
10
12
  }
11
13
  /** Visible copy; override every string for another language. */
12
14
  export interface CouponFieldLabels {
15
+ /** Text of the collapsed toggle row; default "Have a coupon?". */
13
16
  prompt: string;
17
+ /** Accessible name of the code input; default "Coupon code". */
14
18
  inputLabel: string;
19
+ /** Input placeholder; default "Enter code". */
15
20
  placeholder: string;
21
+ /** Apply button text, also the hint on each suggestion; default "Apply". */
16
22
  apply: string;
23
+ /** Remove button text in the applied state; default "Remove". */
17
24
  remove: string;
25
+ /** Heading above the suggestion list; default "Available offers". */
18
26
  suggestionsTitle: string;
19
27
  /** Status text once applied, given the code. */
20
28
  applied: (code: string) => string;
@@ -25,6 +33,7 @@ export interface CouponFieldLabels {
25
33
  }
26
34
  /** Controlled coupon entry: a collapsed "Have a coupon?" row that opens into a field, then settles into an applied chip. */
27
35
  export interface CouponFieldProps extends PriceFormat {
36
+ /** Lifecycle state; default "idle". "applying" disables the input and shows a spinner, "error" shows `error`, "applied" collapses to the chip. */
28
37
  status?: CouponStatus;
29
38
  /** The code shown in the applied state. */
30
39
  appliedCode?: string;
@@ -34,16 +43,23 @@ export interface CouponFieldProps extends PriceFormat {
34
43
  error?: string;
35
44
  /** Called with the upper-cased code from the button, Enter, or a suggestion; set `status` to "applying" while it resolves. */
36
45
  onApply?: (code: string) => void;
46
+ /** Called from the Remove button shown in the applied state; the parent should then reset `status`. */
37
47
  onRemove?: () => void;
48
+ /** Offers listed under the field, each applied in one tap; the list is hidden when empty. */
38
49
  suggestions?: CouponSuggestion[];
39
50
  /** Input text when controlled. */
40
51
  value?: string;
52
+ /** Initial input text when uncontrolled; default empty. */
41
53
  defaultValue?: string;
54
+ /** Called with the code as typed or picked; whitespace is stripped and letters upper-cased first. */
42
55
  onValueChange?: (value: string) => void;
43
56
  /** Open state of the collapsed row when controlled; the field is always open while applying or in error. */
44
57
  expanded?: boolean;
58
+ /** Whether the field starts open when `expanded` is not controlled; default false. */
45
59
  defaultExpanded?: boolean;
60
+ /** Called with the new open state when the prompt row is toggled. */
46
61
  onExpandedChange?: (expanded: boolean) => void;
62
+ /** Per-string copy overrides; unset keys keep the English defaults. */
47
63
  labels?: Partial<CouponFieldLabels>;
48
64
  "data-testid"?: string;
49
65
  }
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
2
  import { CustomModulesTableProps } from "./CustomModulesTableProps";
3
+ /** Card with a two-column module list (name, owner) and per-row Edit and Delete dialogs; loading shows skeleton bars, empty shows an empty state. */
3
4
  declare const CustomModulesTable: React.FC<CustomModulesTableProps>;
4
5
  export default CustomModulesTable;
@@ -31,6 +31,7 @@ const DEFAULT_LABELS = {
31
31
  confirmDeletion: "Confirm Deletion",
32
32
  deleteConfirmPrefix: "Are you sure you want to delete",
33
33
  };
34
+ /** Card with a two-column module list (name, owner) and per-row Edit and Delete dialogs; loading shows skeleton bars, empty shows an empty state. */
34
35
  const CustomModulesTable = ({ modules, isLoading = false, isUpdating = false, isDeleting = false, onUpdateModule, onDeleteModule, labels: labelOverrides, }) => {
35
36
  var _a;
36
37
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
@@ -9,7 +9,9 @@ export type ModuleItem = {
9
9
  };
10
10
  /** Shape passed to onUpdateModule — `moduleId` identifies the item being edited, `moduleName` is the new value from the modal. */
11
11
  export type UpdateModulePayload = {
12
+ /** `module_id` of the row being edited. */
12
13
  moduleId: number;
14
+ /** New name, trimmed; never empty because Update is disabled for a blank name. */
13
15
  moduleName: string;
14
16
  };
15
17
  /**
@@ -19,10 +21,13 @@ export type UpdateModulePayload = {
19
21
  export type CustomModulesTableLabels = {
20
22
  /** Card heading; defaults to "Custom Modules". */
21
23
  title?: string;
24
+ /** Header of the module name column. */
22
25
  moduleName?: string;
26
+ /** Header of the owner column. */
23
27
  moduleOwner?: string;
24
28
  /** Header of the right-aligned Edit/Delete column. */
25
29
  action?: string;
30
+ /** Text of each row's Edit button. */
26
31
  edit?: string;
27
32
  /** Row button label, reused for the delete dialog's confirm button. */
28
33
  delete?: string;
@@ -62,19 +67,31 @@ export interface CustomModulesTableProps {
62
67
  }
63
68
  /** Internal edit-name dialog rendered by CustomModulesTable; `labels` must already be fully resolved, not per-key optional. */
64
69
  export interface EditModuleModalProps {
70
+ /** Shows the dialog. */
65
71
  isOpen: boolean;
72
+ /** Called on Cancel, the close button, Escape or an overlay click. */
66
73
  onClose: () => void;
74
+ /** Seeds the name field each time the dialog opens. */
67
75
  initialName: string;
76
+ /** Spinner on the Update button. */
68
77
  isLoading?: boolean;
78
+ /** Called with the trimmed name when Update is pressed. */
69
79
  onSubmit: (name: string) => void | Promise<void>;
80
+ /** Fully resolved strings; no per-key fallback happens here. */
70
81
  labels: Required<Pick<CustomModulesTableLabels, "editModuleTitle" | "moduleNamePlaceholder" | "cancel" | "update">>;
71
82
  }
72
83
  /** Internal delete-confirmation dialog rendered by CustomModulesTable; `moduleName` is optional since the target can be cleared mid-close. */
73
84
  export interface DeleteModuleModalProps {
85
+ /** Shows the dialog. */
74
86
  isOpen: boolean;
87
+ /** Called on Cancel, the close button, Escape or an overlay click. */
75
88
  onClose: () => void;
89
+ /** Named in the confirmation prompt after `deleteConfirmPrefix`. */
76
90
  moduleName?: string;
91
+ /** Spinner on the confirm button. */
77
92
  isLoading?: boolean;
93
+ /** Called when the confirm button is pressed. */
78
94
  onConfirm: () => void;
95
+ /** Fully resolved strings; no per-key fallback happens here. */
79
96
  labels: Required<Pick<CustomModulesTableLabels, "confirmDeletion" | "deleteConfirmPrefix" | "cancel" | "delete">>;
80
97
  }
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
2
  import { DeleteModuleModalProps } from "./CustomModulesTableProps";
3
+ /** Confirmation dialog for deleting a module; used by CustomModulesTable. */
3
4
  declare const DeleteModuleModal: React.FC<DeleteModuleModalProps>;
4
5
  export default DeleteModuleModal;
@@ -9,6 +9,7 @@ const lucide_react_1 = require("lucide-react");
9
9
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
10
10
  const accentText_1 = require("../../Theme/tokens/builders/accentText");
11
11
  const ConfirmDialog_1 = __importDefault(require("../ConfirmDialog/ConfirmDialog"));
12
+ /** Confirmation dialog for deleting a module; used by CustomModulesTable. */
12
13
  const DeleteModuleModal = ({ isOpen, onClose, moduleName, isLoading, onConfirm, labels, }) => {
13
14
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
14
15
  return ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { isOpen: isOpen, onClose: onClose, onConfirm: onConfirm, title: labels.confirmDeletion, iconBg: colors.semantic.error[50], iconColor: (0, accentText_1.accentTextOnCanvas)(colors.semantic.error, colors.semantic.error[50]), cancelLabel: labels.cancel, confirmLabel: labels.delete, confirmIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Trash2, { size: 15 }), isConfirmLoading: isLoading, disableCancelWhilePending: false, focusCancelOnOpen: false, children: (0, jsx_runtime_1.jsxs)(react_1.Text, { color: colors.textMuted, fontSize: "sm", mb: 5, children: [labels.deleteConfirmPrefix, " ", (0, jsx_runtime_1.jsx)(react_1.Text, { as: "span", fontWeight: 600, color: colors.text[800], children: moduleName }), "?"] }) }));
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
2
  import { EditModuleModalProps } from "./CustomModulesTableProps";
3
+ /** Dialog with one text field to rename a module; used by CustomModulesTable. */
3
4
  declare const EditModuleModal: React.FC<EditModuleModalProps>;
4
5
  export default EditModuleModal;
@@ -9,6 +9,7 @@ const react_2 = require("@chakra-ui/react");
9
9
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
10
10
  const surfaceRaised_1 = require("../../Theme/tokens/builders/surfaceRaised");
11
11
  const Button_1 = __importDefault(require("../Button/Button"));
12
+ /** Dialog with one text field to rename a module; used by CustomModulesTable. */
12
13
  const EditModuleModal = ({ isOpen, onClose, initialName, isLoading, onSubmit, labels, }) => {
13
14
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
14
15
  const [name, setName] = (0, react_1.useState)(initialName);
@@ -5,6 +5,7 @@ export type PickerType = "date" | "time" | "datetime";
5
5
  export type BaseDatePickerProps = {
6
6
  id?: string;
7
7
  name?: string;
8
+ /** Label above the field; also the calendar popover's accessible name (falls back to "Choose date" / "Choose date range"). */
8
9
  label?: string;
9
10
  /** Shows the label asterisk and sets native `required` via FormControl. */
10
11
  isRequired?: boolean;
@@ -24,7 +25,7 @@ export type BaseDatePickerProps = {
24
25
  placeholderText?: string;
25
26
  /** date-fns format; defaults to `dd/MM/yyyy` (`HH:mm` for the time-only picker). Time tokens add time inputs. */
26
27
  dateFormat?: string;
27
- /** Pass explicitly: inference reads `MM` as minutes, so bare `dd/MM/yyyy` also shows time selects. Ignored when `isRange`. */
28
+ /** Inferred from `dateFormat` when omitted: `H`/`h`/`mm`/`ss` mean time, so a lowercase `dd/mm/yyyy` is read as minutes and shows time selects while `dd/MM/yyyy` stays date-only. Ignored when `isRange`. */
28
29
  pickerType?: PickerType;
29
30
  /** Earlier days are disabled in the calendar and rejected when typed. */
30
31
  minDate?: Date;
@@ -49,6 +50,7 @@ export type BaseDatePickerProps = {
49
50
  };
50
51
  /** Single-date variant, Date API (default) — `isRange` must be false or omitted; this is the discriminant the DatePickerProps union switches on. */
51
52
  export type SingleDatePickerDateProps = BaseDatePickerProps & {
53
+ /** Omit or false for a single-date picker; the discriminant `DatePickerProps` switches on. */
52
54
  isRange?: false;
53
55
  /** Omit, or set `"date"`, for the default Date-object API; `"iso"` switches value/onChange to ISO strings. */
54
56
  valueFormat?: "date";
@@ -61,6 +63,7 @@ export type SingleDatePickerDateProps = BaseDatePickerProps & {
61
63
  };
62
64
  /** Single-date variant, string API — `yyyy-MM-dd` / `HH:mm` / full local ISO datetime by pickerType; an unparsable incoming string reads as `null`. */
63
65
  export type SingleDatePickerStringProps = BaseDatePickerProps & {
66
+ /** Omit or false for a single-date picker; the discriminant `DatePickerProps` switches on. */
64
67
  isRange?: false;
65
68
  /** `"iso"` opts into the string API for this instance. */
66
69
  valueFormat: "iso";
@@ -76,11 +79,14 @@ export type SingleDatePickerProps = SingleDatePickerDateProps | SingleDatePicker
76
79
  export declare const isStringValueProps: (props: SingleDatePickerProps) => props is SingleDatePickerStringProps;
77
80
  /** A date range's two endpoints, each independently nullable — used for both the controlled value and onChange's payload. */
78
81
  export type RangeDate = {
82
+ /** Range start, `null` until picked. */
79
83
  from: Date | null;
84
+ /** Range end, `null` until picked. */
80
85
  to: Date | null;
81
86
  };
82
87
  /** Range variant — `isRange` must be true; adds dayStates/renderDayContent day-marking on top of the shared base fields. */
83
88
  export type RangeDatePickerProps = BaseDatePickerProps & {
89
+ /** Must be true to render the range picker. */
84
90
  isRange: true;
85
91
  /** Controlled range; `value` wins when both are set. */
86
92
  selectedDate?: RangeDate | null;
@@ -2,8 +2,11 @@ import type { ReactNode } from "react";
2
2
  import type { SpecItem } from "../SpecTable/SpecTableProps";
3
3
  /** One long-form section. */
4
4
  export interface DetailSection {
5
+ /** Unique key and DOM anchor (`detail-section-<id>`); reusing a built-in id replaces that built-in section. */
5
6
  id: string;
7
+ /** Heading of the accordion row or tab label. */
6
8
  title: string;
9
+ /** Body rendered inside the section panel. */
7
10
  content: ReactNode;
8
11
  }
9
12
  /** Indian legal-metrology disclosures; every field is optional and an empty block is not rendered. */
@@ -12,6 +15,7 @@ export interface LegalInfo {
12
15
  netQuantity?: string;
13
16
  /** Name and address of the manufacturer, packer or importer. */
14
17
  manufacturer?: string;
18
+ /** Row value for the "Country of origin" line. */
15
19
  originCountry?: string;
16
20
  /** Line printed beside "MRP"; defaults to "Maximum retail price, inclusive of all taxes". */
17
21
  mrpNote?: string;
@@ -20,16 +24,27 @@ export interface LegalInfo {
20
24
  }
21
25
  /** Every string the sections render; override all of them for another language. */
22
26
  export interface DetailSectionsLabels {
27
+ /** Title of the description section. */
23
28
  description: string;
29
+ /** Title of the highlights section. */
24
30
  highlights: string;
31
+ /** Title of the specifications section. */
25
32
  specifications: string;
33
+ /** Title of the care section. */
26
34
  care: string;
35
+ /** Title of the shipping and returns section. */
27
36
  shipping: string;
37
+ /** Title of the legal and manufacturer section. */
28
38
  legal: string;
39
+ /** Row label for `legal.netQuantity`. */
29
40
  netQuantity: string;
41
+ /** Row label for `legal.manufacturer`. */
30
42
  manufacturer: string;
43
+ /** Row label for `legal.originCountry`. */
31
44
  originCountry: string;
45
+ /** Row label for the price note row (`legal.mrpNote` or `mrpIncludesTaxes`). */
32
46
  mrp: string;
47
+ /** Row label for `legal.customerCare`. */
33
48
  customerCare: string;
34
49
  /** Default `mrpNote`. */
35
50
  mrpIncludesTaxes: string;
@@ -38,21 +53,28 @@ export interface DetailSectionsLabels {
38
53
  export type DetailSectionsLayout = "accordion" | "tabs";
39
54
  /** Long-form product information: description, highlights, specifications, care, shipping and returns, and legal-metrology info. */
40
55
  export interface DetailSectionsProps {
56
+ /** Paragraph shown in the description section; the section is omitted when empty. */
41
57
  description?: string;
58
+ /** Bullet list with check icons in the highlights section; omitted when empty. */
42
59
  highlights?: string[];
60
+ /** Rows of the specifications table; the section is omitted when empty. */
43
61
  specs?: SpecItem[];
44
62
  /** Care instructions; a list renders as bullets. */
45
63
  care?: string | string[];
46
64
  /** Shipping and returns copy. */
47
65
  shipping?: ReactNode;
66
+ /** Legal-metrology disclosures; the section is omitted when no field is filled. */
48
67
  legal?: LegalInfo;
49
68
  /** Extra sections appended after the built-in ones, or replacing a built-in one with the same id (`description`, `highlights`, `specs`, `care`, `shipping`, `legal`). */
50
69
  sections?: DetailSection[];
70
+ /** `accordion` (default) or `tabs`. */
51
71
  layout?: DetailSectionsLayout;
52
72
  /** Section ids open on mount in `accordion` layout; defaults to the first section. */
53
73
  defaultOpenIds?: string[];
54
74
  /** Rows of the specifications table shown before "Show all". */
55
75
  specCollapsedCount?: number;
76
+ /** Overrides any subset of the rendered strings; unset keys keep their English default. */
56
77
  labels?: Partial<DetailSectionsLabels>;
78
+ /** Test id placed on the root wrapper. */
57
79
  "data-testid"?: string;
58
80
  }
@@ -1,5 +1,5 @@
1
1
  import { DrawerProps as ChakraDrawerProps, DrawerContentProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps } from "@chakra-ui/react";
2
- /** Only DrawerHeader/Body/Footer children render, matched by type one fragment deep; any other child is dropped (dev console.warn) — use `portalChildren`. */
2
+ /** Only DrawerHeader/Body/Footer children render, matched by type through nested Fragments; any other child is dropped (dev console.warn) — use `portalChildren`. */
3
3
  export type DrawerProps = Pick<ChakraDrawerProps, "isOpen" | "onClose" | "placement" | "size" | "id" | "variant" | "initialFocusRef" | "finalFocusRef" | "closeOnOverlayClick" | "closeOnEsc"> & {
4
4
  /** Defaults to "xl". */
5
5
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full";
@@ -3,6 +3,7 @@ import { ButtonProps } from "@chakra-ui/react";
3
3
  export type DropdownProps = {
4
4
  /** Rendered only for the default dropdownType="button" — has no effect under dropdownType="text" (use `text` there). */
5
5
  ButtonText?: string;
6
+ /** Menu rows in order; `id` and `label` are passed to `handleOptionSelect`, and `image` adds a leading icon. */
6
7
  options: Option[];
7
8
  /** Fires on click, Enter or Space; the menu closes and focus returns to the trigger. */
8
9
  handleOptionSelect: (id: string | number, label: string) => void;
@@ -5,6 +5,7 @@ type JoditEditorProps = ComponentProps<typeof JoditEditor>;
5
5
  export type EditorMergeField = {
6
6
  /** Dotted path the backend resolves, e.g. `candidate.name`. */
7
7
  path: string;
8
+ /** Text shown on the chip and in the Insert field menu. */
8
9
  label: string;
9
10
  /** Heading the field is listed under in the Insert field menu. */
10
11
  group?: string;
@@ -25,45 +26,70 @@ export type EditorMergeField = {
25
26
  };
26
27
  /** How a token is written in the stored HTML. */
27
28
  export type EditorTokenSyntax = {
29
+ /** Opening delimiter, e.g. `${`; matched literally. */
28
30
  open: string;
31
+ /** Closing delimiter, e.g. `}`; matched literally. */
29
32
  close: string;
30
33
  };
31
34
  /** Imperative handle for toolbar buttons and `apiRef`; every method works on the live editor. */
32
35
  export interface EditorApi {
36
+ /** Inserts raw HTML at the last remembered caret position, or at the cursor if none was recorded. */
33
37
  insertHTML(html: string): void;
38
+ /** Inserts a chip for the merge field `path` (a raw token when `mergeFields` is unset); an unknown path renders as an unknown-field chip. */
34
39
  insertField(path: string): void;
40
+ /** Returns the trimmed text of the last remembered selection, or an empty string when there is none. */
35
41
  getSelectionText(): string;
36
42
  /** Replaces every plain-text occurrence outside tokens and tags; returns the count. */
37
43
  replaceAll(text: string, path: string): number;
44
+ /** Counts plain-text occurrences of `text` outside tokens and tags that `replaceAll` would replace. */
38
45
  countOccurrences(text: string): number;
46
+ /** Moves keyboard focus into the editing area. */
39
47
  focus(): void;
40
48
  }
41
49
  /** An extra button in the strip above the editor. */
42
50
  export type EditorToolbarButton = {
51
+ /** Unique key; also forms the button's test id `editor-button-<id>`. */
43
52
  id: string;
53
+ /** Visible button text. */
44
54
  label: string;
55
+ /** Icon component reference (e.g. `Star`), not a rendered element; shown before the label. */
45
56
  icon?: ElementType;
46
57
  /** Read through a ref — a new function each render never re-creates the editor. */
47
58
  onClick: (api: EditorApi) => void;
59
+ /** Disables this button; it is also disabled while the editor is loading or read-only. */
48
60
  isDisabled?: boolean;
49
61
  };
50
62
  /** Every visible string of the merge-field UI; omit a key to keep its English default. */
51
63
  export type EditorLabels = Partial<{
52
64
  /** Accessible name of the editing area when no visible `label` is given. */
53
65
  editor: string;
66
+ /** Placeholder and accessible name of the Insert field menu. */
54
67
  insertField: string;
68
+ /** Text shown in the Insert field menu when it has no options. */
55
69
  noFields: string;
70
+ /** Text of the Make dynamic toolbar button. */
56
71
  makeDynamic: string;
72
+ /** Title of the Make dynamic dialog. */
57
73
  dynamicTitle: string;
74
+ /** Label of the field picker in the Make dynamic dialog. */
58
75
  dynamicField: string;
76
+ /** Placeholder of the field picker in the Make dynamic dialog. */
59
77
  dynamicFieldPlaceholder: string;
78
+ /** Receives the number of matches and returns the line shown under the picker, e.g. "3 occurrences will be replaced". */
60
79
  dynamicCount: (n: number) => string;
80
+ /** Text of the confirm button in the Make dynamic dialog. */
61
81
  dynamicReplace: string;
82
+ /** Message shown in the Make dynamic dialog when no text was selected. */
62
83
  dynamicNoSelection: string;
84
+ /** Receives the comma-joined unmatched token paths and returns the validation message shown under the editor. */
63
85
  unknownTokens: (list: string) => string;
86
+ /** Text of the cancel button in the Make dynamic dialog. */
64
87
  cancel: string;
88
+ /** Caption above the selected text in the Make dynamic dialog. */
65
89
  dynamicSelected: string;
90
+ /** Accessible name of the toolbar strip above the editor. */
66
91
  toolbar: string;
92
+ /** Receives a field label and returns the accessible name of its chip, e.g. "Field: Name". */
67
93
  fieldChip: (label: string) => string;
68
94
  }>;
69
95
  /** Props for the lazy-loaded Jodit wrapper; a `config.theme`/`config.popupRoot` you pass overrides this library's own dark-mode fix. */
@@ -72,13 +98,17 @@ export type EditorProps = Pick<JoditEditorProps, "value" | "className" | "onChan
72
98
  config?: JoditEditorProps["config"];
73
99
  /** `key` is dead (React reserves it, never reaches Jodit); `editorRef.current` stays null until the lazy chunk loads. */
74
100
  editorRef?: JoditEditorProps["ref"];
101
+ /** Reserved by React and never reaches Jodit; has no effect, so do not rely on it to remount the editor. */
75
102
  key?: string | number;
103
+ /** Visible label above the editor; clicking it focuses the editor, and it becomes the editor's accessible name. */
76
104
  label?: string;
105
+ /** Shows a required asterisk and sets `aria-required`; does not validate. */
77
106
  isRequired?: boolean;
78
107
  /** Hint under the editor; replaced by `errorMessage` while `error` is true. */
79
108
  helperText?: string;
80
109
  /** Marks the editor invalid; `errorMessage` shows only while this is true. */
81
110
  error?: boolean;
111
+ /** Message shown instead of `helperText` while `error` is true. */
82
112
  errorMessage?: string;
83
113
  /** Enables the Insert field menu, token chips and Make dynamic. */
84
114
  mergeFields?: EditorMergeField[];
@@ -92,8 +122,11 @@ export type EditorProps = Pick<JoditEditorProps, "value" | "className" | "onChan
92
122
  onUnknownTokens?: (paths: string[]) => void;
93
123
  /** Imperative API, available after the lazy chunk loads (`onReady` fires then). */
94
124
  apiRef?: Ref<EditorApi>;
125
+ /** Fires once the lazy Jodit chunk has loaded and the editor is ready, when `apiRef` becomes usable. */
95
126
  onReady?: () => void;
127
+ /** Overrides any subset of the UI strings; unset keys keep their English default. */
96
128
  labels?: EditorLabels;
129
+ /** Test id placed on the root wrapper. */
97
130
  "data-testid"?: string;
98
131
  };
99
132
  export {};
@@ -13,8 +13,11 @@ export declare function makeDynamic(html: string, selectedText: string, path: st
13
13
  };
14
14
  export declare function countOccurrences(html: string, selectedText: string, syntax?: EditorTokenSyntax): number;
15
15
  export type ChipContext = {
16
+ /** Merge fields used to resolve a path to its chip label and hover sample. */
16
17
  fields: EditorMergeField[];
18
+ /** Token delimiters the chips serialize back to. */
17
19
  syntax: EditorTokenSyntax;
20
+ /** Maps a field label to the chip's accessible name. */
18
21
  chipLabel: (label: string) => string;
19
22
  };
20
23
  export declare function chipHtml(path: string, { fields, syntax, chipLabel }: ChipContext): string;
@@ -10,21 +10,29 @@ type VerifyEmailOtpLabels = {
10
10
  };
11
11
  /** Props for the full OTP verification card (icon, title, resend link); for a bare input in your own layout use PinInput. */
12
12
  export type VerifyEmailOtpProps = {
13
+ /** Called when the Resend Code button is pressed. */
13
14
  resendMail: () => void;
15
+ /** Called with the digits typed so far on every change. */
14
16
  onChange: (value: string) => void;
15
17
  /** Fires once all `pins` cells are filled — a `pins` value that doesn't match the actual OTP length blocks or truncates completion. */
16
18
  onComplete: (value: string) => void;
19
+ /** Character shown in each empty cell; none by default. */
17
20
  placeholder?: string;
18
21
  /** Typed as required, but the implementation silently defaults to 5 if a caller bypasses the type and omits it. */
19
22
  pins: number;
23
+ /** Card heading; also the accessible name of the cell group when set. */
20
24
  title: string;
25
+ /** First line under the heading. */
21
26
  description: string;
22
27
  /** Second line under `description`. Defaults to "your new Pixel Account"; pass "" to drop the line. */
23
28
  subtitle?: string;
24
29
  /** Replaces the English UI text; any label left out keeps its default. */
25
30
  labels?: VerifyEmailOtpLabels;
31
+ /** Disables every cell. */
26
32
  isDisabled?: boolean;
33
+ /** Marks the cells invalid. */
27
34
  isInvalid?: boolean;
35
+ /** Inline style on the card's outer box. */
28
36
  styles?: React.CSSProperties;
29
37
  };
30
38
  export {};
@@ -2,7 +2,9 @@
2
2
  export type FilePreviewKind = "image" | "pdf" | "video" | "other";
3
3
  /** Props for FilePreview, a modal viewer that infers image/pdf/video/other from the file extension. */
4
4
  export interface FilePreviewProps {
5
+ /** Shows the modal. */
5
6
  isOpen: boolean;
7
+ /** Called on close button, Escape or overlay click. */
6
8
  onClose: () => void;
7
9
  /** Changing this while isOpen stays true does NOT reset zoom/rotation — remount via key={fileUrl}. */
8
10
  fileUrl: string;
@@ -21,10 +23,12 @@ export interface FilePreviewTriggerProps {
21
23
  fileUrl: string;
22
24
  /** Names the button "Preview <fileName>" ("Preview file" when omitted) and drives kind detection. */
23
25
  fileName?: string;
26
+ /** Forces a renderer; inferred from the file extension when omitted. */
24
27
  fileType?: FilePreviewKind;
25
28
  /** Thumbnail max width. */
26
29
  thumbWidth?: string;
27
30
  /** Thumbnail max height. */
28
31
  thumbHeight?: string;
32
+ /** Hides the download action inside the opened preview. */
29
33
  hideDownload?: boolean;
30
34
  }
@@ -2,6 +2,7 @@
2
2
  export type UploadedFile = {
3
3
  /** Random per pick, not derived from the file; the same file re-added gets a new id. */
4
4
  id: string;
5
+ /** Original file name with extension; its extension also labels the tile of a non-image file. */
5
6
  name: string;
6
7
  /** Bytes, while `maxTotalSize` is in MB. */
7
8
  size: number;
@@ -1,7 +1,9 @@
1
1
  import type { HTMLAttributes, ReactNode } from "react";
2
2
  /** One active filter chip; label is what's shown, id identifies it for removal. */
3
3
  export interface FilterBarActiveFilter {
4
+ /** Passed to `onRemoveFilter` when this chip's remove icon is clicked. */
4
5
  id: string | number;
6
+ /** Chip text. */
5
7
  label: string;
6
8
  }
7
9
  /** Search + filters + actions toolbar row; other `<div>` attributes land on the root. */
@@ -1,2 +1,3 @@
1
1
  import type { FormDrawerProps } from "./FormDrawerProps";
2
+ /** Sectioned create/edit form in a Drawer with error summary, sticky footer and discard-changes confirm. */
2
3
  export default function FormDrawer({ isOpen, onClose, title, description, sections, errors, isDirty, onSubmit, isSubmitting, isSubmitDisabled, submitLabel, cancelLabel, secondaryAction, size, labels, "data-testid": testId, }: FormDrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -51,6 +51,7 @@ const DEFAULT_LABELS = {
51
51
  discard: "Discard",
52
52
  keepEditing: "Keep editing",
53
53
  };
54
+ /** Sectioned create/edit form in a Drawer with error summary, sticky footer and discard-changes confirm. */
54
55
  function FormDrawer({ isOpen, onClose, title, description, sections, errors = [], isDirty, onSubmit, isSubmitting = false, isSubmitDisabled = false, submitLabel = "Save", cancelLabel = "Cancel", secondaryAction, size = "md", labels, "data-testid": testId = "form-drawer", }) {
55
56
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
56
57
  const uid = (0, react_1.useId)();
@@ -7,6 +7,7 @@ export type FormDrawerSection = {
7
7
  title?: string;
8
8
  /** Muted line under `title`; ignored without a title. */
9
9
  description?: string;
10
+ /** Body of the section, rendered below its title and description. */
10
11
  content: ReactNode;
11
12
  };
12
13
  /** Every user-facing string FormDrawer owns; pass the ones you localise. */
@@ -24,6 +25,7 @@ export type FormDrawerLabels = {
24
25
  };
25
26
  /** Sectioned create/edit form in a Drawer: error summary, sticky footer, and a discard-changes confirm when closing while dirty. */
26
27
  export interface FormDrawerProps {
28
+ /** Controlled open state; the drawer stays closed until this is true. */
27
29
  isOpen: boolean;
28
30
  /** Called once the user has really closed: clean close, or Discard confirmed. Never called while `isSubmitting`. */
29
31
  onClose: () => void;
@@ -31,6 +33,7 @@ export interface FormDrawerProps {
31
33
  title: string;
32
34
  /** Muted line under the title. */
33
35
  description?: string;
36
+ /** Form blocks rendered top to bottom in array order. */
34
37
  sections: FormDrawerSection[];
35
38
  /** Validation messages shown as a summary above the form; the summary takes focus after a submit that leaves any. */
36
39
  errors?: string[];
@@ -1,3 +1,4 @@
1
1
  import type { FormFieldProps } from "./FormFieldProps";
2
+ /** Wires a label, required marker, helper and error text to one control through ids and aria attributes. */
2
3
  declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & import("react").RefAttributes<HTMLDivElement>>;
3
4
  export default FormField;
@@ -15,6 +15,7 @@ const joinIds = (...ids) => [...new Set(ids.flatMap((value) => { var _a; return
15
15
  const asWirableElement = (children) => typeof children !== "function" && (0, react_1.isValidElement)(children) && children.type !== react_1.Fragment
16
16
  ? children
17
17
  : undefined;
18
+ /** Wires a label, required marker, helper and error text to one control through ids and aria attributes. */
18
19
  const FormField = (0, react_1.forwardRef)(function FormField({ label, id, isRequired = false, error = false, errorMessage, helperText, layout = "vertical", labelWidth = "12rem", children, ...rest }, ref) {
19
20
  var _a;
20
21
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
@@ -1,18 +1,22 @@
1
1
  import type { HTMLAttributes, ReactElement, ReactNode } from "react";
2
2
  /** The wiring FormField hands its control; spread it onto the focusable element. */
3
3
  export interface FormFieldControlProps {
4
+ /** Id for the control; the label, helper and error ids derive from it. */
4
5
  id: string;
5
6
  /** Points at the field's label element, so composites that a `<label for>` cannot name still get one. */
6
7
  "aria-labelledby": string;
7
8
  /** The error when shown, else the helper text, plus any description the child already had. */
8
9
  "aria-describedby": string | undefined;
10
+ /** True while `error` is set, else undefined. */
9
11
  "aria-invalid": true | undefined;
12
+ /** True when the field is required, else undefined. */
10
13
  "aria-required": true | undefined;
11
14
  }
12
15
  /** Where the label sits relative to the control. */
13
16
  export type FormFieldLayout = "vertical" | "horizontal";
14
17
  /** Label, required marker, helper text and error message around any one control; other `<div>` attributes land on the root. */
15
18
  export interface FormFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "id" | "children" | "color" | "dangerouslySetInnerHTML"> {
19
+ /** Label text, shown beside or above the control. */
16
20
  label: string;
17
21
  /** The control's id, which the label and message ids derive from; defaults to the child element's own `id`, else a generated one. */
18
22
  id?: string;
@@ -2,5 +2,6 @@ import { FC } from "react";
2
2
  import type { ColorScale } from "../../Theme/tokens/types";
3
3
  import { HeaderProps } from "./HeaderProps";
4
4
  export declare const pickActiveAccent: (primary: ColorScale, canvas: string) => string;
5
+ /** Sticky top bar with logo, page links, hover dropdowns and a collapsible mobile menu; colours default to the sidebar tokens. */
5
6
  declare const Header: FC<HeaderProps>;
6
7
  export default Header;
@@ -58,6 +58,7 @@ const pickActiveAccent = (primary, canvas) => {
58
58
  return primary[found !== null && found !== void 0 ? found : order[order.length - 1]];
59
59
  };
60
60
  exports.pickActiveAccent = pickActiveAccent;
61
+ /** Sticky top bar with logo, page links, hover dropdowns and a collapsible mobile menu; colours default to the sidebar tokens. */
61
62
  const Header = ({ logo, menuItems, rightSlot, active, colors, boxShadow, onMobileMenuClose }) => {
62
63
  var _a, _b, _c, _d, _e;
63
64
  const { isOpen, onOpen, onClose } = (0, react_1.useDisclosure)();