@splpi/estore-shared-components 0.0.1 → 0.0.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.
- package/README.md +1 -0
- package/dist/index.d.mts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.js +524 -311
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -288
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This is a shared components from 1SP eStore V2
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default from 'react';
|
|
3
4
|
import { IconType } from 'react-icons';
|
|
4
|
-
import { InputProps } from '@chakra-ui/react';
|
|
5
5
|
|
|
6
6
|
interface IPersonalInfo {
|
|
7
7
|
firstName?: string;
|
|
@@ -134,12 +134,16 @@ type BottomQuickActionsProps = {
|
|
|
134
134
|
* Use `QuickActionsHeaderCard` for the standard "acting on which record" pattern,
|
|
135
135
|
* or pass any ReactNode.
|
|
136
136
|
*/
|
|
137
|
-
headerSlot?:
|
|
137
|
+
headerSlot?: react__default.ReactNode;
|
|
138
138
|
/** The ordered list of actions */
|
|
139
139
|
actions: QuickAction[];
|
|
140
140
|
};
|
|
141
141
|
declare const BottomQuickActions: ({ open, onOpenChange, title, subtitle, headerSlot, actions, }: BottomQuickActionsProps) => react_jsx_runtime.JSX.Element;
|
|
142
142
|
|
|
143
|
+
declare function NotifyInstall({ children, }: {
|
|
144
|
+
children: React.ReactNode;
|
|
145
|
+
}): string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
146
|
+
|
|
143
147
|
type ColorModeValue = "light" | "dark";
|
|
144
148
|
type ToastType = "success" | "error";
|
|
145
149
|
interface ProfileUser {
|
|
@@ -181,14 +185,6 @@ interface ReusableProfileProps {
|
|
|
181
185
|
}
|
|
182
186
|
declare function ReusableProfile({ user, colorMode: controlledColorMode, onColorModeChange, initialTwoFactorEnabled, initialQuickNavHrefs, availableNavOptions, maxQuickNavItems, enableLocalStorage, storageKey, onSaveAccount, onChangePassword, onSignOut, onTwoFactorChange, onToast, }: ReusableProfileProps): react_jsx_runtime.JSX.Element;
|
|
183
187
|
|
|
184
|
-
interface FloatingLabelInputProps extends InputProps {
|
|
185
|
-
label: React.ReactNode;
|
|
186
|
-
value?: string;
|
|
187
|
-
defaultValue?: string;
|
|
188
|
-
onValueChange?: (value: string) => void;
|
|
189
|
-
}
|
|
190
|
-
declare const FloatingLabelInput: (props: FloatingLabelInputProps) => react_jsx_runtime.JSX.Element;
|
|
191
|
-
|
|
192
188
|
interface CartItem {
|
|
193
189
|
planDesc: string;
|
|
194
190
|
mode: string;
|
|
@@ -205,4 +201,4 @@ declare const createEmptyApplicationData: () => IApplicationData;
|
|
|
205
201
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
206
202
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
207
203
|
|
|
208
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem,
|
|
204
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, NotifyInstall, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default from 'react';
|
|
3
4
|
import { IconType } from 'react-icons';
|
|
4
|
-
import { InputProps } from '@chakra-ui/react';
|
|
5
5
|
|
|
6
6
|
interface IPersonalInfo {
|
|
7
7
|
firstName?: string;
|
|
@@ -134,12 +134,16 @@ type BottomQuickActionsProps = {
|
|
|
134
134
|
* Use `QuickActionsHeaderCard` for the standard "acting on which record" pattern,
|
|
135
135
|
* or pass any ReactNode.
|
|
136
136
|
*/
|
|
137
|
-
headerSlot?:
|
|
137
|
+
headerSlot?: react__default.ReactNode;
|
|
138
138
|
/** The ordered list of actions */
|
|
139
139
|
actions: QuickAction[];
|
|
140
140
|
};
|
|
141
141
|
declare const BottomQuickActions: ({ open, onOpenChange, title, subtitle, headerSlot, actions, }: BottomQuickActionsProps) => react_jsx_runtime.JSX.Element;
|
|
142
142
|
|
|
143
|
+
declare function NotifyInstall({ children, }: {
|
|
144
|
+
children: React.ReactNode;
|
|
145
|
+
}): string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
146
|
+
|
|
143
147
|
type ColorModeValue = "light" | "dark";
|
|
144
148
|
type ToastType = "success" | "error";
|
|
145
149
|
interface ProfileUser {
|
|
@@ -181,14 +185,6 @@ interface ReusableProfileProps {
|
|
|
181
185
|
}
|
|
182
186
|
declare function ReusableProfile({ user, colorMode: controlledColorMode, onColorModeChange, initialTwoFactorEnabled, initialQuickNavHrefs, availableNavOptions, maxQuickNavItems, enableLocalStorage, storageKey, onSaveAccount, onChangePassword, onSignOut, onTwoFactorChange, onToast, }: ReusableProfileProps): react_jsx_runtime.JSX.Element;
|
|
183
187
|
|
|
184
|
-
interface FloatingLabelInputProps extends InputProps {
|
|
185
|
-
label: React.ReactNode;
|
|
186
|
-
value?: string;
|
|
187
|
-
defaultValue?: string;
|
|
188
|
-
onValueChange?: (value: string) => void;
|
|
189
|
-
}
|
|
190
|
-
declare const FloatingLabelInput: (props: FloatingLabelInputProps) => react_jsx_runtime.JSX.Element;
|
|
191
|
-
|
|
192
188
|
interface CartItem {
|
|
193
189
|
planDesc: string;
|
|
194
190
|
mode: string;
|
|
@@ -205,4 +201,4 @@ declare const createEmptyApplicationData: () => IApplicationData;
|
|
|
205
201
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
206
202
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
207
203
|
|
|
208
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem,
|
|
204
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, NotifyInstall, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|