@homebound/beam 2.401.0 → 2.403.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 CHANGED
@@ -7221,13 +7221,6 @@ 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
- },
7231
7224
  danger: {
7232
7225
  baseStyles: Css.bgRed600.white.$,
7233
7226
  hoverStyles: Css.bgRed700.$,
@@ -7236,11 +7229,11 @@ var variantStyles = (contrast) => ({
7236
7229
  focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
7237
7230
  },
7238
7231
  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 */}`).$
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 */}`).$
7244
7237
  },
7245
7238
  caution: {
7246
7239
  baseStyles: Css.bgYellow200.gray900.$,
@@ -12474,8 +12467,16 @@ var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
12474
12467
  function ToggleChipGroup(props) {
12475
12468
  const { fieldProps } = usePresentationContext();
12476
12469
  const { labelLeftFieldWidth = "50%" } = fieldProps ?? {};
12477
- const { values, label, labelStyle = fieldProps?.labelStyle ?? "above", options, required, xss } = props;
12478
- const state = (0, import_react_stately16.useCheckboxGroupState)({ ...props, value: values });
12470
+ const {
12471
+ values,
12472
+ label,
12473
+ labelStyle = fieldProps?.labelStyle ?? "above",
12474
+ options,
12475
+ required,
12476
+ xss,
12477
+ readonly = false
12478
+ } = props;
12479
+ const state = (0, import_react_stately16.useCheckboxGroupState)({ ...props, isReadOnly: readonly, value: values });
12479
12480
  const { groupProps, labelProps } = (0, import_react_aria39.useCheckboxGroup)(props, state);
12480
12481
  const tid = useTestIds(props, "toggleChip");
12481
12482
  const labelSuffix = useLabelSuffix(required, false);
@@ -12502,6 +12503,7 @@ function ToggleChipGroup(props) {
12502
12503
  selected: state.value.includes(o.value),
12503
12504
  label: o.label,
12504
12505
  disabled: o.disabled,
12506
+ readonly: o.readonly,
12505
12507
  startAdornment: o.startAdornment,
12506
12508
  xss,
12507
12509
  ...tid[o.value]
@@ -12513,10 +12515,21 @@ function ToggleChipGroup(props) {
12513
12515
  ] });
12514
12516
  }
12515
12517
  function ToggleChip2(props) {
12516
- const { label, value, groupState, selected: isSelected, disabled = false, startAdornment, xss, ...others } = props;
12518
+ const {
12519
+ label,
12520
+ value,
12521
+ groupState,
12522
+ selected: isSelected,
12523
+ disabled = false,
12524
+ readonly = false,
12525
+ startAdornment,
12526
+ xss,
12527
+ ...others
12528
+ } = props;
12517
12529
  const isDisabled = !!disabled;
12530
+ const isReadOnly = !!readonly;
12518
12531
  const ref = (0, import_react64.useRef)(null);
12519
- const { inputProps } = (0, import_react_aria39.useCheckboxGroupItem)({ value, "aria-label": label, isDisabled }, groupState, ref);
12532
+ const { inputProps } = (0, import_react_aria39.useCheckboxGroupItem)({ value, "aria-label": label, isReadOnly, isDisabled }, groupState, ref);
12520
12533
  const { isFocusVisible, focusProps } = (0, import_react_aria39.useFocusRing)();
12521
12534
  const tooltip = resolveTooltip(disabled);
12522
12535
  return maybeTooltip({
@@ -12530,7 +12543,7 @@ function ToggleChip2(props) {
12530
12543
  ...isSelected ? {
12531
12544
  ...Css.color(xss?.color ?? "rgba(255,255,255,1)" /* White */).bgColor(xss?.backgroundColor ?? "rgba(29, 78, 216, 1)" /* Blue700 */).$,
12532
12545
  ":hover:not([data-disabled='true'])": Css.bgColor(xss?.backgroundColor ?? "rgba(30, 64, 175, 1)" /* Blue800 */).$
12533
- } : { ":hover:not([data-disabled='true'])": Css.bgGray300.$ },
12546
+ } : { ":hover:not([data-disabled='true'])": Css.if(!groupState.isReadOnly).bgGray300.$ },
12534
12547
  ...isFocusVisible ? Css.bshFocus.$ : {}
12535
12548
  },
12536
12549
  "data-selected": isSelected,
@@ -15868,7 +15881,7 @@ function PageHeader(props) {
15868
15881
  {
15869
15882
  label: cancelAction.label,
15870
15883
  onClick: cancelAction.onClick,
15871
- variant: "secondary",
15884
+ variant: "quaternary",
15872
15885
  disabled: cancelAction.disabled,
15873
15886
  tooltip: cancelAction.tooltip
15874
15887
  }
@@ -16490,7 +16503,7 @@ function FilterModal(props) {
16490
16503
  }
16491
16504
  ),
16492
16505
  /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("div", { css: Css.df.gap1.$, children: [
16493
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Button, { label: "Cancel", variant: "tertiary", onClick: closeModal, ...testId.modalClose }),
16506
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: closeModal, ...testId.modalClose }),
16494
16507
  /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
16495
16508
  Button,
16496
16509
  {
@@ -18028,7 +18041,7 @@ function ConfirmCloseModal(props) {
18028
18041
  /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
18029
18042
  Button,
18030
18043
  {
18031
- variant: "tertiary",
18044
+ variant: "quaternary",
18032
18045
  label: discardText,
18033
18046
  onClick: () => {
18034
18047
  onClose();