@helpwave/hightide 0.8.7 → 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 +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +6730 -6719
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1284 -1273
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 = {
|
|
@@ -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 = {
|
|
@@ -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
|
|