@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.
- package/build/{chunk-HQMP5K4E.js → chunk-7JK4Z6IQ.js} +1 -1
- package/build/{chunk-ZTFNCBDJ.js → chunk-C5QNPNNY.js} +1 -1
- package/build/chunk-DSXKDOAD.js +1 -0
- package/build/chunk-LKNVJTYP.js +1 -0
- package/build/chunk-VRUT6M23.js +1 -0
- package/build/components/ActionMenu/ActionMenuDropDown.d.ts +1 -1
- package/build/components/ActionMenu/ActionMenuItem.d.ts +1 -1
- package/build/components/ActionMenu/type.d.ts +1 -1
- package/build/components/Amount/TotalAmount/TotalAmount.d.ts +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/AmountConversionFilter.d.ts +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/AmountInput.d.ts +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountStatusChip/AmountStatusChip.d.ts +1 -1
- package/build/components/AmountStatusChip/style.d.ts +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
- package/build/components/AppServices/AppServices.d.ts +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/AppServicesBar.d.ts +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +1 -1
- package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +1 -1
- package/build/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Chip/style.d.ts +0 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CurrencyFilter/CurrencyFilter.d.ts +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/Customer/CustomerForms/CustomerEmailForm.d.ts +1 -1
- package/build/components/Customer/CustomerForms/CustomerFullInfo.d.ts +1 -1
- package/build/components/Customer/CustomerForms/CustomerFullInfoForm.d.ts +1 -1
- package/build/components/Customer/CustomerForms/CustomerPhoneNumberForm.d.ts +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/DateFilter.d.ts +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/DeviceIcon.d.ts +1 -1
- package/build/components/DeviceIcon/style.d.ts +1 -1
- package/build/components/Dialog/style.d.ts +0 -1
- package/build/components/Discount/DiscountDropdown/DiscountDropdown.d.ts +1 -1
- package/build/components/Discount/DiscountRateDropdown/DiscountRateDropdown.d.ts +1 -1
- package/build/components/Discount/TotalDiscount/TotalDiscount.d.ts +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/Discount/utils.d.ts +1 -1
- package/build/components/DropdownButton/type.d.ts +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileInputPreview/type.d.ts +1 -1
- package/build/components/FileInputPreview/utils.d.ts +1 -1
- package/build/components/FilePreview/type.d.ts +1 -1
- package/build/components/FileUploader/type.d.ts +1 -1
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.d.ts +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +2 -2
- package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.d.ts +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/type.d.ts +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
- package/build/components/InputBase/AmountInputBase/AmountInputBase.d.ts +1 -1
- package/build/components/InputBase/AmountInputBase/CurrencyList/CurrencyList.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/CountriesList/CountriesList.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/PhoneInputBase.d.ts +1 -1
- package/build/components/InputBase/SelectBase/DefaultClearIcon.d.ts +5 -0
- package/build/components/InputBase/SelectBase/DefaultSelectIcon.d.ts +5 -0
- package/build/components/InputBase/SelectBase/SelectBase.d.ts +11 -1
- package/build/components/InputBase/SelectBase/SelectBaseMultiple.d.ts +7 -1
- package/build/components/InputBase/SelectBase/hasSelectionValue.d.ts +2 -0
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/CountriesDropDown/CountriesDropdown.d.ts +1 -1
- package/build/components/Inputs/SearchInput/SearchInput.d.ts +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +0 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/ListColumnFilter/ListColumnFilter.d.ts +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/MainContainer/MainContainer.d.ts +1 -1
- package/build/components/MaskedText/type.d.ts +1 -1
- package/build/components/MerchantCurrencyDropdown/MerchantCurrencyDropdown.d.ts +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantLogo/style.d.ts +1 -1
- package/build/components/MerchantsDropdown/BrandItem.d.ts +1 -1
- package/build/components/MerchantsDropdown/EntityItem.d.ts +1 -1
- package/build/components/MerchantsDropdown/EntityList.d.ts +1 -1
- package/build/components/MerchantsDropdown/MerchantItem.d.ts +2 -2
- package/build/components/MerchantsDropdown/MerchantsList.d.ts +1 -1
- package/build/components/MerchantsDropdown/hooks.d.ts +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MerchantsDropdown/type.d.ts +1 -1
- package/build/components/MultiSelectDropdownButton/components/StatusButton.d.ts +1 -1
- package/build/components/MultiSelectDropdownButton/type.d.ts +1 -1
- package/build/components/MultiSelectStatusButton/style.d.ts +1 -1
- package/build/components/MultiSelectStatusButton/type.d.ts +1 -1
- package/build/components/NestedDropdown/NestedDropdown.d.ts +1 -1
- package/build/components/NestedDropdown/NestedMenuItem.d.ts +1 -1
- package/build/components/NestedDropdown/types.d.ts +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/AuthenticationMode.d.ts +1 -1
- package/build/components/PaymentSourceFilter/PaymentInitiated.d.ts +2 -2
- package/build/components/PaymentSourceFilter/PaymentMethod.d.ts +1 -1
- package/build/components/PaymentSourceFilter/PaymentMethods.d.ts +1 -1
- package/build/components/PaymentSourceFilter/PaymentSchemes.d.ts +1 -1
- package/build/components/PaymentSourceFilter/PaymentSourceFilter.d.ts +3 -3
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/PhoneFilter.d.ts +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/RFH/Inputs/AmountInput/type.d.ts +1 -1
- package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +1 -1
- package/build/components/RFH/Inputs/FormSelect/FormSelect.d.ts +2 -2
- package/build/components/RFH/Inputs/FormSelect/type.d.ts +1 -1
- package/build/components/RFH/Inputs/MultiSelect/MultiSelect.d.ts +0 -4
- package/build/components/RFH/Inputs/MultiSelect/style.d.ts +3 -0
- package/build/components/RFH/Inputs/PhoneInput/PhoneInput.d.ts +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/components/Hijri/Hijri.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RangeCalender/type.d.ts +1 -1
- package/build/components/ReceiptsViewer/ReceiptsViewer.d.ts +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReceiptsViewer/type.d.ts +1 -1
- package/build/components/ReferenceTypeFilter/ReferenceTypeFilter.d.ts +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SalesChannelFilter/SalesChannelFilter.d.ts +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/Sandbox/Sandbox.d.ts +1 -1
- package/build/components/SearchButton/styles.d.ts +0 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/SelectWithSearch.d.ts +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/SelectWithSearch/type.d.ts +7 -2
- package/build/components/StatusBar/StatusBar.d.ts +1 -1
- package/build/components/StatusBar/type.d.ts +2 -2
- package/build/components/StatusButton/type.d.ts +1 -1
- package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +2 -2
- package/build/components/StatusChipWithCopy/utils.d.ts +1 -1
- package/build/components/StatusFilter/StatusFilter.d.ts +2 -2
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusFilter/utils.d.ts +1 -1
- package/build/components/StatusGroupChips/style.d.ts +1 -1
- package/build/components/StatusGroupChips/type.d.ts +1 -1
- package/build/components/StatusIcons/AuthIcons/constants.d.ts +1 -1
- package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthIcons/type.d.ts +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/type.d.ts +1 -1
- package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +2 -2
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +2 -2
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/DestinationIcon/DestinationIcon.d.ts +1 -1
- package/build/components/StatusIcons/DeviceIcon/DeviceIcon.d.ts +1 -1
- package/build/components/StatusIcons/GeographyIcon/style.d.ts +1 -1
- package/build/components/StatusIcons/IssuerIcon/style.d.ts +1 -1
- package/build/components/StatusIcons/IssuerIcon/type.d.ts +1 -1
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.d.ts +2 -2
- package/build/components/StatusIcons/RefundIcon/RefundIcon.d.ts +2 -2
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/type.d.ts +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/components/ActionsColumn.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -2
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AmountCell/components/ConversionTypeLabel.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/components/CurrencyInfo.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CustomerCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/styled.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/constant.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/ChargeStatusIcon.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/utils.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/AuthenticationMode.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/constant.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/TextWithChipCell/TextWithChipCell.d.ts +2 -2
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/type.d.ts +2 -2
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableHeader/TableHeader.d.ts +1 -1
- package/build/components/TableHeader/TableModeButton.d.ts +1 -1
- package/build/components/TableHeader/TableView/ColumnItem.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useColumnItem.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useCustomTableViews.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useViewColumns.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +1 -1
- package/build/components/TableHeader/TableView/hooks/useViewsMenu.d.ts +1 -1
- package/build/components/TableHeader/TableView/types.d.ts +1 -1
- package/build/components/TableHeader/TableView/utils/columnState.d.ts +1 -1
- package/build/components/TableHeader/TableView/utils/customTableViews.d.ts +1 -1
- package/build/components/TableHeader/TableView/utils/layoutTransform.d.ts +1 -1
- package/build/components/TableHeader/TableView/utils/templateToColumnsView.d.ts +1 -1
- package/build/components/TableHeader/TableView/utils/viewMenu.d.ts +1 -1
- package/build/components/TableHeader/index.js +1 -1
- package/build/components/TableHeader/type.d.ts +3 -3
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/TooltipChip/TooltipChip.d.ts +2 -2
- package/build/components/TooltipChip/style.d.ts +1 -1
- package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/TreeDropdown/type.d.ts +1 -1
- package/build/components/VAT/TotalVAT/TotalVAT.d.ts +1 -1
- package/build/components/VAT/VATDropdown/VATDropdown.d.ts +1 -1
- package/build/components/VAT/VATRateDropdown/VATRateDropdown.d.ts +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VAT/utils.d.ts +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeaderCell.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableNoData.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableRowLoading.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/VirtualTable.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/hooks/useColumnResizeWithPinned.d.ts +13 -13
- package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/types/index.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/features/resize/utils/resize.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedColumns.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedColumnsWidths.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/hooks/useVirtualTableContainer.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/types.d.ts +1 -1
- package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
- package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/Inputs.d.ts +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/List/List.d.ts +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/type.d.ts +1 -1
- package/build/components/VirtualTables/components/ColumnSort/ColumnSort.d.ts +1 -1
- package/build/components/VirtualTables/components/TableFooter/TableFooter.d.ts +1 -1
- package/build/components/VirtualTables/components/TableHeader/components/TableCell/TableCell.d.ts +2 -2
- package/build/components/VirtualTables/components/TableHeader/type.d.ts +1 -1
- package/build/components/VirtualTables/components/TableLoading.d.ts +1 -1
- package/build/components/VirtualTables/components/TableNoData.d.ts +1 -1
- package/build/components/VirtualTables/components/TableNoDataWithCard.d.ts +1 -1
- package/build/components/VirtualTables/components/TableRow.d.ts +1 -1
- package/build/components/VirtualTables/components/TableRowLoading.d.ts +1 -1
- package/build/components/VirtualTables/components/style.d.ts +0 -1
- package/build/components/VirtualTables/components/virtualScroll/ListItemWrapper.d.ts +1 -1
- package/build/components/VirtualTables/hooks/useColumnFilter.d.ts +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/segment.d.ts +1 -1
- package/build/constants/timezones.d.ts +1 -1
- package/build/demo/TapOSIconsGallery/style.d.ts +1 -1
- package/build/docs/.storybook/story-utils.d.ts +19 -0
- package/build/docs/.storybook/story-utils.js +96 -0
- package/build/hooks/useAppsInfo.d.ts +3 -3
- package/build/hooks/useIsParameterSelected.d.ts +1 -1
- package/build/hooks/useSelectedMerchantDetails.d.ts +2 -2
- package/build/hooks/useToast.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/typography.d.ts +1 -1
- package/build/types/appEvents.d.ts +1 -1
- package/build/types/apps.d.ts +1 -1
- package/build/types/cell.d.ts +2 -2
- package/build/types/document.d.ts +1 -1
- package/build/types/invoice.d.ts +1 -1
- package/build/types/refund.d.ts +1 -1
- package/build/types/table.d.ts +2 -2
- package/build/types/toggleOptions.d.ts +1 -1
- package/build/types/views.d.ts +1 -1
- package/build/utils/billing.d.ts +1 -1
- package/build/utils/columns.d.ts +1 -1
- package/build/utils/conversion.d.ts +1 -1
- package/build/utils/currency.d.ts +1 -1
- package/build/utils/day.d.ts +1 -1
- package/build/utils/entity.d.ts +1 -1
- package/build/utils/error.d.ts +1 -1
- package/build/utils/file.d.ts +1 -1
- package/build/utils/freshdesk.d.ts +1 -1
- package/build/utils/language.d.ts +1 -1
- package/build/utils/localStorage.d.ts +1 -1
- package/build/utils/merchant.d.ts +1 -1
- package/build/utils/merchantSource.d.ts +1 -1
- package/build/utils/navigation.d.ts +3 -3
- package/build/utils/segment.d.ts +1 -1
- package/build/utils/skeletonColumns.d.ts +1 -1
- package/build/utils/table.d.ts +1 -1
- package/build/utils/views.d.ts +1 -1
- package/docs/.storybook/main.ts +23 -0
- package/docs/.storybook/preview.tsx +106 -0
- package/docs/.storybook/story-utils.tsx +196 -0
- package/docs/01-overview.md +158 -0
- package/docs/02-setup.md +326 -0
- package/docs/03-architecture.md +438 -0
- package/docs/04-component-guide.md +133 -0
- package/docs/05-component-development.md +173 -0
- package/docs/README.md +38 -0
- package/docs/stories/components/Accordion.stories.tsx +302 -0
- package/docs/stories/components/AccordionAdapter.stories.tsx +201 -0
- package/docs/stories/components/AccountDropdown.stories.tsx +113 -0
- package/docs/stories/components/AnimatedSpinnerIcon.stories.tsx +54 -0
- package/docs/stories/components/BackgroundAnimation.stories.tsx +139 -0
- package/docs/stories/components/BetaBanner.stories.tsx +170 -0
- package/docs/stories/components/Button.stories.tsx +132 -0
- package/docs/stories/components/CardEmptyState.stories.tsx +43 -0
- package/docs/stories/components/CardHeadline.stories.tsx +208 -0
- package/docs/stories/components/Chip.stories.tsx +106 -0
- package/docs/stories/components/CircularProgressWithLabel.stories.tsx +111 -0
- package/docs/stories/components/Collapse.stories.tsx +100 -0
- package/docs/stories/components/CountBadge.stories.tsx +115 -0
- package/docs/stories/components/CountryFlag.stories.tsx +91 -0
- package/docs/stories/components/CurrencySymbol.stories.tsx +108 -0
- package/docs/stories/components/DeviceIcon.stories.tsx +122 -0
- package/docs/stories/components/Dialog.stories.tsx +270 -0
- package/docs/stories/components/DisplayAmount.stories.tsx +102 -0
- package/docs/stories/components/DockButton.stories.tsx +118 -0
- package/docs/stories/components/ExpandableSideBar.stories.tsx +120 -0
- package/docs/stories/components/FlippingCard.stories.tsx +122 -0
- package/docs/stories/components/HeatMap.stories.tsx +199 -0
- package/docs/stories/components/IconWithBadge.stories.tsx +136 -0
- package/docs/stories/components/JSONViewer.stories.tsx +92 -0
- package/docs/stories/components/LeftPeekRightExpandingChip.stories.tsx +127 -0
- package/docs/stories/components/Loader.stories.tsx +116 -0
- package/docs/stories/components/NoInternet.stories.tsx +43 -0
- package/docs/stories/components/ProgressBar.stories.tsx +99 -0
- package/docs/stories/components/ProgressRing.stories.tsx +139 -0
- package/docs/stories/components/SimpleDialog.stories.tsx +170 -0
- package/docs/stories/components/Skeleton.stories.tsx +253 -0
- package/docs/stories/components/StatusButton.stories.tsx +84 -0
- package/docs/stories/components/StatusChip.stories.tsx +149 -0
- package/docs/stories/components/StatusLabel.stories.tsx +85 -0
- package/docs/stories/components/Text.stories.tsx +110 -0
- package/docs/stories/components/Toaster.stories.tsx +65 -0
- package/docs/stories/components/Tooltip.stories.tsx +218 -0
- package/docs/stories/components/TooltipChip.stories.tsx +104 -0
- package/docs/stories/components/WindowAppIcon.stories.tsx +76 -0
- package/docs/stories/components/inputs/ActionMenu.stories.tsx +125 -0
- package/docs/stories/components/inputs/AmountInput.stories.tsx +103 -0
- package/docs/stories/components/inputs/Autocomplete.stories.tsx +209 -0
- package/docs/stories/components/inputs/Calender.stories.tsx +105 -0
- package/docs/stories/components/inputs/Checkbox.stories.tsx +78 -0
- package/docs/stories/components/inputs/ColorPicker.stories.tsx +160 -0
- package/docs/stories/components/inputs/CopyImage.stories.tsx +116 -0
- package/docs/stories/components/inputs/CountryFilter.stories.tsx +100 -0
- package/docs/stories/components/inputs/CurrencyFilter.stories.tsx +140 -0
- package/docs/stories/components/inputs/DateFilter.stories.tsx +144 -0
- package/docs/stories/components/inputs/DropdownButton.stories.tsx +187 -0
- package/docs/stories/components/inputs/DropdownMenu.stories.tsx +282 -0
- package/docs/stories/components/inputs/FormSelect.stories.tsx +235 -0
- package/docs/stories/components/inputs/IOSSwitch.stories.tsx +95 -0
- package/docs/stories/components/inputs/Input.stories.tsx +121 -0
- package/docs/stories/components/inputs/InputNumber.stories.tsx +163 -0
- package/docs/stories/components/inputs/MerchantCurrencyDropdown.stories.tsx +192 -0
- package/docs/stories/components/inputs/MultiSelect.stories.tsx +369 -0
- package/docs/stories/components/inputs/MultiSelectWithSearch.stories.tsx +141 -0
- package/docs/stories/components/inputs/NestedDropdown.stories.tsx +143 -0
- package/docs/stories/components/inputs/OTPInput.stories.tsx +140 -0
- package/docs/stories/components/inputs/PartnersFilter.stories.tsx +114 -0
- package/docs/stories/components/inputs/RadioButton.stories.tsx +135 -0
- package/docs/stories/components/inputs/RadioGroup.stories.tsx +145 -0
- package/docs/stories/components/inputs/RangeCalender.stories.tsx +179 -0
- package/docs/stories/components/inputs/SearchListInput.stories.tsx +87 -0
- package/docs/stories/components/inputs/SelectDropdown.stories.tsx +153 -0
- package/docs/stories/components/inputs/SelectWithSearch.stories.tsx +290 -0
- package/docs/stories/components/inputs/Timepicker.stories.tsx +91 -0
- package/docs/stories/components/inputs/ToggleButtons.stories.tsx +242 -0
- package/package.json +4 -3
- package/build/chunk-CC4HU4H6.js +0 -1
- package/build/chunk-NET3U5QO.js +0 -1
- package/build/chunk-QLEUEVEZ.js +0 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import Box from '@mui/material/Box'
|
|
3
|
+
import Typography from '@mui/material/Typography'
|
|
4
|
+
import Button from '@mui/material/Button'
|
|
5
|
+
import AccordionAdapter from '@components/AccordionAdapter'
|
|
6
|
+
import { StoryTable, StoryThead, StoryTbody, StoryRow, StoryHeaderCell, StoryRowLabel, StoryCell, StoryHint } from '@storybook-utils'
|
|
7
|
+
|
|
8
|
+
const meta: Meta<typeof AccordionAdapter> = {
|
|
9
|
+
title: 'Components/AccordionAdapter',
|
|
10
|
+
component: AccordionAdapter,
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
argTypes: {
|
|
13
|
+
defaultExpanded: { control: 'boolean', description: 'Expanded by default' },
|
|
14
|
+
disabled: { control: 'boolean' },
|
|
15
|
+
Header: { table: { disable: true } },
|
|
16
|
+
Footer: { table: { disable: true } },
|
|
17
|
+
children: { table: { disable: true } },
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: 'padded',
|
|
21
|
+
controls: { expanded: true },
|
|
22
|
+
},
|
|
23
|
+
decorators: [
|
|
24
|
+
(Story) => (
|
|
25
|
+
<Box sx={{ maxWidth: 640, mx: 'auto', width: '100%' }}>
|
|
26
|
+
<Story />
|
|
27
|
+
</Box>
|
|
28
|
+
),
|
|
29
|
+
],
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default meta
|
|
33
|
+
type Story = StoryObj<typeof AccordionAdapter>
|
|
34
|
+
|
|
35
|
+
// ──────────────────────────────────────────────
|
|
36
|
+
// Focused stories
|
|
37
|
+
|
|
38
|
+
export const Base: Story = {
|
|
39
|
+
args: {
|
|
40
|
+
defaultExpanded: false,
|
|
41
|
+
Header: <Typography variant="subtitle1">Section Title</Typography>,
|
|
42
|
+
children: (
|
|
43
|
+
<Box sx={{ p: 2 }}>
|
|
44
|
+
<Typography variant="body2" color="text.secondary">
|
|
45
|
+
This is the accordion body content. It can contain any layout or components.
|
|
46
|
+
</Typography>
|
|
47
|
+
</Box>
|
|
48
|
+
),
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const DefaultExpanded: Story = {
|
|
53
|
+
name: 'default expanded',
|
|
54
|
+
args: {
|
|
55
|
+
defaultExpanded: true,
|
|
56
|
+
Header: <Typography variant="subtitle1">Already Open</Typography>,
|
|
57
|
+
children: (
|
|
58
|
+
<Box sx={{ p: 2 }}>
|
|
59
|
+
<Typography variant="body2" color="text.secondary">
|
|
60
|
+
This accordion starts in the expanded state.
|
|
61
|
+
</Typography>
|
|
62
|
+
</Box>
|
|
63
|
+
),
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const WithFooter: Story = {
|
|
68
|
+
name: 'with footer',
|
|
69
|
+
args: {
|
|
70
|
+
defaultExpanded: true,
|
|
71
|
+
Header: <Typography variant="subtitle1">With Footer Actions</Typography>,
|
|
72
|
+
children: (
|
|
73
|
+
<Box sx={{ p: 2 }}>
|
|
74
|
+
<Typography variant="body2" color="text.secondary">
|
|
75
|
+
Accordion body with footer action buttons below.
|
|
76
|
+
</Typography>
|
|
77
|
+
</Box>
|
|
78
|
+
),
|
|
79
|
+
Footer: (
|
|
80
|
+
<Box sx={{ display: 'flex', gap: 1 }}>
|
|
81
|
+
<Button size="small" variant="outlined">
|
|
82
|
+
Cancel
|
|
83
|
+
</Button>
|
|
84
|
+
<Button size="small" variant="contained">
|
|
85
|
+
Save
|
|
86
|
+
</Button>
|
|
87
|
+
</Box>
|
|
88
|
+
),
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export const Disabled: Story = {
|
|
93
|
+
args: {
|
|
94
|
+
disabled: true,
|
|
95
|
+
Header: <Typography variant="subtitle1">Disabled Section</Typography>,
|
|
96
|
+
children: (
|
|
97
|
+
<Box sx={{ p: 2 }}>
|
|
98
|
+
<Typography variant="body2">Not accessible when disabled.</Typography>
|
|
99
|
+
</Box>
|
|
100
|
+
),
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// ──────────────────────────────────────────────
|
|
105
|
+
// Kitchen sink
|
|
106
|
+
|
|
107
|
+
const tableColumns = ['VARIANT', 'PREVIEW'] as const
|
|
108
|
+
|
|
109
|
+
const accordionRows: Array<{
|
|
110
|
+
label: string
|
|
111
|
+
props: Partial<React.ComponentProps<typeof AccordionAdapter>>
|
|
112
|
+
}> = [
|
|
113
|
+
{
|
|
114
|
+
label: 'Collapsed',
|
|
115
|
+
props: {
|
|
116
|
+
defaultExpanded: false,
|
|
117
|
+
Header: <Typography variant="body2">Collapsed accordion</Typography>,
|
|
118
|
+
children: (
|
|
119
|
+
<Box sx={{ p: 2 }}>
|
|
120
|
+
<Typography variant="body2">Content here.</Typography>
|
|
121
|
+
</Box>
|
|
122
|
+
),
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: 'Expanded',
|
|
127
|
+
props: {
|
|
128
|
+
defaultExpanded: true,
|
|
129
|
+
Header: <Typography variant="body2">Expanded accordion</Typography>,
|
|
130
|
+
children: (
|
|
131
|
+
<Box sx={{ p: 2 }}>
|
|
132
|
+
<Typography variant="body2">Content here.</Typography>
|
|
133
|
+
</Box>
|
|
134
|
+
),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: 'With Footer',
|
|
139
|
+
props: {
|
|
140
|
+
defaultExpanded: true,
|
|
141
|
+
Header: <Typography variant="body2">With footer</Typography>,
|
|
142
|
+
children: (
|
|
143
|
+
<Box sx={{ p: 2 }}>
|
|
144
|
+
<Typography variant="body2">Content here.</Typography>
|
|
145
|
+
</Box>
|
|
146
|
+
),
|
|
147
|
+
Footer: (
|
|
148
|
+
<Button size="small" variant="contained">
|
|
149
|
+
Save
|
|
150
|
+
</Button>
|
|
151
|
+
),
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: 'Disabled',
|
|
156
|
+
props: {
|
|
157
|
+
disabled: true,
|
|
158
|
+
Header: <Typography variant="body2">Disabled</Typography>,
|
|
159
|
+
children: (
|
|
160
|
+
<Box sx={{ p: 2 }}>
|
|
161
|
+
<Typography variant="body2">Content here.</Typography>
|
|
162
|
+
</Box>
|
|
163
|
+
),
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
export const AllVariants: Story = {
|
|
169
|
+
name: 'all variants',
|
|
170
|
+
decorators: [],
|
|
171
|
+
render: () => (
|
|
172
|
+
<Box sx={{ maxWidth: 960, mx: 'auto' }}>
|
|
173
|
+
<StoryTable>
|
|
174
|
+
<StoryThead>
|
|
175
|
+
<StoryRow>
|
|
176
|
+
{tableColumns.map((header, index) => (
|
|
177
|
+
<StoryHeaderCell key={header} first={index === 0}>
|
|
178
|
+
{header}
|
|
179
|
+
</StoryHeaderCell>
|
|
180
|
+
))}
|
|
181
|
+
</StoryRow>
|
|
182
|
+
</StoryThead>
|
|
183
|
+
|
|
184
|
+
<StoryTbody>
|
|
185
|
+
{accordionRows.map(({ label, props }) => (
|
|
186
|
+
<StoryRow key={label}>
|
|
187
|
+
<StoryRowLabel>{label}</StoryRowLabel>
|
|
188
|
+
<StoryCell sx={{ width: '75%' }}>
|
|
189
|
+
<Box sx={{ width: '100%', maxWidth: 500 }}>
|
|
190
|
+
<AccordionAdapter {...(props as React.ComponentProps<typeof AccordionAdapter>)} />
|
|
191
|
+
</Box>
|
|
192
|
+
</StoryCell>
|
|
193
|
+
</StoryRow>
|
|
194
|
+
))}
|
|
195
|
+
</StoryTbody>
|
|
196
|
+
</StoryTable>
|
|
197
|
+
|
|
198
|
+
<StoryHint>Click any accordion header to toggle the expanded state.</StoryHint>
|
|
199
|
+
</Box>
|
|
200
|
+
),
|
|
201
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 AccountDropdown from '@components/AccountDropdown'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof AccountDropdown> = {
|
|
8
|
+
title: 'Components/AccountDropdown',
|
|
9
|
+
component: AccountDropdown,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
anchorEl: { table: { disable: true } },
|
|
13
|
+
children: { table: { disable: true } },
|
|
14
|
+
onOpen: { table: { disable: true } },
|
|
15
|
+
onClose: { table: { disable: true } },
|
|
16
|
+
},
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'centered',
|
|
19
|
+
controls: { expanded: true },
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default meta
|
|
24
|
+
|
|
25
|
+
type Story = StoryObj<typeof AccountDropdown>
|
|
26
|
+
|
|
27
|
+
function BaseRender() {
|
|
28
|
+
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)
|
|
29
|
+
const open = Boolean(anchorEl)
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<Box sx={{ width: 320 }}>
|
|
33
|
+
<AccountDropdown
|
|
34
|
+
open={open}
|
|
35
|
+
anchorEl={anchorEl}
|
|
36
|
+
onOpen={(e) => setAnchorEl(e.currentTarget)}
|
|
37
|
+
onClose={() => setAnchorEl(null)}
|
|
38
|
+
trigger={<Typography variant="body2">Main merchant account</Typography>}
|
|
39
|
+
>
|
|
40
|
+
<Box sx={{ p: 1.5, minWidth: 260 }}>
|
|
41
|
+
<Typography variant="body2">Main merchant account</Typography>
|
|
42
|
+
<Typography variant="body2">Operations account</Typography>
|
|
43
|
+
<Typography variant="body2">Settlement account</Typography>
|
|
44
|
+
</Box>
|
|
45
|
+
</AccountDropdown>
|
|
46
|
+
</Box>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const Base: Story = {
|
|
51
|
+
render: BaseRender,
|
|
52
|
+
parameters: {
|
|
53
|
+
docs: {
|
|
54
|
+
source: {
|
|
55
|
+
language: 'tsx',
|
|
56
|
+
code: `
|
|
57
|
+
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)
|
|
58
|
+
const open = Boolean(anchorEl)
|
|
59
|
+
|
|
60
|
+
<AccountDropdown
|
|
61
|
+
open={open}
|
|
62
|
+
anchorEl={anchorEl}
|
|
63
|
+
onOpen={(e) => setAnchorEl(e.currentTarget)}
|
|
64
|
+
onClose={() => setAnchorEl(null)}
|
|
65
|
+
trigger={<Typography variant="body2">Main merchant account</Typography>}
|
|
66
|
+
>
|
|
67
|
+
<Box sx={{ p: 1.5, minWidth: 260 }}>
|
|
68
|
+
<Typography variant="body2">Main merchant account</Typography>
|
|
69
|
+
<Typography variant="body2">Operations account</Typography>
|
|
70
|
+
<Typography variant="body2">Settlement account</Typography>
|
|
71
|
+
</Box>
|
|
72
|
+
</AccountDropdown>
|
|
73
|
+
`.trim(),
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const Disabled: Story = {
|
|
80
|
+
render: () => (
|
|
81
|
+
<Box sx={{ width: 320 }}>
|
|
82
|
+
<AccountDropdown
|
|
83
|
+
open={false}
|
|
84
|
+
anchorEl={null}
|
|
85
|
+
disabled
|
|
86
|
+
onOpen={() => {}}
|
|
87
|
+
onClose={() => {}}
|
|
88
|
+
trigger={<Typography variant="body2">Main merchant account</Typography>}
|
|
89
|
+
>
|
|
90
|
+
<Box />
|
|
91
|
+
</AccountDropdown>
|
|
92
|
+
</Box>
|
|
93
|
+
),
|
|
94
|
+
parameters: {
|
|
95
|
+
docs: {
|
|
96
|
+
source: {
|
|
97
|
+
language: 'tsx',
|
|
98
|
+
code: `
|
|
99
|
+
<AccountDropdown
|
|
100
|
+
open={false}
|
|
101
|
+
anchorEl={null}
|
|
102
|
+
disabled
|
|
103
|
+
onOpen={() => {}}
|
|
104
|
+
onClose={() => {}}
|
|
105
|
+
trigger={<Typography variant="body2">Main merchant account</Typography>}
|
|
106
|
+
>
|
|
107
|
+
<Box />
|
|
108
|
+
</AccountDropdown>
|
|
109
|
+
`.trim(),
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import AnimatedSpinnerIcon from '@components/AnimatedSpinnerIcon'
|
|
3
|
+
import Box from '@mui/material/Box'
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof AnimatedSpinnerIcon> = {
|
|
6
|
+
title: 'Components/AnimatedSpinnerIcon',
|
|
7
|
+
component: AnimatedSpinnerIcon,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
argTypes: {
|
|
10
|
+
width: { control: 'text', description: 'CSS width (e.g. "24px", "2rem")' },
|
|
11
|
+
height: { control: 'text', description: 'CSS height (e.g. "24px", "2rem")' },
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component: 'Animated spinner used for loading states. Fades in/out via framer-motion.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
decorators: [
|
|
21
|
+
(Story) => (
|
|
22
|
+
<Box sx={{ display: 'flex', justifyContent: 'center', width: '100%' }}>
|
|
23
|
+
<Story />
|
|
24
|
+
</Box>
|
|
25
|
+
),
|
|
26
|
+
],
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default meta
|
|
30
|
+
type Story = StoryObj<typeof AnimatedSpinnerIcon>
|
|
31
|
+
|
|
32
|
+
export const Base: Story = {
|
|
33
|
+
args: {},
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const Small: Story = {
|
|
37
|
+
args: { width: '16px', height: '16px' },
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const Large: Story = {
|
|
41
|
+
args: { width: '64px', height: '64px' },
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const AllSizes: Story = {
|
|
45
|
+
name: 'All variants',
|
|
46
|
+
render: () => (
|
|
47
|
+
<div style={{ display: 'flex', gap: 24, alignItems: 'center' }}>
|
|
48
|
+
<AnimatedSpinnerIcon width="16px" height="16px" />
|
|
49
|
+
<AnimatedSpinnerIcon width="24px" height="24px" />
|
|
50
|
+
<AnimatedSpinnerIcon width="40px" height="40px" />
|
|
51
|
+
<AnimatedSpinnerIcon width="64px" height="64px" />
|
|
52
|
+
</div>
|
|
53
|
+
),
|
|
54
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import Box from '@mui/material/Box'
|
|
3
|
+
import BackgroundAnimation from '@components/BackgroundAnimation'
|
|
4
|
+
import type { BlobGradient } from '@components/BackgroundAnimation/Blob/type'
|
|
5
|
+
import { StoryTable, StoryThead, StoryTbody, StoryRow, StoryHeaderCell, StoryRowLabel, StoryCell } from '@storybook-utils'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof BackgroundAnimation> = {
|
|
8
|
+
title: 'Components/BackgroundAnimation',
|
|
9
|
+
component: BackgroundAnimation,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
gradient: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: ['blueGreen', 'greenYellow', 'yellowOrange', 'orangeRed', 'redPurple', 'purpleBlue'] as BlobGradient[],
|
|
15
|
+
description: 'Gradient color scheme for the blob shapes',
|
|
16
|
+
},
|
|
17
|
+
blobWidth: { control: 'text', description: 'Width of each blob (number or CSS string)' },
|
|
18
|
+
blobHeight: { control: 'text', description: 'Height of each blob (number or CSS string)' },
|
|
19
|
+
},
|
|
20
|
+
parameters: {
|
|
21
|
+
layout: 'fullscreen',
|
|
22
|
+
controls: { expanded: true },
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default meta
|
|
27
|
+
type Story = StoryObj<typeof BackgroundAnimation>
|
|
28
|
+
|
|
29
|
+
// BackgroundAnimation is absolutely positioned with zIndex: -1.
|
|
30
|
+
// Wrap it in a relative container so it is visible in Storybook.
|
|
31
|
+
const BgPreview = ({ gradient, blobWidth = '150px', blobHeight = '150px' }: { gradient?: BlobGradient; blobWidth?: string; blobHeight?: string }) => (
|
|
32
|
+
<Box sx={{ position: 'relative', height: 200, overflow: 'hidden', borderRadius: 1 }}>
|
|
33
|
+
<BackgroundAnimation gradient={gradient} blobWidth={blobWidth} blobHeight={blobHeight} />
|
|
34
|
+
</Box>
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
// ──────────────────────────────────────────────
|
|
38
|
+
// Focused stories
|
|
39
|
+
|
|
40
|
+
export const Default: Story = {
|
|
41
|
+
args: { gradient: 'purpleBlue' },
|
|
42
|
+
parameters: {
|
|
43
|
+
docs: {
|
|
44
|
+
source: {
|
|
45
|
+
language: 'tsx',
|
|
46
|
+
code: `
|
|
47
|
+
<BackgroundAnimation gradient="purpleBlue" />
|
|
48
|
+
`.trim(),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
render: (args) => (
|
|
53
|
+
<Box sx={{ position: 'relative', height: 400, overflow: 'hidden' }}>
|
|
54
|
+
<BackgroundAnimation {...args} />
|
|
55
|
+
</Box>
|
|
56
|
+
),
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const BlueGreen: Story = {
|
|
60
|
+
args: { gradient: 'blueGreen' },
|
|
61
|
+
parameters: {
|
|
62
|
+
docs: {
|
|
63
|
+
source: {
|
|
64
|
+
language: 'tsx',
|
|
65
|
+
code: `
|
|
66
|
+
<BackgroundAnimation gradient="blueGreen" />
|
|
67
|
+
`.trim(),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
render: (args) => (
|
|
72
|
+
<Box sx={{ position: 'relative', height: 400, overflow: 'hidden' }}>
|
|
73
|
+
<BackgroundAnimation {...args} />
|
|
74
|
+
</Box>
|
|
75
|
+
),
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const OrangeRed: Story = {
|
|
79
|
+
args: { gradient: 'orangeRed' },
|
|
80
|
+
parameters: {
|
|
81
|
+
docs: {
|
|
82
|
+
source: {
|
|
83
|
+
language: 'tsx',
|
|
84
|
+
code: `
|
|
85
|
+
<BackgroundAnimation gradient="orangeRed" />
|
|
86
|
+
`.trim(),
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
render: (args) => (
|
|
91
|
+
<Box sx={{ position: 'relative', height: 400, overflow: 'hidden' }}>
|
|
92
|
+
<BackgroundAnimation {...args} />
|
|
93
|
+
</Box>
|
|
94
|
+
),
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// ──────────────────────────────────────────────
|
|
98
|
+
// Kitchen sink
|
|
99
|
+
|
|
100
|
+
const gradientRows: Array<{ label: string; gradient: BlobGradient }> = [
|
|
101
|
+
{ label: 'purpleBlue', gradient: 'purpleBlue' },
|
|
102
|
+
{ label: 'blueGreen', gradient: 'blueGreen' },
|
|
103
|
+
{ label: 'greenYellow', gradient: 'greenYellow' },
|
|
104
|
+
{ label: 'yellowOrange', gradient: 'yellowOrange' },
|
|
105
|
+
{ label: 'orangeRed', gradient: 'orangeRed' },
|
|
106
|
+
{ label: 'redPurple', gradient: 'redPurple' },
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
const tableColumns = ['GRADIENT', 'PREVIEW'] as const
|
|
110
|
+
|
|
111
|
+
export const AllVariants: Story = {
|
|
112
|
+
name: 'all variants',
|
|
113
|
+
render: () => (
|
|
114
|
+
<Box sx={{ maxWidth: 960, mx: 'auto' }}>
|
|
115
|
+
<StoryTable sx={{ width: 'auto' }}>
|
|
116
|
+
<StoryThead>
|
|
117
|
+
<StoryRow>
|
|
118
|
+
{tableColumns.map((header, index) => (
|
|
119
|
+
<StoryHeaderCell key={header} first={index === 0}>
|
|
120
|
+
{header}
|
|
121
|
+
</StoryHeaderCell>
|
|
122
|
+
))}
|
|
123
|
+
</StoryRow>
|
|
124
|
+
</StoryThead>
|
|
125
|
+
|
|
126
|
+
<StoryTbody>
|
|
127
|
+
{gradientRows.map(({ label, gradient }) => (
|
|
128
|
+
<StoryRow key={label}>
|
|
129
|
+
<StoryRowLabel>{label}</StoryRowLabel>
|
|
130
|
+
<StoryCell>
|
|
131
|
+
<BgPreview gradient={gradient} />
|
|
132
|
+
</StoryCell>
|
|
133
|
+
</StoryRow>
|
|
134
|
+
))}
|
|
135
|
+
</StoryTbody>
|
|
136
|
+
</StoryTable>
|
|
137
|
+
</Box>
|
|
138
|
+
),
|
|
139
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import Box from '@mui/material/Box'
|
|
3
|
+
import Typography from '@mui/material/Typography'
|
|
4
|
+
import BetaBanner from '@components/BetaBanner'
|
|
5
|
+
import { StoryTable, StoryThead, StoryTbody, StoryRow, StoryHeaderCell, StoryRowLabel, StoryCell, StoryHint } from '@storybook-utils'
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof BetaBanner> = {
|
|
8
|
+
title: 'Components/BetaBanner',
|
|
9
|
+
component: BetaBanner,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'padded',
|
|
13
|
+
controls: { expanded: true },
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component:
|
|
17
|
+
'A compact informational banner shown while a feature is in beta. No props are required, so stories demonstrate recommended layout contexts.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
decorators: [
|
|
22
|
+
(Story) => (
|
|
23
|
+
<Box sx={{ display: 'flex', justifyContent: 'center', width: '100%', py: 2 }}>
|
|
24
|
+
<Story />
|
|
25
|
+
</Box>
|
|
26
|
+
),
|
|
27
|
+
],
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default meta
|
|
31
|
+
type Story = StoryObj<typeof BetaBanner>
|
|
32
|
+
|
|
33
|
+
export const Base: Story = {
|
|
34
|
+
parameters: {
|
|
35
|
+
docs: {
|
|
36
|
+
source: {
|
|
37
|
+
language: 'tsx',
|
|
38
|
+
code: `
|
|
39
|
+
<BetaBanner />
|
|
40
|
+
`.trim(),
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function NarrowContainerRender() {
|
|
47
|
+
return (
|
|
48
|
+
<Box sx={{ width: 260 }}>
|
|
49
|
+
<BetaBanner />
|
|
50
|
+
</Box>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const NarrowContainer: Story = {
|
|
55
|
+
name: 'narrow container',
|
|
56
|
+
render: NarrowContainerRender,
|
|
57
|
+
parameters: {
|
|
58
|
+
docs: {
|
|
59
|
+
source: {
|
|
60
|
+
language: 'tsx',
|
|
61
|
+
code: `
|
|
62
|
+
<Box sx={{ width: 260 }}>
|
|
63
|
+
<BetaBanner />
|
|
64
|
+
</Box>
|
|
65
|
+
`.trim(),
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function WithSectionHeadingRender() {
|
|
72
|
+
return (
|
|
73
|
+
<Box sx={{ width: 440, display: 'grid', gap: 1 }}>
|
|
74
|
+
<Typography variant="subtitle2" color="text.secondary">
|
|
75
|
+
Insights
|
|
76
|
+
</Typography>
|
|
77
|
+
<BetaBanner />
|
|
78
|
+
</Box>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const WithSectionHeading: Story = {
|
|
83
|
+
name: 'with section heading',
|
|
84
|
+
render: WithSectionHeadingRender,
|
|
85
|
+
parameters: {
|
|
86
|
+
docs: {
|
|
87
|
+
source: {
|
|
88
|
+
language: 'tsx',
|
|
89
|
+
code: `
|
|
90
|
+
<Box sx={{ width: 440, display: 'grid', gap: 1 }}>
|
|
91
|
+
<Typography variant="subtitle2" color="text.secondary">Insights</Typography>
|
|
92
|
+
<BetaBanner />
|
|
93
|
+
</Box>
|
|
94
|
+
`.trim(),
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const tableColumns = ['CONTEXT', 'PREVIEW'] as const
|
|
101
|
+
|
|
102
|
+
const contextRows = [
|
|
103
|
+
{
|
|
104
|
+
label: 'Default width',
|
|
105
|
+
content: <BetaBanner />,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: 'Constrained width (260px)',
|
|
109
|
+
content: (
|
|
110
|
+
<Box sx={{ width: 260 }}>
|
|
111
|
+
<BetaBanner />
|
|
112
|
+
</Box>
|
|
113
|
+
),
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: 'Inside section heading',
|
|
117
|
+
content: (
|
|
118
|
+
<Box sx={{ width: 440, display: 'grid', gap: 1 }}>
|
|
119
|
+
<Typography variant="subtitle2" color="text.secondary">
|
|
120
|
+
Insights
|
|
121
|
+
</Typography>
|
|
122
|
+
<BetaBanner />
|
|
123
|
+
</Box>
|
|
124
|
+
),
|
|
125
|
+
},
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
export const AllVariants: Story = {
|
|
129
|
+
name: 'all variants',
|
|
130
|
+
decorators: [],
|
|
131
|
+
render: () => (
|
|
132
|
+
<Box sx={{ maxWidth: 760, mx: 'auto' }}>
|
|
133
|
+
<StoryTable>
|
|
134
|
+
<StoryThead>
|
|
135
|
+
<StoryRow>
|
|
136
|
+
{tableColumns.map((header, index) => (
|
|
137
|
+
<StoryHeaderCell key={header} first={index === 0}>
|
|
138
|
+
{header}
|
|
139
|
+
</StoryHeaderCell>
|
|
140
|
+
))}
|
|
141
|
+
</StoryRow>
|
|
142
|
+
</StoryThead>
|
|
143
|
+
|
|
144
|
+
<StoryTbody>
|
|
145
|
+
{contextRows.map(({ label, content }) => (
|
|
146
|
+
<StoryRow key={label}>
|
|
147
|
+
<StoryRowLabel>{label}</StoryRowLabel>
|
|
148
|
+
<StoryCell sx={{ textAlign: 'left' }}>{content}</StoryCell>
|
|
149
|
+
</StoryRow>
|
|
150
|
+
))}
|
|
151
|
+
</StoryTbody>
|
|
152
|
+
</StoryTable>
|
|
153
|
+
|
|
154
|
+
<StoryHint>Use this component near page or section headers to indicate beta availability.</StoryHint>
|
|
155
|
+
</Box>
|
|
156
|
+
),
|
|
157
|
+
parameters: {
|
|
158
|
+
docs: {
|
|
159
|
+
source: {
|
|
160
|
+
language: 'tsx',
|
|
161
|
+
code: `
|
|
162
|
+
<Box sx={{ width: 440, display: 'grid', gap: 1 }}>
|
|
163
|
+
<Typography variant="subtitle2" color="text.secondary">Insights</Typography>
|
|
164
|
+
<BetaBanner />
|
|
165
|
+
</Box>
|
|
166
|
+
`.trim(),
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
}
|