@hitachivantara/uikit-react-lab 5.2.1 → 5.2.3

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.
Files changed (26) hide show
  1. package/dist/cjs/packages/lab/src/components/StepNavigation/DefaultNavigation/Step/stepClasses.cjs.map +1 -1
  2. package/dist/cjs/packages/lab/src/components/StepNavigation/SimpleNavigation/Dot/dotClasses.cjs.map +1 -1
  3. package/dist/cjs/packages/lab/src/components/StepNavigation/StepNavigation.cjs +7 -6
  4. package/dist/cjs/packages/lab/src/components/StepNavigation/StepNavigation.cjs.map +1 -1
  5. package/dist/cjs/packages/lab/src/components/StepNavigation/stepNavigationClasses.cjs.map +1 -1
  6. package/dist/cjs/packages/lab/src/components/Wizard/WizardActions/wizardActionsClasses.cjs.map +1 -1
  7. package/dist/cjs/packages/lab/src/components/Wizard/WizardContainer/wizardContainerClasses.cjs.map +1 -1
  8. package/dist/cjs/packages/lab/src/components/Wizard/WizardContent/wizardContentClasses.cjs.map +1 -1
  9. package/dist/cjs/packages/lab/src/components/Wizard/WizardTitle/wizardTitleClasses.cjs.map +1 -1
  10. package/dist/cjs/packages/lab/src/components/Wizard/wizardClasses.cjs.map +1 -1
  11. package/dist/cjs/packages/lab/src/index.cjs +17 -6
  12. package/dist/cjs/packages/lab/src/index.cjs.map +1 -1
  13. package/dist/esm/packages/lab/src/components/StepNavigation/DefaultNavigation/Step/stepClasses.js.map +1 -1
  14. package/dist/esm/packages/lab/src/components/StepNavigation/SimpleNavigation/Dot/dotClasses.js.map +1 -1
  15. package/dist/esm/packages/lab/src/components/StepNavigation/StepNavigation.js +7 -6
  16. package/dist/esm/packages/lab/src/components/StepNavigation/StepNavigation.js.map +1 -1
  17. package/dist/esm/packages/lab/src/components/StepNavigation/stepNavigationClasses.js.map +1 -1
  18. package/dist/esm/packages/lab/src/components/Wizard/WizardActions/wizardActionsClasses.js.map +1 -1
  19. package/dist/esm/packages/lab/src/components/Wizard/WizardContainer/wizardContainerClasses.js.map +1 -1
  20. package/dist/esm/packages/lab/src/components/Wizard/WizardContent/wizardContentClasses.js.map +1 -1
  21. package/dist/esm/packages/lab/src/components/Wizard/WizardTitle/wizardTitleClasses.js.map +1 -1
  22. package/dist/esm/packages/lab/src/components/Wizard/wizardClasses.js.map +1 -1
  23. package/dist/esm/packages/lab/src/index.js +15 -4
  24. package/dist/esm/packages/lab/src/index.js.map +1 -1
  25. package/dist/types/index.d.ts +67 -12
  26. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ import { Dispatch } from 'react';
1
2
  import { HvAvatarSize } from '@hitachivantara/uikit-react-core';
2
3
  import { HvBaseProps } from '@hitachivantara/uikit-react-core';
3
4
  import { HvBreakpoints } from '@hitachivantara/uikit-react-core';
@@ -5,6 +6,7 @@ import { HvButtonProps } from '@hitachivantara/uikit-react-core';
5
6
  import type { JSX as JSX_2 } from '@emotion/react/jsx-runtime';
6
7
  import { ModalProps } from '@mui/material';
7
8
  import { default as React_2 } from 'react';
9
+ import { SetStateAction } from 'react';
8
10
 
9
11
  declare interface HvStepClasses {
10
12
  /** Styles applied to the component root class. */
@@ -111,7 +113,7 @@ export declare const HvWizard: ({ className, children, onClose, handleSubmit, ti
111
113
 
112
114
  export declare const HvWizardActions: ({ classes, handleClose, handleSubmit, loading, skippable, labels, }: HvWizardActionsProps) => JSX_2.Element;
113
115
 
114
- declare type HvWizardActionsClasses = {
116
+ export declare type HvWizardActionsClasses = {
115
117
  /** Styles applied to the component which contains the groups of buttons. */
116
118
  actionsContainer?: string;
117
119
  /** Styles applied to the component which contains the buttons. */
@@ -122,7 +124,7 @@ declare type HvWizardActionsClasses = {
122
124
  buttonSpacing?: string;
123
125
  };
124
126
 
125
- declare interface HvWizardActionsProps extends HvBaseProps {
127
+ export declare interface HvWizardActionsProps extends HvBaseProps {
126
128
  /** Function to handle the cancel button. */
127
129
  handleClose: (event: React.SyntheticEvent, reason?: "escapeKeyDown" | "backdropClick") => void;
128
130
  /** Function to handle the submit button. Also sends the current context state. */
@@ -155,7 +157,7 @@ export declare type HvWizardClasses = {
155
157
 
156
158
  export declare const HvWizardContainer: ({ classes, className, children, handleClose, open, ...others }: HvWizardContainerProps) => JSX_2.Element;
157
159
 
158
- declare type HvWizardContainerClasses = {
160
+ export declare type HvWizardContainerClasses = {
159
161
  /** Styles applied to the component root class. */
160
162
  root?: string;
161
163
  /** Style applied to the component (root). */
@@ -164,7 +166,7 @@ declare type HvWizardContainerClasses = {
164
166
  closeButton?: string;
165
167
  };
166
168
 
167
- declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose"> {
169
+ export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose"> {
168
170
  /** Current state of the Wizard. */
169
171
  open: boolean;
170
172
  /** Function executed on close. */
@@ -175,7 +177,7 @@ declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose"> {
175
177
 
176
178
  export declare const HvWizardContent: ({ classes, fixedHeight, loading, children, summaryContent, }: HvWizardContentProps) => JSX_2.Element;
177
179
 
178
- declare type HvWizardContentClasses = {
180
+ export declare type HvWizardContentClasses = {
179
181
  /** Style applied to the Wizard content container. */
180
182
  contentContainer?: string;
181
183
  /** Style applied to the Wizard to fix its height. */
@@ -188,7 +190,7 @@ declare type HvWizardContentClasses = {
188
190
  summaryContainer?: string;
189
191
  };
190
192
 
191
- declare interface HvWizardContentProps extends HvBaseProps {
193
+ export declare interface HvWizardContentProps extends HvBaseProps {
192
194
  /** Forces minimum height to the component. */
193
195
  fixedHeight?: boolean;
194
196
  /** Whether the loading animation is shown. */
@@ -199,6 +201,17 @@ declare interface HvWizardContentProps extends HvBaseProps {
199
201
  classes?: HvWizardContentClasses;
200
202
  }
201
203
 
204
+ export declare const HvWizardContext: React_2.Context<HvWizardContextProp>;
205
+
206
+ declare type HvWizardContextProp = {
207
+ context: HvWizardTabs<HvWizardTab>;
208
+ updateContext: (values?: HvWizardTabs<HvWizardTab>) => void;
209
+ summary: any;
210
+ setSummary: (oldSummary?: any) => void;
211
+ tab: any;
212
+ setTab: Dispatch<SetStateAction<number>>;
213
+ };
214
+
202
215
  export declare interface HvWizardProps extends HvBaseProps {
203
216
  /** Current state of the Wizard. */
204
217
  open: boolean;
@@ -226,7 +239,11 @@ export declare interface HvWizardProps extends HvBaseProps {
226
239
  classes?: HvWizardClasses;
227
240
  }
228
241
 
229
- declare type HvWizardTab = {
242
+ export declare const HvWizardProvider: ({ children }: {
243
+ children: any;
244
+ }) => JSX_2.Element;
245
+
246
+ export declare type HvWizardTab = {
230
247
  name?: string;
231
248
  valid?: boolean;
232
249
  mustValidate?: boolean;
@@ -235,13 +252,13 @@ declare type HvWizardTab = {
235
252
  children?: React_2.ReactNode;
236
253
  };
237
254
 
238
- declare type HvWizardTabs<T extends HvWizardTab> = {
255
+ export declare type HvWizardTabs<T extends HvWizardTab> = {
239
256
  [tab in number]?: T;
240
257
  };
241
258
 
242
259
  export declare const HvWizardTitle: ({ title, hasSummary, labels, classes, customStep, }: HvWizardTitleProps) => JSX_2.Element;
243
260
 
244
- declare type HvWizardTitleClasses = {
261
+ export declare type HvWizardTitleClasses = {
245
262
  /** Styles applied to the header container. */
246
263
  headerContainer?: string;
247
264
  /** Styles applied to override the Dialog Title styles. */
@@ -256,7 +273,7 @@ declare type HvWizardTitleClasses = {
256
273
  stepContainer?: string;
257
274
  };
258
275
 
259
- declare interface HvWizardTitleProps extends HvBaseProps {
276
+ export declare interface HvWizardTitleProps extends HvBaseProps {
260
277
  /** Title for the wizard. */
261
278
  title?: string;
262
279
  /** Shows the summary button. */
@@ -272,8 +289,46 @@ declare interface HvWizardTitleProps extends HvBaseProps {
272
289
  classes?: HvWizardTitleClasses;
273
290
  }
274
291
 
275
- export declare const stepNavigationClasses: HvStepNavigationClasses;
292
+ export declare const stepNavigationClasses: {
293
+ li: "HvStepNavigation-li";
294
+ ol: "HvStepNavigation-ol";
295
+ separator: "HvStepNavigation-separator";
296
+ root: "HvStepNavigation-root";
297
+ titles: "HvStepNavigation-titles";
298
+ };
299
+
300
+ export declare const wizardActionsClasses: {
301
+ actionsContainer: "HvWizardActions-actionsContainer";
302
+ buttonWidth: "HvWizardActions-buttonWidth";
303
+ buttonsContainer: "HvWizardActions-buttonsContainer";
304
+ buttonSpacing: "HvWizardActions-buttonSpacing";
305
+ };
306
+
307
+ export declare const wizardClasses: {
308
+ root: "HvWizard-root";
309
+ };
310
+
311
+ export declare const wizardContainerClasses: {
312
+ root: "HvWizardContainer-root";
313
+ paper: "HvWizardContainer-paper";
314
+ closeButton: "HvWizardContainer-closeButton";
315
+ };
276
316
 
277
- export declare const wizardClasses: HvWizardClasses;
317
+ export declare const wizardContentClasses: {
318
+ fixedHeight: "HvWizardContent-fixedHeight";
319
+ contentContainer: "HvWizardContent-contentContainer";
320
+ summaryRef: "HvWizardContent-summaryRef";
321
+ summarySticky: "HvWizardContent-summarySticky";
322
+ summaryContainer: "HvWizardContent-summaryContainer";
323
+ };
324
+
325
+ export declare const wizardTitleClasses: {
326
+ titleContainer: "HvWizardTitle-titleContainer";
327
+ messageContainer: "HvWizardTitle-messageContainer";
328
+ buttonWidth: "HvWizardTitle-buttonWidth";
329
+ rootSummaryButton: "HvWizardTitle-rootSummaryButton";
330
+ headerContainer: "HvWizardTitle-headerContainer";
331
+ stepContainer: "HvWizardTitle-stepContainer";
332
+ };
278
333
 
279
334
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "5.2.1",
3
+ "version": "5.2.3",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Contributed React components for the NEXT UI Kit.",
@@ -24,13 +24,13 @@
24
24
  "peerDependencies": {
25
25
  "@emotion/react": "^11.10.5",
26
26
  "@emotion/styled": "^11.10.5",
27
- "@mui/material": "^5.11.0",
27
+ "@mui/material": "^5.12.2",
28
28
  "react": "^17.0.0 || ^18.0.0",
29
29
  "react-dom": "^17.0.0 || ^18.0.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@emotion/cache": "^11.10.5",
33
- "@hitachivantara/uikit-react-core": "^5.4.0",
33
+ "@hitachivantara/uikit-react-core": "^5.6.0",
34
34
  "usehooks-ts": "^2.9.1"
35
35
  },
36
36
  "files": [
@@ -40,7 +40,7 @@
40
40
  "access": "public",
41
41
  "directory": "package"
42
42
  },
43
- "gitHead": "6a771d68070e4bfb03ca573900704d35934c0573",
43
+ "gitHead": "e0cc7fc6f24f7579f5bfb56435315925e30ae725",
44
44
  "main": "dist/cjs/index.cjs",
45
45
  "exports": {
46
46
  ".": {