@kazee-ds/react 0.7.0 → 0.10.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.
@@ -8,6 +8,8 @@ export interface CardInteractionProps {
8
8
  rel?: string;
9
9
  onPress?: () => void;
10
10
  isDisabled?: boolean;
11
+ /** Controlled toggle state for the native action button; omitted for ordinary actions. */
12
+ isSelected?: boolean;
11
13
  actionLabel?: string;
12
14
  actionLabelledBy?: string;
13
15
  actionClassName?: string;
@@ -28,8 +30,8 @@ export interface CardProps extends HTMLAttributes<HTMLDivElement>, StylingProps<
28
30
  dividedHeader?: boolean;
29
31
  flushFooter?: boolean;
30
32
  }
31
- declare function CompactCard({ title, description, headingLevel, actions, header, titleExtras, footer, children, className, classNames, density, href, target, rel, onPress, isDisabled, actionLabel, actionLabelledBy, actionClassName, renderLink, headerAlign, dividedHeader, flushFooter, ...props }: CardProps): import("react").JSX.Element;
32
- export declare function CardRoot({ className, classNames, children, density, href, target, rel, onPress, isDisabled, actionLabel, actionLabelledBy, actionClassName, renderLink, ...props }: HTMLAttributes<HTMLDivElement> & CardInteractionProps & StylingProps<'action'>): import("react").JSX.Element;
33
+ declare function CompactCard({ title, description, headingLevel, actions, header, titleExtras, footer, children, className, classNames, density, href, target, rel, onPress, isDisabled, isSelected, actionLabel, actionLabelledBy, actionClassName, renderLink, headerAlign, dividedHeader, flushFooter, ...props }: CardProps): import("react").JSX.Element;
34
+ export declare function CardRoot({ className, classNames, children, density, href, target, rel, onPress, isDisabled, isSelected, actionLabel, actionLabelledBy, actionClassName, renderLink, ...props }: HTMLAttributes<HTMLDivElement> & CardInteractionProps & StylingProps<'action'>): import("react").JSX.Element;
33
35
  export declare function CardHeader({ className, align, divided, ...props }: HTMLAttributes<HTMLDivElement> & {
34
36
  align?: 'start' | 'center' | 'end';
35
37
  divided?: boolean;
@@ -1,9 +1,18 @@
1
1
  import { ComboboxComposition, ComboboxInputGroup, ComboboxInput, ComboboxTrigger, ComboboxPopover, ComboboxClearButton, type ComboboxCompositionProps } from './combobox-composition.js';
2
2
  import { type StylingProps } from './styling.js';
3
3
  import { type ReactNode } from 'react';
4
+ import type { SelectSize, SelectVariant } from './Select.js';
4
5
  import { type SelectOption } from './selection-options.js';
5
6
  export interface ComboboxProps extends StylingProps<'root' | 'label' | 'required' | 'control' | 'leading' | 'input' | 'clearButton' | 'clearIcon' | 'trigger' | 'indicator' | 'popover' | 'list' | 'empty' | 'item' | 'itemLabel' | 'itemDescription' | 'itemIndicator' | 'description' | 'error'> {
6
7
  label: string;
8
+ size?: SelectSize;
9
+ variant?: SelectVariant;
10
+ hideLabel?: boolean;
11
+ fullWidth?: boolean;
12
+ maxHeight?: number;
13
+ menuTrigger?: 'input' | 'focus' | 'manual';
14
+ selectOnFocus?: boolean;
15
+ disallowEmptySelection?: boolean;
7
16
  options: SelectOption[];
8
17
  value?: string | null;
9
18
  defaultValue?: string | null;
@@ -29,6 +29,10 @@ export interface DialogProps extends StylingProps<DialogPart> {
29
29
  showCloseButton?: boolean;
30
30
  showFooterClose?: boolean;
31
31
  closeIconLabel?: string;
32
+ /** Full-width divider below the header; content keeps its padding. */
33
+ dividedHeader?: boolean;
34
+ /** Full-width divider above the footer, when a footer is rendered. */
35
+ dividedFooter?: boolean;
32
36
  }
33
37
  declare function DialogComponent(props: DialogProps | DialogRootProps): import("react").JSX.Element;
34
38
  export declare const Dialog: typeof DialogComponent & {
@@ -37,11 +41,15 @@ export declare const Dialog: typeof DialogComponent & {
37
41
  Backdrop: ({ className, ...props }: import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>, string | import("react").JSXElementConstructor<any>>;
38
42
  Panel: ({ className, ...props }: import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>, string | import("react").JSXElementConstructor<any>>;
39
43
  Content: typeof DialogContent;
40
- Header: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
44
+ Header: ({ divided, className, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
45
+ divided?: boolean;
46
+ }) => import("react").JSX.Element;
41
47
  Heading: typeof OverlayHeading;
42
48
  Description: typeof OverlayDescription;
43
49
  Body: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
44
- Footer: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
50
+ Footer: ({ divided, className, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
51
+ divided?: boolean;
52
+ }) => import("react").JSX.Element;
45
53
  CloseButton: typeof DialogCloseButton;
46
54
  };
47
55
  export {};
@@ -50,7 +50,7 @@ export interface InputProps extends StylingProps<'root' | 'input' | 'control' |
50
50
  onKeyUp?: KeyboardEventHandler<HTMLInputElement>;
51
51
  dir?: 'ltr' | 'rtl';
52
52
  }
53
- export declare const Input: import("react").ForwardRefExoticComponent<(InputCompositionProps | InputProps) & import("react").RefAttributes<HTMLInputElement>> & {
53
+ export declare const Input: import("react").ForwardRefExoticComponent<(InputProps | InputCompositionProps) & import("react").RefAttributes<HTMLInputElement>> & {
54
54
  Root: typeof InputRoot;
55
55
  Control: import("react").ForwardRefExoticComponent<Omit<import("react-aria-components").InputProps, "className"> & {
56
56
  className?: string;
@@ -23,9 +23,13 @@ export declare const Popover: typeof PopoverComponent & {
23
23
  Dialog: typeof PopoverDialog;
24
24
  Heading: typeof OverlayHeading;
25
25
  Description: typeof OverlayDescription;
26
- Header: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
26
+ Header: ({ divided, className, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
27
+ divided?: boolean;
28
+ }) => import("react").JSX.Element;
27
29
  Body: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
28
- Footer: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
30
+ Footer: ({ divided, className, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
31
+ divided?: boolean;
32
+ }) => import("react").JSX.Element;
29
33
  CloseButton: typeof PopoverCloseButton;
30
34
  };
31
35
  export {};
@@ -10,6 +10,7 @@ interface SelectCommonProps extends StylingProps<'root' | 'label' | 'required' |
10
10
  onAction?: (value: string) => void;
11
11
  label: string;
12
12
  options: SelectOption[];
13
+ maxHeight?: number;
13
14
  size?: SelectSize;
14
15
  variant?: SelectVariant;
15
16
  /** Hide visually while retaining the accessible label. */
@@ -1,5 +1,7 @@
1
1
  import { type ComboBoxProps, type InputProps, type ButtonProps, type PopoverProps } from 'react-aria-components/ComboBox';
2
- import { type HTMLAttributes } from 'react';
2
+ import { type HTMLAttributes, type RefAttributes } from 'react';
3
+ import { type GroupProps } from 'react-aria-components/Group';
4
+ import type { SelectSize, SelectVariant } from './Select.js';
3
5
  export type ComboboxCompositionProps = Omit<ComboBoxProps<object>, 'className' | 'onChange' | 'value' | 'defaultValue'> & {
4
6
  className?: string;
5
7
  options?: never;
@@ -7,10 +9,19 @@ export type ComboboxCompositionProps = Omit<ComboBoxProps<object>, 'className' |
7
9
  value?: string | null;
8
10
  defaultValue?: string | null;
9
11
  onChange?: (value: string | null) => void;
12
+ size?: SelectSize;
13
+ variant?: SelectVariant;
14
+ hideLabel?: boolean;
15
+ fullWidth?: boolean;
16
+ selectOnFocus?: boolean;
17
+ disallowEmptySelection?: boolean;
18
+ maxHeight?: number;
10
19
  };
11
- export declare function ComboboxComposition({ className, onChange, ...props }: ComboboxCompositionProps): import("react").JSX.Element;
12
- export declare function ComboboxInputGroup({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
13
- export declare function ComboboxInput({ className, ...props }: Omit<InputProps, 'className'> & {
20
+ export declare function ComboboxComposition({ className, onChange, size, variant, hideLabel, fullWidth, selectOnFocus, disallowEmptySelection, maxHeight, ...props }: ComboboxCompositionProps): import("react").JSX.Element;
21
+ export declare function ComboboxInputGroup({ className, ...props }: Omit<GroupProps, 'className'> & RefAttributes<HTMLDivElement> & {
22
+ className?: string;
23
+ }): import("react").JSX.Element;
24
+ export declare function ComboboxInput({ className, ...props }: Omit<InputProps, 'className'> & RefAttributes<HTMLInputElement> & {
14
25
  className?: string;
15
26
  }): import("react").JSX.Element;
16
27
  export declare function ComboboxTrigger({ className, children, ...props }: Omit<ButtonProps, 'className'> & {
@@ -19,4 +30,4 @@ export declare function ComboboxTrigger({ className, children, ...props }: Omit<
19
30
  export declare function ComboboxPopover({ className, ...props }: Omit<PopoverProps, 'className'> & {
20
31
  className?: string;
21
32
  }): import("react").JSX.Element;
22
- export declare function ComboboxClearButton({ className, children, 'aria-label': label, ...props }: Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'>): import("react").JSX.Element;
33
+ export declare function ComboboxClearButton({ className, children, 'aria-label': label, ...props }: Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'>): import("react").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { type PopoverProps } from 'react-aria-components/Popover';
2
+ /** Positioning must receive the cap: its available-space inline style wins over CSS. */
3
+ export declare function SelectionPopover({ maxHeight, ...props }: PopoverProps): import("react").JSX.Element;
@@ -13,9 +13,13 @@ export declare const DialogTriggerPart: ({ className, ...props }: import("react-
13
13
  export declare const DialogBackdrop: ({ className, ...props }: import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>, string | import("react").JSXElementConstructor<any>>;
14
14
  export declare const DialogPanel: ({ className, ...props }: import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<import("react-aria-components").ModalOverlayProps & import("react").RefAttributes<HTMLDivElement>, string | import("react").JSXElementConstructor<any>>;
15
15
  export declare function DialogContent(props: ComponentProps<typeof Dialog>): import("react").JSX.Element;
16
- export declare const OverlayHeader: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
16
+ export declare const OverlayHeader: ({ divided, className, ...props }: HTMLAttributes<HTMLDivElement> & {
17
+ divided?: boolean;
18
+ }) => import("react").JSX.Element;
17
19
  export declare const OverlayBody: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
18
- export declare const OverlayFooter: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
20
+ export declare const OverlayFooter: ({ divided, className, ...props }: HTMLAttributes<HTMLDivElement> & {
21
+ divided?: boolean;
22
+ }) => import("react").JSX.Element;
19
23
  export declare function OverlayHeading({ level, slot, ...props }: ComponentProps<typeof Heading>): import("react").JSX.Element;
20
24
  export declare function OverlayDescription({ className, slot, id, ...props }: ComponentProps<typeof Text>): import("react").JSX.Element;
21
25
  export declare function DialogCloseButton({ slot, ...props }: ComponentProps<typeof Button>): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kazee-ds/react",
3
- "version": "0.7.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {