@ttoss/ui 2.0.3 → 2.0.4

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/esm/index.js CHANGED
@@ -146,13 +146,14 @@ import { Input as InputUI } from "theme-ui";
146
146
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
147
147
  var Input = /*#__PURE__*/React3.forwardRef(({
148
148
  leadingIcon,
149
+ trailingIcon: trailingIconProp,
149
150
  onLeadingIconClick,
150
151
  onTrailingIconClick,
151
152
  className,
152
153
  sx,
153
154
  ...inputProps
154
155
  }, ref) => {
155
- const trailingIcon = inputProps["aria-invalid"] ? "warning-alt" : inputProps.trailingIcon;
156
+ const trailingIcon = inputProps["aria-invalid"] ? "warning-alt" : trailingIconProp;
156
157
  return /* @__PURE__ */jsxs4(Flex, {
157
158
  className,
158
159
  sx: {
package/dist/index.js CHANGED
@@ -223,13 +223,14 @@ var import_theme_ui12 = require("theme-ui");
223
223
  var import_jsx_runtime5 = require("react/jsx-runtime");
224
224
  var Input = React3.forwardRef(({
225
225
  leadingIcon,
226
+ trailingIcon: trailingIconProp,
226
227
  onLeadingIconClick,
227
228
  onTrailingIconClick,
228
229
  className,
229
230
  sx,
230
231
  ...inputProps
231
232
  }, ref) => {
232
- const trailingIcon = inputProps["aria-invalid"] ? "warning-alt" : inputProps.trailingIcon;
233
+ const trailingIcon = inputProps["aria-invalid"] ? "warning-alt" : trailingIconProp;
233
234
  return /* @__PURE__ */(0, import_jsx_runtime5.jsxs)(import_theme_ui8.Flex, {
234
235
  className,
235
236
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -13,6 +13,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
13
13
  (
14
14
  {
15
15
  leadingIcon,
16
+ trailingIcon: trailingIconProp,
16
17
  onLeadingIconClick,
17
18
  onTrailingIconClick,
18
19
  className,
@@ -23,7 +24,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
23
24
  ) => {
24
25
  const trailingIcon = inputProps['aria-invalid']
25
26
  ? 'warning-alt'
26
- : inputProps.trailingIcon;
27
+ : trailingIconProp;
27
28
 
28
29
  return (
29
30
  <Flex