@pingux/astro 2.108.1 → 2.109.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.
@@ -79,7 +79,11 @@ var SwitchField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
79
79
  };
80
80
  return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, (0, _pendoID.getPendoID)(displayName), fieldContainerProps), (0, _react2.jsx)(_.Label, (0, _extends2["default"])({
81
81
  variant: "forms.switch.label"
82
- }, fieldLabelProps), (0, _react2.jsx)(_.Box, fieldControlWrapperProps, (0, _react2.jsx)(_.Switch, (0, _extends2["default"])({
82
+ }, fieldLabelProps), (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, fieldControlWrapperProps, {
83
+ sx: _objectSpread(_objectSpread({}, fieldControlWrapperProps.sx), {}, {
84
+ flexShrink: 0
85
+ })
86
+ }), (0, _react2.jsx)(_.Switch, (0, _extends2["default"])({
83
87
  ref: switchRef,
84
88
  inputProps: fieldControlInputProps,
85
89
  name: name
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ThemeUICSSObject } from 'theme-ui';
2
3
  import { ControlProps } from '../hooks/useField/useField';
3
4
  import { Status } from './item';
4
5
  import { LabelProps } from './label';
@@ -26,4 +27,5 @@ export interface SwitchFieldProps extends DOMAttributes {
26
27
  onFocusChange?: () => void;
27
28
  onKeyDown?: () => void;
28
29
  onKeyUp?: () => void;
30
+ sx?: ThemeUICSSObject;
29
31
  }
@@ -67,7 +67,11 @@ var SwitchField = /*#__PURE__*/forwardRef(function (props, ref) {
67
67
  };
68
68
  return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), ___EmotionJSX(Label, _extends({
69
69
  variant: "forms.switch.label"
70
- }, fieldLabelProps), ___EmotionJSX(Box, fieldControlWrapperProps, ___EmotionJSX(Switch, _extends({
70
+ }, fieldLabelProps), ___EmotionJSX(Box, _extends({}, fieldControlWrapperProps, {
71
+ sx: _objectSpread(_objectSpread({}, fieldControlWrapperProps.sx), {}, {
72
+ flexShrink: 0
73
+ })
74
+ }), ___EmotionJSX(Switch, _extends({
71
75
  ref: switchRef,
72
76
  inputProps: fieldControlInputProps,
73
77
  name: name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.108.1",
3
+ "version": "2.109.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",