@tap-payments/os-micro-frontend-shared 0.1.491 → 0.1.492-test.2

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 (400) hide show
  1. package/build/{chunk-HQMP5K4E.js → chunk-7JK4Z6IQ.js} +1 -1
  2. package/build/{chunk-ZTFNCBDJ.js → chunk-C5QNPNNY.js} +1 -1
  3. package/build/chunk-DSXKDOAD.js +1 -0
  4. package/build/chunk-LKNVJTYP.js +1 -0
  5. package/build/chunk-VRUT6M23.js +1 -0
  6. package/build/components/ActionMenu/ActionMenuDropDown.d.ts +1 -1
  7. package/build/components/ActionMenu/ActionMenuItem.d.ts +1 -1
  8. package/build/components/ActionMenu/type.d.ts +1 -1
  9. package/build/components/Amount/TotalAmount/TotalAmount.d.ts +1 -1
  10. package/build/components/Amount/index.js +1 -1
  11. package/build/components/AmountConversionFilter/AmountConversionFilter.d.ts +1 -1
  12. package/build/components/AmountConversionFilter/index.js +1 -1
  13. package/build/components/AmountInput/AmountInput.d.ts +1 -1
  14. package/build/components/AmountInput/index.js +1 -1
  15. package/build/components/AmountStatusChip/AmountStatusChip.d.ts +1 -1
  16. package/build/components/AmountStatusChip/style.d.ts +1 -1
  17. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  18. package/build/components/AppServices/AppServices.d.ts +1 -1
  19. package/build/components/AppServices/index.js +1 -1
  20. package/build/components/AppServicesBar/AppServicesBar.d.ts +1 -1
  21. package/build/components/AppServicesBar/index.js +1 -1
  22. package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +1 -1
  23. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +1 -1
  24. package/build/components/Autocomplete/Autocomplete.d.ts +1 -1
  25. package/build/components/BrandLogo/index.js +1 -1
  26. package/build/components/Chip/style.d.ts +0 -1
  27. package/build/components/CopyImage/index.js +1 -1
  28. package/build/components/CountBadge/style.d.ts +0 -1
  29. package/build/components/CountryFilter/index.js +1 -1
  30. package/build/components/CurrencyFilter/CurrencyFilter.d.ts +1 -1
  31. package/build/components/CurrencyFilter/index.js +1 -1
  32. package/build/components/Customer/CustomerForms/CustomerEmailForm.d.ts +1 -1
  33. package/build/components/Customer/CustomerForms/CustomerFullInfo.d.ts +1 -1
  34. package/build/components/Customer/CustomerForms/CustomerFullInfoForm.d.ts +1 -1
  35. package/build/components/Customer/CustomerForms/CustomerPhoneNumberForm.d.ts +1 -1
  36. package/build/components/Customer/index.js +1 -1
  37. package/build/components/DateFilter/DateFilter.d.ts +1 -1
  38. package/build/components/DateFilter/index.js +1 -1
  39. package/build/components/DeviceIcon/DeviceIcon.d.ts +1 -1
  40. package/build/components/DeviceIcon/style.d.ts +1 -1
  41. package/build/components/Dialog/style.d.ts +0 -1
  42. package/build/components/Discount/DiscountDropdown/DiscountDropdown.d.ts +1 -1
  43. package/build/components/Discount/DiscountRateDropdown/DiscountRateDropdown.d.ts +1 -1
  44. package/build/components/Discount/TotalDiscount/TotalDiscount.d.ts +1 -1
  45. package/build/components/Discount/index.js +1 -1
  46. package/build/components/Discount/utils.d.ts +1 -1
  47. package/build/components/DropdownButton/type.d.ts +1 -1
  48. package/build/components/FileInputPreview/index.js +1 -1
  49. package/build/components/FileInputPreview/type.d.ts +1 -1
  50. package/build/components/FileInputPreview/utils.d.ts +1 -1
  51. package/build/components/FilePreview/type.d.ts +1 -1
  52. package/build/components/FileUploader/type.d.ts +1 -1
  53. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.d.ts +1 -1
  54. package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +1 -1
  55. package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +2 -2
  56. package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.d.ts +1 -1
  57. package/build/components/FilterDropdown/index.js +1 -1
  58. package/build/components/FilterDropdown/type.d.ts +1 -1
  59. package/build/components/Filters/index.js +1 -1
  60. package/build/components/FlagDetails/index.js +1 -1
  61. package/build/components/FlippingCard/style.d.ts +0 -1
  62. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  63. package/build/components/InputBase/AmountInputBase/AmountInputBase.d.ts +1 -1
  64. package/build/components/InputBase/AmountInputBase/CurrencyList/CurrencyList.d.ts +1 -1
  65. package/build/components/InputBase/PhoneInputBase/CountriesList/CountriesList.d.ts +1 -1
  66. package/build/components/InputBase/PhoneInputBase/PhoneInputBase.d.ts +1 -1
  67. package/build/components/InputBase/SelectBase/DefaultClearIcon.d.ts +5 -0
  68. package/build/components/InputBase/SelectBase/DefaultSelectIcon.d.ts +5 -0
  69. package/build/components/InputBase/SelectBase/SelectBase.d.ts +11 -1
  70. package/build/components/InputBase/SelectBase/SelectBaseMultiple.d.ts +7 -1
  71. package/build/components/InputBase/SelectBase/hasSelectionValue.d.ts +2 -0
  72. package/build/components/InputBase/index.js +1 -1
  73. package/build/components/Inputs/CountriesDropDown/CountriesDropdown.d.ts +1 -1
  74. package/build/components/Inputs/SearchInput/SearchInput.d.ts +1 -1
  75. package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +0 -1
  76. package/build/components/JSONViewer/style.d.ts +0 -1
  77. package/build/components/LanguageDropdown/index.js +1 -1
  78. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  79. package/build/components/ListColumnFilter/ListColumnFilter.d.ts +1 -1
  80. package/build/components/ListColumnFilter/index.js +1 -1
  81. package/build/components/MainContainer/MainContainer.d.ts +1 -1
  82. package/build/components/MaskedText/type.d.ts +1 -1
  83. package/build/components/MerchantCurrencyDropdown/MerchantCurrencyDropdown.d.ts +1 -1
  84. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  85. package/build/components/MerchantLogo/index.js +1 -1
  86. package/build/components/MerchantLogo/style.d.ts +1 -1
  87. package/build/components/MerchantsDropdown/BrandItem.d.ts +1 -1
  88. package/build/components/MerchantsDropdown/EntityItem.d.ts +1 -1
  89. package/build/components/MerchantsDropdown/EntityList.d.ts +1 -1
  90. package/build/components/MerchantsDropdown/MerchantItem.d.ts +2 -2
  91. package/build/components/MerchantsDropdown/MerchantsList.d.ts +1 -1
  92. package/build/components/MerchantsDropdown/hooks.d.ts +1 -1
  93. package/build/components/MerchantsDropdown/index.js +1 -1
  94. package/build/components/MerchantsDropdown/type.d.ts +1 -1
  95. package/build/components/MultiSelectDropdownButton/components/StatusButton.d.ts +1 -1
  96. package/build/components/MultiSelectDropdownButton/type.d.ts +1 -1
  97. package/build/components/MultiSelectStatusButton/style.d.ts +1 -1
  98. package/build/components/MultiSelectStatusButton/type.d.ts +1 -1
  99. package/build/components/NestedDropdown/NestedDropdown.d.ts +1 -1
  100. package/build/components/NestedDropdown/NestedMenuItem.d.ts +1 -1
  101. package/build/components/NestedDropdown/types.d.ts +1 -1
  102. package/build/components/PartnersFilter/index.js +1 -1
  103. package/build/components/PaymentSourceFilter/AuthenticationMode.d.ts +1 -1
  104. package/build/components/PaymentSourceFilter/PaymentInitiated.d.ts +2 -2
  105. package/build/components/PaymentSourceFilter/PaymentMethod.d.ts +1 -1
  106. package/build/components/PaymentSourceFilter/PaymentMethods.d.ts +1 -1
  107. package/build/components/PaymentSourceFilter/PaymentSchemes.d.ts +1 -1
  108. package/build/components/PaymentSourceFilter/PaymentSourceFilter.d.ts +3 -3
  109. package/build/components/PaymentSourceFilter/index.js +1 -1
  110. package/build/components/PhoneFilter/PhoneFilter.d.ts +1 -1
  111. package/build/components/PhoneFilter/index.js +1 -1
  112. package/build/components/RFH/Inputs/AmountInput/type.d.ts +1 -1
  113. package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +1 -1
  114. package/build/components/RFH/Inputs/FormSelect/FormSelect.d.ts +2 -2
  115. package/build/components/RFH/Inputs/FormSelect/type.d.ts +1 -1
  116. package/build/components/RFH/Inputs/MultiSelect/MultiSelect.d.ts +0 -4
  117. package/build/components/RFH/Inputs/MultiSelect/style.d.ts +3 -0
  118. package/build/components/RFH/Inputs/PhoneInput/PhoneInput.d.ts +1 -1
  119. package/build/components/RFH/index.js +1 -1
  120. package/build/components/RangeCalender/components/Hijri/Hijri.d.ts +1 -1
  121. package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +1 -1
  122. package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +1 -1
  123. package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +1 -1
  124. package/build/components/RangeCalender/index.js +1 -1
  125. package/build/components/RangeCalender/type.d.ts +1 -1
  126. package/build/components/ReceiptsViewer/ReceiptsViewer.d.ts +1 -1
  127. package/build/components/ReceiptsViewer/index.js +1 -1
  128. package/build/components/ReceiptsViewer/type.d.ts +1 -1
  129. package/build/components/ReferenceTypeFilter/ReferenceTypeFilter.d.ts +1 -1
  130. package/build/components/ReferenceTypeFilter/index.js +1 -1
  131. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  132. package/build/components/SalesChannelFilter/SalesChannelFilter.d.ts +1 -1
  133. package/build/components/SalesChannelFilter/index.js +1 -1
  134. package/build/components/Sandbox/Sandbox.d.ts +1 -1
  135. package/build/components/SearchButton/styles.d.ts +0 -1
  136. package/build/components/SelectDropdown/index.js +1 -1
  137. package/build/components/SelectWithSearch/SelectWithSearch.d.ts +1 -1
  138. package/build/components/SelectWithSearch/index.js +1 -1
  139. package/build/components/SelectWithSearch/type.d.ts +7 -2
  140. package/build/components/StatusBar/StatusBar.d.ts +1 -1
  141. package/build/components/StatusBar/type.d.ts +2 -2
  142. package/build/components/StatusButton/type.d.ts +1 -1
  143. package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +2 -2
  144. package/build/components/StatusChipWithCopy/utils.d.ts +1 -1
  145. package/build/components/StatusFilter/StatusFilter.d.ts +2 -2
  146. package/build/components/StatusFilter/index.js +1 -1
  147. package/build/components/StatusFilter/utils.d.ts +1 -1
  148. package/build/components/StatusGroupChips/style.d.ts +1 -1
  149. package/build/components/StatusGroupChips/type.d.ts +1 -1
  150. package/build/components/StatusIcons/AuthIcons/constants.d.ts +1 -1
  151. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  152. package/build/components/StatusIcons/AuthIcons/type.d.ts +1 -1
  153. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  154. package/build/components/StatusIcons/AuthorizationAutoIcons/type.d.ts +1 -1
  155. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +2 -2
  156. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +2 -2
  157. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  158. package/build/components/StatusIcons/DestinationIcon/DestinationIcon.d.ts +1 -1
  159. package/build/components/StatusIcons/DeviceIcon/DeviceIcon.d.ts +1 -1
  160. package/build/components/StatusIcons/GeographyIcon/style.d.ts +1 -1
  161. package/build/components/StatusIcons/IssuerIcon/style.d.ts +1 -1
  162. package/build/components/StatusIcons/IssuerIcon/type.d.ts +1 -1
  163. package/build/components/StatusIcons/PayoutIcon/PayoutIcon.d.ts +2 -2
  164. package/build/components/StatusIcons/RefundIcon/RefundIcon.d.ts +2 -2
  165. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  166. package/build/components/StatusIcons/SourceIcons/type.d.ts +1 -1
  167. package/build/components/StatusIcons/index.js +1 -1
  168. package/build/components/TableCells/CustomCells/ActionCell/components/ActionsColumn.d.ts +1 -1
  169. package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -1
  170. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -2
  171. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  172. package/build/components/TableCells/CustomCells/AmountCell/components/ConversionTypeLabel.d.ts +1 -1
  173. package/build/components/TableCells/CustomCells/AmountCell/components/CurrencyInfo.d.ts +1 -1
  174. package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +1 -1
  175. package/build/components/TableCells/CustomCells/AmountCell/type.d.ts +1 -1
  176. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  177. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  178. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  179. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  180. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  181. package/build/components/TableCells/CustomCells/BalanceCell/type.d.ts +1 -1
  182. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  183. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  184. package/build/components/TableCells/CustomCells/CustomerCell/style.d.ts +1 -1
  185. package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -1
  186. package/build/components/TableCells/CustomCells/DestinationCell/styled.d.ts +1 -1
  187. package/build/components/TableCells/CustomCells/DestinationCell/type.d.ts +1 -1
  188. package/build/components/TableCells/CustomCells/DestinationStatusCell/constant.d.ts +1 -1
  189. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  190. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  191. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  192. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  193. package/build/components/TableCells/CustomCells/InvoiceStatusCell/ChargeStatusIcon.d.ts +1 -1
  194. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  195. package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.d.ts +1 -1
  196. package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +1 -1
  197. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  198. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  199. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  200. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  201. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  202. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  203. package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +1 -1
  204. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  205. package/build/components/TableCells/CustomCells/SalesChannelCell/type.d.ts +1 -1
  206. package/build/components/TableCells/CustomCells/SalesChannelCell/utils.d.ts +1 -1
  207. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  208. package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/AuthenticationMode.d.ts +1 -1
  209. package/build/components/TableCells/CustomCells/StatusCell/constant.d.ts +1 -1
  210. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  211. package/build/components/TableCells/CustomCells/TextWithChipCell/TextWithChipCell.d.ts +2 -2
  212. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  213. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  214. package/build/components/TableCells/CustomCells/type.d.ts +2 -2
  215. package/build/components/TableCells/index.js +1 -1
  216. package/build/components/TableHeader/TableHeader.d.ts +1 -1
  217. package/build/components/TableHeader/TableModeButton.d.ts +1 -1
  218. package/build/components/TableHeader/TableView/ColumnItem.d.ts +1 -1
  219. package/build/components/TableHeader/TableView/hooks/useColumnItem.d.ts +1 -1
  220. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +1 -1
  221. package/build/components/TableHeader/TableView/hooks/useCustomTableViews.d.ts +1 -1
  222. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +1 -1
  223. package/build/components/TableHeader/TableView/hooks/useViewColumns.d.ts +1 -1
  224. package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +1 -1
  225. package/build/components/TableHeader/TableView/hooks/useViewsMenu.d.ts +1 -1
  226. package/build/components/TableHeader/TableView/types.d.ts +1 -1
  227. package/build/components/TableHeader/TableView/utils/columnState.d.ts +1 -1
  228. package/build/components/TableHeader/TableView/utils/customTableViews.d.ts +1 -1
  229. package/build/components/TableHeader/TableView/utils/layoutTransform.d.ts +1 -1
  230. package/build/components/TableHeader/TableView/utils/templateToColumnsView.d.ts +1 -1
  231. package/build/components/TableHeader/TableView/utils/viewMenu.d.ts +1 -1
  232. package/build/components/TableHeader/index.js +1 -1
  233. package/build/components/TableHeader/type.d.ts +3 -3
  234. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  235. package/build/components/TableReports/index.js +1 -1
  236. package/build/components/TableReports/style.d.ts +0 -1
  237. package/build/components/TooltipChip/TooltipChip.d.ts +2 -2
  238. package/build/components/TooltipChip/style.d.ts +1 -1
  239. package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +1 -1
  240. package/build/components/TreeDropdown/index.js +1 -1
  241. package/build/components/TreeDropdown/type.d.ts +1 -1
  242. package/build/components/VAT/TotalVAT/TotalVAT.d.ts +1 -1
  243. package/build/components/VAT/VATDropdown/VATDropdown.d.ts +1 -1
  244. package/build/components/VAT/VATRateDropdown/VATRateDropdown.d.ts +1 -1
  245. package/build/components/VAT/index.js +1 -1
  246. package/build/components/VAT/utils.d.ts +1 -1
  247. package/build/components/VerificationIcon/index.js +1 -1
  248. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  249. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeaderCell.d.ts +1 -1
  250. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.d.ts +1 -1
  251. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableNoData.d.ts +1 -1
  252. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableRowLoading.d.ts +1 -1
  253. package/build/components/VirtualTables/SheetViewVirtualTable/components/VirtualTable.d.ts +1 -1
  254. package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/hooks/useColumnResizeWithPinned.d.ts +13 -13
  255. package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/types/index.d.ts +1 -1
  256. package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/utils/resize.d.ts +1 -1
  257. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedColumns.d.ts +1 -1
  258. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedColumnsWidths.d.ts +1 -1
  259. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useVirtualTableContainer.d.ts +1 -1
  260. package/build/components/VirtualTables/SheetViewVirtualTable/types.d.ts +1 -1
  261. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  262. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
  263. package/build/components/VirtualTables/components/ColumnFilter/Inputs/Inputs.d.ts +1 -1
  264. package/build/components/VirtualTables/components/ColumnFilter/List/List.d.ts +1 -1
  265. package/build/components/VirtualTables/components/ColumnFilter/type.d.ts +1 -1
  266. package/build/components/VirtualTables/components/ColumnSort/ColumnSort.d.ts +1 -1
  267. package/build/components/VirtualTables/components/TableFooter/TableFooter.d.ts +1 -1
  268. package/build/components/VirtualTables/components/TableHeader/components/TableCell/TableCell.d.ts +2 -2
  269. package/build/components/VirtualTables/components/TableHeader/type.d.ts +1 -1
  270. package/build/components/VirtualTables/components/TableLoading.d.ts +1 -1
  271. package/build/components/VirtualTables/components/TableNoData.d.ts +1 -1
  272. package/build/components/VirtualTables/components/TableNoDataWithCard.d.ts +1 -1
  273. package/build/components/VirtualTables/components/TableRow.d.ts +1 -1
  274. package/build/components/VirtualTables/components/TableRowLoading.d.ts +1 -1
  275. package/build/components/VirtualTables/components/style.d.ts +0 -1
  276. package/build/components/VirtualTables/components/virtualScroll/ListItemWrapper.d.ts +1 -1
  277. package/build/components/VirtualTables/hooks/useColumnFilter.d.ts +1 -1
  278. package/build/components/WindowSideBar/index.js +1 -1
  279. package/build/components/index.js +1 -1
  280. package/build/constants/segment.d.ts +1 -1
  281. package/build/constants/timezones.d.ts +1 -1
  282. package/build/demo/TapOSIconsGallery/style.d.ts +1 -1
  283. package/build/docs/.storybook/story-utils.d.ts +19 -0
  284. package/build/docs/.storybook/story-utils.js +96 -0
  285. package/build/hooks/useAppsInfo.d.ts +3 -3
  286. package/build/hooks/useIsParameterSelected.d.ts +1 -1
  287. package/build/hooks/useSelectedMerchantDetails.d.ts +2 -2
  288. package/build/hooks/useToast.d.ts +1 -1
  289. package/build/index.js +1 -1
  290. package/build/theme/theme.d.ts +1 -1
  291. package/build/theme/typography.d.ts +1 -1
  292. package/build/types/appEvents.d.ts +1 -1
  293. package/build/types/apps.d.ts +1 -1
  294. package/build/types/cell.d.ts +2 -2
  295. package/build/types/document.d.ts +1 -1
  296. package/build/types/invoice.d.ts +1 -1
  297. package/build/types/refund.d.ts +1 -1
  298. package/build/types/table.d.ts +2 -2
  299. package/build/types/toggleOptions.d.ts +1 -1
  300. package/build/types/views.d.ts +1 -1
  301. package/build/utils/billing.d.ts +1 -1
  302. package/build/utils/columns.d.ts +1 -1
  303. package/build/utils/conversion.d.ts +1 -1
  304. package/build/utils/currency.d.ts +1 -1
  305. package/build/utils/day.d.ts +1 -1
  306. package/build/utils/entity.d.ts +1 -1
  307. package/build/utils/error.d.ts +1 -1
  308. package/build/utils/file.d.ts +1 -1
  309. package/build/utils/freshdesk.d.ts +1 -1
  310. package/build/utils/language.d.ts +1 -1
  311. package/build/utils/localStorage.d.ts +1 -1
  312. package/build/utils/merchant.d.ts +1 -1
  313. package/build/utils/merchantSource.d.ts +1 -1
  314. package/build/utils/navigation.d.ts +3 -3
  315. package/build/utils/segment.d.ts +1 -1
  316. package/build/utils/skeletonColumns.d.ts +1 -1
  317. package/build/utils/table.d.ts +1 -1
  318. package/build/utils/views.d.ts +1 -1
  319. package/docs/.storybook/main.ts +23 -0
  320. package/docs/.storybook/preview.tsx +106 -0
  321. package/docs/.storybook/story-utils.tsx +196 -0
  322. package/docs/01-overview.md +158 -0
  323. package/docs/02-setup.md +326 -0
  324. package/docs/03-architecture.md +438 -0
  325. package/docs/04-component-guide.md +133 -0
  326. package/docs/05-component-development.md +173 -0
  327. package/docs/README.md +38 -0
  328. package/docs/stories/components/Accordion.stories.tsx +302 -0
  329. package/docs/stories/components/AccordionAdapter.stories.tsx +201 -0
  330. package/docs/stories/components/AccountDropdown.stories.tsx +113 -0
  331. package/docs/stories/components/AnimatedSpinnerIcon.stories.tsx +54 -0
  332. package/docs/stories/components/BackgroundAnimation.stories.tsx +139 -0
  333. package/docs/stories/components/BetaBanner.stories.tsx +170 -0
  334. package/docs/stories/components/Button.stories.tsx +132 -0
  335. package/docs/stories/components/CardEmptyState.stories.tsx +43 -0
  336. package/docs/stories/components/CardHeadline.stories.tsx +208 -0
  337. package/docs/stories/components/Chip.stories.tsx +106 -0
  338. package/docs/stories/components/CircularProgressWithLabel.stories.tsx +111 -0
  339. package/docs/stories/components/Collapse.stories.tsx +100 -0
  340. package/docs/stories/components/CountBadge.stories.tsx +115 -0
  341. package/docs/stories/components/CountryFlag.stories.tsx +91 -0
  342. package/docs/stories/components/CurrencySymbol.stories.tsx +108 -0
  343. package/docs/stories/components/DeviceIcon.stories.tsx +122 -0
  344. package/docs/stories/components/Dialog.stories.tsx +270 -0
  345. package/docs/stories/components/DisplayAmount.stories.tsx +102 -0
  346. package/docs/stories/components/DockButton.stories.tsx +118 -0
  347. package/docs/stories/components/ExpandableSideBar.stories.tsx +120 -0
  348. package/docs/stories/components/FlippingCard.stories.tsx +122 -0
  349. package/docs/stories/components/HeatMap.stories.tsx +199 -0
  350. package/docs/stories/components/IconWithBadge.stories.tsx +136 -0
  351. package/docs/stories/components/JSONViewer.stories.tsx +92 -0
  352. package/docs/stories/components/LeftPeekRightExpandingChip.stories.tsx +127 -0
  353. package/docs/stories/components/Loader.stories.tsx +116 -0
  354. package/docs/stories/components/NoInternet.stories.tsx +43 -0
  355. package/docs/stories/components/ProgressBar.stories.tsx +99 -0
  356. package/docs/stories/components/ProgressRing.stories.tsx +139 -0
  357. package/docs/stories/components/SimpleDialog.stories.tsx +170 -0
  358. package/docs/stories/components/Skeleton.stories.tsx +253 -0
  359. package/docs/stories/components/StatusButton.stories.tsx +84 -0
  360. package/docs/stories/components/StatusChip.stories.tsx +149 -0
  361. package/docs/stories/components/StatusLabel.stories.tsx +85 -0
  362. package/docs/stories/components/Text.stories.tsx +110 -0
  363. package/docs/stories/components/Toaster.stories.tsx +65 -0
  364. package/docs/stories/components/Tooltip.stories.tsx +218 -0
  365. package/docs/stories/components/TooltipChip.stories.tsx +104 -0
  366. package/docs/stories/components/WindowAppIcon.stories.tsx +76 -0
  367. package/docs/stories/components/inputs/ActionMenu.stories.tsx +125 -0
  368. package/docs/stories/components/inputs/AmountInput.stories.tsx +103 -0
  369. package/docs/stories/components/inputs/Autocomplete.stories.tsx +209 -0
  370. package/docs/stories/components/inputs/Calender.stories.tsx +105 -0
  371. package/docs/stories/components/inputs/Checkbox.stories.tsx +78 -0
  372. package/docs/stories/components/inputs/ColorPicker.stories.tsx +160 -0
  373. package/docs/stories/components/inputs/CopyImage.stories.tsx +116 -0
  374. package/docs/stories/components/inputs/CountryFilter.stories.tsx +100 -0
  375. package/docs/stories/components/inputs/CurrencyFilter.stories.tsx +140 -0
  376. package/docs/stories/components/inputs/DateFilter.stories.tsx +144 -0
  377. package/docs/stories/components/inputs/DropdownButton.stories.tsx +187 -0
  378. package/docs/stories/components/inputs/DropdownMenu.stories.tsx +282 -0
  379. package/docs/stories/components/inputs/FormSelect.stories.tsx +235 -0
  380. package/docs/stories/components/inputs/IOSSwitch.stories.tsx +95 -0
  381. package/docs/stories/components/inputs/Input.stories.tsx +121 -0
  382. package/docs/stories/components/inputs/InputNumber.stories.tsx +163 -0
  383. package/docs/stories/components/inputs/MerchantCurrencyDropdown.stories.tsx +192 -0
  384. package/docs/stories/components/inputs/MultiSelect.stories.tsx +369 -0
  385. package/docs/stories/components/inputs/MultiSelectWithSearch.stories.tsx +141 -0
  386. package/docs/stories/components/inputs/NestedDropdown.stories.tsx +143 -0
  387. package/docs/stories/components/inputs/OTPInput.stories.tsx +140 -0
  388. package/docs/stories/components/inputs/PartnersFilter.stories.tsx +114 -0
  389. package/docs/stories/components/inputs/RadioButton.stories.tsx +135 -0
  390. package/docs/stories/components/inputs/RadioGroup.stories.tsx +145 -0
  391. package/docs/stories/components/inputs/RangeCalender.stories.tsx +179 -0
  392. package/docs/stories/components/inputs/SearchListInput.stories.tsx +87 -0
  393. package/docs/stories/components/inputs/SelectDropdown.stories.tsx +153 -0
  394. package/docs/stories/components/inputs/SelectWithSearch.stories.tsx +290 -0
  395. package/docs/stories/components/inputs/Timepicker.stories.tsx +91 -0
  396. package/docs/stories/components/inputs/ToggleButtons.stories.tsx +242 -0
  397. package/package.json +4 -3
  398. package/build/chunk-CC4HU4H6.js +0 -1
  399. package/build/chunk-NET3U5QO.js +0 -1
  400. package/build/chunk-QLEUEVEZ.js +0 -1
@@ -0,0 +1,104 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
+ import Box from '@mui/material/Box'
3
+ import { TooltipChip } from '@components/TooltipChip'
4
+ import { StoryTable, StoryThead, StoryTbody, StoryRow, StoryHeaderCell, StoryRowLabel, StoryCell, StoryHint } from '@storybook-utils'
5
+
6
+ const meta: Meta<typeof TooltipChip> = {
7
+ title: 'Components/TooltipChip',
8
+ component: TooltipChip,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ title: { control: 'text', description: 'Tooltip content shown on hover' },
12
+ children: { control: 'text', description: 'Label displayed inside the chip' },
13
+ },
14
+ parameters: {
15
+ layout: 'padded',
16
+ controls: { expanded: true },
17
+ },
18
+ decorators: [
19
+ (Story) => (
20
+ <Box sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width: '100%', minHeight: 80 }}>
21
+ <Story />
22
+ </Box>
23
+ ),
24
+ ],
25
+ }
26
+
27
+ export default meta
28
+
29
+ type Story = StoryObj<typeof TooltipChip>
30
+
31
+ // ──────────────────────────────────────────────
32
+ // Focused / named stories
33
+
34
+ export const Base: Story = {
35
+ args: {
36
+ title: 'Tooltip content',
37
+ children: 'Hover me',
38
+ },
39
+ }
40
+
41
+ export const LongLabel: Story = {
42
+ args: {
43
+ title: 'This is a longer tooltip with more detail',
44
+ children: 'Transaction ID: abc123',
45
+ },
46
+ }
47
+
48
+ export const RichTooltip: Story = {
49
+ args: {
50
+ title: (
51
+ <Box>
52
+ <strong>Status:</strong> Captured
53
+ <br />
54
+ <span>Last updated: Today</span>
55
+ </Box>
56
+ ),
57
+ children: 'Status info',
58
+ },
59
+ }
60
+
61
+ // ──────────────────────────────────────────────
62
+ // Kitchen sink
63
+
64
+ const tableColumns = ['USE CASE', 'CHIP'] as const
65
+
66
+ const rows: Array<{ label: string; title: string; content: string }> = [
67
+ { label: 'Short label', title: 'Short tooltip', content: 'Label' },
68
+ { label: 'Transaction ID', title: 'Click to copy the full ID', content: 'abc123...xyz' },
69
+ { label: 'Status', title: 'Payment was captured successfully', content: 'CAPTURED' },
70
+ { label: 'Error code', title: 'Insufficient funds — contact your bank', content: 'ERR-402' },
71
+ ]
72
+
73
+ export const AllVariants: Story = {
74
+ name: 'all variants',
75
+ decorators: [],
76
+ render: () => (
77
+ <Box sx={{ maxWidth: 640, mx: 'auto' }}>
78
+ <StoryTable>
79
+ <StoryThead>
80
+ <StoryRow>
81
+ {tableColumns.map((header, index) => (
82
+ <StoryHeaderCell key={header} first={index === 0}>
83
+ {header}
84
+ </StoryHeaderCell>
85
+ ))}
86
+ </StoryRow>
87
+ </StoryThead>
88
+
89
+ <StoryTbody>
90
+ {rows.map(({ label, title, content }) => (
91
+ <StoryRow key={label}>
92
+ <StoryRowLabel>{label}</StoryRowLabel>
93
+ <StoryCell>
94
+ <TooltipChip title={title}>{content}</TooltipChip>
95
+ </StoryCell>
96
+ </StoryRow>
97
+ ))}
98
+ </StoryTbody>
99
+ </StoryTable>
100
+
101
+ <StoryHint>Hover any chip to see its tooltip. The title prop accepts any ReactNode.</StoryHint>
102
+ </Box>
103
+ ),
104
+ }
@@ -0,0 +1,76 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
+ import Box from '@mui/material/Box'
3
+ import WindowAppIcon from '@components/WindowAppIcon'
4
+
5
+ const meta: Meta<typeof WindowAppIcon> = {
6
+ title: 'Components/WindowAppIcon',
7
+ component: WindowAppIcon,
8
+ tags: ['autodocs'],
9
+ argTypes: {
10
+ title: { control: 'text' },
11
+ icon: { control: 'text' },
12
+ },
13
+ parameters: {
14
+ layout: 'padded',
15
+ controls: { expanded: true },
16
+ },
17
+ decorators: [
18
+ (Story) => (
19
+ <Box sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width: '100%' }}>
20
+ <Story />
21
+ </Box>
22
+ ),
23
+ ],
24
+ }
25
+
26
+ export default meta
27
+
28
+ type Story = StoryObj<typeof WindowAppIcon>
29
+
30
+ export const Brand: Story = {
31
+ args: {
32
+ title: 'Brand',
33
+ icon: 'brand',
34
+ },
35
+ render: (args) => (
36
+ <Box sx={{ width: 180 }}>
37
+ <WindowAppIcon {...args} />
38
+ </Box>
39
+ ),
40
+ parameters: {
41
+ docs: {
42
+ source: {
43
+ language: 'tsx',
44
+ code: `
45
+ <WindowAppIcon title="Brand" icon="brand" />
46
+ `.trim(),
47
+ },
48
+ },
49
+ },
50
+ }
51
+
52
+ export const CustomIconUrl: Story = {
53
+ name: 'custom icon url',
54
+ args: {
55
+ title: 'Custom app',
56
+ icon: 'https://dummyimage.com/32x32/1976d2/ffffff.png&text=A',
57
+ },
58
+ render: (args) => (
59
+ <Box sx={{ width: 180 }}>
60
+ <WindowAppIcon {...args} />
61
+ </Box>
62
+ ),
63
+ parameters: {
64
+ docs: {
65
+ source: {
66
+ language: 'tsx',
67
+ code: `
68
+ <WindowAppIcon
69
+ title="Custom app"
70
+ icon="https://dummyimage.com/32x32/1976d2/ffffff.png&text=A"
71
+ />
72
+ `.trim(),
73
+ },
74
+ },
75
+ },
76
+ }
@@ -0,0 +1,125 @@
1
+ import { useState } from 'react'
2
+ import type { Meta, StoryObj } from '@storybook/react-vite'
3
+ import Box from '@mui/material/Box'
4
+ import Button from '@mui/material/Button'
5
+ import Typography from '@mui/material/Typography'
6
+ import { CurrencyCodes } from '@types'
7
+ import ActionMenu from '@components/ActionMenu'
8
+ import type { ActionMenuProps } from '@components/ActionMenu/type'
9
+
10
+ const options: NonNullable<ActionMenuProps['options']> = [
11
+ { name: 'KWD', value: 24.5, currency: CurrencyCodes.KWD },
12
+ { name: 'SAR', value: 302.1, currency: CurrencyCodes.SAR },
13
+ ]
14
+
15
+ const meta: Meta<typeof ActionMenu> = {
16
+ title: 'Components/Inputs/ActionMenu',
17
+ component: ActionMenu,
18
+ tags: ['autodocs'],
19
+ argTypes: {
20
+ anchorEl: { table: { disable: true } },
21
+ handleClose: { table: { disable: true } },
22
+ onConfirm: { table: { disable: true } },
23
+ },
24
+ parameters: {
25
+ layout: 'centered',
26
+ controls: { expanded: true },
27
+ },
28
+ }
29
+
30
+ export default meta
31
+
32
+ type Story = StoryObj<typeof ActionMenu>
33
+
34
+ function BaseRender(args: Partial<ActionMenuProps>) {
35
+ const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)
36
+ const [confirmed, setConfirmed] = useState('No amount confirmed yet')
37
+
38
+ return (
39
+ <Box sx={{ display: 'grid', gap: 1.5 }}>
40
+ <Button variant="outlined" onClick={(e) => setAnchorEl(e.currentTarget)}>
41
+ Open action menu
42
+ </Button>
43
+ <Typography variant="caption" color="text.secondary">
44
+ {confirmed}
45
+ </Typography>
46
+
47
+ <ActionMenu
48
+ anchorEl={anchorEl}
49
+ initialAmount={24.5}
50
+ currency={CurrencyCodes.KWD}
51
+ options={options}
52
+ isCheckMarkHighlighted={args.isCheckMarkHighlighted}
53
+ handleClose={() => setAnchorEl(null)}
54
+ onConfirm={(amount, currency) => {
55
+ setConfirmed(`Confirmed amount: ${amount} ${currency}`)
56
+ }}
57
+ />
58
+ </Box>
59
+ )
60
+ }
61
+
62
+ export const Base: Story = {
63
+ render: BaseRender,
64
+ parameters: {
65
+ docs: {
66
+ source: {
67
+ language: 'tsx',
68
+ code: `
69
+ const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)
70
+ const [confirmed, setConfirmed] = useState('No amount confirmed yet')
71
+
72
+ <Button variant="outlined" onClick={(e) => setAnchorEl(e.currentTarget)}>
73
+ Open action menu
74
+ </Button>
75
+
76
+ <ActionMenu
77
+ anchorEl={anchorEl}
78
+ initialAmount={24.5}
79
+ currency={CurrencyCodes.KWD}
80
+ options={options}
81
+ handleClose={() => setAnchorEl(null)}
82
+ onConfirm={(amount, currency) => {
83
+ setConfirmed('Confirmed amount: ' + amount + ' ' + currency)
84
+ }}
85
+ />
86
+ `.trim(),
87
+ },
88
+ },
89
+ },
90
+ }
91
+
92
+ export const HighlightedCheck: Story = {
93
+ name: 'highlighted check',
94
+ render: BaseRender,
95
+ args: {
96
+ isCheckMarkHighlighted: true,
97
+ },
98
+ parameters: {
99
+ docs: {
100
+ source: {
101
+ language: 'tsx',
102
+ code: `
103
+ const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)
104
+ const [confirmed, setConfirmed] = useState('No amount confirmed yet')
105
+
106
+ <Button variant="outlined" onClick={(e) => setAnchorEl(e.currentTarget)}>
107
+ Open action menu
108
+ </Button>
109
+
110
+ <ActionMenu
111
+ anchorEl={anchorEl}
112
+ initialAmount={24.5}
113
+ currency={CurrencyCodes.KWD}
114
+ options={options}
115
+ isCheckMarkHighlighted
116
+ handleClose={() => setAnchorEl(null)}
117
+ onConfirm={(amount, currency) => {
118
+ setConfirmed('Confirmed amount: ' + amount + ' ' + currency)
119
+ }}
120
+ />
121
+ `.trim(),
122
+ },
123
+ },
124
+ },
125
+ }
@@ -0,0 +1,103 @@
1
+ import { useState } from 'react'
2
+ import type { Meta, StoryObj } from '@storybook/react-vite'
3
+ import Box from '@mui/material/Box'
4
+ import Typography from '@mui/material/Typography'
5
+ import type { Currency } from '@types'
6
+ import AmountInput from '@components/AmountInput'
7
+
8
+ const selectedCurrency: Currency = {
9
+ created: 0,
10
+ updated: 0,
11
+ currencyId: 'kwd',
12
+ name: { created: 0, updated: 0, textId: 'KWD', english: 'Kuwaiti Dinar' },
13
+ code: { created: 0, updated: 0, textId: 'KWD', english: 'KWD' },
14
+ decimals: 3,
15
+ country: 'Kuwait',
16
+ symbol: 'KD',
17
+ logo: '',
18
+ }
19
+
20
+ const meta: Meta<typeof AmountInput> = {
21
+ title: 'Components/Inputs/AmountInput',
22
+ component: AmountInput,
23
+ tags: ['autodocs'],
24
+ argTypes: {
25
+ amount: { table: { disable: true } },
26
+ setAmount: { table: { disable: true } },
27
+ selectedCurrency: { table: { disable: true } },
28
+ },
29
+ parameters: {
30
+ layout: 'centered',
31
+ controls: { expanded: true },
32
+ },
33
+ }
34
+
35
+ export default meta
36
+
37
+ type Story = StoryObj<typeof AmountInput>
38
+
39
+ function BaseRender(args: { maxAmount?: number; isError?: boolean }) {
40
+ const [amount, setAmount] = useState<number>(12.5)
41
+
42
+ return (
43
+ <Box sx={{ display: 'grid', gap: 1.5 }}>
44
+ <Box sx={{ width: 260 }}>
45
+ <AmountInput
46
+ amount={amount}
47
+ setAmount={(value) => setAmount(value || 0)}
48
+ maxAmount={args.maxAmount}
49
+ isError={args.isError}
50
+ selectedCurrency={selectedCurrency}
51
+ />
52
+ </Box>
53
+ <Typography variant="caption" color="text.secondary">
54
+ Amount: {amount}
55
+ </Typography>
56
+ </Box>
57
+ )
58
+ }
59
+
60
+ export const Base: Story = {
61
+ render: BaseRender,
62
+ parameters: {
63
+ docs: {
64
+ source: {
65
+ language: 'tsx',
66
+ code: `
67
+ const [amount, setAmount] = useState(12.5)
68
+
69
+ <AmountInput
70
+ amount={amount}
71
+ setAmount={(value) => setAmount(value || 0)}
72
+ selectedCurrency={selectedCurrency}
73
+ />
74
+ `.trim(),
75
+ },
76
+ },
77
+ },
78
+ }
79
+
80
+ export const WithMaxAmount: Story = {
81
+ name: 'with max amount',
82
+ render: BaseRender,
83
+ args: {
84
+ maxAmount: 50,
85
+ },
86
+ parameters: {
87
+ docs: {
88
+ source: {
89
+ language: 'tsx',
90
+ code: `
91
+ const [amount, setAmount] = useState(12.5)
92
+
93
+ <AmountInput
94
+ amount={amount}
95
+ setAmount={(value) => setAmount(value || 0)}
96
+ maxAmount={50}
97
+ selectedCurrency={selectedCurrency}
98
+ />
99
+ `.trim(),
100
+ },
101
+ },
102
+ },
103
+ }
@@ -0,0 +1,209 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
+ import { useState } from 'react'
3
+ import Box from '@mui/material/Box'
4
+ import { Autocomplete } from '@components/Autocomplete'
5
+ import { StoryTable, StoryThead, StoryTbody, StoryRow, StoryHeaderCell, StoryRowLabel, StoryCell, StoryHint } from '@storybook-utils'
6
+
7
+ const fruitOptions = ['Apple', 'Banana', 'Cherry', 'Durian', 'Elderberry', 'Fig', 'Grape']
8
+
9
+ const meta: Meta<typeof Autocomplete> = {
10
+ title: 'Components/Inputs/Autocomplete',
11
+ component: Autocomplete,
12
+ tags: ['autodocs'],
13
+ argTypes: {
14
+ label: { control: 'text', description: 'Label shown inside the text field' },
15
+ disabled: { control: 'boolean' },
16
+ multiple: { control: 'boolean', description: 'Allow multiple selections' },
17
+ freeSolo: { control: 'boolean', description: 'Allow arbitrary input values' },
18
+ },
19
+ parameters: {
20
+ layout: 'padded',
21
+ controls: { expanded: true },
22
+ },
23
+ decorators: [
24
+ (Story) => (
25
+ <Box sx={{ display: 'flex', justifyContent: 'center', width: '100%' }}>
26
+ <Story />
27
+ </Box>
28
+ ),
29
+ ],
30
+ }
31
+
32
+ export default meta
33
+ type Story = StoryObj<typeof Autocomplete>
34
+
35
+ // ──────────────────────────────────────────────
36
+ // Named wrapper components (required so React hooks rules are satisfied)
37
+
38
+ const AutocompleteBase = () => {
39
+ const [value, setValue] = useState<string | null>(null)
40
+ return <Autocomplete label="Fruit" options={fruitOptions} value={value} onChange={(_, v) => setValue(v as string | null)} sx={{ width: 300 }} />
41
+ }
42
+
43
+ const AutocompleteMultiple = () => {
44
+ const [value, setValue] = useState<string[]>([])
45
+ return (
46
+ <Autocomplete label="Fruits" options={fruitOptions} value={value} onChange={(_, v) => setValue(v as string[])} multiple sx={{ width: 300 }} />
47
+ )
48
+ }
49
+
50
+ const AutocompleteFreeSolo = () => {
51
+ const [value, setValue] = useState<string | null>(null)
52
+ return (
53
+ <Autocomplete
54
+ label="Type anything"
55
+ options={fruitOptions}
56
+ value={value}
57
+ onChange={(_, v) => setValue(v as string | null)}
58
+ freeSolo
59
+ sx={{ width: 300 }}
60
+ />
61
+ )
62
+ }
63
+
64
+ // ──────────────────────────────────────────────
65
+ // Focused stories
66
+
67
+ export const Base: Story = {
68
+ parameters: {
69
+ docs: {
70
+ source: {
71
+ language: 'tsx',
72
+ code: `
73
+ const [value, setValue] = useState<string | null>(null)
74
+
75
+ <Autocomplete
76
+ label="Fruit"
77
+ options={['Apple', 'Banana', 'Cherry']}
78
+ value={value}
79
+ onChange={(_, v) => setValue(v)}
80
+ sx={{ width: 300 }}
81
+ />
82
+ `.trim(),
83
+ },
84
+ },
85
+ },
86
+ render: () => <AutocompleteBase />,
87
+ }
88
+
89
+ export const Multiple: Story = {
90
+ parameters: {
91
+ docs: {
92
+ source: {
93
+ language: 'tsx',
94
+ code: `
95
+ const [value, setValue] = useState<string[]>([])
96
+
97
+ <Autocomplete
98
+ label="Fruits"
99
+ options={fruitOptions}
100
+ value={value}
101
+ onChange={(_, v) => setValue(v)}
102
+ multiple
103
+ sx={{ width: 300 }}
104
+ />
105
+ `.trim(),
106
+ },
107
+ },
108
+ },
109
+ render: () => <AutocompleteMultiple />,
110
+ }
111
+
112
+ export const FreeSolo: Story = {
113
+ name: 'free solo',
114
+ parameters: {
115
+ docs: {
116
+ source: {
117
+ language: 'tsx',
118
+ code: `
119
+ const [value, setValue] = useState<string | null>(null)
120
+
121
+ <Autocomplete
122
+ label="Type anything"
123
+ options={fruitOptions}
124
+ value={value}
125
+ onChange={(_, v) => setValue(v)}
126
+ freeSolo
127
+ sx={{ width: 300 }}
128
+ />
129
+ `.trim(),
130
+ },
131
+ },
132
+ },
133
+ render: () => <AutocompleteFreeSolo />,
134
+ }
135
+
136
+ export const Disabled: Story = {
137
+ parameters: {
138
+ docs: {
139
+ source: {
140
+ language: 'tsx',
141
+ code: `
142
+ <Autocomplete
143
+ label="Fruit"
144
+ options={fruitOptions}
145
+ value={null}
146
+ onChange={() => {}}
147
+ disabled
148
+ sx={{ width: 300 }}
149
+ />
150
+ `.trim(),
151
+ },
152
+ },
153
+ },
154
+ render: () => <Autocomplete label="Fruit" options={fruitOptions} value={null} onChange={() => {}} disabled sx={{ width: 300 }} />,
155
+ }
156
+
157
+ // ──────────────────────────────────────────────
158
+ // Kitchen sink
159
+
160
+ const tableColumns = ['VARIANT', 'PREVIEW'] as const
161
+
162
+ export const AllVariants: Story = {
163
+ name: 'all variants',
164
+ decorators: [],
165
+ render: () => (
166
+ <Box sx={{ maxWidth: 960, mx: 'auto' }}>
167
+ <StoryTable>
168
+ <StoryThead>
169
+ <StoryRow>
170
+ {tableColumns.map((header, index) => (
171
+ <StoryHeaderCell key={header} first={index === 0}>
172
+ {header}
173
+ </StoryHeaderCell>
174
+ ))}
175
+ </StoryRow>
176
+ </StoryThead>
177
+
178
+ <StoryTbody>
179
+ <StoryRow>
180
+ <StoryRowLabel>Single</StoryRowLabel>
181
+ <StoryCell>
182
+ <AutocompleteBase />
183
+ </StoryCell>
184
+ </StoryRow>
185
+ <StoryRow>
186
+ <StoryRowLabel>Multiple</StoryRowLabel>
187
+ <StoryCell>
188
+ <AutocompleteMultiple />
189
+ </StoryCell>
190
+ </StoryRow>
191
+ <StoryRow>
192
+ <StoryRowLabel>Free Solo</StoryRowLabel>
193
+ <StoryCell>
194
+ <AutocompleteFreeSolo />
195
+ </StoryCell>
196
+ </StoryRow>
197
+ <StoryRow>
198
+ <StoryRowLabel>Disabled</StoryRowLabel>
199
+ <StoryCell>
200
+ <Autocomplete label="Fruit" options={fruitOptions} value={null} onChange={() => {}} disabled sx={{ width: 300 }} />
201
+ </StoryCell>
202
+ </StoryRow>
203
+ </StoryTbody>
204
+ </StoryTable>
205
+
206
+ <StoryHint>Use the Controls panel to explore additional MUI Autocomplete props.</StoryHint>
207
+ </Box>
208
+ ),
209
+ }