@splpi/estore-shared-components 0.0.1 → 0.0.2
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 +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +473 -272
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +464 -252
- 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,5 +1,6 @@
|
|
|
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
5
|
import { InputProps } from '@chakra-ui/react';
|
|
5
6
|
|
|
@@ -134,12 +135,16 @@ type BottomQuickActionsProps = {
|
|
|
134
135
|
* Use `QuickActionsHeaderCard` for the standard "acting on which record" pattern,
|
|
135
136
|
* or pass any ReactNode.
|
|
136
137
|
*/
|
|
137
|
-
headerSlot?:
|
|
138
|
+
headerSlot?: react__default.ReactNode;
|
|
138
139
|
/** The ordered list of actions */
|
|
139
140
|
actions: QuickAction[];
|
|
140
141
|
};
|
|
141
142
|
declare const BottomQuickActions: ({ open, onOpenChange, title, subtitle, headerSlot, actions, }: BottomQuickActionsProps) => react_jsx_runtime.JSX.Element;
|
|
142
143
|
|
|
144
|
+
declare function NotifyInstall({ children, }: {
|
|
145
|
+
children: React.ReactNode;
|
|
146
|
+
}): 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;
|
|
147
|
+
|
|
143
148
|
type ColorModeValue = "light" | "dark";
|
|
144
149
|
type ToastType = "success" | "error";
|
|
145
150
|
interface ProfileUser {
|
|
@@ -182,7 +187,7 @@ interface ReusableProfileProps {
|
|
|
182
187
|
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
188
|
|
|
184
189
|
interface FloatingLabelInputProps extends InputProps {
|
|
185
|
-
label:
|
|
190
|
+
label: react__default.ReactNode;
|
|
186
191
|
value?: string;
|
|
187
192
|
defaultValue?: string;
|
|
188
193
|
onValueChange?: (value: string) => void;
|
|
@@ -205,4 +210,4 @@ declare const createEmptyApplicationData: () => IApplicationData;
|
|
|
205
210
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
206
211
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
207
212
|
|
|
208
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, FloatingLabelInput, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|
|
213
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, FloatingLabelInput, 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,5 +1,6 @@
|
|
|
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
5
|
import { InputProps } from '@chakra-ui/react';
|
|
5
6
|
|
|
@@ -134,12 +135,16 @@ type BottomQuickActionsProps = {
|
|
|
134
135
|
* Use `QuickActionsHeaderCard` for the standard "acting on which record" pattern,
|
|
135
136
|
* or pass any ReactNode.
|
|
136
137
|
*/
|
|
137
|
-
headerSlot?:
|
|
138
|
+
headerSlot?: react__default.ReactNode;
|
|
138
139
|
/** The ordered list of actions */
|
|
139
140
|
actions: QuickAction[];
|
|
140
141
|
};
|
|
141
142
|
declare const BottomQuickActions: ({ open, onOpenChange, title, subtitle, headerSlot, actions, }: BottomQuickActionsProps) => react_jsx_runtime.JSX.Element;
|
|
142
143
|
|
|
144
|
+
declare function NotifyInstall({ children, }: {
|
|
145
|
+
children: React.ReactNode;
|
|
146
|
+
}): 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;
|
|
147
|
+
|
|
143
148
|
type ColorModeValue = "light" | "dark";
|
|
144
149
|
type ToastType = "success" | "error";
|
|
145
150
|
interface ProfileUser {
|
|
@@ -182,7 +187,7 @@ interface ReusableProfileProps {
|
|
|
182
187
|
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
188
|
|
|
184
189
|
interface FloatingLabelInputProps extends InputProps {
|
|
185
|
-
label:
|
|
190
|
+
label: react__default.ReactNode;
|
|
186
191
|
value?: string;
|
|
187
192
|
defaultValue?: string;
|
|
188
193
|
onValueChange?: (value: string) => void;
|
|
@@ -205,4 +210,4 @@ declare const createEmptyApplicationData: () => IApplicationData;
|
|
|
205
210
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
206
211
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
207
212
|
|
|
208
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, FloatingLabelInput, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|
|
213
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, FloatingLabelInput, 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 };
|