@timeax/form-palette 0.0.35 → 0.0.37
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/extra.d.mts +2 -2
- package/dist/extra.d.ts +2 -2
- package/dist/extra.js +9 -4
- package/dist/extra.js.map +1 -1
- package/dist/extra.mjs +9 -4
- package/dist/extra.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{variant-DK7UrSwZ.d.mts → variant-BYqslKTy.d.mts} +10 -1
- package/dist/{variant-Dk9A4ceE.d.ts → variant-DLlGPgPJ.d.ts} +10 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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';
|
|
@@ -431,6 +431,7 @@ interface InputFieldBaseProps<TValue = unknown> {
|
|
|
431
431
|
main?: boolean;
|
|
432
432
|
tags?: FieldTag[];
|
|
433
433
|
contain?: boolean;
|
|
434
|
+
autoOff?: boolean;
|
|
434
435
|
label?: React.ReactNode;
|
|
435
436
|
sublabel?: React.ReactNode;
|
|
436
437
|
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-
|
|
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-
|
|
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';
|
|
@@ -431,6 +431,7 @@ interface InputFieldBaseProps<TValue = unknown> {
|
|
|
431
431
|
main?: boolean;
|
|
432
432
|
tags?: FieldTag[];
|
|
433
433
|
contain?: boolean;
|
|
434
|
+
autoOff?: boolean;
|
|
434
435
|
label?: React.ReactNode;
|
|
435
436
|
sublabel?: React.ReactNode;
|
|
436
437
|
description?: React.ReactNode;
|
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,
|
|
@@ -27114,6 +27116,7 @@ function InputField(props) {
|
|
|
27114
27116
|
description,
|
|
27115
27117
|
helpText,
|
|
27116
27118
|
errorText,
|
|
27119
|
+
autoOff,
|
|
27117
27120
|
// Container + tags
|
|
27118
27121
|
contain,
|
|
27119
27122
|
tags,
|
|
@@ -27363,6 +27366,7 @@ function InputField(props) {
|
|
|
27363
27366
|
Variant,
|
|
27364
27367
|
{
|
|
27365
27368
|
...rest,
|
|
27369
|
+
name: autoOff ? void 0 : name,
|
|
27366
27370
|
id: key,
|
|
27367
27371
|
ref,
|
|
27368
27372
|
value,
|
|
@@ -27550,6 +27554,7 @@ function InputField(props) {
|
|
|
27550
27554
|
Variant,
|
|
27551
27555
|
{
|
|
27552
27556
|
...rest,
|
|
27557
|
+
name: autoOff ? void 0 : name,
|
|
27553
27558
|
id: key,
|
|
27554
27559
|
ref,
|
|
27555
27560
|
value,
|