@homebound/beam 4.15.0 → 4.16.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/Css.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "increment": 8,
3
3
  "breakpoints": {"ifPrint":"@media print","ifSm":"@media screen and (max-width: 599px)","ifMd":"@media screen and (min-width: 600px) and (max-width: 1024px)","ifSmOrMd":"@media screen and (max-width: 1024px)","ifMdAndUp":"@media screen and (min-width: 600px)","ifMdAndDown":"@media screen and (max-width: 1024px)","ifLg":"@media screen and (min-width: 1025px)","ifMdOrLg":"@media screen and (min-width: 600px)"},
4
4
  "typography": ["xs2","xs2Sb","xs","xsSb","sm","smSb","md","mdSb","lg","xl","xl2"],
5
- "tokens": {"AiFieldBg":"--b-ai-field-bg","AiFieldFg":"--b-ai-field-fg","ButtonCautionDisabledBg":"--b-button-caution-disabled-bg","ButtonCautionDisabledFg":"--b-button-caution-disabled-fg","ButtonDangerDisabledBg":"--b-button-danger-disabled-bg","ButtonDangerDisabledFg":"--b-button-danger-disabled-fg","ButtonGhostDisabledFg":"--b-button-ghost-disabled-fg","ButtonGhostFg":"--b-button-ghost-fg","ButtonPrimaryDisabledBg":"--b-button-primary-disabled-bg","ButtonPrimaryDisabledFg":"--b-button-primary-disabled-fg","ButtonSecondaryFg":"--b-button-secondary-fg","ButtonTertiaryFg":"--b-button-tertiary-fg","ButtonTertiaryFgPressed":"--b-button-tertiary-fg-pressed","ChoiceDisabled":"--b-choice-disabled","ChoiceSelected":"--b-choice-selected","Danger":"--b-danger","DangerPressed":"--b-danger-pressed","EnvBrandDev":"--b-env-brand-dev","EnvBrandLocalProd":"--b-env-brand-local-prod","EnvBrandProd":"--b-env-brand-prod","EnvBrandQa":"--b-env-brand-qa","FieldBgDefault":"--b-field-bg-default","FieldBgDisabled":"--b-field-bg-disabled","FieldBgHover":"--b-field-bg-hover","FieldBorderDefault":"--b-field-border-default","FieldBorderError":"--b-field-border-error","FieldBorderFocus":"--b-field-border-focus","FieldBorderHover":"--b-field-border-hover","FieldTextDisabled":"--b-field-text-disabled","FocusRingInset":"--b-focus-ring-inset","FocusRingMuted":"--b-focus-ring-muted","LoaderFill":"--b-loader-fill","LoaderSpinner":"--b-loader-spinner","LoaderTrack":"--b-loader-track","NavGlobalItemBgActive":"--b-nav-global-item-bg-active","NavGlobalItemBgHover":"--b-nav-global-item-bg-hover","NavGlobalItemBgPressed":"--b-nav-global-item-bg-pressed","NavGlobalText":"--b-nav-global-text","NavGlobalTextActive":"--b-nav-global-text-active","NavGlobalTextDisabled":"--b-nav-global-text-disabled","NavItemBgActive":"--b-nav-item-bg-active","NavItemBgHover":"--b-nav-item-bg-hover","NavItemBgPressed":"--b-nav-item-bg-pressed","NavText":"--b-nav-text","NavTextActive":"--b-nav-text-active","NavTextDisabled":"--b-nav-text-disabled","NavTextFocusVisible":"--b-nav-text-focus-visible","NavTextPressed":"--b-nav-text-pressed","NeutralFillHover":"--b-neutral-fill-hover","NeutralFillHoverStrong":"--b-neutral-fill-hover-strong","NeutralFillHoverSubtle":"--b-neutral-fill-hover-subtle","NeutralFillPressed":"--b-neutral-fill-pressed","NeutralSurfacePressed":"--b-neutral-surface-pressed","OnPrimary":"--b-on-primary","OnSurface":"--b-on-surface","OnSurfaceDisabled":"--b-on-surface-disabled","OnSurfaceMuted":"--b-on-surface-muted","OnSurfaceRaisedHover":"--b-on-surface-raised-hover","OnSurfaceRaisedPressed":"--b-on-surface-raised-pressed","Primary":"--b-primary","PrimaryHover":"--b-primary-hover","PrimaryPressed":"--b-primary-pressed","Scrim":"--b-scrim","SelectionFill":"--b-selection-fill","SelectionIndicator":"--b-selection-indicator","Surface":"--b-surface","SurfaceDisabled":"--b-surface-disabled","SurfaceHover":"--b-surface-hover","SurfaceRaised":"--b-surface-raised","SurfaceRaisedHover":"--b-surface-raised-hover","SurfaceRaisedPressed":"--b-surface-raised-pressed","SurfaceSeparator":"--b-surface-separator","SurfaceSubtle":"--b-surface-subtle","TextDisabled":"--b-text-disabled","TextHelper":"--b-text-helper","TextLabel":"--b-text-label","TextLinkDefault":"--b-text-link-default","TextLinkDisabled":"--b-text-link-disabled","TextLinkHover":"--b-text-link-hover","TextLinkPressed":"--b-text-link-pressed","TextPlaceholder":"--b-text-placeholder","TextSelection":"--b-text-selection"},
5
+ "tokens": {"AiFieldBg":"--b-ai-field-bg","AiFieldFg":"--b-ai-field-fg","ButtonCautionDisabledBg":"--b-button-caution-disabled-bg","ButtonCautionDisabledFg":"--b-button-caution-disabled-fg","ButtonDangerDisabledBg":"--b-button-danger-disabled-bg","ButtonDangerDisabledFg":"--b-button-danger-disabled-fg","ButtonGhostDisabledFg":"--b-button-ghost-disabled-fg","ButtonGhostFg":"--b-button-ghost-fg","ButtonPrimaryDisabledBg":"--b-button-primary-disabled-bg","ButtonPrimaryDisabledFg":"--b-button-primary-disabled-fg","ButtonSecondaryFg":"--b-button-secondary-fg","ButtonTertiaryFg":"--b-button-tertiary-fg","ButtonTertiaryFgPressed":"--b-button-tertiary-fg-pressed","ChoiceDisabled":"--b-choice-disabled","ChoiceSelected":"--b-choice-selected","Danger":"--b-danger","DangerPressed":"--b-danger-pressed","EnvBrandDev":"--b-env-brand-dev","EnvBrandLocalProd":"--b-env-brand-local-prod","EnvBrandProd":"--b-env-brand-prod","EnvBrandQa":"--b-env-brand-qa","FieldBgDefault":"--b-field-bg-default","FieldBgDisabled":"--b-field-bg-disabled","FieldBgHover":"--b-field-bg-hover","FieldBorderDefault":"--b-field-border-default","FieldBorderError":"--b-field-border-error","FieldBorderFocus":"--b-field-border-focus","FieldBorderHover":"--b-field-border-hover","FieldTextDisabled":"--b-field-text-disabled","FocusRingInset":"--b-focus-ring-inset","FocusRingMuted":"--b-focus-ring-muted","LoaderFill":"--b-loader-fill","LoaderSpinner":"--b-loader-spinner","LoaderTrack":"--b-loader-track","NavGlobalItemBgActive":"--b-nav-global-item-bg-active","NavGlobalItemBgHover":"--b-nav-global-item-bg-hover","NavGlobalItemBgPressed":"--b-nav-global-item-bg-pressed","NavGlobalText":"--b-nav-global-text","NavGlobalTextActive":"--b-nav-global-text-active","NavGlobalTextDisabled":"--b-nav-global-text-disabled","NavItemBgActive":"--b-nav-item-bg-active","NavItemBgHover":"--b-nav-item-bg-hover","NavItemBgPressed":"--b-nav-item-bg-pressed","NavText":"--b-nav-text","NavTextActive":"--b-nav-text-active","NavTextDisabled":"--b-nav-text-disabled","NavTextFocusVisible":"--b-nav-text-focus-visible","NavTextPressed":"--b-nav-text-pressed","NeutralFillHover":"--b-neutral-fill-hover","NeutralFillHoverStrong":"--b-neutral-fill-hover-strong","NeutralFillHoverSubtle":"--b-neutral-fill-hover-subtle","NeutralFillPressed":"--b-neutral-fill-pressed","NeutralSurfacePressed":"--b-neutral-surface-pressed","OnPrimary":"--b-on-primary","OnSurface":"--b-on-surface","OnSurfaceActive":"--b-on-surface-active","OnSurfaceDisabled":"--b-on-surface-disabled","OnSurfaceMuted":"--b-on-surface-muted","OnSurfaceRaisedHover":"--b-on-surface-raised-hover","OnSurfaceRaisedPressed":"--b-on-surface-raised-pressed","Primary":"--b-primary","PrimaryHover":"--b-primary-hover","PrimaryPressed":"--b-primary-pressed","Scrim":"--b-scrim","SelectionFill":"--b-selection-fill","SelectionIndicator":"--b-selection-indicator","Surface":"--b-surface","SurfaceActive":"--b-surface-active","SurfaceActiveHover":"--b-surface-active-hover","SurfaceDisabled":"--b-surface-disabled","SurfaceHover":"--b-surface-hover","SurfaceRaised":"--b-surface-raised","SurfaceRaisedHover":"--b-surface-raised-hover","SurfaceRaisedPressed":"--b-surface-raised-pressed","SurfaceSeparator":"--b-surface-separator","SurfaceSubtle":"--b-surface-subtle","TextDisabled":"--b-text-disabled","TextHelper":"--b-text-helper","TextLabel":"--b-text-label","TextLinkDefault":"--b-text-link-default","TextLinkDisabled":"--b-text-link-disabled","TextLinkHover":"--b-text-link-hover","TextLinkPressed":"--b-text-link-pressed","TextPlaceholder":"--b-text-placeholder","TextSelection":"--b-text-selection"},
6
6
  "keyframes": {"loadingDots":"@keyframes loadingDots { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }","spin":"@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }","pulse":"@keyframes pulse { 50% { opacity: 0.6; } }","aiStarLoader":"@keyframes aiStarLoader { 0%, 66.67%, 100% { transform: scale(0.5); } 33.33% { transform: scale(1); } }"},
7
7
  "abbreviations": {
8
8
  "animation": {"kind":"variable","props":["animation"],"incremented":false},
package/dist/index.cjs CHANGED
@@ -500,6 +500,7 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
500
500
  Tokens63["NeutralSurfacePressed"] = "--b-neutral-surface-pressed";
501
501
  Tokens63["OnPrimary"] = "--b-on-primary";
502
502
  Tokens63["OnSurface"] = "--b-on-surface";
503
+ Tokens63["OnSurfaceActive"] = "--b-on-surface-active";
503
504
  Tokens63["OnSurfaceDisabled"] = "--b-on-surface-disabled";
504
505
  Tokens63["OnSurfaceMuted"] = "--b-on-surface-muted";
505
506
  Tokens63["OnSurfaceRaisedHover"] = "--b-on-surface-raised-hover";
@@ -511,6 +512,8 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
511
512
  Tokens63["SelectionFill"] = "--b-selection-fill";
512
513
  Tokens63["SelectionIndicator"] = "--b-selection-indicator";
513
514
  Tokens63["Surface"] = "--b-surface";
515
+ Tokens63["SurfaceActive"] = "--b-surface-active";
516
+ Tokens63["SurfaceActiveHover"] = "--b-surface-active-hover";
514
517
  Tokens63["SurfaceDisabled"] = "--b-surface-disabled";
515
518
  Tokens63["SurfaceHover"] = "--b-surface-hover";
516
519
  Tokens63["SurfaceRaised"] = "--b-surface-raised";
@@ -8757,6 +8760,22 @@ var filledBoxStyles = {
8757
8760
  var filledBoxHoverStyles = {
8758
8761
  backgroundColor: "bgBlue900"
8759
8762
  };
8763
+ var indeterminateBoxStyles = {
8764
+ borderColor: ["bc_var", {
8765
+ "--borderColor": "var(--b-surface-active)"
8766
+ }],
8767
+ backgroundColor: ["bgColor_var", {
8768
+ "--backgroundColor": "var(--b-surface-active)"
8769
+ }]
8770
+ };
8771
+ var indeterminateHoverStyles = {
8772
+ borderColor: ["bc_var", {
8773
+ "--borderColor": "var(--b-surface-active-hover)"
8774
+ }],
8775
+ backgroundColor: ["bgColor_var", {
8776
+ "--backgroundColor": "var(--b-surface-active-hover)"
8777
+ }]
8778
+ };
8760
8779
  var disabledBoxStyles = {
8761
8780
  backgroundColor: ["bgColor_var", {
8762
8781
  "--backgroundColor": "var(--b-field-bg-disabled)"
@@ -8815,20 +8834,27 @@ function StyledCheckbox(props) {
8815
8834
  } = (0, import_react_aria5.useHover)({
8816
8835
  isDisabled
8817
8836
  });
8818
- const markIcon = isIndeterminate ? dashSmall : isSelected ? checkmarkSmall : "";
8837
+ const showSelected = Boolean(isSelected) && !isDisabled;
8838
+ const showIndeterminate = isIndeterminate && !isDisabled;
8839
+ const markIcon = isIndeterminate ? dashMark(isDisabled ? "--b-on-primary" /* OnPrimary */ : "--b-on-surface-active" /* OnSurfaceActive */) : isSelected ? checkmarkSmall : "";
8819
8840
  const tid = useTestIds(props);
8820
8841
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { ...hoverProps, ...(0, import_runtime19.trussProps)({
8821
8842
  ...baseStyles,
8822
- ...(isSelected && !isDisabled || isIndeterminate) && filledBoxStyles,
8823
- ...(isSelected && !isDisabled || isIndeterminate) && isHovered && filledBoxHoverStyles,
8843
+ ...showSelected && filledBoxStyles,
8844
+ ...showIndeterminate && indeterminateBoxStyles,
8845
+ ...showSelected && isHovered && filledBoxHoverStyles,
8846
+ ...showIndeterminate && isHovered && indeterminateHoverStyles,
8824
8847
  ...isDisabled && disabledBoxStyles,
8825
8848
  ...isDisabled && isSelected && disabledSelectedBoxStyles,
8826
8849
  ...isFocusVisible && focusRingStyles,
8827
- ...isHovered && hoverBorderStyles
8850
+ // Selected and empty boxes still use the palette hover border. Indeterminate hover sets its own.
8851
+ ...isHovered && !showIndeterminate && hoverBorderStyles
8828
8852
  }), "aria-hidden": "true", "data-checked": isSelected ? true : isIndeterminate ? "mixed" : false, ...tid.checkbox, children: markIcon });
8829
8853
  }
8830
8854
  var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime19.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.66669 10.3907L4.47135 8.19533L3.52869 9.138L6.66669 12.276L13.138 5.80467L12.1954 4.862L6.66669 10.3907Z", fill: `var(${"--b-on-primary" /* OnPrimary */})` }) });
8831
- var dashSmall = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime19.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: `var(${"--b-on-primary" /* OnPrimary */})` }) });
8855
+ function dashMark(fillToken) {
8856
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime19.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: `var(${fillToken})` }) });
8857
+ }
8832
8858
 
8833
8859
  // src/inputs/Checkbox.tsx
8834
8860
  var import_jsx_runtime23 = require("react/jsx-runtime");