@helpwave/hightide 0.8.6 → 0.8.8
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.d.mts +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/index.js +6761 -6747
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1288 -1274
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -578,7 +578,7 @@ interface TabContextType {
|
|
|
578
578
|
activeId: string | null;
|
|
579
579
|
setActiveId: Dispatch<SetStateAction<string | null>>;
|
|
580
580
|
subscribe: (info: TabInfo) => () => void;
|
|
581
|
-
|
|
581
|
+
infos?: TabInfo[];
|
|
582
582
|
};
|
|
583
583
|
portal: {
|
|
584
584
|
id: string | null;
|
|
@@ -587,8 +587,17 @@ interface TabContextType {
|
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
declare function useTabContext(): TabContextType;
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
interface TabSwitcherProps extends PropsWithChildren {
|
|
591
|
+
activeId?: string;
|
|
592
|
+
onActiveIdChange?: (activeId: string | null) => void;
|
|
593
|
+
initialActiveId?: string;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* The controlling component of several Tabpanels.
|
|
597
|
+
*
|
|
598
|
+
* The uncontrolled mode only works if the Tabpanels do not remount.
|
|
599
|
+
*/
|
|
600
|
+
declare function TabSwitcher({ children, activeId: controlledActiveId, onActiveIdChange, initialActiveId }: TabSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
592
601
|
type TabListProps = HTMLAttributes<HTMLUListElement>;
|
|
593
602
|
declare function TabList({ ...props }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
594
603
|
type TabViewProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -597,8 +606,9 @@ type TabPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
597
606
|
label: string;
|
|
598
607
|
forceMount?: boolean;
|
|
599
608
|
disabled?: boolean;
|
|
609
|
+
initiallyActive?: boolean;
|
|
600
610
|
};
|
|
601
|
-
declare function TabPanel({ label, forceMount, disabled, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
611
|
+
declare function TabPanel({ label, forceMount, disabled, initiallyActive, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
602
612
|
|
|
603
613
|
type TextImageColor = 'primary' | 'secondary' | 'dark';
|
|
604
614
|
type TextImageProps = {
|
|
@@ -1399,15 +1409,15 @@ interface TooltipTriggerProps {
|
|
|
1399
1409
|
children: (bag: TooltipTriggerBag) => ReactNode;
|
|
1400
1410
|
}
|
|
1401
1411
|
declare const TooltipTrigger: ({ children, }: TooltipTriggerProps) => ReactNode;
|
|
1402
|
-
interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | '
|
|
1412
|
+
interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'isAnimated'> {
|
|
1403
1413
|
tooltip: ReactNode;
|
|
1404
|
-
tooltipClassName?: string;
|
|
1405
1414
|
containerClassName?: string;
|
|
1415
|
+
displayProps?: Omit<TooltipDisplayProps, 'alignment' | 'isAnimated'>;
|
|
1406
1416
|
}
|
|
1407
1417
|
/**
|
|
1408
1418
|
* A Component for showing a tooltip when hovering over Content
|
|
1409
1419
|
*/
|
|
1410
|
-
declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated,
|
|
1420
|
+
declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, onIsShownChange, displayProps, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1411
1421
|
|
|
1412
1422
|
/**
|
|
1413
1423
|
* The different sizes for a icon button
|
|
@@ -2447,7 +2457,7 @@ interface ControlledStateProps<T> {
|
|
|
2447
2457
|
/** Forces the component to be controlled even if value is undefined */
|
|
2448
2458
|
isControlled?: boolean;
|
|
2449
2459
|
}
|
|
2450
|
-
declare const useControlledState: <T>({ value: controlledValue, onValueChange, defaultValue, isControlled: isEnforcingControlled }: ControlledStateProps<T>) => [T, react__default.Dispatch<react__default.SetStateAction<T
|
|
2460
|
+
declare const useControlledState: <T>({ value: controlledValue, onValueChange, defaultValue, isControlled: isEnforcingControlled }: ControlledStateProps<T>) => [T, react__default.Dispatch<react__default.SetStateAction<T>>, boolean];
|
|
2451
2461
|
|
|
2452
2462
|
declare function useEventCallbackStabilizer<T extends (...args: any[]) => any>(callback?: T): (...args: Parameters<T>) => ReturnType<T>;
|
|
2453
2463
|
|
package/dist/index.d.ts
CHANGED
|
@@ -578,7 +578,7 @@ interface TabContextType {
|
|
|
578
578
|
activeId: string | null;
|
|
579
579
|
setActiveId: Dispatch<SetStateAction<string | null>>;
|
|
580
580
|
subscribe: (info: TabInfo) => () => void;
|
|
581
|
-
|
|
581
|
+
infos?: TabInfo[];
|
|
582
582
|
};
|
|
583
583
|
portal: {
|
|
584
584
|
id: string | null;
|
|
@@ -587,8 +587,17 @@ interface TabContextType {
|
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
declare function useTabContext(): TabContextType;
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
interface TabSwitcherProps extends PropsWithChildren {
|
|
591
|
+
activeId?: string;
|
|
592
|
+
onActiveIdChange?: (activeId: string | null) => void;
|
|
593
|
+
initialActiveId?: string;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* The controlling component of several Tabpanels.
|
|
597
|
+
*
|
|
598
|
+
* The uncontrolled mode only works if the Tabpanels do not remount.
|
|
599
|
+
*/
|
|
600
|
+
declare function TabSwitcher({ children, activeId: controlledActiveId, onActiveIdChange, initialActiveId }: TabSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
592
601
|
type TabListProps = HTMLAttributes<HTMLUListElement>;
|
|
593
602
|
declare function TabList({ ...props }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
594
603
|
type TabViewProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -597,8 +606,9 @@ type TabPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
597
606
|
label: string;
|
|
598
607
|
forceMount?: boolean;
|
|
599
608
|
disabled?: boolean;
|
|
609
|
+
initiallyActive?: boolean;
|
|
600
610
|
};
|
|
601
|
-
declare function TabPanel({ label, forceMount, disabled, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
611
|
+
declare function TabPanel({ label, forceMount, disabled, initiallyActive, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
602
612
|
|
|
603
613
|
type TextImageColor = 'primary' | 'secondary' | 'dark';
|
|
604
614
|
type TextImageProps = {
|
|
@@ -1399,15 +1409,15 @@ interface TooltipTriggerProps {
|
|
|
1399
1409
|
children: (bag: TooltipTriggerBag) => ReactNode;
|
|
1400
1410
|
}
|
|
1401
1411
|
declare const TooltipTrigger: ({ children, }: TooltipTriggerProps) => ReactNode;
|
|
1402
|
-
interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | '
|
|
1412
|
+
interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'isAnimated'> {
|
|
1403
1413
|
tooltip: ReactNode;
|
|
1404
|
-
tooltipClassName?: string;
|
|
1405
1414
|
containerClassName?: string;
|
|
1415
|
+
displayProps?: Omit<TooltipDisplayProps, 'alignment' | 'isAnimated'>;
|
|
1406
1416
|
}
|
|
1407
1417
|
/**
|
|
1408
1418
|
* A Component for showing a tooltip when hovering over Content
|
|
1409
1419
|
*/
|
|
1410
|
-
declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated,
|
|
1420
|
+
declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, onIsShownChange, displayProps, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1411
1421
|
|
|
1412
1422
|
/**
|
|
1413
1423
|
* The different sizes for a icon button
|
|
@@ -2447,7 +2457,7 @@ interface ControlledStateProps<T> {
|
|
|
2447
2457
|
/** Forces the component to be controlled even if value is undefined */
|
|
2448
2458
|
isControlled?: boolean;
|
|
2449
2459
|
}
|
|
2450
|
-
declare const useControlledState: <T>({ value: controlledValue, onValueChange, defaultValue, isControlled: isEnforcingControlled }: ControlledStateProps<T>) => [T, react__default.Dispatch<react__default.SetStateAction<T
|
|
2460
|
+
declare const useControlledState: <T>({ value: controlledValue, onValueChange, defaultValue, isControlled: isEnforcingControlled }: ControlledStateProps<T>) => [T, react__default.Dispatch<react__default.SetStateAction<T>>, boolean];
|
|
2451
2461
|
|
|
2452
2462
|
declare function useEventCallbackStabilizer<T extends (...args: any[]) => any>(callback?: T): (...args: Parameters<T>) => ReturnType<T>;
|
|
2453
2463
|
|