@homebound/beam 2.252.1 → 2.253.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.
- package/dist/Css.d.ts +97 -1
- package/dist/Css.js +97 -1
- package/dist/forms/BoundCheckboxField.d.ts +1 -1
- package/dist/forms/BoundCheckboxGroupField.d.ts +1 -1
- package/dist/forms/BoundChipSelectField.d.ts +1 -1
- package/dist/forms/BoundDateField.d.ts +1 -1
- package/dist/forms/BoundDateRangeField.d.ts +1 -1
- package/dist/forms/BoundMultiLineSelectField.d.ts +1 -1
- package/dist/forms/BoundMultiSelectField.d.ts +1 -1
- package/dist/forms/BoundNumberField.d.ts +1 -1
- package/dist/forms/BoundRadioGroupField.d.ts +1 -1
- package/dist/forms/BoundRichTextField.d.ts +1 -1
- package/dist/forms/BoundSelectField.d.ts +1 -1
- package/dist/forms/BoundSwitchField.d.ts +1 -1
- package/dist/forms/BoundTextAreaField.d.ts +1 -1
- package/dist/forms/BoundTextField.d.ts +1 -1
- package/dist/forms/BoundToggleChipGroupField.d.ts +1 -1
- package/package.json +3 -3
package/dist/Css.d.ts
CHANGED
|
@@ -716,6 +716,26 @@ declare class CssBuilder<T extends Properties> {
|
|
|
716
716
|
jc(value: Properties["justifyContent"]): CssBuilder<T & {
|
|
717
717
|
justifyContent: import("csstype").Property.JustifyContent | undefined;
|
|
718
718
|
}>;
|
|
719
|
+
/** Sets `justifySelf: "auto"`. */
|
|
720
|
+
get jsa(): CssBuilder<T & {
|
|
721
|
+
justifySelf: import("csstype").Property.JustifySelf | undefined;
|
|
722
|
+
}>;
|
|
723
|
+
/** Sets `justifySelf: "center"`. */
|
|
724
|
+
get jsc(): CssBuilder<T & {
|
|
725
|
+
justifySelf: import("csstype").Property.JustifySelf | undefined;
|
|
726
|
+
}>;
|
|
727
|
+
/** Sets `justifySelf: "start"`. */
|
|
728
|
+
get jss(): CssBuilder<T & {
|
|
729
|
+
justifySelf: import("csstype").Property.JustifySelf | undefined;
|
|
730
|
+
}>;
|
|
731
|
+
/** Sets `justifySelf: "end"`. */
|
|
732
|
+
get jse(): CssBuilder<T & {
|
|
733
|
+
justifySelf: import("csstype").Property.JustifySelf | undefined;
|
|
734
|
+
}>;
|
|
735
|
+
/** Sets `justifySelf: value`. */
|
|
736
|
+
js(value: Properties["justifySelf"]): CssBuilder<T & {
|
|
737
|
+
justifySelf: import("csstype").Property.JustifySelf | undefined;
|
|
738
|
+
}>;
|
|
719
739
|
/** Sets `justifyItems: "flex-start"`. */
|
|
720
740
|
get jifs(): CssBuilder<T & {
|
|
721
741
|
justifyItems: import("csstype").Property.JustifyItems | undefined;
|
|
@@ -776,6 +796,14 @@ declare class CssBuilder<T extends Properties> {
|
|
|
776
796
|
get aife(): CssBuilder<T & {
|
|
777
797
|
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
778
798
|
}>;
|
|
799
|
+
/** Sets `alignItems: "start"`. */
|
|
800
|
+
get ais(): CssBuilder<T & {
|
|
801
|
+
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
802
|
+
}>;
|
|
803
|
+
/** Sets `alignItems: "end"`. */
|
|
804
|
+
get aie(): CssBuilder<T & {
|
|
805
|
+
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
806
|
+
}>;
|
|
779
807
|
/** Sets `alignItems: "center"`. */
|
|
780
808
|
get aic(): CssBuilder<T & {
|
|
781
809
|
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
@@ -785,13 +813,81 @@ declare class CssBuilder<T extends Properties> {
|
|
|
785
813
|
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
786
814
|
}>;
|
|
787
815
|
/** Sets `alignItems: "stretch"`. */
|
|
788
|
-
get
|
|
816
|
+
get aiStretch(): CssBuilder<T & {
|
|
789
817
|
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
790
818
|
}>;
|
|
791
819
|
/** Sets `alignItems: value`. */
|
|
792
820
|
ai(value: Properties["alignItems"]): CssBuilder<T & {
|
|
793
821
|
alignItems: import("csstype").Property.AlignItems | undefined;
|
|
794
822
|
}>;
|
|
823
|
+
/** Sets `placeSelf: "auto"`. */
|
|
824
|
+
get psa(): CssBuilder<T & {
|
|
825
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
826
|
+
}>;
|
|
827
|
+
/** Sets `placeSelf: "center"`. */
|
|
828
|
+
get psc(): CssBuilder<T & {
|
|
829
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
830
|
+
}>;
|
|
831
|
+
/** Sets `placeSelf: "start"`. */
|
|
832
|
+
get pss(): CssBuilder<T & {
|
|
833
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
/** Sets `placeSelf: "end"`. */
|
|
836
|
+
get pse(): CssBuilder<T & {
|
|
837
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
838
|
+
}>;
|
|
839
|
+
/** Sets `placeSelf: "flex-start"`. */
|
|
840
|
+
get psfs(): CssBuilder<T & {
|
|
841
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
842
|
+
}>;
|
|
843
|
+
/** Sets `placeSelf: "flex-end"`. */
|
|
844
|
+
get psfe(): CssBuilder<T & {
|
|
845
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
846
|
+
}>;
|
|
847
|
+
/** Sets `placeSelf: "stretch"`. */
|
|
848
|
+
get psStretch(): CssBuilder<T & {
|
|
849
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
850
|
+
}>;
|
|
851
|
+
/** Sets `placeSelf: value`. */
|
|
852
|
+
ps(value: Properties["placeSelf"]): CssBuilder<T & {
|
|
853
|
+
placeSelf: import("csstype").Property.PlaceSelf | undefined;
|
|
854
|
+
}>;
|
|
855
|
+
/** Sets `placeContent: "center"`. */
|
|
856
|
+
get pcc(): CssBuilder<T & {
|
|
857
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
858
|
+
}>;
|
|
859
|
+
/** Sets `placeContent: "start"`. */
|
|
860
|
+
get pcs(): CssBuilder<T & {
|
|
861
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
862
|
+
}>;
|
|
863
|
+
/** Sets `placeContent: "end"`. */
|
|
864
|
+
get pce(): CssBuilder<T & {
|
|
865
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
866
|
+
}>;
|
|
867
|
+
/** Sets `placeContent: "space-between"`. */
|
|
868
|
+
get pcsb(): CssBuilder<T & {
|
|
869
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
870
|
+
}>;
|
|
871
|
+
/** Sets `placeContent: "space-around"`. */
|
|
872
|
+
get pcsa(): CssBuilder<T & {
|
|
873
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
874
|
+
}>;
|
|
875
|
+
/** Sets `placeContent: "space-evenly"`. */
|
|
876
|
+
get pcse(): CssBuilder<T & {
|
|
877
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
878
|
+
}>;
|
|
879
|
+
/** Sets `placeContent: "baseline"`. */
|
|
880
|
+
get pcb(): CssBuilder<T & {
|
|
881
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
882
|
+
}>;
|
|
883
|
+
/** Sets `placeContent: "stretch"`. */
|
|
884
|
+
get pcStretch(): CssBuilder<T & {
|
|
885
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
886
|
+
}>;
|
|
887
|
+
/** Sets `placeContent: value`. */
|
|
888
|
+
pc(value: Properties["placeContent"]): CssBuilder<T & {
|
|
889
|
+
placeContent: import("csstype").Property.PlaceContent | undefined;
|
|
890
|
+
}>;
|
|
795
891
|
/** Sets `flexBasis: "100%"`. */
|
|
796
892
|
get fb1(): CssBuilder<T & {
|
|
797
893
|
flexBasis: import("csstype").Property.FlexBasis<string | 0> | undefined;
|
package/dist/Css.js
CHANGED
|
@@ -711,6 +711,26 @@ class CssBuilder {
|
|
|
711
711
|
jc(value) {
|
|
712
712
|
return this.add("justifyContent", value);
|
|
713
713
|
}
|
|
714
|
+
/** Sets `justifySelf: "auto"`. */
|
|
715
|
+
get jsa() {
|
|
716
|
+
return this.add("justifySelf", "auto");
|
|
717
|
+
}
|
|
718
|
+
/** Sets `justifySelf: "center"`. */
|
|
719
|
+
get jsc() {
|
|
720
|
+
return this.add("justifySelf", "center");
|
|
721
|
+
}
|
|
722
|
+
/** Sets `justifySelf: "start"`. */
|
|
723
|
+
get jss() {
|
|
724
|
+
return this.add("justifySelf", "start");
|
|
725
|
+
}
|
|
726
|
+
/** Sets `justifySelf: "end"`. */
|
|
727
|
+
get jse() {
|
|
728
|
+
return this.add("justifySelf", "end");
|
|
729
|
+
}
|
|
730
|
+
/** Sets `justifySelf: value`. */
|
|
731
|
+
js(value) {
|
|
732
|
+
return this.add("justifySelf", value);
|
|
733
|
+
}
|
|
714
734
|
/** Sets `justifyItems: "flex-start"`. */
|
|
715
735
|
get jifs() {
|
|
716
736
|
return this.add("justifyItems", "flex-start");
|
|
@@ -771,6 +791,14 @@ class CssBuilder {
|
|
|
771
791
|
get aife() {
|
|
772
792
|
return this.add("alignItems", "flex-end");
|
|
773
793
|
}
|
|
794
|
+
/** Sets `alignItems: "start"`. */
|
|
795
|
+
get ais() {
|
|
796
|
+
return this.add("alignItems", "start");
|
|
797
|
+
}
|
|
798
|
+
/** Sets `alignItems: "end"`. */
|
|
799
|
+
get aie() {
|
|
800
|
+
return this.add("alignItems", "end");
|
|
801
|
+
}
|
|
774
802
|
/** Sets `alignItems: "center"`. */
|
|
775
803
|
get aic() {
|
|
776
804
|
return this.add("alignItems", "center");
|
|
@@ -780,13 +808,81 @@ class CssBuilder {
|
|
|
780
808
|
return this.add("alignItems", "baseline");
|
|
781
809
|
}
|
|
782
810
|
/** Sets `alignItems: "stretch"`. */
|
|
783
|
-
get
|
|
811
|
+
get aiStretch() {
|
|
784
812
|
return this.add("alignItems", "stretch");
|
|
785
813
|
}
|
|
786
814
|
/** Sets `alignItems: value`. */
|
|
787
815
|
ai(value) {
|
|
788
816
|
return this.add("alignItems", value);
|
|
789
817
|
}
|
|
818
|
+
/** Sets `placeSelf: "auto"`. */
|
|
819
|
+
get psa() {
|
|
820
|
+
return this.add("placeSelf", "auto");
|
|
821
|
+
}
|
|
822
|
+
/** Sets `placeSelf: "center"`. */
|
|
823
|
+
get psc() {
|
|
824
|
+
return this.add("placeSelf", "center");
|
|
825
|
+
}
|
|
826
|
+
/** Sets `placeSelf: "start"`. */
|
|
827
|
+
get pss() {
|
|
828
|
+
return this.add("placeSelf", "start");
|
|
829
|
+
}
|
|
830
|
+
/** Sets `placeSelf: "end"`. */
|
|
831
|
+
get pse() {
|
|
832
|
+
return this.add("placeSelf", "end");
|
|
833
|
+
}
|
|
834
|
+
/** Sets `placeSelf: "flex-start"`. */
|
|
835
|
+
get psfs() {
|
|
836
|
+
return this.add("placeSelf", "flex-start");
|
|
837
|
+
}
|
|
838
|
+
/** Sets `placeSelf: "flex-end"`. */
|
|
839
|
+
get psfe() {
|
|
840
|
+
return this.add("placeSelf", "flex-end");
|
|
841
|
+
}
|
|
842
|
+
/** Sets `placeSelf: "stretch"`. */
|
|
843
|
+
get psStretch() {
|
|
844
|
+
return this.add("placeSelf", "stretch");
|
|
845
|
+
}
|
|
846
|
+
/** Sets `placeSelf: value`. */
|
|
847
|
+
ps(value) {
|
|
848
|
+
return this.add("placeSelf", value);
|
|
849
|
+
}
|
|
850
|
+
/** Sets `placeContent: "center"`. */
|
|
851
|
+
get pcc() {
|
|
852
|
+
return this.add("placeContent", "center");
|
|
853
|
+
}
|
|
854
|
+
/** Sets `placeContent: "start"`. */
|
|
855
|
+
get pcs() {
|
|
856
|
+
return this.add("placeContent", "start");
|
|
857
|
+
}
|
|
858
|
+
/** Sets `placeContent: "end"`. */
|
|
859
|
+
get pce() {
|
|
860
|
+
return this.add("placeContent", "end");
|
|
861
|
+
}
|
|
862
|
+
/** Sets `placeContent: "space-between"`. */
|
|
863
|
+
get pcsb() {
|
|
864
|
+
return this.add("placeContent", "space-between");
|
|
865
|
+
}
|
|
866
|
+
/** Sets `placeContent: "space-around"`. */
|
|
867
|
+
get pcsa() {
|
|
868
|
+
return this.add("placeContent", "space-around");
|
|
869
|
+
}
|
|
870
|
+
/** Sets `placeContent: "space-evenly"`. */
|
|
871
|
+
get pcse() {
|
|
872
|
+
return this.add("placeContent", "space-evenly");
|
|
873
|
+
}
|
|
874
|
+
/** Sets `placeContent: "baseline"`. */
|
|
875
|
+
get pcb() {
|
|
876
|
+
return this.add("placeContent", "baseline");
|
|
877
|
+
}
|
|
878
|
+
/** Sets `placeContent: "stretch"`. */
|
|
879
|
+
get pcStretch() {
|
|
880
|
+
return this.add("placeContent", "stretch");
|
|
881
|
+
}
|
|
882
|
+
/** Sets `placeContent: value`. */
|
|
883
|
+
pc(value) {
|
|
884
|
+
return this.add("placeContent", value);
|
|
885
|
+
}
|
|
790
886
|
/** Sets `flexBasis: "100%"`. */
|
|
791
887
|
get fb1() {
|
|
792
888
|
return this.add("flexBasis", "100%");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { CheckboxProps } from "../inputs";
|
|
3
3
|
export type BoundCheckboxFieldProps = Omit<CheckboxProps, "selected" | "onChange" | "label"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<boolean | null | undefined>;
|
|
5
5
|
/** Make optional so that callers can override if they want to. */
|
|
6
6
|
onChange?: (values: boolean) => void;
|
|
7
7
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { CheckboxGroupProps } from "../inputs";
|
|
3
3
|
export type BoundCheckboxGroupFieldProps = Omit<CheckboxGroupProps, "values" | "onChange" | "label"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<string[] | null | undefined>;
|
|
5
5
|
/** Make optional so that callers can override if they want to. */
|
|
6
6
|
onChange?: (values: string[]) => void;
|
|
7
7
|
label?: string;
|
|
@@ -4,7 +4,7 @@ import { ChipSelectFieldProps } from "../inputs/ChipSelectField";
|
|
|
4
4
|
import { HasIdAndName, Optional } from "../types";
|
|
5
5
|
interface BoundChipSelectFieldProps<O, V extends Value> extends Omit<ChipSelectFieldProps<O, V>, "onSelect" | "label" | "value"> {
|
|
6
6
|
onSelect?: (option: V | undefined) => void;
|
|
7
|
-
field: FieldState<
|
|
7
|
+
field: FieldState<V | null | undefined>;
|
|
8
8
|
label?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare function BoundChipSelectField<O, V extends Value>(props: BoundChipSelectFieldProps<O, V>): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { DateFieldProps } from "../inputs";
|
|
3
3
|
export type BoundDateFieldProps = Omit<DateFieldProps, "label" | "value" | "onChange"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<Date | null | undefined>;
|
|
5
5
|
label?: string;
|
|
6
6
|
onChange?: (value: Date | undefined) => void;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { FieldState } from "@homebound/form-state";
|
|
|
2
2
|
import { DateRangeFieldProps } from "../inputs";
|
|
3
3
|
import { DateRange } from "../types";
|
|
4
4
|
export type BoundDateRangeFieldProps = Omit<DateRangeFieldProps, "label" | "value" | "onChange"> & {
|
|
5
|
-
field: FieldState<
|
|
5
|
+
field: FieldState<DateRange | null | undefined>;
|
|
6
6
|
label?: string;
|
|
7
7
|
onChange?: (value: DateRange | undefined) => void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import { MultiLineSelectFieldProps, Value } from "../inputs";
|
|
|
3
3
|
import { HasIdAndName, Optional } from "../types";
|
|
4
4
|
export type BoundMultiLineSelectFieldProps<O, V extends Value> = Omit<MultiLineSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
5
5
|
onSelect?: (values: V[], opts: O[]) => void;
|
|
6
|
-
field: FieldState<
|
|
6
|
+
field: FieldState<V[] | null | undefined>;
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ import { MultiSelectFieldProps, Value } from "../inputs";
|
|
|
3
3
|
import { HasIdAndName, Optional } from "../types";
|
|
4
4
|
export type BoundMultiSelectFieldProps<O, V extends Value> = Omit<MultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
5
5
|
onSelect?: (values: V[], opts: O[]) => void;
|
|
6
|
-
field: FieldState<
|
|
6
|
+
field: FieldState<V[] | null | undefined>;
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -2,7 +2,7 @@ import { FieldState } from "@homebound/form-state";
|
|
|
2
2
|
import { NumberFieldProps } from "../inputs/NumberField";
|
|
3
3
|
export type BoundNumberFieldProps = Omit<NumberFieldProps, "value" | "onChange" | "label"> & {
|
|
4
4
|
label?: string;
|
|
5
|
-
field: FieldState<
|
|
5
|
+
field: FieldState<number | null | undefined>;
|
|
6
6
|
onChange?: (value: number | undefined) => void;
|
|
7
7
|
};
|
|
8
8
|
/** Wraps `NumberField` and binds it to a form field. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { RadioGroupFieldProps } from "../inputs";
|
|
3
3
|
export type BoundRadioGroupFieldProps<K extends string> = Omit<RadioGroupFieldProps<K>, "value" | "onChange" | "label"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<K | null | undefined>;
|
|
5
5
|
/** Make optional so that callers can override if they want to. */
|
|
6
6
|
onChange?: (value: K) => void;
|
|
7
7
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { RichTextFieldProps } from "../inputs/RichTextField";
|
|
3
3
|
export type BoundRichTextFieldProps = Omit<RichTextFieldProps, "value" | "onChange"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<string | null | undefined>;
|
|
5
5
|
onChange?: (value: string | undefined) => void;
|
|
6
6
|
};
|
|
7
7
|
/** Wraps `RichTextField` and binds it to a form field. */
|
|
@@ -3,7 +3,7 @@ import { SelectFieldProps, Value } from "../inputs";
|
|
|
3
3
|
import { HasIdAndName, Optional } from "../types";
|
|
4
4
|
export type BoundSelectFieldProps<O, V extends Value> = Omit<SelectFieldProps<O, V>, "value" | "onSelect" | "label"> & {
|
|
5
5
|
onSelect?: (value: V | undefined, opt: O | undefined) => void;
|
|
6
|
-
field: FieldState<
|
|
6
|
+
field: FieldState<V | null | undefined>;
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { SwitchProps } from "../inputs";
|
|
3
3
|
export type BoundSwitchFieldProps = Omit<SwitchProps, "selected" | "onChange" | "label"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<boolean | null | undefined>;
|
|
5
5
|
/** Make optional so that callers can override if they want to. */
|
|
6
6
|
onChange?: (value: boolean) => void;
|
|
7
7
|
label?: string;
|
|
@@ -4,7 +4,7 @@ import { TextAreaFieldProps } from "../inputs";
|
|
|
4
4
|
import { TextFieldXss } from "../interfaces";
|
|
5
5
|
export type BoundTextAreaFieldProps<X> = Omit<TextAreaFieldProps<X>, "value" | "onChange" | "label"> & {
|
|
6
6
|
label?: string;
|
|
7
|
-
field: FieldState<
|
|
7
|
+
field: FieldState<string | null | undefined>;
|
|
8
8
|
onChange?: (value: string | undefined) => void;
|
|
9
9
|
};
|
|
10
10
|
/** Wraps `TextAreaField` and binds it to a form field. */
|
|
@@ -4,7 +4,7 @@ import { TextFieldProps } from "../inputs";
|
|
|
4
4
|
import { TextFieldXss } from "../interfaces";
|
|
5
5
|
export type BoundTextFieldProps<X> = Omit<TextFieldProps<X>, "value" | "onChange" | "label"> & {
|
|
6
6
|
label?: string;
|
|
7
|
-
field: FieldState<
|
|
7
|
+
field: FieldState<string | null | undefined>;
|
|
8
8
|
onChange?: (value: string | undefined) => void;
|
|
9
9
|
};
|
|
10
10
|
/** Wraps `TextField` and binds it to a form field. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldState } from "@homebound/form-state";
|
|
2
2
|
import { ToggleChipGroupProps } from "../inputs";
|
|
3
3
|
export type BoundToggleChipGroupFieldProps = Omit<ToggleChipGroupProps, "values" | "onChange" | "label"> & {
|
|
4
|
-
field: FieldState<
|
|
4
|
+
field: FieldState<string[] | null | undefined>;
|
|
5
5
|
/** Make optional so that callers can override if they want to. */
|
|
6
6
|
onChange?: (values: string[]) => void;
|
|
7
7
|
label?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebound/beam",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.253.0",
|
|
4
4
|
"author": "Homebound",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md,mdx}\""
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@homebound/form-state": "^2.
|
|
36
|
+
"@homebound/form-state": "^2.17.0",
|
|
37
37
|
"@internationalized/number": "^3.0.3",
|
|
38
38
|
"@react-aria/utils": "^3.13.2",
|
|
39
39
|
"@react-hook/resize-observer": "^1.2.2",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@homebound/eslint-config": "1.5.1",
|
|
78
78
|
"@homebound/rtl-react-router-utils": "^1.0.3",
|
|
79
79
|
"@homebound/rtl-utils": "^2.59.3",
|
|
80
|
-
"@homebound/truss": "^1.
|
|
80
|
+
"@homebound/truss": "^1.123.0",
|
|
81
81
|
"@homebound/tsconfig": "^1.0.3",
|
|
82
82
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
83
83
|
"@semantic-release/exec": "^6.0.3",
|