@homebound/beam 2.400.0 → 2.401.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 +27 -25
- 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 +27 -25
- 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: {
|
|
@@ -7221,6 +7221,13 @@ var variantStyles = (contrast) => ({
|
|
|
7221
7221
|
disabledStyles: Css.gray400.if(contrast).gray700.$,
|
|
7222
7222
|
focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(239, 68, 68, 1)" /* Red500 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(239, 68, 68, 1)" /* Red500 */}`).$
|
|
7223
7223
|
},
|
|
7224
|
+
tertiaryQuaternary: {
|
|
7225
|
+
baseStyles: Css.bgTransparent.gray900.if(contrast).gray400.$,
|
|
7226
|
+
hoverStyles: Css.bgGray100.if(contrast).bgGray700.white.$,
|
|
7227
|
+
pressedStyles: Css.gray900.if(contrast).bgWhite.gray900.$,
|
|
7228
|
+
disabledStyles: Css.gray400.if(contrast).gray700.$,
|
|
7229
|
+
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 */}`).$
|
|
7230
|
+
},
|
|
7224
7231
|
danger: {
|
|
7225
7232
|
baseStyles: Css.bgRed600.white.$,
|
|
7226
7233
|
hoverStyles: Css.bgRed700.$,
|
|
@@ -7228,6 +7235,13 @@ var variantStyles = (contrast) => ({
|
|
|
7228
7235
|
disabledStyles: Css.bgRed200.if(contrast).bgRed900.gray600.$,
|
|
7229
7236
|
focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7230
7237
|
},
|
|
7238
|
+
quaternary: {
|
|
7239
|
+
baseStyles: Css.bgGray900.white.$,
|
|
7240
|
+
hoverStyles: Css.bgGray700.$,
|
|
7241
|
+
pressedStyles: Css.bgGray800.$,
|
|
7242
|
+
disabledStyles: Css.bgGray200.if(contrast).bgGray900.gray600.$,
|
|
7243
|
+
focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7244
|
+
},
|
|
7231
7245
|
caution: {
|
|
7232
7246
|
baseStyles: Css.bgYellow200.gray900.$,
|
|
7233
7247
|
hoverStyles: Css.bgYellow300.$,
|
|
@@ -7244,11 +7258,11 @@ var variantStyles = (contrast) => ({
|
|
|
7244
7258
|
},
|
|
7245
7259
|
// Todo: handle contrast variant
|
|
7246
7260
|
textSecondary: {
|
|
7247
|
-
baseStyles: Css.
|
|
7261
|
+
baseStyles: Css.blue600.add("fontSize", "inherit").$,
|
|
7248
7262
|
hoverStyles: Css.bgGray100.$,
|
|
7249
|
-
pressedStyles: Css.
|
|
7250
|
-
disabledStyles: Css.bgWhite.
|
|
7251
|
-
focusStyles: Css.
|
|
7263
|
+
pressedStyles: Css.blue600.$,
|
|
7264
|
+
disabledStyles: Css.bgWhite.blue300.$,
|
|
7265
|
+
focusStyles: Css.blue600.$
|
|
7252
7266
|
}
|
|
7253
7267
|
});
|
|
7254
7268
|
var sizeStyles = {
|
|
@@ -11821,28 +11835,17 @@ var import_react_stately14 = require("react-stately");
|
|
|
11821
11835
|
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
11822
11836
|
var nextNameId = 0;
|
|
11823
11837
|
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]);
|
|
11838
|
+
const { label, labelStyle, value, onChange, options, disabled = false, errorMsg, helperText, ...otherProps } = props;
|
|
11839
|
+
const name = (0, import_react55.useMemo)(() => `radio-group-${++nextNameId}`, []);
|
|
11837
11840
|
const state = (0, import_react_stately14.useRadioGroupState)({
|
|
11838
|
-
name
|
|
11841
|
+
name,
|
|
11839
11842
|
value,
|
|
11840
11843
|
onChange: (value2) => onChange(value2),
|
|
11841
11844
|
isDisabled: disabled,
|
|
11842
11845
|
isReadOnly: false
|
|
11843
11846
|
});
|
|
11844
11847
|
const tid = useTestIds(props, defaultTestId(label));
|
|
11845
|
-
const { labelProps, radioGroupProps } = (0, import_react_aria34.useRadioGroup)({ label, isDisabled: disabled
|
|
11848
|
+
const { labelProps, radioGroupProps } = (0, import_react_aria34.useRadioGroup)({ label, isDisabled: disabled }, state);
|
|
11846
11849
|
return (
|
|
11847
11850
|
// default styling to position `<Label />` above.
|
|
11848
11851
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { css: Css.df.fdc.gap1.aifs.if(labelStyle === "left").fdr.gap2.jcsb.$, children: [
|
|
@@ -11856,7 +11859,7 @@ function RadioGroupField(props) {
|
|
|
11856
11859
|
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
11857
11860
|
Radio,
|
|
11858
11861
|
{
|
|
11859
|
-
parentId:
|
|
11862
|
+
parentId: name,
|
|
11860
11863
|
option,
|
|
11861
11864
|
state: { ...state, isDisabled },
|
|
11862
11865
|
...otherProps,
|
|
@@ -11904,7 +11907,6 @@ function Radio(props) {
|
|
|
11904
11907
|
disabled,
|
|
11905
11908
|
"aria-labelledby": labelId,
|
|
11906
11909
|
...inputProps,
|
|
11907
|
-
name: parentId,
|
|
11908
11910
|
...focusProps,
|
|
11909
11911
|
...others
|
|
11910
11912
|
}
|