@timeax/form-palette 0.0.36 → 0.0.38

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/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule } from './variant-BYqslKTy.mjs';
2
- export { B as BaseProps, p as ButtonRef, w as EffectiveFieldLayout, v as FieldLayoutConfig, u as FieldOrdering, t as FieldRootId, r as FieldRoots, s as FieldSlotId, q as FieldSlots, m as FormProps, k as InferFromSchema, I as InputNumber, o as InputStore, x as LayoutResolveContext, y as LayoutResolver, R as RelativeRootsMap, l as SubmitEvent, T as Textarea, n as ValuesResult, z as VariantEntry, J as VariantLayoutDefaults, K as VariantModuleFor, G as VariantValidateFn, A as Variants } from './variant-BYqslKTy.mjs';
1
+ import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule } from './variant-DFE9TgIv.mjs';
2
+ export { B as BaseProps, p as ButtonRef, w as EffectiveFieldLayout, v as FieldLayoutConfig, u as FieldOrdering, t as FieldRootId, r as FieldRoots, s as FieldSlotId, q as FieldSlots, m as FormProps, k as InferFromSchema, I as InputNumber, o as InputStore, x as LayoutResolveContext, y as LayoutResolver, R as RelativeRootsMap, l as SubmitEvent, T as Textarea, n as ValuesResult, z as VariantEntry, J as VariantLayoutDefaults, K as VariantModuleFor, G as VariantValidateFn, A as Variants } from './variant-DFE9TgIv.mjs';
3
3
  import { A as AdapterKey } from './adapter-CvjXO9Gi.mjs';
4
4
  export { a as AdapterCallbacks, c as AdapterConfig, h as AdapterError, d as AdapterFactory, g as AdapterOk, f as AdapterProps, b as AdapterResult, i as AdapterSubmit, e as Adapters, M as Method, N as NamedAdapterConfig, j as NamedAdapterFactory } from './adapter-CvjXO9Gi.mjs';
5
5
  export { createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.mjs';
@@ -384,35 +384,15 @@ type ZodErrorMapResult = {
384
384
  declare function mapZodError(error: $ZodError): ZodErrorMapResult;
385
385
 
386
386
  interface ErrorStripProps extends React.HTMLAttributes<HTMLElement> {
387
- /**
388
- * Optional explicit form context. If omitted, the strip will use
389
- * the nearest CoreProvider via useCore().
390
- */
391
387
  form?: CoreContext<Dict>;
392
- /**
393
- * Optional explicit messages. If provided, these are used instead of
394
- * form.getUncaught().
395
- */
396
388
  messages?: readonly string[];
397
- /**
398
- * Custom renderer for each message.
399
- */
400
389
  renderMessage?: (message: string, index: number) => React.ReactNode;
401
- /**
402
- * Wrapper element type. Defaults to "div".
403
- */
404
390
  as?: React.ElementType;
405
- /**
406
- * Props forwarded to the inner <ul> element.
407
- */
408
391
  listProps?: React.HTMLAttributes<HTMLUListElement>;
392
+ dismissible?: boolean;
393
+ onDismiss?: () => void;
394
+ title?: string;
409
395
  }
410
- /**
411
- * Simple global/uncaught error renderer.
412
- *
413
- * Reads messages from `form.getUncaught()` (unless `messages` is provided)
414
- * and renders them as a list.
415
- */
416
396
  declare function ErrorStrip(props: ErrorStripProps): react_jsx_runtime.JSX.Element | null;
417
397
 
418
398
  /**
@@ -431,6 +411,7 @@ interface InputFieldBaseProps<TValue = unknown> {
431
411
  main?: boolean;
432
412
  tags?: FieldTag[];
433
413
  contain?: boolean;
414
+ autoOff?: boolean;
434
415
  label?: React.ReactNode;
435
416
  sublabel?: React.ReactNode;
436
417
  description?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule } from './variant-DLlGPgPJ.js';
2
- export { B as BaseProps, p as ButtonRef, w as EffectiveFieldLayout, v as FieldLayoutConfig, u as FieldOrdering, t as FieldRootId, r as FieldRoots, s as FieldSlotId, q as FieldSlots, m as FormProps, k as InferFromSchema, I as InputNumber, o as InputStore, x as LayoutResolveContext, y as LayoutResolver, R as RelativeRootsMap, l as SubmitEvent, T as Textarea, n as ValuesResult, z as VariantEntry, J as VariantLayoutDefaults, K as VariantModuleFor, G as VariantValidateFn, A as Variants } from './variant-DLlGPgPJ.js';
1
+ import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule } from './variant-HaGlyCnL.js';
2
+ export { B as BaseProps, p as ButtonRef, w as EffectiveFieldLayout, v as FieldLayoutConfig, u as FieldOrdering, t as FieldRootId, r as FieldRoots, s as FieldSlotId, q as FieldSlots, m as FormProps, k as InferFromSchema, I as InputNumber, o as InputStore, x as LayoutResolveContext, y as LayoutResolver, R as RelativeRootsMap, l as SubmitEvent, T as Textarea, n as ValuesResult, z as VariantEntry, J as VariantLayoutDefaults, K as VariantModuleFor, G as VariantValidateFn, A as Variants } from './variant-HaGlyCnL.js';
3
3
  import { A as AdapterKey } from './adapter-CvjXO9Gi.js';
4
4
  export { a as AdapterCallbacks, c as AdapterConfig, h as AdapterError, d as AdapterFactory, g as AdapterOk, f as AdapterProps, b as AdapterResult, i as AdapterSubmit, e as Adapters, M as Method, N as NamedAdapterConfig, j as NamedAdapterFactory } from './adapter-CvjXO9Gi.js';
5
5
  export { createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.js';
@@ -384,35 +384,15 @@ type ZodErrorMapResult = {
384
384
  declare function mapZodError(error: $ZodError): ZodErrorMapResult;
385
385
 
386
386
  interface ErrorStripProps extends React.HTMLAttributes<HTMLElement> {
387
- /**
388
- * Optional explicit form context. If omitted, the strip will use
389
- * the nearest CoreProvider via useCore().
390
- */
391
387
  form?: CoreContext<Dict>;
392
- /**
393
- * Optional explicit messages. If provided, these are used instead of
394
- * form.getUncaught().
395
- */
396
388
  messages?: readonly string[];
397
- /**
398
- * Custom renderer for each message.
399
- */
400
389
  renderMessage?: (message: string, index: number) => React.ReactNode;
401
- /**
402
- * Wrapper element type. Defaults to "div".
403
- */
404
390
  as?: React.ElementType;
405
- /**
406
- * Props forwarded to the inner <ul> element.
407
- */
408
391
  listProps?: React.HTMLAttributes<HTMLUListElement>;
392
+ dismissible?: boolean;
393
+ onDismiss?: () => void;
394
+ title?: string;
409
395
  }
410
- /**
411
- * Simple global/uncaught error renderer.
412
- *
413
- * Reads messages from `form.getUncaught()` (unless `messages` is provided)
414
- * and renders them as a list.
415
- */
416
396
  declare function ErrorStrip(props: ErrorStripProps): react_jsx_runtime.JSX.Element | null;
417
397
 
418
398
  /**
@@ -431,6 +411,7 @@ interface InputFieldBaseProps<TValue = unknown> {
431
411
  main?: boolean;
432
412
  tags?: FieldTag[];
433
413
  contain?: boolean;
414
+ autoOff?: boolean;
434
415
  label?: React.ReactNode;
435
416
  sublabel?: React.ReactNode;
436
417
  description?: React.ReactNode;