@lumx/react 4.10.0-next.1 → 4.10.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/index.js +12 -8
- package/index.js.map +1 -1
- package/package.json +3 -4
package/index.js
CHANGED
|
@@ -14846,12 +14846,6 @@ Progress.displayName = COMPONENT_NAME$s;
|
|
|
14846
14846
|
Progress.className = CLASSNAME$t;
|
|
14847
14847
|
Progress.defaultProps = DEFAULT_PROPS$v;
|
|
14848
14848
|
|
|
14849
|
-
/**
|
|
14850
|
-
* SSR-safe version of `useLayoutEffect`.
|
|
14851
|
-
* Uses `useLayoutEffect` on the client and `useEffect` on the server to avoid React SSR warnings.
|
|
14852
|
-
*/
|
|
14853
|
-
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
14854
|
-
|
|
14855
14849
|
const INIT_STATE = {
|
|
14856
14850
|
isLazy: true,
|
|
14857
14851
|
shouldActivateOnFocus: false,
|
|
@@ -14930,7 +14924,7 @@ const useTabProviderContext = (type, originalId) => {
|
|
|
14930
14924
|
// Current tab or tab panel id.
|
|
14931
14925
|
const generatedId = useId();
|
|
14932
14926
|
const id = originalId || generatedId;
|
|
14933
|
-
|
|
14927
|
+
useEffect(() => {
|
|
14934
14928
|
// On mount: register tab or tab panel id.
|
|
14935
14929
|
dispatch({
|
|
14936
14930
|
type: 'register',
|
|
@@ -15030,6 +15024,12 @@ const ProgressTrackerProvider = props => {
|
|
|
15030
15024
|
};
|
|
15031
15025
|
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$u;
|
|
15032
15026
|
|
|
15027
|
+
/**
|
|
15028
|
+
* SSR-safe version of `useLayoutEffect`.
|
|
15029
|
+
* Uses `useLayoutEffect` on the client and `useEffect` on the server to avoid React SSR warnings.
|
|
15030
|
+
*/
|
|
15031
|
+
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
15032
|
+
|
|
15033
15033
|
/**
|
|
15034
15034
|
* Returns a stable callback that always calls the latest version of `fn`.
|
|
15035
15035
|
* Useful to avoid re-running effects when a callback prop changes reference.
|
|
@@ -18505,7 +18505,11 @@ const Tab = forwardRef((props, ref) => {
|
|
|
18505
18505
|
onKeyPress,
|
|
18506
18506
|
...forwardedProps
|
|
18507
18507
|
} = otherProps;
|
|
18508
|
-
const
|
|
18508
|
+
const tabState = useTabProviderContext('tab', id);
|
|
18509
|
+
const {
|
|
18510
|
+
isLazy: _isLazy,
|
|
18511
|
+
...state
|
|
18512
|
+
} = tabState ?? {};
|
|
18509
18513
|
const isActive = propIsActive || state?.isActive;
|
|
18510
18514
|
return Tab$1({
|
|
18511
18515
|
id,
|