@mitumba/ui 0.1.5 → 0.3.0

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/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import React$1, { ReactNode } from 'react';
3
3
  import { SxProps, Theme } from '@mui/material/styles';
4
+ import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
4
5
  import { AlertColor } from '@mui/material/Alert';
5
6
 
6
7
  type ButtonVariant = 'primary' | 'secondary' | 'earth' | 'success' | 'error' | 'outline' | 'ghost';
@@ -226,6 +227,27 @@ interface MitumbaAvatarProps {
226
227
  */
227
228
  declare function MitumbaAvatar({ name, imageUrl, size, badge, status, actionIcon, notificationCount, notificationColor, subtitle, textAlignment, hasNewEvent, progress, selected, isStacked, isCTA, overflowCount, onClick, }: MitumbaAvatarProps): react_jsx_runtime.JSX.Element;
228
229
 
230
+ interface AuthSubmitButtonProps {
231
+ /** Button label text */
232
+ label: string;
233
+ /** Whether a request is in progress — disables the button */
234
+ loading?: boolean;
235
+ /** Whether the button is disabled */
236
+ disabled?: boolean;
237
+ /** Expand to full container width */
238
+ fullWidth?: boolean;
239
+ /** Called on click */
240
+ onClick?: () => void;
241
+ /** MUI sx overrides */
242
+ sx?: SxProps$1<Theme$1>;
243
+ }
244
+
245
+ /**
246
+ * Submit button for auth forms. Uses native type="submit" so form onSubmit fires correctly.
247
+ * Not a general-purpose button — use MitumbaPrimaryButton for everything else.
248
+ */
249
+ declare function AuthSubmitButton({ label, loading, disabled, fullWidth, onClick, sx, }: AuthSubmitButtonProps): React$1.ReactElement;
250
+
229
251
  /**
230
252
  * Props for the EmptyState component.
231
253
  */
@@ -932,4 +954,4 @@ declare module '@mui/material/Chip' {
932
954
  }
933
955
  declare const mitumbaTheme: Theme;
934
956
 
935
- export { type BannerSeverity, CartItem, type CartItemProps, CompleteThisLookPanel, type CompleteThisLookPanelProps, ConditionBadge, type ConditionBadgeProps, DeliveryBadge, type DeliveryBadgeProps, EmptyState, ErrorState, type EscrowStatus, EscrowStatusBanner, type EscrowStatusBannerProps, ListingCard, type ListingCardProps, ListingCardSkeleton, ListingGrid, type ListingGridProps, ListingImageGallery, type ListingImageGalleryProps, MitumbaAvatar, type MitumbaAvatarProps, MitumbaBanner, type MitumbaBannerProps, MitumbaBreadcrumb, type MitumbaBreadcrumbProps, MitumbaChip, type MitumbaChipProps, MitumbaDivider, MitumbaGrid, type MitumbaGridProps, MitumbaModal, MitumbaPrimaryButton, type MitumbaPrimaryButtonProps, MitumbaSelect, type MitumbaSelectProps, MitumbaSkeleton, MitumbaTextField, type MitumbaTextFieldProps, MitumbaThemeProvider, type MitumbaThemeProviderProps, MitumbaToast, MobileBottomNav, type MobileBottomNavProps, OfflineBanner, type OrderEvent, type OrderStatus, OrderStatusTimeline, type OrderStatusTimelineProps, PageContainer, type PageContainerProps, PriceTag, type PriceTagProps, STIBreakdownPanel, type STIBreakdownPanelProps, STIScoreChip, type STIScoreChipProps, SectionHeader, type SectionHeaderProps, SellerCard, type SellerCardProps, TopNav, type TopNavProps, VAZIBadge, type VAZIBadgeProps, VAZIFeedSection, type VAZIFeedSectionProps, VAZIOutfitCard, type VAZIOutfitCardProps, VAZIOutfitCardSkeleton, type VAZIOutfitCardSkeletonProps, type VAZIOutfitItem, mitumbaTheme };
957
+ export { AuthSubmitButton, type AuthSubmitButtonProps, type BannerSeverity, CartItem, type CartItemProps, CompleteThisLookPanel, type CompleteThisLookPanelProps, ConditionBadge, type ConditionBadgeProps, DeliveryBadge, type DeliveryBadgeProps, EmptyState, ErrorState, type EscrowStatus, EscrowStatusBanner, type EscrowStatusBannerProps, ListingCard, type ListingCardProps, ListingCardSkeleton, ListingGrid, type ListingGridProps, ListingImageGallery, type ListingImageGalleryProps, MitumbaAvatar, type MitumbaAvatarProps, MitumbaBanner, type MitumbaBannerProps, MitumbaBreadcrumb, type MitumbaBreadcrumbProps, MitumbaChip, type MitumbaChipProps, MitumbaDivider, MitumbaGrid, type MitumbaGridProps, MitumbaModal, MitumbaPrimaryButton, type MitumbaPrimaryButtonProps, MitumbaSelect, type MitumbaSelectProps, MitumbaSkeleton, MitumbaTextField, type MitumbaTextFieldProps, MitumbaThemeProvider, type MitumbaThemeProviderProps, MitumbaToast, MobileBottomNav, type MobileBottomNavProps, OfflineBanner, type OrderEvent, type OrderStatus, OrderStatusTimeline, type OrderStatusTimelineProps, PageContainer, type PageContainerProps, PriceTag, type PriceTagProps, STIBreakdownPanel, type STIBreakdownPanelProps, STIScoreChip, type STIScoreChipProps, SectionHeader, type SectionHeaderProps, SellerCard, type SellerCardProps, TopNav, type TopNavProps, VAZIBadge, type VAZIBadgeProps, VAZIFeedSection, type VAZIFeedSectionProps, VAZIOutfitCard, type VAZIOutfitCardProps, VAZIOutfitCardSkeleton, type VAZIOutfitCardSkeletonProps, type VAZIOutfitItem, mitumbaTheme };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import React$1, { ReactNode } from 'react';
3
3
  import { SxProps, Theme } from '@mui/material/styles';
4
+ import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
4
5
  import { AlertColor } from '@mui/material/Alert';
5
6
 
6
7
  type ButtonVariant = 'primary' | 'secondary' | 'earth' | 'success' | 'error' | 'outline' | 'ghost';
@@ -226,6 +227,27 @@ interface MitumbaAvatarProps {
226
227
  */
227
228
  declare function MitumbaAvatar({ name, imageUrl, size, badge, status, actionIcon, notificationCount, notificationColor, subtitle, textAlignment, hasNewEvent, progress, selected, isStacked, isCTA, overflowCount, onClick, }: MitumbaAvatarProps): react_jsx_runtime.JSX.Element;
228
229
 
230
+ interface AuthSubmitButtonProps {
231
+ /** Button label text */
232
+ label: string;
233
+ /** Whether a request is in progress — disables the button */
234
+ loading?: boolean;
235
+ /** Whether the button is disabled */
236
+ disabled?: boolean;
237
+ /** Expand to full container width */
238
+ fullWidth?: boolean;
239
+ /** Called on click */
240
+ onClick?: () => void;
241
+ /** MUI sx overrides */
242
+ sx?: SxProps$1<Theme$1>;
243
+ }
244
+
245
+ /**
246
+ * Submit button for auth forms. Uses native type="submit" so form onSubmit fires correctly.
247
+ * Not a general-purpose button — use MitumbaPrimaryButton for everything else.
248
+ */
249
+ declare function AuthSubmitButton({ label, loading, disabled, fullWidth, onClick, sx, }: AuthSubmitButtonProps): React$1.ReactElement;
250
+
229
251
  /**
230
252
  * Props for the EmptyState component.
231
253
  */
@@ -932,4 +954,4 @@ declare module '@mui/material/Chip' {
932
954
  }
933
955
  declare const mitumbaTheme: Theme;
934
956
 
935
- export { type BannerSeverity, CartItem, type CartItemProps, CompleteThisLookPanel, type CompleteThisLookPanelProps, ConditionBadge, type ConditionBadgeProps, DeliveryBadge, type DeliveryBadgeProps, EmptyState, ErrorState, type EscrowStatus, EscrowStatusBanner, type EscrowStatusBannerProps, ListingCard, type ListingCardProps, ListingCardSkeleton, ListingGrid, type ListingGridProps, ListingImageGallery, type ListingImageGalleryProps, MitumbaAvatar, type MitumbaAvatarProps, MitumbaBanner, type MitumbaBannerProps, MitumbaBreadcrumb, type MitumbaBreadcrumbProps, MitumbaChip, type MitumbaChipProps, MitumbaDivider, MitumbaGrid, type MitumbaGridProps, MitumbaModal, MitumbaPrimaryButton, type MitumbaPrimaryButtonProps, MitumbaSelect, type MitumbaSelectProps, MitumbaSkeleton, MitumbaTextField, type MitumbaTextFieldProps, MitumbaThemeProvider, type MitumbaThemeProviderProps, MitumbaToast, MobileBottomNav, type MobileBottomNavProps, OfflineBanner, type OrderEvent, type OrderStatus, OrderStatusTimeline, type OrderStatusTimelineProps, PageContainer, type PageContainerProps, PriceTag, type PriceTagProps, STIBreakdownPanel, type STIBreakdownPanelProps, STIScoreChip, type STIScoreChipProps, SectionHeader, type SectionHeaderProps, SellerCard, type SellerCardProps, TopNav, type TopNavProps, VAZIBadge, type VAZIBadgeProps, VAZIFeedSection, type VAZIFeedSectionProps, VAZIOutfitCard, type VAZIOutfitCardProps, VAZIOutfitCardSkeleton, type VAZIOutfitCardSkeletonProps, type VAZIOutfitItem, mitumbaTheme };
957
+ export { AuthSubmitButton, type AuthSubmitButtonProps, type BannerSeverity, CartItem, type CartItemProps, CompleteThisLookPanel, type CompleteThisLookPanelProps, ConditionBadge, type ConditionBadgeProps, DeliveryBadge, type DeliveryBadgeProps, EmptyState, ErrorState, type EscrowStatus, EscrowStatusBanner, type EscrowStatusBannerProps, ListingCard, type ListingCardProps, ListingCardSkeleton, ListingGrid, type ListingGridProps, ListingImageGallery, type ListingImageGalleryProps, MitumbaAvatar, type MitumbaAvatarProps, MitumbaBanner, type MitumbaBannerProps, MitumbaBreadcrumb, type MitumbaBreadcrumbProps, MitumbaChip, type MitumbaChipProps, MitumbaDivider, MitumbaGrid, type MitumbaGridProps, MitumbaModal, MitumbaPrimaryButton, type MitumbaPrimaryButtonProps, MitumbaSelect, type MitumbaSelectProps, MitumbaSkeleton, MitumbaTextField, type MitumbaTextFieldProps, MitumbaThemeProvider, type MitumbaThemeProviderProps, MitumbaToast, MobileBottomNav, type MobileBottomNavProps, OfflineBanner, type OrderEvent, type OrderStatus, OrderStatusTimeline, type OrderStatusTimelineProps, PageContainer, type PageContainerProps, PriceTag, type PriceTagProps, STIBreakdownPanel, type STIBreakdownPanelProps, STIScoreChip, type STIScoreChipProps, SectionHeader, type SectionHeaderProps, SellerCard, type SellerCardProps, TopNav, type TopNavProps, VAZIBadge, type VAZIBadgeProps, VAZIFeedSection, type VAZIFeedSectionProps, VAZIOutfitCard, type VAZIOutfitCardProps, VAZIOutfitCardSkeleton, type VAZIOutfitCardSkeletonProps, type VAZIOutfitItem, mitumbaTheme };