@scbt-ecom/ui 0.78.3 → 0.78.4

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,2 +1,2 @@
1
1
  export { Button, type ButtonProps } from './Button';
2
- export { buttonPrimitiveIntent, buttonPrimitiveTextFormat, buttonPrimitiveSize } from './model/helpers';
2
+ export { buttonPrimitiveIntent, buttonPrimitiveTextFormat, buttonPrimitiveSize, buttonPrimitiveType } from './model/helpers';
@@ -11,6 +11,10 @@ export declare const buttonPrimitiveTextFormat: {
11
11
  readonly lowercase: "lowercase";
12
12
  readonly initial: "initial";
13
13
  };
14
+ export declare const buttonPrimitiveType: {
15
+ readonly submit: "submit";
16
+ readonly button: "button";
17
+ };
14
18
  export declare const buttonPrimitiveIntent: {
15
19
  readonly primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled";
16
20
  readonly secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent";
@@ -1,11 +1,10 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { Approvement, ApprovementType, Chips, ChipsType, Progress, ProgressField, ProgressType } from './model';
3
3
  import { FieldValidation } from '../../../src/shared/utils';
4
- import { ProgressBar, Uncontrolled } from '../../shared/ui';
4
+ import { ButtonProps, ProgressBar, Uncontrolled } from '../../shared/ui';
5
5
  import { FieldElement } from '../fieldMapper';
6
- type SubmitProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
6
+ type SubmitProps = {
7
7
  submitCallback: <T extends FieldValues>(values: T) => void;
8
- children: string;
9
8
  };
10
9
  type ChipsClasses = {
11
10
  root?: string;
@@ -36,6 +35,7 @@ export type DynamicFormProps<AType extends ApprovementType, CType extends ChipsT
36
35
  chips: Chips<CType>;
37
36
  submitProps?: SubmitProps;
38
37
  classes?: DynamicFormClasses;
38
+ buttonGroup: ButtonProps[];
39
39
  };
40
- export declare const DynamicForm: <AType extends ApprovementType, CType extends ChipsType, PType extends ProgressType>({ fields, title, progress, approvement, chips, submitProps, classes }: DynamicFormProps<AType, CType, PType>) => import("react/jsx-runtime").JSX.Element;
40
+ export declare const DynamicForm: <AType extends ApprovementType, CType extends ChipsType, PType extends ProgressType>({ fields, title, progress, approvement, chips, submitProps, classes, buttonGroup }: DynamicFormProps<AType, CType, PType>) => import("react/jsx-runtime").JSX.Element;
41
41
  export default DynamicForm;
@@ -4,7 +4,7 @@ export declare const WIDGET_LIST_MAP: {
4
4
  readonly seoHeader: import('react').LazyExoticComponent<({ categories, helpers, phone }: import('..').SeoHeaderProps) => import("react/jsx-runtime").JSX.Element>;
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 }: import('..').CalculatorProps) => import("react/jsx-runtime").JSX.Element>;
7
- readonly form: import('react').LazyExoticComponent<(<AType extends import('../dynamicForm/model').ApprovementType, CType extends import('../dynamicForm/model').ChipsType, PType extends import('../dynamicForm/model').ProgressType>({ fields, title, progress, approvement, chips, submitProps, classes }: import('..').DynamicFormProps<AType, CType, PType>) => import("react/jsx-runtime").JSX.Element)>;
7
+ readonly form: import('react').LazyExoticComponent<(<AType extends import('../dynamicForm/model').ApprovementType, CType extends import('../dynamicForm/model').ChipsType, PType extends import('../dynamicForm/model').ProgressType>({ fields, title, progress, approvement, chips, submitProps, classes, buttonGroup }: import('..').DynamicFormProps<AType, CType, PType>) => import("react/jsx-runtime").JSX.Element)>;
8
8
  readonly formDialog: import('react').LazyExoticComponent<(<AType extends import('../dynamicFormDialog/model').ApprovementType>({ fields, title, approvement, submitProps, dialogId, classes, ...props }: import('../dynamicFormDialog/DynamicFormDialog').DynamicFormDialogProps<AType>) => import("react/jsx-runtime").JSX.Element)>;
9
9
  readonly stepper: import('react').LazyExoticComponent<({ headline, details, variant, classes }: import('..').StepperProps) => 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>;
package/dist/ui.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as w, c as On, R as An, B as ge, u as Nn, a as Tn, b as jn, d as Hn, P as ke, e as Wt, f as Gn, I as zn, g as et, h as Bn, A as kn, i as be, H as qn, D as Un, V as Kn, O as Xn } from "./index-BUV7eJPv.js";
2
- import { o as Fi, C as _i, w as Ii, v as Mi, s as Vi, p as bi, K as Pi, L as $i, M as Ei, N as Di, n as Li, q as Oi, r as Ai, U as Ni, t as Ti, k as ji, m as Hi, l as Gi, x as zi } from "./index-BUV7eJPv.js";
1
+ import { j as w, c as On, R as An, B as ge, u as Nn, a as Tn, b as jn, d as Hn, P as ke, e as Wt, f as Gn, I as zn, g as et, h as Bn, A as kn, i as be, H as qn, D as Un, V as Kn, O as Xn } from "./index-B2IoSSqc.js";
2
+ import { p as Fi, C as _i, x as Ii, w as Mi, t as Vi, q as bi, K as Pi, L as $i, M as Ei, N as Di, o as Li, r as Oi, s as Ai, U as Ni, v as Ti, k as ji, m as Hi, l as Gi, n as zi, y as Bi } from "./index-B2IoSSqc.js";
3
3
  import * as ce from "react";
4
4
  import { forwardRef as Q, useState as oe, useRef as je, useCallback as Se, useEffect as ve, isValidElement as He, cloneElement as Qt, Children as Ie } from "react";
5
5
  import { c as F, T as Nt } from "./typeGuards-CSiImkUY.js";
6
- import { aQ as ki, aT as qi, aP as Ui, aS as Ki, aR as Xi } from "./utils-CnDzHNQ6.js";
6
+ import { aQ as qi, aT as Ui, aP as Ki, aS as Xi, aR as Wi } from "./utils-CnDzHNQ6.js";
7
7
  import { u as qe, a as Wn } from "./useDebounce-BH0d8exl.js";
8
8
  import { m as Qn } from "./mergeRefs-qDToYXtM.js";
9
9
  const Jn = On(
@@ -4344,7 +4344,7 @@ export {
4344
4344
  Ci as CarouselBase,
4345
4345
  Ii as Controlled,
4346
4346
  Mi as CustomLink,
4347
- ki as DATE_VISIBLE_PATTERN,
4347
+ qi as DATE_VISIBLE_PATTERN,
4348
4348
  Si as DataTable,
4349
4349
  so as DataTableColumnHeader,
4350
4350
  Vi as Dialog,
@@ -4381,10 +4381,11 @@ export {
4381
4381
  ji as buttonPrimitiveIntent,
4382
4382
  Hi as buttonPrimitiveSize,
4383
4383
  Gi as buttonPrimitiveTextFormat,
4384
- qi as defaultClassNames,
4385
- Ui as formatDateToLocaleString,
4386
- Ki as formatDateToMonthString,
4387
- Xi as formatDateToYearString,
4388
- zi as isSingleOption
4384
+ zi as buttonPrimitiveType,
4385
+ Ui as defaultClassNames,
4386
+ Ki as formatDateToLocaleString,
4387
+ Xi as formatDateToMonthString,
4388
+ Wi as formatDateToYearString,
4389
+ Bi as isSingleOption
4389
4390
  };
4390
4391
  //# sourceMappingURL=ui.js.map