@medixdeck/ui 0.1.29 → 0.1.31

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
@@ -299,6 +299,18 @@ export declare interface BreadcrumbProps extends BoxProps {
299
299
  renderLink?: (item: BreadcrumbItem, children: default_2.ReactNode) => default_2.ReactNode;
300
300
  }
301
301
 
302
+ export declare function BrowserNotificationBanner({ title, description, actionLabel, busy, error, onAction, onDismiss, }: BrowserNotificationBannerProps): JSX_2.Element;
303
+
304
+ export declare interface BrowserNotificationBannerProps {
305
+ title?: string;
306
+ description: string;
307
+ actionLabel?: string;
308
+ busy?: boolean;
309
+ error?: string;
310
+ onAction: () => void;
311
+ onDismiss: () => void;
312
+ }
313
+
302
314
  /**
303
315
  * MedixDeck Button
304
316
  *
@@ -930,7 +942,7 @@ export declare type DashboardEnvironmentBannerStatus = 'warning' | 'info' | 'err
930
942
  * }
931
943
  * ```
932
944
  */
933
- export declare function DashboardLayout({ children, logo, navGroups, user, greeting, greetingSubtext, onLogout, renderLink, dropdownItems, topBarSlot, sidebarWidth, collapsedSidebarWidth, collapsible, defaultCollapsed, isCollapsed: controlledIsCollapsed, onCollapseChange, collapsedLogo, collapseTogglePlacement, colorScheme, mobileNavItems, scoreCard, environment, showEnvironmentBanner, environmentBanner, environmentBannerSlot, haptic, disableHaptic, ...rest }: DashboardLayoutProps): JSX_2.Element;
945
+ export declare function DashboardLayout({ children, contentBanner, logo, navGroups, user, greeting, greetingSubtext, onLogout, renderLink, dropdownItems, topBarSlot, sidebarWidth, collapsedSidebarWidth, collapsible, defaultCollapsed, isCollapsed: controlledIsCollapsed, onCollapseChange, collapsedLogo, collapseTogglePlacement, colorScheme, mobileNavItems, scoreCard, environment, showEnvironmentBanner, environmentBanner, environmentBannerSlot, haptic, disableHaptic, ...rest }: DashboardLayoutProps): JSX_2.Element;
934
946
 
935
947
  export declare namespace DashboardLayout {
936
948
  var displayName: string;
@@ -939,6 +951,7 @@ export declare namespace DashboardLayout {
939
951
  export declare interface DashboardLayoutProps extends Omit<BoxProps, 'children'> {
940
952
  /** Page content rendered inside the main area. */
941
953
  children: default_2.ReactNode;
954
+ contentBanner?: default_2.ReactNode;
942
955
  /**
943
956
  * Logo shown at the top of the sidebar.
944
957
  * Defaults to `<Logo height={26} />` when omitted.
@@ -3083,6 +3096,8 @@ export { SimpleGrid }
3083
3096
 
3084
3097
  declare interface SingleSelectProps extends SelectCommonProps {
3085
3098
  multiple?: false;
3099
+ /** Filter and order options for a non-empty search query. */
3100
+ searchOptions?: (options: readonly SelectOption[], query: string) => readonly SelectOption[];
3086
3101
  value?: string;
3087
3102
  defaultValue?: string | string[];
3088
3103
  onChange?: (value: string) => void;
@@ -3252,7 +3267,7 @@ export declare interface Step {
3252
3267
  * />
3253
3268
  * ```
3254
3269
  */
3255
- export declare function Stepper({ steps, currentStep, variant, orientation, colorScheme, ...props }: StepperProps): JSX_2.Element;
3270
+ export declare function Stepper({ steps, currentStep, maxSelectableStep, onStepClick, variant, orientation, colorScheme, ...props }: StepperProps): JSX_2.Element;
3256
3271
 
3257
3272
  export declare interface StepperProps extends BoxProps {
3258
3273
  /** Array of step definitions */
@@ -3262,6 +3277,10 @@ export declare interface StepperProps extends BoxProps {
3262
3277
  * e.g. currentStep={2} means step 2 is active).
3263
3278
  */
3264
3279
  currentStep: number;
3280
+ /** Highest selectable step. Defaults to the current step. */
3281
+ maxSelectableStep?: number;
3282
+ /** Called with the 1-indexed number of a selected step. */
3283
+ onStepClick?: (stepNumber: number) => void;
3265
3284
  variant?: 'default' | 'compact';
3266
3285
  orientation?: 'horizontal' | 'vertical';
3267
3286
  /** Brand color used for active/completed states */