@homebound/beam 2.412.0 → 2.413.0-alpha.2
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.cjs +2 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8825,7 +8825,7 @@ function TextFieldBase(props) {
|
|
|
8825
8825
|
const fieldRef = useGetRef(inputRef);
|
|
8826
8826
|
const maybeSmaller = compound ? 2 : 0;
|
|
8827
8827
|
const fieldHeight = 40;
|
|
8828
|
-
const compactFieldHeight =
|
|
8828
|
+
const compactFieldHeight = 40;
|
|
8829
8829
|
const [bgColor, hoverBgColor, disabledBgColor] = inputStylePalette ? getInputStylePalette(inputStylePalette) : contrast ? ["rgba(100, 100, 100, 1)" /* Gray700 */, "rgba(141, 141, 141, 1)" /* Gray600 */, "rgba(100, 100, 100, 1)" /* Gray700 */] : borderOnHover ? (
|
|
8830
8830
|
// Use transparent backgrounds to blend with the table row hover color
|
|
8831
8831
|
["rgba(0,0,0,0)" /* Transparent */, "rgba(219, 234, 254, 1)" /* Blue100 */, "rgba(247, 245, 245, 1)" /* Gray100 */]
|
|
@@ -8834,7 +8834,7 @@ function TextFieldBase(props) {
|
|
|
8834
8834
|
const fieldStyles = {
|
|
8835
8835
|
container: Css.df.fdc.w100.maxw(fieldMaxWidth).relative.if(labelStyle === "left").maxw100.fdr.gap2.jcsb.aic.$,
|
|
8836
8836
|
inputWrapper: {
|
|
8837
|
-
...Css[typeScale].df.aic.
|
|
8837
|
+
...Css[typeScale].df.aic.br8.pxPx(textFieldBasePadding).w100.bgColor(bgColor).gray900.if(contrast && !inputStylePalette).white.if(labelStyle === "left").w(labelLeftFieldWidth).$,
|
|
8838
8838
|
// When borderless then perceived vertical alignments are misaligned. As there is no longer a border, then the field looks oddly indented.
|
|
8839
8839
|
// This typically happens in tables when a column has a mix of static text (i.e. "roll up" rows and table headers) and input fields.
|
|
8840
8840
|
// To remedy this perceived misalignment then we increase the width by the horizontal padding applied (16px), and set a negative margin left margin to re-center the field.
|
|
@@ -16567,7 +16567,6 @@ var DateFilter = class extends BaseFilter {
|
|
|
16567
16567
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16568
16568
|
SelectField,
|
|
16569
16569
|
{
|
|
16570
|
-
compact: true,
|
|
16571
16570
|
sizeToContent: true,
|
|
16572
16571
|
options: [
|
|
16573
16572
|
// Always show the 'Any' option
|
|
@@ -16590,7 +16589,6 @@ var DateFilter = class extends BaseFilter {
|
|
|
16590
16589
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16591
16590
|
DateField,
|
|
16592
16591
|
{
|
|
16593
|
-
compact: true,
|
|
16594
16592
|
labelStyle: "inline",
|
|
16595
16593
|
value: value?.value ? new Date(value.value) : /* @__PURE__ */ new Date(),
|
|
16596
16594
|
label: "Date",
|
|
@@ -16617,7 +16615,6 @@ var DateRangeFilter = class extends BaseFilter {
|
|
|
16617
16615
|
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
16618
16616
|
DateRangeField,
|
|
16619
16617
|
{
|
|
16620
|
-
compact: true,
|
|
16621
16618
|
labelStyle: "inline",
|
|
16622
16619
|
isRangeFilterField: true,
|
|
16623
16620
|
placeholder: placeholderText,
|
|
@@ -16671,7 +16668,6 @@ var MultiFilter = class extends BaseFilter {
|
|
|
16671
16668
|
MultiSelectField,
|
|
16672
16669
|
{
|
|
16673
16670
|
...props,
|
|
16674
|
-
compact: !vertical,
|
|
16675
16671
|
label: this.label,
|
|
16676
16672
|
values: value || [],
|
|
16677
16673
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -16736,7 +16732,6 @@ var NumberRangeFilter = class extends BaseFilter {
|
|
|
16736
16732
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
16737
16733
|
NumberField,
|
|
16738
16734
|
{
|
|
16739
|
-
compact: true,
|
|
16740
16735
|
sizeToContent: !inModal,
|
|
16741
16736
|
labelStyle: "inline",
|
|
16742
16737
|
clearable: true,
|
|
@@ -16754,7 +16749,6 @@ var NumberRangeFilter = class extends BaseFilter {
|
|
|
16754
16749
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
16755
16750
|
NumberField,
|
|
16756
16751
|
{
|
|
16757
|
-
compact: true,
|
|
16758
16752
|
sizeToContent: !inModal,
|
|
16759
16753
|
labelStyle: "inline",
|
|
16760
16754
|
clearable: true,
|
|
@@ -16799,7 +16793,6 @@ var SingleFilter = class extends BaseFilter {
|
|
|
16799
16793
|
options,
|
|
16800
16794
|
getOptionValue: (o) => o === allOption ? void 0 : getOptionValue(o),
|
|
16801
16795
|
getOptionLabel: (o) => o === allOption ? nothingSelectedText ?? "All" : getOptionLabel(o),
|
|
16802
|
-
compact: !vertical,
|
|
16803
16796
|
value,
|
|
16804
16797
|
label: this.label,
|
|
16805
16798
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -16826,7 +16819,6 @@ var TreeFilter = class extends BaseFilter {
|
|
|
16826
16819
|
...props,
|
|
16827
16820
|
label: this.label,
|
|
16828
16821
|
values: value,
|
|
16829
|
-
compact: !vertical,
|
|
16830
16822
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
16831
16823
|
sizeToContent: !inModal && !vertical,
|
|
16832
16824
|
onSelect: (options) => {
|
|
@@ -16852,7 +16844,6 @@ var BooleanFilter = class extends BaseFilter {
|
|
|
16852
16844
|
SelectField,
|
|
16853
16845
|
{
|
|
16854
16846
|
...props,
|
|
16855
|
-
compact: !vertical,
|
|
16856
16847
|
label: this.label,
|
|
16857
16848
|
value: String(value),
|
|
16858
16849
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -17002,7 +16993,6 @@ function Filters(props) {
|
|
|
17002
16993
|
SelectField,
|
|
17003
16994
|
{
|
|
17004
16995
|
label: "Group by",
|
|
17005
|
-
compact: !vertical,
|
|
17006
16996
|
labelStyle: !vertical ? "inline" : "above",
|
|
17007
16997
|
sizeToContent: !vertical,
|
|
17008
16998
|
options: groupBy.options,
|
|
@@ -17132,7 +17122,6 @@ function FilterDropdownMenu(props) {
|
|
|
17132
17122
|
SelectField,
|
|
17133
17123
|
{
|
|
17134
17124
|
label: "Group by",
|
|
17135
|
-
compact: true,
|
|
17136
17125
|
labelStyle: "inline",
|
|
17137
17126
|
sizeToContent: true,
|
|
17138
17127
|
options: groupBy.options,
|