@beaubrain/web-design-system 0.1.14 → 0.1.15

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.
@@ -0,0 +1,14 @@
1
+ import { Scope } from '../../core/react';
2
+ import * as React from 'react';
3
+ type PopupLayoutVariant = 'basic' | 'notice' | 'status';
4
+ type PopupPart = 'body' | 'footer' | 'header' | 'icon' | 'message';
5
+ declare function markPopupPart(component: unknown, part: PopupPart): void;
6
+ declare function resolvePopupContentWidth(contentWidth: number | string | undefined): string | undefined;
7
+ declare function getPopupContentChildren(variant: PopupLayoutVariant, children: React.ReactNode): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
8
+ declare function getFocusableElements(container: HTMLElement): HTMLElement[];
9
+ declare function stripPopupScope<P extends {
10
+ __scopePopup?: Scope;
11
+ }>(props: P): Omit<P, '__scopePopup'>;
12
+ declare function trapFocus(event: React.KeyboardEvent, container: HTMLElement | null): void;
13
+ export { getFocusableElements, getPopupContentChildren, markPopupPart, resolvePopupContentWidth, stripPopupScope, trapFocus, };
14
+ export type { PopupLayoutVariant };
@@ -3,7 +3,9 @@ export { default as Flex, type FlexProps } from './Flex/index.js';
3
3
  export { default as Button, type ButtonProps } from './Button/index.js';
4
4
  export { default as Spinner, type SpinnerProps } from './Spinner/index.js';
5
5
  export { default as Checkbox, type CheckboxProps } from './Checkbox/index.js';
6
+ export { default as ConfirmDialog, type ConfirmDialogProps } from './ConfirmDialog/index.js';
6
7
  export { default as CheckableSelectBox, type CheckableSelectBoxProps, type CheckableSelectItem, } from './CheckableSelectBox/index.js';
8
+ export { default as Popup, type PopupRootProps, type PopupPortalProps, type PopupOverlayProps, type PopupContentProps, type PopupHeaderProps, type PopupTitleProps, type PopupIconProps, type PopupMessageProps, type PopupBodyProps, type PopupFooterProps, } from './Popup/index.js';
7
9
  export { default as CheckboxGroup, type CheckboxGroupRootProps, type CheckboxGroupItemProps, } from './CheckboxGroup';
8
10
  export { default as Radio, type RadioProps } from './Radio/index.js';
9
11
  export { default as RadioGroup, type RadioGroupRootProps, type RadioGroupItemProps, } from './RadioGroup';