@factorialco/f0-react 3.8.0 → 3.8.2

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.
Files changed (3) hide show
  1. package/dist/f0.d.ts +32 -0
  2. package/dist/f0.js +8453 -8376
  3. package/package.json +1 -1
package/dist/f0.d.ts CHANGED
@@ -14348,6 +14348,28 @@ export declare type RowSpanToken = "1" | "2" | "3" | "4" | "5" | "6" | "full";
14348
14348
  /** Grid row count (1–6 + none) */
14349
14349
  export declare type RowsToken = "1" | "2" | "3" | "4" | "5" | "6" | "none";
14350
14350
 
14351
+ /** A mocked single-choice question. */
14352
+ declare type SampleChoiceQuestion = {
14353
+ type: "choice";
14354
+ /** The question prompt shown above the options */
14355
+ question: string;
14356
+ /** The answer options, rendered as non-interactive radio rows */
14357
+ options: string[];
14358
+ };
14359
+
14360
+ /** A mocked rating-scale question (e.g. Very low → Very high). */
14361
+ declare type SampleRatingQuestion = {
14362
+ type: "rating";
14363
+ /** The question prompt shown above the scale */
14364
+ question: string;
14365
+ /** Number of rating steps to render (default 5) */
14366
+ steps?: number;
14367
+ /** Caption under the lowest step */
14368
+ minLabel?: string;
14369
+ /** Caption under the highest step */
14370
+ maxLabel?: string;
14371
+ };
14372
+
14351
14373
  export declare type SearchFilterDefinition = BaseFilterDefinition<"search">;
14352
14374
 
14353
14375
  declare type SearchOptions = {
@@ -14851,6 +14873,16 @@ export declare type SurveyFormSubmitResult = {
14851
14873
  errors?: Record<string, string>;
14852
14874
  };
14853
14875
 
14876
+ /**
14877
+ * A non-interactive preview of a survey question, used to illustrate what a
14878
+ * given survey type produces (for example inside the survey type selector).
14879
+ * It is purely presentational — the inputs are mocked placeholders, not real
14880
+ * form fields.
14881
+ */
14882
+ export declare function SurveySampleQuestion(props: SurveySampleQuestionProps): JSX_2.Element;
14883
+
14884
+ export declare type SurveySampleQuestionProps = SampleRatingQuestion | SampleChoiceQuestion;
14885
+
14854
14886
  export declare function SurveySteppedLoadingSkeleton(): JSX_2.Element;
14855
14887
 
14856
14888
  export declare type SurveySubmitAnswers = Record<string, string | number | boolean | string[] | Date | null>;