@camstack/ui-library 1.2.251 → 1.2.253

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.
@@ -1,8 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "info" | "success" | "default" | "danger" | "warning" | null | undefined;
5
- styleVariant?: "solid" | "outline" | null | undefined;
4
+ variant?: "info" | "danger" | "default" | "success" | "warning" | null | undefined;
5
+ styleVariant?: "outline" | "solid" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'style'>, VariantProps<typeof badgeVariants> {
8
8
  style?: 'solid' | 'outline';
@@ -1,7 +1,7 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "danger" | "outline" | "primary" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "primary" | "secondary" | "ghost" | "danger" | "outline" | null | undefined;
5
5
  size?: "sm" | "md" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  declare const iconButtonVariants: (props?: ({
5
- variant?: "danger" | "outline" | "primary" | "secondary" | "ghost" | null | undefined;
5
+ variant?: "primary" | "secondary" | "ghost" | "danger" | "outline" | null | undefined;
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof iconButtonVariants> {
@@ -19,3 +19,4 @@ export * from './scroll-area';
19
19
  export * from './floating-panel';
20
20
  export * from './mobile-drawer';
21
21
  export * from './bottom-sheet';
22
+ export * from './password-input';
@@ -0,0 +1,19 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
3
+ readonly value: string;
4
+ readonly onValueChange: (text: string) => void;
5
+ /** The text is shown in clear. */
6
+ readonly shown: boolean;
7
+ readonly onToggleShown: () => void;
8
+ /** The eye is waiting for a value (a reveal in flight). */
9
+ readonly busy?: boolean;
10
+ /** Why the last press failed — drawn as a tooltip on the eye. */
11
+ readonly error?: string | null;
12
+ /** The eye cannot act right now; the reason is its title. */
13
+ readonly toggleBlockedReason?: string | null;
14
+ /** Draw no eye at all (a field that opts out of the toggle). */
15
+ readonly hideToggle?: boolean;
16
+ /** Multi-line entry (a PEM key): a textarea masked by the browser. */
17
+ readonly multiline?: boolean;
18
+ }
19
+ export declare const PasswordInput: import('react').ForwardRefExoticComponent<PasswordInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -5,8 +5,11 @@ interface TooltipProps {
5
5
  * (shrink-to-fit). Pass `block w-full min-w-0` when the trigger must fill a
6
6
  * width-constrained parent so its inner content can truncate cleanly. */
7
7
  readonly className?: string;
8
+ /** Holds the tooltip open (or shut) regardless of hover — an error the
9
+ * control has to show until it is dismissed. Hover drives it when absent. */
10
+ readonly open?: boolean;
8
11
  }
9
- export declare function Tooltip({ children, className }: TooltipProps): import("react").JSX.Element;
12
+ export declare function Tooltip({ children, className, open: forcedOpen }: TooltipProps): import("react").JSX.Element;
10
13
  export declare function TooltipTrigger({ children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
11
14
  export declare function TooltipContent({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
12
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.251",
3
+ "version": "1.2.253",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",