@pollinations/ui 0.1.0-alpha.13 → 0.1.0-alpha.14

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.cts CHANGED
@@ -345,6 +345,7 @@ type FieldStackProps = {
345
345
  helperClassName?: string;
346
346
  errorClassName?: string;
347
347
  };
348
+ /** Use one text control per field; group multiple controls separately. */
348
349
  declare function FieldStack({ label, children, helper, action, error, alignLabelRow, orientation, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
349
350
 
350
351
  type RejectReason = "type" | "size" | "count";
package/dist/index.d.ts CHANGED
@@ -345,6 +345,7 @@ type FieldStackProps = {
345
345
  helperClassName?: string;
346
346
  errorClassName?: string;
347
347
  };
348
+ /** Use one text control per field; group multiple controls separately. */
348
349
  declare function FieldStack({ label, children, helper, action, error, alignLabelRow, orientation, className, labelClassName, helperClassName, errorClassName, }: FieldStackProps): react_jsx_runtime.JSX.Element;
349
350
 
350
351
  type RejectReason = "type" | "size" | "count";
package/dist/index.js CHANGED
@@ -1417,13 +1417,19 @@ import {
1417
1417
 
1418
1418
  // src/primitives/Textarea.tsx
1419
1419
  import { forwardRef as forwardRef3 } from "react";
1420
+
1421
+ // src/primitives/Field.tsx
1422
+ import { Field } from "@ark-ui/react/field";
1423
+
1424
+ // src/primitives/Textarea.tsx
1420
1425
  import { jsx as jsx15 } from "react/jsx-runtime";
1421
1426
  var Textarea = forwardRef3(
1422
1427
  ({ className, error, rows = 4, ...props }, ref) => /* @__PURE__ */ jsx15(
1423
- "textarea",
1428
+ Field.Textarea,
1424
1429
  {
1425
1430
  ref,
1426
1431
  rows,
1432
+ "aria-invalid": error || void 0,
1427
1433
  "data-error": error ? "true" : void 0,
1428
1434
  className: cn(
1429
1435
  "polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2",
@@ -2371,9 +2377,10 @@ import { forwardRef as forwardRef5 } from "react";
2371
2377
  import { jsx as jsx27 } from "react/jsx-runtime";
2372
2378
  var Input = forwardRef5(
2373
2379
  ({ className, error, hideNumberSteppers, ...props }, ref) => /* @__PURE__ */ jsx27(
2374
- "input",
2380
+ Field.Input,
2375
2381
  {
2376
2382
  ref,
2383
+ "aria-invalid": error || void 0,
2377
2384
  "data-error": error ? "true" : void 0,
2378
2385
  className: cn(
2379
2386
  "polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg",
@@ -2641,9 +2648,6 @@ function ExternalLinkButton(props) {
2641
2648
  );
2642
2649
  }
2643
2650
 
2644
- // src/primitives/Field.tsx
2645
- import { Field } from "@ark-ui/react/field";
2646
-
2647
2651
  // src/compositions/FieldStack.tsx
2648
2652
  import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
2649
2653
  var orientationClasses = {