@pingux/astro 2.1.0 → 2.1.1-alpha.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.
@@ -131,10 +131,11 @@ var TextAreaField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
131
131
  rows: rows,
132
132
  variant: "forms.textarea.baseField"
133
133
  }, fieldControlInputProps, {
134
- sx: slots !== null && slots !== void 0 && slots.inContainer ? {
135
- paddingRight: '35px'
136
- } : {
137
- overflow: 'hidden'
134
+ // DO NOT put paddingRight and overflow into sx object.
135
+ /// It will cause issue with resizing in Safari browser.
136
+ paddingRight: (slots === null || slots === void 0 ? void 0 : slots.inContainer) && 35,
137
+ style: {
138
+ overflow: !(slots !== null && slots !== void 0 && slots.inContainer) && 'hidden'
138
139
  },
139
140
  "aria-invalid": status === 'error' && true,
140
141
  "aria-describedby": helperText && helperTextId
@@ -121,10 +121,11 @@ var TextAreaField = /*#__PURE__*/forwardRef(function (props, ref) {
121
121
  rows: rows,
122
122
  variant: "forms.textarea.baseField"
123
123
  }, fieldControlInputProps, {
124
- sx: slots !== null && slots !== void 0 && slots.inContainer ? {
125
- paddingRight: '35px'
126
- } : {
127
- overflow: 'hidden'
124
+ // DO NOT put paddingRight and overflow into sx object.
125
+ /// It will cause issue with resizing in Safari browser.
126
+ paddingRight: (slots === null || slots === void 0 ? void 0 : slots.inContainer) && 35,
127
+ style: {
128
+ overflow: !(slots !== null && slots !== void 0 && slots.inContainer) && 'hidden'
128
129
  },
129
130
  "aria-invalid": status === 'error' && true,
130
131
  "aria-describedby": helperText && helperTextId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-alpha.0",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",