@opengovsg/confetti 0.0.5 → 0.0.7
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/build/confetti.css
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MultiSelectQuestionProperties, c as StatementQuestionProperties, i as PublicGetSurveyOutput, l as TextQuestionProperties, n as ConfettiState, o as RatingQuestionProperties, r as Question, s as SingleSelectQuestionProperties, t as Answer } from "./types-
|
|
1
|
+
import { a as MultiSelectQuestionProperties, c as StatementQuestionProperties, i as PublicGetSurveyOutput, l as TextQuestionProperties, n as ConfettiState, o as RatingQuestionProperties, r as Question, s as SingleSelectQuestionProperties, t as Answer } from "./types-COft9SvA.js";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
4
4
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
package/build/index.js
CHANGED
|
@@ -92,6 +92,7 @@ const ratingQuestionPropertiesSchema = z.object({
|
|
|
92
92
|
});
|
|
93
93
|
const textQuestionPropertiesSchema = z.object({
|
|
94
94
|
type: z.literal("open-ended"),
|
|
95
|
+
placeholder: z.optional(z.string()),
|
|
95
96
|
buttonLabel: buttonLabelSchema,
|
|
96
97
|
max: z.number()
|
|
97
98
|
});
|
|
@@ -555,7 +556,7 @@ const FreeText = ({ id, title, description, properties, onChange, classNames, re
|
|
|
555
556
|
className: clsx("cf-textarea", classNames?.textarea),
|
|
556
557
|
maxLength: properties.max,
|
|
557
558
|
rows: 4,
|
|
558
|
-
placeholder: "Start typing..."
|
|
559
|
+
placeholder: properties.placeholder || "Start typing..."
|
|
559
560
|
}),
|
|
560
561
|
/* @__PURE__ */ jsx(FieldError, {
|
|
561
562
|
className: clsx("cf-error", classNames?.error),
|
package/build/internals.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const ratingQuestionPropertiesSchema: z.ZodMiniObject<{
|
|
|
34
34
|
type RatingQuestionProperties = z.infer<typeof ratingQuestionPropertiesSchema>;
|
|
35
35
|
declare const textQuestionPropertiesSchema: z.ZodMiniObject<{
|
|
36
36
|
type: z.ZodMiniLiteral<"open-ended">;
|
|
37
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
37
38
|
buttonLabel: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
38
39
|
max: z.ZodMiniNumber<number>;
|
|
39
40
|
}, z.core.$strip>;
|
|
@@ -108,6 +109,7 @@ declare const publicGetSurveyOutputSchema: z.ZodMiniObject<{
|
|
|
108
109
|
}, z.core.$strip>>;
|
|
109
110
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
110
111
|
type: z.ZodMiniLiteral<"open-ended">;
|
|
112
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
111
113
|
buttonLabel: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
112
114
|
max: z.ZodMiniNumber<number>;
|
|
113
115
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -201,4 +203,4 @@ interface ConfettiState {
|
|
|
201
203
|
}
|
|
202
204
|
//#endregion
|
|
203
205
|
export { MultiSelectQuestionProperties as a, StatementQuestionProperties as c, PublicGetSurveyOutput as i, TextQuestionProperties as l, ConfettiState as n, RatingQuestionProperties as o, Question as r, SingleSelectQuestionProperties as s, Answer as t, BinaryOperatorCondition as u };
|
|
204
|
-
//# sourceMappingURL=types-
|
|
206
|
+
//# sourceMappingURL=types-COft9SvA.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengovsg/confetti",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Widgets for Confetti",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"prettier": "^3.7.4",
|
|
44
44
|
"tsdown": "0.19.0",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
+
"@confetti/eslint-config": "0.0.0",
|
|
46
47
|
"@confetti/prettier-config": "0.0.0",
|
|
47
48
|
"@confetti/tsconfig": "0.0.0",
|
|
48
|
-
"@confetti/eslint-config": "0.0.0",
|
|
49
49
|
"@confetti/validators": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"prettier": "@confetti/prettier-config",
|