@homebound/beam 2.128.0 → 2.128.1

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.
@@ -29,7 +29,7 @@ function Switch(props) {
29
29
  ...(labelStyle === "filter" && Css_1.Css.jcsb.aic.w("auto").sm.$),
30
30
  ...(isDisabled && Css_1.Css.cursorNotAllowed.gray400.$),
31
31
  }, "aria-label": label }, { children: [!hideLabel && labelStyle === "form" && (0, jsx_runtime_1.jsx)(Label_1.Label, { label: label }, void 0), !hideLabel && labelStyle === "filter" && (0, jsx_runtime_1.jsx)("span", { children: label }, void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ "aria-hidden": "true", css: {
32
- ...Css_1.Css.wPx(toggleWidth(compact)).hPx(toggleHeight(compact)).bgGray200.br12.relative.transition.$,
32
+ ...Css_1.Css.wPx(40).hPx(toggleHeight(compact)).bgGray200.br12.relative.transition.$,
33
33
  ...(isHovered && exports.switchHoverStyles),
34
34
  ...(isKeyboardFocus && exports.switchFocusStyles),
35
35
  ...(isDisabled && Css_1.Css.bgGray300.$),
@@ -49,8 +49,7 @@ exports.Switch = Switch;
49
49
  /** Styles */
50
50
  // Element sizes
51
51
  const toggleHeight = (isCompact) => (isCompact ? 16 : 24);
52
- const toggleWidth = (isCompact) => (isCompact ? 44 : 40);
53
- const circleDiameter = (isCompact) => (isCompact ? 14 : 20);
52
+ const circleDiameter = (isCompact) => (isCompact ? 12 : 20);
54
53
  // Switcher/Toggle element styles
55
54
  exports.switchHoverStyles = Css_1.Css.bgGray400.$;
56
55
  exports.switchFocusStyles = Css_1.Css.bshFocus.$;
@@ -60,7 +59,7 @@ const switchCircleDefaultStyles = (isCompact) => ({
60
59
  ...Css_1.Css.wPx(circleDiameter(isCompact))
61
60
  .hPx(circleDiameter(isCompact))
62
61
  .br100.bgWhite.bshBasic.absolute.leftPx(2)
63
- .topPx(isCompact ? 1 : 2).transition.df.aic.jcc.$,
62
+ .topPx(2).transition.df.aic.jcc.$,
64
63
  svg: Css_1.Css.hPx(toggleHeight(isCompact) / 2).wPx(toggleHeight(isCompact) / 2).$,
65
64
  });
66
65
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.128.0",
3
+ "version": "2.128.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",