@grasp-labs/ds-react-components 0.19.0 → 0.20.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.
- package/dist/components/passwordTextBox/PasswordTextBox.d.ts +15 -0
- package/dist/components/passwordTextBox/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +20 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/icons/icons.d.ts +14 -0
- package/dist/{index-wJPxf68W.js → index-CnFQnrvD.js} +2220 -2151
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/{index.esm-hxxEbnri.js → index.esm-BTIq6l_S.js} +1 -1
- package/dist/index.js +82 -78
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseTextBoxProps } from '../baseTextBox';
|
|
2
|
+
export type PasswordTextBoxProps = Omit<BaseTextBoxProps, "type"> & {
|
|
3
|
+
/** Tooltip text shown when password is hidden (hovering over the show button) */
|
|
4
|
+
showPasswordLabel?: string;
|
|
5
|
+
/** Tooltip text shown when password is visible (hovering over the hide button) */
|
|
6
|
+
hidePasswordLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A password input field with visibility toggle button.
|
|
10
|
+
* Extends TextBox with eye icon to show/hide password and optional tooltip.
|
|
11
|
+
*
|
|
12
|
+
* @param props - The props for the PasswordTextBox component.
|
|
13
|
+
* @returns The rendered password input with toggle button.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PasswordTextBox: ({ showPasswordLabel, hidePasswordLabel, disabled, ...props }: PasswordTextBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PopoverPlacement } from '../popover';
|
|
3
|
+
export type TooltipProps = {
|
|
4
|
+
/** The element that triggers the tooltip on hover */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** The text or content to display in the tooltip */
|
|
7
|
+
content: ReactNode;
|
|
8
|
+
/** Preferred placement of the tooltip */
|
|
9
|
+
placement?: PopoverPlacement;
|
|
10
|
+
/** Additional CSS classes for the tooltip content */
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A tooltip component that displays contextual information on hover.
|
|
15
|
+
* Wraps Popover with automatic show/hide state management.
|
|
16
|
+
*
|
|
17
|
+
* @param props - The props for the Tooltip component.
|
|
18
|
+
* @returns The rendered tooltip with trigger element.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Tooltip: ({ children, content, placement, className, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/icons.d.ts
CHANGED
|
@@ -96,6 +96,18 @@ export declare const icons: {
|
|
|
96
96
|
desc?: string;
|
|
97
97
|
descId?: string;
|
|
98
98
|
}>>;
|
|
99
|
+
readonly eye: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
100
|
+
title?: string;
|
|
101
|
+
titleId?: string;
|
|
102
|
+
desc?: string;
|
|
103
|
+
descId?: string;
|
|
104
|
+
}>>;
|
|
105
|
+
readonly eyeOff: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
106
|
+
title?: string;
|
|
107
|
+
titleId?: string;
|
|
108
|
+
desc?: string;
|
|
109
|
+
descId?: string;
|
|
110
|
+
}>>;
|
|
99
111
|
readonly expandDown: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
100
112
|
title?: string;
|
|
101
113
|
titleId?: string;
|
|
@@ -233,6 +245,8 @@ export declare const DetailsIcon: IconComponent;
|
|
|
233
245
|
export declare const EarthIcon: IconComponent;
|
|
234
246
|
export declare const ErrorFilledIcon: IconComponent;
|
|
235
247
|
export declare const ErrorOutlinedIcon: IconComponent;
|
|
248
|
+
export declare const EyeIcon: IconComponent;
|
|
249
|
+
export declare const EyeOffIcon: IconComponent;
|
|
236
250
|
export declare const ExpandDownIcon: IconComponent;
|
|
237
251
|
export declare const ExpandRightIcon: IconComponent;
|
|
238
252
|
export declare const ExpandIcon: IconComponent;
|