@scbt-ecom/ui 0.122.4 → 0.124.0

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.
@@ -2,6 +2,7 @@ import { CellContext } from '@tanstack/react-table';
2
2
  import { AllowedIcons } from '../../..';
3
3
  type Cell<TData, TValue> = CellContext<TData, TValue> & {
4
4
  rowIndex?: number;
5
+ readOnly?: boolean;
5
6
  };
6
7
  interface EditableCellProps<TData, TValue> extends Cell<TData, TValue> {
7
8
  target: keyof TData;
@@ -11,5 +12,5 @@ interface EditableCellProps<TData, TValue> extends Cell<TData, TValue> {
11
12
  handler?: (value: TValue | string, event: React.MouseEvent<HTMLButtonElement>) => void;
12
13
  };
13
14
  }
14
- export declare const EditableCell: <TData, TValue extends string | undefined>({ row, getValue, update, target, rowIndex, attachment }: EditableCellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const EditableCell: <TData, TValue extends string | undefined>({ row, getValue, update, target, rowIndex, attachment, readOnly }: EditableCellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -1,4 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
+ import { Auth, AuthMode } from '../dynamicForm/model';
2
3
  import { Approvement, ApprovementType } from './model';
3
4
  import { FieldValidation } from '../../../src/shared/utils';
4
5
  import { ButtonProps, CheckboxBase } from '../../shared/ui';
@@ -18,7 +19,7 @@ type DynamicFormDialogClasses = {
18
19
  approvement?: ApprovementClasses;
19
20
  submit?: string;
20
21
  };
21
- export type DynamicFormDialogProps<AType extends ApprovementType> = React.DialogHTMLAttributes<HTMLDialogElement> & {
22
+ export type DynamicFormDialogProps<AType extends ApprovementType, AuthType extends AuthMode> = React.DialogHTMLAttributes<HTMLDialogElement> & {
22
23
  fields: FieldElement<any, any, {
23
24
  validation: FieldValidation;
24
25
  }>[];
@@ -28,6 +29,7 @@ export type DynamicFormDialogProps<AType extends ApprovementType> = React.Dialog
28
29
  submitProps?: SubmitProps;
29
30
  classes?: DynamicFormDialogClasses;
30
31
  buttonGroup: ButtonProps[];
32
+ auth: Auth<AuthType>;
31
33
  };
32
- export declare const DynamicFormDialog: <AType extends ApprovementType>({ fields, title, approvement, submitProps, dialogId, classes, buttonGroup, ...props }: DynamicFormDialogProps<AType>) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const DynamicFormDialog: <AType extends ApprovementType, AuthType extends AuthMode>({ fields, title, approvement, submitProps, dialogId, classes, auth, buttonGroup, ...props }: DynamicFormDialogProps<AType, AuthType>) => import("react/jsx-runtime").JSX.Element;
33
35
  export default DynamicFormDialog;
@@ -5,7 +5,7 @@ export declare const WIDGET_LIST_MAP: {
5
5
  readonly banner: import('react').LazyExoticComponent<({ variant, ...props }: import('..').BannerProps) => import("react/jsx-runtime").JSX.Element>;
6
6
  readonly calculator: import('react').LazyExoticComponent<({ calculators, headline, classes }: import('..').CalculatorProps) => import("react/jsx-runtime").JSX.Element>;
7
7
  readonly form: import('react').LazyExoticComponent<(<AType extends import('../dynamicForm/model').ApprovementType, CType extends import('../dynamicForm/model').ChipsType, PType extends import('../dynamicForm/model').ProgressType, AuthType extends import('../dynamicForm/model').AuthMode>({ fields, title, progress, approvement, chips, submitProps, auth, classes, buttonGroup }: import('..').DynamicFormProps<AType, CType, PType, AuthType>) => import("react/jsx-runtime").JSX.Element)>;
8
- readonly formDialog: import('react').LazyExoticComponent<(<AType extends import('../dynamicFormDialog/model').ApprovementType>({ fields, title, approvement, submitProps, dialogId, classes, buttonGroup, ...props }: import('../dynamicFormDialog/DynamicFormDialog').DynamicFormDialogProps<AType>) => import("react/jsx-runtime").JSX.Element)>;
8
+ readonly formDialog: import('react').LazyExoticComponent<(<AType extends import('../dynamicFormDialog/model').ApprovementType, AuthType extends import('../dynamicForm/model').AuthMode>({ fields, title, approvement, submitProps, dialogId, classes, auth, buttonGroup, ...props }: import('../dynamicFormDialog/DynamicFormDialog').DynamicFormDialogProps<AType, AuthType>) => import("react/jsx-runtime").JSX.Element)>;
9
9
  readonly stepper: import('react').LazyExoticComponent<(<WithImages extends boolean>({ steppers, headline, classes }: import('..').StepperProps<WithImages>) => import("react/jsx-runtime").JSX.Element)>;
10
10
  readonly benefit: import('react').LazyExoticComponent<({ headline, details, variant, classes }: import('..').BenefitProps) => import("react/jsx-runtime").JSX.Element>;
11
11
  readonly longBanner: import('react').LazyExoticComponent<(<Enabled extends boolean>({ headline, buttonConfig, intent, details, image, backgroundColor, classes }: import('..').LongBannerProps<Enabled>) => import("react/jsx-runtime").JSX.Element)>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.122.4",
3
+ "version": "0.124.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {