@timeax/form-palette 0.0.34 → 0.0.36

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-DK7UrSwZ.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-DK7UrSwZ.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-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';
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';
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-Dk9A4ceE.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-Dk9A4ceE.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-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';
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';
package/dist/index.js CHANGED
@@ -15639,6 +15639,7 @@ var InnerShadcnRadioVariant = (props, ref) => {
15639
15639
  required,
15640
15640
  // radio UI
15641
15641
  items,
15642
+ options,
15642
15643
  mappers,
15643
15644
  optionValue,
15644
15645
  optionLabel,
@@ -15666,13 +15667,13 @@ var InnerShadcnRadioVariant = (props, ref) => {
15666
15667
  const hasError = !!error;
15667
15668
  const normalized = React67__namespace.useMemo(
15668
15669
  () => normalizeItems(
15669
- items,
15670
+ items != null ? items : options,
15670
15671
  mappers,
15671
15672
  //@ts-ignore
15672
15673
  optionValue,
15673
15674
  optionLabel
15674
15675
  ),
15675
- [items, mappers, optionValue, optionLabel]
15676
+ [items, options, mappers, optionValue, optionLabel]
15676
15677
  );
15677
15678
  const selectedString = React67__namespace.useMemo(() => {
15678
15679
  if (value === void 0) return void 0;
@@ -16001,6 +16002,7 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
16001
16002
  required,
16002
16003
  // UI / behaviour
16003
16004
  items,
16005
+ options,
16004
16006
  mappers,
16005
16007
  optionValue,
16006
16008
  optionLabel,
@@ -16106,12 +16108,12 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
16106
16108
  const groupValue = asGroupValue(value);
16107
16109
  const normalized = React67__namespace.useMemo(
16108
16110
  () => normalizeItems2(
16109
- items,
16111
+ items != null ? items : options,
16110
16112
  mappers,
16111
16113
  optionValue,
16112
16114
  optionLabel
16113
16115
  ),
16114
- [items, mappers, optionValue, optionLabel]
16116
+ [items, options, mappers, optionValue, optionLabel]
16115
16117
  );
16116
16118
  const {
16117
16119
  groupStyle,