@umami/react-zen 0.14.0 → 0.15.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/index.d.ts CHANGED
@@ -696,6 +696,8 @@ declare module '@umami/react-zen/TextField' {
696
696
  declare module '@umami/react-zen/TextArea' {
697
697
  import { TextFieldProps } from '@umami/react-zen/TextField';
698
698
  interface TextAreaProps extends TextFieldProps {
699
+ rows?: number;
700
+ cols?: number;
699
701
  resize?: 'none' | 'vertical' | 'horizontal';
700
702
  children?: React.ReactNode;
701
703
  }
package/dist/index.js CHANGED
@@ -27626,7 +27626,7 @@ var TextArea_default = {
27626
27626
  // src/components/TextArea.tsx
27627
27627
  var import_jsx_runtime52 = require("react/jsx-runtime");
27628
27628
  var TextArea = (0, import_react173.forwardRef)(
27629
- ({ resize, className, children, ...props }, ref) => {
27629
+ ({ rows, cols, resize, className, style, children, ...props }, ref) => {
27630
27630
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27631
27631
  TextField,
27632
27632
  {
@@ -27634,7 +27634,7 @@ var TextArea = (0, import_react173.forwardRef)(
27634
27634
  ref,
27635
27635
  className: (0, import_classnames45.default)(resize && TextArea_default[`resize-${resize}`]),
27636
27636
  asChild: true,
27637
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { children })
27637
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
27638
27638
  }
27639
27639
  );
27640
27640
  }
package/dist/index.mjs CHANGED
@@ -27642,7 +27642,7 @@ var TextArea_default = {
27642
27642
  // src/components/TextArea.tsx
27643
27643
  import { jsx as jsx52 } from "react/jsx-runtime";
27644
27644
  var TextArea = forwardRef11(
27645
- ({ resize, className, children, ...props }, ref) => {
27645
+ ({ rows, cols, resize, className, style, children, ...props }, ref) => {
27646
27646
  return /* @__PURE__ */ jsx52(
27647
27647
  TextField,
27648
27648
  {
@@ -27650,7 +27650,7 @@ var TextArea = forwardRef11(
27650
27650
  ref,
27651
27651
  className: (0, import_classnames45.default)(resize && TextArea_default[`resize-${resize}`]),
27652
27652
  asChild: true,
27653
- children: /* @__PURE__ */ jsx52($216918bed6669f72$export$f5c9f3c2c4054eec, { children })
27653
+ children: /* @__PURE__ */ jsx52($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
27654
27654
  }
27655
27655
  );
27656
27656
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "React components built by Umami",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",