@homebound/beam 2.400.0 → 2.402.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 +23 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +23 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4151,11 +4151,11 @@ var CssBuilder = class _CssBuilder {
|
|
|
4151
4151
|
);
|
|
4152
4152
|
}
|
|
4153
4153
|
// buttonBase
|
|
4154
|
-
/** Sets `fontWeight: 500; fontSize: "14px"; lineHeight: "20px"; outline: 0; borderRadius: "
|
|
4154
|
+
/** Sets `fontWeight: 500; fontSize: "14px"; lineHeight: "20px"; outline: 0; borderRadius: "8px"; display: "inline-flex"; alignItems: "center"; whiteSpace: "nowrap"; transition: "background-color 200ms, border-color 200ms, box-shadow 200ms, left 200ms, right 200ms, margin 200ms"`. */
|
|
4155
4155
|
get buttonBase() {
|
|
4156
4156
|
return this.add("fontWeight", 500).add("fontSize", "14px").add("lineHeight", "20px").add("outline", 0).add(
|
|
4157
4157
|
"borderRadius",
|
|
4158
|
-
"
|
|
4158
|
+
"8px"
|
|
4159
4159
|
).add("display", "inline-flex").add("alignItems", "center").add("whiteSpace", "nowrap").add(
|
|
4160
4160
|
"transition",
|
|
4161
4161
|
"background-color 200ms, border-color 200ms, box-shadow 200ms, left 200ms, right 200ms, margin 200ms"
|
|
@@ -7201,10 +7201,10 @@ var variantStyles = (contrast) => ({
|
|
|
7201
7201
|
focusStyles: Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7202
7202
|
},
|
|
7203
7203
|
secondary: {
|
|
7204
|
-
baseStyles: Css.bgWhite.bcGray300.bw1.ba.
|
|
7204
|
+
baseStyles: Css.bgWhite.bcGray300.bw1.ba.blue600.$,
|
|
7205
7205
|
hoverStyles: Css.bgGray100.if(contrast).bgGray300.$,
|
|
7206
7206
|
pressedStyles: Css.bgGray200.if(contrast).bgGray100.$,
|
|
7207
|
-
disabledStyles: Css.bgWhite.
|
|
7207
|
+
disabledStyles: Css.bgWhite.blue300.$,
|
|
7208
7208
|
focusStyles: Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7209
7209
|
},
|
|
7210
7210
|
tertiary: {
|
|
@@ -7228,6 +7228,13 @@ var variantStyles = (contrast) => ({
|
|
|
7228
7228
|
disabledStyles: Css.bgRed200.if(contrast).bgRed900.gray600.$,
|
|
7229
7229
|
focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7230
7230
|
},
|
|
7231
|
+
quaternary: {
|
|
7232
|
+
baseStyles: Css.bgTransparent.gray900.if(contrast).gray400.$,
|
|
7233
|
+
hoverStyles: Css.bgGray100.if(contrast).bgGray700.white.$,
|
|
7234
|
+
pressedStyles: Css.gray900.if(contrast).bgWhite.gray900.$,
|
|
7235
|
+
disabledStyles: Css.gray400.if(contrast).gray700.$,
|
|
7236
|
+
focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(36, 36, 36, 1)" /* Gray900 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(175, 175, 175, 1)" /* Gray500 */}`).$
|
|
7237
|
+
},
|
|
7231
7238
|
caution: {
|
|
7232
7239
|
baseStyles: Css.bgYellow200.gray900.$,
|
|
7233
7240
|
hoverStyles: Css.bgYellow300.$,
|
|
@@ -7244,11 +7251,11 @@ var variantStyles = (contrast) => ({
|
|
|
7244
7251
|
},
|
|
7245
7252
|
// Todo: handle contrast variant
|
|
7246
7253
|
textSecondary: {
|
|
7247
|
-
baseStyles: Css.
|
|
7254
|
+
baseStyles: Css.blue600.add("fontSize", "inherit").$,
|
|
7248
7255
|
hoverStyles: Css.bgGray100.$,
|
|
7249
|
-
pressedStyles: Css.
|
|
7250
|
-
disabledStyles: Css.bgWhite.
|
|
7251
|
-
focusStyles: Css.
|
|
7256
|
+
pressedStyles: Css.blue600.$,
|
|
7257
|
+
disabledStyles: Css.bgWhite.blue300.$,
|
|
7258
|
+
focusStyles: Css.blue600.$
|
|
7252
7259
|
}
|
|
7253
7260
|
});
|
|
7254
7261
|
var sizeStyles = {
|
|
@@ -11821,28 +11828,17 @@ var import_react_stately14 = require("react-stately");
|
|
|
11821
11828
|
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
11822
11829
|
var nextNameId = 0;
|
|
11823
11830
|
function RadioGroupField(props) {
|
|
11824
|
-
const {
|
|
11825
|
-
|
|
11826
|
-
labelStyle,
|
|
11827
|
-
value,
|
|
11828
|
-
onChange,
|
|
11829
|
-
options,
|
|
11830
|
-
disabled = false,
|
|
11831
|
-
errorMsg,
|
|
11832
|
-
helperText,
|
|
11833
|
-
unsupportedNameHack,
|
|
11834
|
-
...otherProps
|
|
11835
|
-
} = props;
|
|
11836
|
-
const groupName = (0, import_react55.useMemo)(() => unsupportedNameHack ?? `radio-group-${++nextNameId}`, [unsupportedNameHack]);
|
|
11831
|
+
const { label, labelStyle, value, onChange, options, disabled = false, errorMsg, helperText, ...otherProps } = props;
|
|
11832
|
+
const name = (0, import_react55.useMemo)(() => `radio-group-${++nextNameId}`, []);
|
|
11837
11833
|
const state = (0, import_react_stately14.useRadioGroupState)({
|
|
11838
|
-
name
|
|
11834
|
+
name,
|
|
11839
11835
|
value,
|
|
11840
11836
|
onChange: (value2) => onChange(value2),
|
|
11841
11837
|
isDisabled: disabled,
|
|
11842
11838
|
isReadOnly: false
|
|
11843
11839
|
});
|
|
11844
11840
|
const tid = useTestIds(props, defaultTestId(label));
|
|
11845
|
-
const { labelProps, radioGroupProps } = (0, import_react_aria34.useRadioGroup)({ label, isDisabled: disabled
|
|
11841
|
+
const { labelProps, radioGroupProps } = (0, import_react_aria34.useRadioGroup)({ label, isDisabled: disabled }, state);
|
|
11846
11842
|
return (
|
|
11847
11843
|
// default styling to position `<Label />` above.
|
|
11848
11844
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { css: Css.df.fdc.gap1.aifs.if(labelStyle === "left").fdr.gap2.jcsb.$, children: [
|
|
@@ -11856,7 +11852,7 @@ function RadioGroupField(props) {
|
|
|
11856
11852
|
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
11857
11853
|
Radio,
|
|
11858
11854
|
{
|
|
11859
|
-
parentId:
|
|
11855
|
+
parentId: name,
|
|
11860
11856
|
option,
|
|
11861
11857
|
state: { ...state, isDisabled },
|
|
11862
11858
|
...otherProps,
|
|
@@ -11904,7 +11900,6 @@ function Radio(props) {
|
|
|
11904
11900
|
disabled,
|
|
11905
11901
|
"aria-labelledby": labelId,
|
|
11906
11902
|
...inputProps,
|
|
11907
|
-
name: parentId,
|
|
11908
11903
|
...focusProps,
|
|
11909
11904
|
...others
|
|
11910
11905
|
}
|
|
@@ -15866,7 +15861,7 @@ function PageHeader(props) {
|
|
|
15866
15861
|
{
|
|
15867
15862
|
label: cancelAction.label,
|
|
15868
15863
|
onClick: cancelAction.onClick,
|
|
15869
|
-
variant: "
|
|
15864
|
+
variant: "quaternary",
|
|
15870
15865
|
disabled: cancelAction.disabled,
|
|
15871
15866
|
tooltip: cancelAction.tooltip
|
|
15872
15867
|
}
|
|
@@ -16488,7 +16483,7 @@ function FilterModal(props) {
|
|
|
16488
16483
|
}
|
|
16489
16484
|
),
|
|
16490
16485
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("div", { css: Css.df.gap1.$, children: [
|
|
16491
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Button, { label: "Cancel", variant: "
|
|
16486
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: closeModal, ...testId.modalClose }),
|
|
16492
16487
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
16493
16488
|
Button,
|
|
16494
16489
|
{
|
|
@@ -18026,7 +18021,7 @@ function ConfirmCloseModal(props) {
|
|
|
18026
18021
|
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
18027
18022
|
Button,
|
|
18028
18023
|
{
|
|
18029
|
-
variant: "
|
|
18024
|
+
variant: "quaternary",
|
|
18030
18025
|
label: discardText,
|
|
18031
18026
|
onClick: () => {
|
|
18032
18027
|
onClose();
|