@collective-intelligence/ui-react 0.1.4 → 0.1.6

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.
@@ -401,11 +401,12 @@ export interface CheckboxCardOptionProps extends Omit<CardOptionProps, "control"
401
401
  onCheckedChange: (checked: boolean) => void;
402
402
  }
403
403
  export interface CommandStepProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
404
- title: string;
404
+ /** Leave out when a surrounding control, such as a tab, names the command. */
405
+ title?: string;
405
406
  description?: React$1.ReactNode;
406
407
  /** The command shown verbatim and copied; may span several lines. */
407
408
  command: string;
408
- /** Accessible name of the copied value; defaults to `title`. */
409
+ /** Accessible name of the copied value; defaults to `title`, then to `command`. */
409
410
  copyLabel?: string;
410
411
  /** Toast message when the clipboard write fails. */
411
412
  copyErrorMessage?: string;
@@ -674,8 +675,22 @@ export interface MaskedValueProps {
674
675
  className?: string;
675
676
  maskChar?: string;
676
677
  showToggle?: boolean;
678
+ /** The name of the toggle while the value is masked. */
679
+ showLabel?: string;
680
+ /** The name of the toggle while the value is shown. */
681
+ hideLabel?: string;
682
+ /** False shows the whole value: no cut after 50 characters. */
683
+ truncate?: boolean;
684
+ /**
685
+ * Replaces the default row with the caller's presentation of the text to
686
+ * display and of the toggle. `className` has no effect then.
687
+ */
688
+ children?: (parts: {
689
+ displayValue: string;
690
+ toggle: React$1.ReactNode;
691
+ }) => React$1.ReactNode;
677
692
  }
678
- export declare const MaskedValue: ({ value, isSensitive, className, maskChar, showToggle }: MaskedValueProps) => React$1.JSX.Element;
693
+ export declare const MaskedValue: ({ value, isSensitive, className, maskChar, showToggle, showLabel, hideLabel, truncate, children }: MaskedValueProps) => string | number | bigint | boolean | React$1.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
679
694
  export interface MutedPlaceholderProps extends React$1.HTMLAttributes<HTMLDivElement> {
680
695
  icon?: React$1.ReactNode;
681
696
  text: React$1.ReactNode;