@bmsuisse/ui 0.17.0 → 0.19.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.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ReactElement, ComponentPropsWithoutRef, TdHTMLAttributes, ThHTMLAttributes, ReactNode, ComponentProps, ComponentType, Ref, ElementType } from 'react';
2
+ import { ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ReactElement, ComponentPropsWithoutRef, TdHTMLAttributes, ThHTMLAttributes, ReactNode, ComponentProps, ComponentType, Ref, ElementType, CSSProperties } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -1236,8 +1236,8 @@ interface StepperStep {
1236
1236
  n: number;
1237
1237
  /** Visible label under the chip. */
1238
1238
  label: string;
1239
- /** Small uppercase caption under the label (e.g. a phase/section name). */
1240
- phase: string;
1239
+ /** Small uppercase caption under the label (e.g. a phase/section name). Omit to render no caption. */
1240
+ phase?: string;
1241
1241
  }
1242
1242
  interface StepperProps {
1243
1243
  /** The current step number (1-based, matches a `StepperStep.n`). */
@@ -1258,11 +1258,21 @@ interface StepperProps {
1258
1258
  scrollTestId?: string;
1259
1259
  /** `data-testid` for the trailing `onNew` button, when rendered. */
1260
1260
  newTestId?: string;
1261
+ /**
1262
+ * Minimum width of the steps track; below it the track scrolls horizontally instead of
1263
+ * shrinking further (a number is px, a string is any CSS length, e.g. `"40rem"`). By default
1264
+ * the track has no fixed minimum: it fills the available width and only scrolls once the
1265
+ * chips themselves no longer fit. Set it to give the chips more room than their own content.
1266
+ */
1267
+ minWidth?: number | string;
1268
+ /** Extra classes for the root element (e.g. to constrain or centre the stepper). */
1269
+ className?: string;
1261
1270
  }
1262
1271
  /**
1263
- * Numbered-chip wizard progress indicator: a horizontally-scrolling row of
1264
- * step chips (done/active/upcoming, connected by a line that fills in as
1265
- * steps complete) plus an optional trailing "start over" button. Replaces
1272
+ * Numbered-chip wizard progress indicator: a row of step chips
1273
+ * (done/active/upcoming, connected by a line that fills in as steps complete)
1274
+ * that scrolls horizontally only when the chips don't fit, plus an optional
1275
+ * trailing "start over" button. Replaces
1266
1276
  * the same shape hand-rolled independently by more than one multi-step
1267
1277
  * wizard.
1268
1278
  *
@@ -1274,7 +1284,7 @@ interface StepperProps {
1274
1284
  * that needs a one-off extra chip should compose its own around this
1275
1285
  * component instead.
1276
1286
  */
1277
- declare function Stepper({ step, maxStep, onNavigate, onNew, steps, navLabel, newLabel, scrollTestId, newTestId, }: StepperProps): react.JSX.Element;
1287
+ declare function Stepper({ step, maxStep, onNavigate, onNew, steps, navLabel, newLabel, scrollTestId, newTestId, minWidth, className, }: StepperProps): react.JSX.Element;
1278
1288
 
1279
1289
  /** Merges conditional class names, then dedupes conflicting Tailwind utility classes. */
1280
1290
  declare function cn(...inputs: ClassValue[]): string;
@@ -1303,4 +1313,54 @@ type ConfirmButtonPlacement = "leading" | "trailing";
1303
1313
  */
1304
1314
  declare function getConfirmButtonPlacement(): ConfirmButtonPlacement;
1305
1315
 
1306
- export { AiButton, type AiButtonProps, type AiButtonVariant, AiExplainButton, type AiExplainButtonProps, AlertBox, type AlertBoxProps, type AlertBoxVariant, AsyncBoundary, type AsyncBoundaryProps, Badge, type BadgeProps, Button, ButtonGroup, type ButtonGroupOption, type ButtonGroupProps, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, type GridColumn as ComboboxColumn, type ComboboxMultiProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, type ConfirmButtonPlacement, ConfirmDialog, type ConfirmDialogProps, Dialog, DialogActions, type DialogActionsProps, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, type DonutSegment, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ErrorInfo, type ErrorInput, ErrorState, type ErrorStateLabels, type ErrorStateProps, FormField, type FormFieldProps, FormModal, type FormModalProps, InlineError, type InlineErrorProps, Input, type InputProps, KpiCard, type KpiCardProps, Label, LoadingOverlay, type LoadingOverlayProps, LoadingSpinner, type LoadingSpinnerProps, LoadingState, type LoadingStateProps, Modal, type ModalProps, NavGroup, type NavGroupProps, type NavIconProps, NavItem, type NavItemProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, QuestionDialog, type QuestionDialogAction, type QuestionDialogProps, RefreshBar, ResponsivePanel, type ResponsivePanelProps, type ResponsivePanelSize, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, SearchPanel, type SearchPanelMode, type SearchPanelProps, SearchTrigger, type SearchTriggerProps, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarNav, type SidebarNavProps, type SidebarProps, Skeleton, Sparkline, type SpeechRecognitionEngine, type SpeechRecognitionEngineFactory, type SpeechRecognitionState, StatusBadge, type StatusBadgeProps, type StatusTone, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagCombobox, type TagComboboxOption, type TagComboboxProps, Textarea, type TextareaProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseSpeechRecognitionOptions, VoiceInputButton, type VoiceInputButtonProps, VoiceTranscript, type VoiceTranscriptProps, badgeVariants, buttonVariants, cn, defaultErrorStateLabels, describeSpeechError, getConfirmButtonPlacement, isWindowsPlatform, loadingSpinnerIconVariants, sheetVariants, toErrorInfo, useDelayedFlag, useMediaQuery, useSidebarCollapsed, useSpeechRecognition };
1316
+ declare const BRAND_ANIMATIONS: readonly [{
1317
+ readonly id: "bounce";
1318
+ readonly label: "Bounce home";
1319
+ }, {
1320
+ readonly id: "orbit";
1321
+ readonly label: "Orbit and settle";
1322
+ }, {
1323
+ readonly id: "impact";
1324
+ readonly label: "Shot in, boom";
1325
+ }, {
1326
+ readonly id: "liquid";
1327
+ readonly label: "Liquid split";
1328
+ }, {
1329
+ readonly id: "signature";
1330
+ readonly label: "Solid to signature";
1331
+ }, {
1332
+ readonly id: "burst";
1333
+ readonly label: "Big bang, small dot";
1334
+ }, {
1335
+ readonly id: "gravity";
1336
+ readonly label: "Gravity press";
1337
+ }];
1338
+ type BrandAnimation = (typeof BRAND_ANIMATIONS)[number]["id"];
1339
+ type BrandMode = "full" | "mark" | "one";
1340
+
1341
+ interface AnimatedBrandProps {
1342
+ /** Product suffix, for example Brain, Hub, Docs, or Product. */
1343
+ product?: string;
1344
+ /** Accent color shared by the dot, trails, and particles. Accepts any CSS color. */
1345
+ dotColor?: string;
1346
+ /** Base color for the wordmark and ring. */
1347
+ textColor?: string;
1348
+ /** Optional overrides for the One prefix, product suffix, and O ring. */
1349
+ oneColor?: string;
1350
+ productColor?: string;
1351
+ ringColor?: string;
1352
+ mode?: BrandMode;
1353
+ animation?: BrandAnimation | "random";
1354
+ /** Font size in CSS pixels. The O scales proportionally with the wordmark. */
1355
+ size?: number;
1356
+ autoPlay?: boolean;
1357
+ /** Change this value to replay a finite animation. */
1358
+ replayKey?: string | number;
1359
+ onComplete?: () => void;
1360
+ className?: string;
1361
+ style?: CSSProperties;
1362
+ }
1363
+ /** A static accessible brand with an optional finite, reduced-motion-aware introduction. */
1364
+ declare function AnimatedBrand({ product, dotColor, textColor, oneColor, productColor, ringColor, mode, animation, size, autoPlay, replayKey, onComplete, className, style, }: AnimatedBrandProps): ReactElement;
1365
+
1366
+ export { AiButton, type AiButtonProps, type AiButtonVariant, AiExplainButton, type AiExplainButtonProps, AlertBox, type AlertBoxProps, type AlertBoxVariant, AnimatedBrand, type AnimatedBrandProps, AsyncBoundary, type AsyncBoundaryProps, BRAND_ANIMATIONS, Badge, type BadgeProps, type BrandAnimation, type BrandMode, Button, ButtonGroup, type ButtonGroupOption, type ButtonGroupProps, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, type GridColumn as ComboboxColumn, type ComboboxMultiProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, type ConfirmButtonPlacement, ConfirmDialog, type ConfirmDialogProps, Dialog, DialogActions, type DialogActionsProps, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, type DonutSegment, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ErrorInfo, type ErrorInput, ErrorState, type ErrorStateLabels, type ErrorStateProps, FormField, type FormFieldProps, FormModal, type FormModalProps, InlineError, type InlineErrorProps, Input, type InputProps, KpiCard, type KpiCardProps, Label, LoadingOverlay, type LoadingOverlayProps, LoadingSpinner, type LoadingSpinnerProps, LoadingState, type LoadingStateProps, Modal, type ModalProps, NavGroup, type NavGroupProps, type NavIconProps, NavItem, type NavItemProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, QuestionDialog, type QuestionDialogAction, type QuestionDialogProps, RefreshBar, ResponsivePanel, type ResponsivePanelProps, type ResponsivePanelSize, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, SearchPanel, type SearchPanelMode, type SearchPanelProps, SearchTrigger, type SearchTriggerProps, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarNav, type SidebarNavProps, type SidebarProps, Skeleton, Sparkline, type SpeechRecognitionEngine, type SpeechRecognitionEngineFactory, type SpeechRecognitionState, StatusBadge, type StatusBadgeProps, type StatusTone, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagCombobox, type TagComboboxOption, type TagComboboxProps, Textarea, type TextareaProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseSpeechRecognitionOptions, VoiceInputButton, type VoiceInputButtonProps, VoiceTranscript, type VoiceTranscriptProps, badgeVariants, buttonVariants, cn, defaultErrorStateLabels, describeSpeechError, getConfirmButtonPlacement, isWindowsPlatform, loadingSpinnerIconVariants, sheetVariants, toErrorInfo, useDelayedFlag, useMediaQuery, useSidebarCollapsed, useSpeechRecognition };