opus-react 0.2.16 → 0.2.18
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/index.cjs +1443 -1346
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +230 -126
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1213 -1116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -524,11 +524,21 @@ type CascaderFieldProps = {
|
|
|
524
524
|
};
|
|
525
525
|
declare function CascaderField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange, }: CascaderFieldProps): react.JSX.Element;
|
|
526
526
|
|
|
527
|
+
type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
527
528
|
type TooltipProps = {
|
|
528
529
|
content: string;
|
|
530
|
+
/** Accessible label for the default info trigger (ignored when children are provided). */
|
|
529
531
|
label?: string;
|
|
532
|
+
/** Optional trigger to wrap. When omitted, a default "i" info button is rendered. */
|
|
533
|
+
children?: ReactNode;
|
|
534
|
+
/** Where the tooltip appears relative to its trigger. Defaults to "top". */
|
|
535
|
+
placement?: TooltipPlacement;
|
|
536
|
+
/** Prevents the tooltip from opening (trigger still renders). */
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
/** Extra class for the wrapper element. */
|
|
539
|
+
className?: string;
|
|
530
540
|
};
|
|
531
|
-
declare function Tooltip({ content, label }: TooltipProps): react.JSX.Element;
|
|
541
|
+
declare function Tooltip({ content, label, children, placement, disabled, className, }: TooltipProps): react.JSX.Element;
|
|
532
542
|
|
|
533
543
|
type AlertProps = {
|
|
534
544
|
description: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -524,11 +524,21 @@ type CascaderFieldProps = {
|
|
|
524
524
|
};
|
|
525
525
|
declare function CascaderField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange, }: CascaderFieldProps): react.JSX.Element;
|
|
526
526
|
|
|
527
|
+
type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
527
528
|
type TooltipProps = {
|
|
528
529
|
content: string;
|
|
530
|
+
/** Accessible label for the default info trigger (ignored when children are provided). */
|
|
529
531
|
label?: string;
|
|
532
|
+
/** Optional trigger to wrap. When omitted, a default "i" info button is rendered. */
|
|
533
|
+
children?: ReactNode;
|
|
534
|
+
/** Where the tooltip appears relative to its trigger. Defaults to "top". */
|
|
535
|
+
placement?: TooltipPlacement;
|
|
536
|
+
/** Prevents the tooltip from opening (trigger still renders). */
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
/** Extra class for the wrapper element. */
|
|
539
|
+
className?: string;
|
|
530
540
|
};
|
|
531
|
-
declare function Tooltip({ content, label }: TooltipProps): react.JSX.Element;
|
|
541
|
+
declare function Tooltip({ content, label, children, placement, disabled, className, }: TooltipProps): react.JSX.Element;
|
|
532
542
|
|
|
533
543
|
type AlertProps = {
|
|
534
544
|
description: string;
|