@popmenu/admin-ui
Advanced tools
Comparing version 0.2.2 to 0.3.0
/// <reference types="react" /> | ||
export declare const FullScreenStepperContext: import("react").Context<Record<string, unknown>>; | ||
import { FullScreenStepperTypes } from './types'; | ||
export interface FullScreenStepperContextValue extends FullScreenStepperTypes.EventCallbackArgs { | ||
[key: string]: unknown; | ||
} | ||
export declare const FullScreenStepperContext: import("react").Context<FullScreenStepperContextValue>; |
export { FullScreenStepper as default } from './FullScreenStepper'; | ||
export { FullScreenStepperContext } from './FullScreenStepperContext'; | ||
export { FullScreenStepperContext, FullScreenStepperContextValue } from './FullScreenStepperContext'; | ||
export { FullScreenStepperProps } from './FullScreenStepperProps'; |
@@ -1,1 +0,2 @@ | ||
export declare const useFullScreenStepperContext: () => Record<string, unknown>; | ||
import { FullScreenStepperContextValue } from '../components/FullScreenStepper'; | ||
export declare const useFullScreenStepperContext: () => FullScreenStepperContextValue; |
@@ -624,2 +624,3 @@ import React, { forwardRef, useState, useRef, useEffect, createContext, useContext } from 'react'; | ||
var callbackArgs = { setStepCursor: setStepCursor, step: step, stepCount: stepCount, stepIndex: stepIndex, steps: steps }; | ||
var mergedContext = __assign(__assign({}, context), callbackArgs); | ||
var resetStepCursor = function () { return setTimeout(function () { return setStepCursor(1); }, 600); }; | ||
@@ -693,3 +694,3 @@ var handleClose = function () { | ||
return (React.createElement(Dialog$1, __assign({ fullScreen: true }, DialogProps), | ||
React.createElement(FullScreenStepperContext.Provider, { value: context }, | ||
React.createElement(FullScreenStepperContext.Provider, { value: mergedContext }, | ||
React.createElement(Box$1, { display: "flex", flexDirection: "column", flexGrow: 1 }, | ||
@@ -696,0 +697,0 @@ React.createElement(FullScreenStepperHeader, { stepCount: stepCount, stepCursor: stepCursor, onClose: handleClose, step: step }), |
@@ -635,2 +635,3 @@ 'use strict'; | ||
var callbackArgs = { setStepCursor: setStepCursor, step: step, stepCount: stepCount, stepIndex: stepIndex, steps: steps }; | ||
var mergedContext = __assign(__assign({}, context), callbackArgs); | ||
var resetStepCursor = function () { return setTimeout(function () { return setStepCursor(1); }, 600); }; | ||
@@ -704,3 +705,3 @@ var handleClose = function () { | ||
return (React__default['default'].createElement(core.Dialog, __assign({ fullScreen: true }, DialogProps), | ||
React__default['default'].createElement(FullScreenStepperContext.Provider, { value: context }, | ||
React__default['default'].createElement(FullScreenStepperContext.Provider, { value: mergedContext }, | ||
React__default['default'].createElement(core.Box, { display: "flex", flexDirection: "column", flexGrow: 1 }, | ||
@@ -707,0 +708,0 @@ React__default['default'].createElement(FullScreenStepperHeader, { stepCount: stepCount, stepCursor: stepCursor, onClose: handleClose, step: step }), |
{ | ||
"name": "@popmenu/admin-ui", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "author": "Popmenu Design System Team", | ||
}, | ||
"gitHead": "4be194bcae899685eb9fe318eae3d461ce35f373" | ||
"gitHead": "76ce062de53d8659f3f75a32608b56baf98c7efe" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188234
2872