@campxdev/campx-web-utils 2.0.17 → 2.1.0-alpha.1

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.
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogType, Severity } from '@campxdev/react-blueprint';
1
+ import { ConfirmDialogVariant, Severity } from '@campxdev/react-blueprint';
2
2
  import { Store } from 'pullstate';
3
3
  type Classroom = {
4
4
  id: number;
@@ -45,7 +45,7 @@ export type ApplicationStoreType = {
45
45
  message: string;
46
46
  onConfirm: () => void;
47
47
  onCancel: () => void;
48
- type: ConfirmDialogType;
48
+ type: ConfirmDialogVariant;
49
49
  confirmButtonText?: string;
50
50
  cancelButtonText?: string;
51
51
  };
@@ -1,8 +1,8 @@
1
- import { ConfirmDialogType } from '@campxdev/react-blueprint';
1
+ import { ConfirmDialogVariant } from '@campxdev/react-blueprint';
2
2
  export declare const useConfirm: () => ({ title, message, confirmButtonText, cancelButtonText, type, }: {
3
3
  title: string;
4
4
  message: string;
5
5
  confirmButtonText?: string;
6
6
  cancelButtonText?: string;
7
- type?: ConfirmDialogType;
7
+ type?: ConfirmDialogVariant;
8
8
  }) => Promise<boolean>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _axios from 'axios';
2
- import { Severity, ConfirmDialogType, MultiSelectProps, SingleSelectProps } from '@campxdev/react-blueprint';
2
+ import { Severity, ConfirmDialogVariant, MultiSelectProps, SingleSelectProps } from '@campxdev/react-blueprint';
3
3
  import { Store } from 'pullstate';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import React, { ReactNode } from 'react';
@@ -94,7 +94,7 @@ type ApplicationStoreType = {
94
94
  message: string;
95
95
  onConfirm: () => void;
96
96
  onCancel: () => void;
97
- type: ConfirmDialogType;
97
+ type: ConfirmDialogVariant;
98
98
  confirmButtonText?: string;
99
99
  cancelButtonText?: string;
100
100
  };
@@ -156,7 +156,7 @@ declare const useConfirm: () => ({ title, message, confirmButtonText, cancelButt
156
156
  message: string;
157
157
  confirmButtonText?: string;
158
158
  cancelButtonText?: string;
159
- type?: ConfirmDialogType;
159
+ type?: ConfirmDialogVariant;
160
160
  }) => Promise<boolean>;
161
161
 
162
162
  declare const DepartmentMongoMultiSelector: (props: MultiSelectProps) => react_jsx_runtime.JSX.Element;