@homebound/beam 3.27.1 → 3.28.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/index.cjs +124 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -18
- package/dist/index.d.ts +1 -18
- package/dist/index.js +124 -85
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -267,9 +267,6 @@ __export(index_exports, {
|
|
|
267
267
|
getTableStyles: () => getTableStyles,
|
|
268
268
|
headerRenderFn: () => headerRenderFn,
|
|
269
269
|
hoverStyles: () => hoverStyles,
|
|
270
|
-
iconButtonCircleStylesHover: () => iconButtonCircleStylesHover,
|
|
271
|
-
iconButtonContrastStylesHover: () => iconButtonContrastStylesHover,
|
|
272
|
-
iconButtonStylesHover: () => iconButtonStylesHover,
|
|
273
270
|
iconCardStylesHover: () => iconCardStylesHover,
|
|
274
271
|
increment: () => increment,
|
|
275
272
|
insertAtIndex: () => insertAtIndex,
|
|
@@ -5789,19 +5786,28 @@ function IconButton(props) {
|
|
|
5789
5786
|
const testIds = useTestIds(props, icon);
|
|
5790
5787
|
const isCircle = variant === "circle";
|
|
5791
5788
|
const isOutline = variant === "outline";
|
|
5792
|
-
const styles = (0, import_react10.useMemo)(() =>
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5789
|
+
const styles = (0, import_react10.useMemo)(() => {
|
|
5790
|
+
const variantKey = isCircle ? "circle" : isOutline ? "outline" : compact ? "compact" : "default";
|
|
5791
|
+
const {
|
|
5792
|
+
base,
|
|
5793
|
+
hover,
|
|
5794
|
+
focus,
|
|
5795
|
+
pressed
|
|
5796
|
+
} = variantStyles[variantKey];
|
|
5797
|
+
return {
|
|
5798
|
+
...iconButtonStylesReset,
|
|
5799
|
+
...base,
|
|
5800
|
+
...isHovered && hover,
|
|
5801
|
+
...(isFocusVisible || forceFocusStyles) && focus,
|
|
5802
|
+
...active && pressed,
|
|
5803
|
+
...isDisabled && iconButtonStylesDisabled,
|
|
5804
|
+
...bgColor && {
|
|
5805
|
+
backgroundColor: ["bgColor_var", {
|
|
5806
|
+
"--backgroundColor": (0, import_runtime9.maybeCssVar)(bgColor)
|
|
5807
|
+
}]
|
|
5808
|
+
}
|
|
5809
|
+
};
|
|
5810
|
+
}, [isHovered, isFocusVisible, isDisabled, compact, isCircle, isOutline, active, bgColor, forceFocusStyles]);
|
|
5805
5811
|
const iconColor = isCircle ? circleIconColor : defaultIconColor;
|
|
5806
5812
|
const buttonAttrs = {
|
|
5807
5813
|
...testIds,
|
|
@@ -5832,71 +5838,104 @@ var iconButtonStylesReset = {
|
|
|
5832
5838
|
justifyContent: "jcc",
|
|
5833
5839
|
transition: "transition"
|
|
5834
5840
|
};
|
|
5835
|
-
var iconButtonNormal = {
|
|
5836
|
-
height: "h_28px",
|
|
5837
|
-
width: "w_28px",
|
|
5838
|
-
borderRadius: "br8",
|
|
5839
|
-
borderWidth: "bw2"
|
|
5840
|
-
};
|
|
5841
|
-
var iconButtonCompact = {
|
|
5842
|
-
height: "h_18px",
|
|
5843
|
-
width: "w_18px",
|
|
5844
|
-
borderRadius: "br4",
|
|
5845
|
-
borderWidth: "bw1"
|
|
5846
|
-
};
|
|
5847
|
-
var iconButtonCircle = {
|
|
5848
|
-
borderRadius: "br100",
|
|
5849
|
-
width: "w_48px",
|
|
5850
|
-
height: "h_48px",
|
|
5851
|
-
borderColor: "bcGray300",
|
|
5852
|
-
borderStyle: "bss",
|
|
5853
|
-
borderWidth: "bw1",
|
|
5854
|
-
display: "df",
|
|
5855
|
-
justifyContent: "jcc",
|
|
5856
|
-
alignItems: "aic"
|
|
5857
|
-
};
|
|
5858
|
-
var iconButtonOutline = {
|
|
5859
|
-
borderRadius: "br8",
|
|
5860
|
-
width: "w_48px",
|
|
5861
|
-
height: "h_40px",
|
|
5862
|
-
backgroundColor: ["bgColor_var", {
|
|
5863
|
-
"--backgroundColor": "var(--b-surface)"
|
|
5864
|
-
}],
|
|
5865
|
-
borderColor: ["bc_var", {
|
|
5866
|
-
"--borderColor": "var(--b-surface-separator)"
|
|
5867
|
-
}],
|
|
5868
|
-
borderStyle: "bss",
|
|
5869
|
-
borderWidth: "bw1",
|
|
5870
|
-
display: "df",
|
|
5871
|
-
justifyContent: "jcc",
|
|
5872
|
-
alignItems: "aic"
|
|
5873
|
-
};
|
|
5874
|
-
var iconButtonTokenHover = {
|
|
5875
|
-
backgroundColor: ["bgColor_var", {
|
|
5876
|
-
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5877
|
-
}]
|
|
5878
|
-
};
|
|
5879
|
-
var iconButtonStylesHover = {
|
|
5880
|
-
backgroundColor: "bgGray200"
|
|
5881
|
-
};
|
|
5882
|
-
var iconButtonContrastStylesHover = iconButtonTokenHover;
|
|
5883
|
-
var iconButtonCircleStylesHover = {
|
|
5884
|
-
backgroundColor: "bgBlue100",
|
|
5885
|
-
borderColor: "bcBlue200"
|
|
5886
|
-
};
|
|
5887
|
-
var iconButtonStylesFocus = {
|
|
5888
|
-
borderColor: "bcBlue700"
|
|
5889
|
-
};
|
|
5890
|
-
var iconButtonCircleStylesFocus = {
|
|
5891
|
-
backgroundColor: "bgBlue100",
|
|
5892
|
-
borderColor: "bcBlue700"
|
|
5893
|
-
};
|
|
5894
5841
|
var iconButtonStylesDisabled = {
|
|
5895
5842
|
cursor: "cursorNotAllowed"
|
|
5896
5843
|
};
|
|
5897
|
-
var
|
|
5898
|
-
|
|
5899
|
-
|
|
5844
|
+
var variantStyles = {
|
|
5845
|
+
default: {
|
|
5846
|
+
base: {
|
|
5847
|
+
height: "h_28px",
|
|
5848
|
+
width: "w_28px",
|
|
5849
|
+
borderRadius: "br8",
|
|
5850
|
+
borderWidth: "bw2"
|
|
5851
|
+
},
|
|
5852
|
+
hover: {
|
|
5853
|
+
backgroundColor: ["bgColor_var", {
|
|
5854
|
+
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5855
|
+
}]
|
|
5856
|
+
},
|
|
5857
|
+
focus: {
|
|
5858
|
+
borderColor: "bcBlue700"
|
|
5859
|
+
},
|
|
5860
|
+
pressed: {
|
|
5861
|
+
backgroundColor: ["bgColor_var", {
|
|
5862
|
+
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5863
|
+
}]
|
|
5864
|
+
}
|
|
5865
|
+
},
|
|
5866
|
+
compact: {
|
|
5867
|
+
base: {
|
|
5868
|
+
height: "h_18px",
|
|
5869
|
+
width: "w_18px",
|
|
5870
|
+
borderRadius: "br4",
|
|
5871
|
+
borderWidth: "bw1"
|
|
5872
|
+
},
|
|
5873
|
+
hover: {
|
|
5874
|
+
backgroundColor: ["bgColor_var", {
|
|
5875
|
+
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5876
|
+
}]
|
|
5877
|
+
},
|
|
5878
|
+
focus: {
|
|
5879
|
+
borderColor: "bcBlue700"
|
|
5880
|
+
},
|
|
5881
|
+
pressed: {
|
|
5882
|
+
backgroundColor: ["bgColor_var", {
|
|
5883
|
+
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5884
|
+
}]
|
|
5885
|
+
}
|
|
5886
|
+
},
|
|
5887
|
+
circle: {
|
|
5888
|
+
base: {
|
|
5889
|
+
borderRadius: "br100",
|
|
5890
|
+
width: "w_48px",
|
|
5891
|
+
height: "h_48px",
|
|
5892
|
+
borderColor: "bcGray300",
|
|
5893
|
+
borderStyle: "bss",
|
|
5894
|
+
borderWidth: "bw1",
|
|
5895
|
+
display: "df",
|
|
5896
|
+
justifyContent: "jcc",
|
|
5897
|
+
alignItems: "aic"
|
|
5898
|
+
},
|
|
5899
|
+
hover: {
|
|
5900
|
+
backgroundColor: "bgBlue100",
|
|
5901
|
+
borderColor: "bcBlue200"
|
|
5902
|
+
},
|
|
5903
|
+
focus: {
|
|
5904
|
+
backgroundColor: "bgBlue100",
|
|
5905
|
+
borderColor: "bcBlue700"
|
|
5906
|
+
},
|
|
5907
|
+
pressed: {
|
|
5908
|
+
backgroundColor: "bgGray200",
|
|
5909
|
+
borderColor: "bcGray200"
|
|
5910
|
+
}
|
|
5911
|
+
},
|
|
5912
|
+
outline: {
|
|
5913
|
+
base: {
|
|
5914
|
+
borderRadius: "br8",
|
|
5915
|
+
width: "w_42px",
|
|
5916
|
+
height: "h_40px",
|
|
5917
|
+
backgroundColor: ["bgColor_var", {
|
|
5918
|
+
"--backgroundColor": "var(--b-surface)"
|
|
5919
|
+
}],
|
|
5920
|
+
borderColor: "bcGray300",
|
|
5921
|
+
borderStyle: "bss",
|
|
5922
|
+
borderWidth: "bw1",
|
|
5923
|
+
display: "df",
|
|
5924
|
+
justifyContent: "jcc",
|
|
5925
|
+
alignItems: "aic"
|
|
5926
|
+
},
|
|
5927
|
+
hover: {
|
|
5928
|
+
backgroundColor: ["bgColor_var", {
|
|
5929
|
+
"--backgroundColor": "var(--b-neutral-fill-hover-strong)"
|
|
5930
|
+
}]
|
|
5931
|
+
},
|
|
5932
|
+
focus: {
|
|
5933
|
+
boxShadow: "bshFocus"
|
|
5934
|
+
},
|
|
5935
|
+
pressed: {
|
|
5936
|
+
backgroundColor: "bgGray200"
|
|
5937
|
+
}
|
|
5938
|
+
}
|
|
5900
5939
|
};
|
|
5901
5940
|
|
|
5902
5941
|
// src/components/Table/utils/TableState.ts
|
|
@@ -10259,7 +10298,7 @@ function Button(props) {
|
|
|
10259
10298
|
});
|
|
10260
10299
|
}
|
|
10261
10300
|
function getButtonStyles(variant, size) {
|
|
10262
|
-
const styles =
|
|
10301
|
+
const styles = variantStyles2[variant];
|
|
10263
10302
|
if (variant === "text") {
|
|
10264
10303
|
return styles;
|
|
10265
10304
|
}
|
|
@@ -10271,7 +10310,7 @@ function getButtonStyles(variant, size) {
|
|
|
10271
10310
|
}
|
|
10272
10311
|
};
|
|
10273
10312
|
}
|
|
10274
|
-
var
|
|
10313
|
+
var variantStyles2 = {
|
|
10275
10314
|
primary: {
|
|
10276
10315
|
baseStyles: {
|
|
10277
10316
|
backgroundColor: ["bgColor_var", {
|
|
@@ -17204,7 +17243,7 @@ function Banner(props) {
|
|
|
17204
17243
|
} = props;
|
|
17205
17244
|
const tid = useTestIds(others, "banner");
|
|
17206
17245
|
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { ...(0, import_runtime58.trussProps)({
|
|
17207
|
-
...
|
|
17246
|
+
...variantStyles3[type],
|
|
17208
17247
|
...{
|
|
17209
17248
|
display: "df",
|
|
17210
17249
|
alignItems: "aic",
|
|
@@ -17233,7 +17272,7 @@ var typeToIcon = {
|
|
|
17233
17272
|
alert: "errorCircle",
|
|
17234
17273
|
error: "xCircle"
|
|
17235
17274
|
};
|
|
17236
|
-
var
|
|
17275
|
+
var variantStyles3 = {
|
|
17237
17276
|
success: {
|
|
17238
17277
|
backgroundColor: "bgGreen100",
|
|
17239
17278
|
color: "gray900"
|
|
@@ -21936,20 +21975,20 @@ function DnDGridItemHandle(props) {
|
|
|
21936
21975
|
isHovered
|
|
21937
21976
|
} = (0, import_react_aria50.useHover)({});
|
|
21938
21977
|
const tid = useTestIds(props, "dragHandle");
|
|
21939
|
-
const
|
|
21978
|
+
const iconButtonNormal = {
|
|
21940
21979
|
height: "h_28px",
|
|
21941
21980
|
width: "w_28px",
|
|
21942
21981
|
borderRadius: "br8",
|
|
21943
21982
|
borderWidth: "bw2"
|
|
21944
21983
|
};
|
|
21945
|
-
const
|
|
21984
|
+
const iconButtonCompact = {
|
|
21946
21985
|
height: "h_18px",
|
|
21947
21986
|
width: "w_18px",
|
|
21948
21987
|
borderRadius: "br4",
|
|
21949
21988
|
borderWidth: "bw1"
|
|
21950
21989
|
};
|
|
21951
21990
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("button", { ...(0, import_runtime88.trussProps)({
|
|
21952
|
-
...compact ?
|
|
21991
|
+
...compact ? iconButtonCompact : iconButtonNormal,
|
|
21953
21992
|
...{
|
|
21954
21993
|
cursor: "cursor_grab",
|
|
21955
21994
|
borderColor: "bcTransparent",
|
|
@@ -24857,9 +24896,6 @@ function PageHeaderLayout(props) {
|
|
|
24857
24896
|
getTableStyles,
|
|
24858
24897
|
headerRenderFn,
|
|
24859
24898
|
hoverStyles,
|
|
24860
|
-
iconButtonCircleStylesHover,
|
|
24861
|
-
iconButtonContrastStylesHover,
|
|
24862
|
-
iconButtonStylesHover,
|
|
24863
24899
|
iconCardStylesHover,
|
|
24864
24900
|
increment,
|
|
24865
24901
|
insertAtIndex,
|