@opengovsg/confetti 0.1.7 → 0.1.8
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 +0 -8
- package/build/index.d.ts +19 -20
- package/package.json +2 -2
package/build/confetti.css
CHANGED
|
@@ -468,17 +468,10 @@
|
|
|
468
468
|
gap: 4px;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
.cf-rating-tiff {
|
|
472
|
-
overflow: hidden;
|
|
473
|
-
border-radius: 100%;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.cf-rating-tiff,
|
|
477
471
|
.cf-rating-emoji {
|
|
478
472
|
opacity: 0.5;
|
|
479
473
|
}
|
|
480
474
|
|
|
481
|
-
.cf-rating-display-tiff,
|
|
482
475
|
.cf-rating-display-star,
|
|
483
476
|
.cf-rating-display-emoji {
|
|
484
477
|
display: grid;
|
|
@@ -486,7 +479,6 @@
|
|
|
486
479
|
justify-content: space-between;
|
|
487
480
|
gap: 8px;
|
|
488
481
|
|
|
489
|
-
.cf-rating-tiff,
|
|
490
482
|
.cf-rating-emoji,
|
|
491
483
|
.cf-rating-star {
|
|
492
484
|
font-size: 1em;
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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-DvzzMSv8.js";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/core/ConfettiController.d.ts
|
|
7
7
|
interface ConfettiControllerProps {
|
|
@@ -19,7 +19,7 @@ declare const ConfettiController: ({
|
|
|
19
19
|
shouldAutoSubmit,
|
|
20
20
|
onFinished,
|
|
21
21
|
children
|
|
22
|
-
}: ConfettiControllerProps) =>
|
|
22
|
+
}: ConfettiControllerProps) => react_jsx_runtime11.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/core/ConfettiProvider.d.ts
|
|
25
25
|
interface ConfettiContextValue {
|
|
@@ -54,7 +54,7 @@ declare const ConfettiProvider: ({
|
|
|
54
54
|
metadata,
|
|
55
55
|
isSurveyVisible: isSurveyVisibleInput,
|
|
56
56
|
apiBaseUrl
|
|
57
|
-
}: ConfettiProviderProps) =>
|
|
57
|
+
}: ConfettiProviderProps) => react_jsx_runtime11.JSX.Element | null;
|
|
58
58
|
declare const useConfetti: () => ConfettiContextValue;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/Confetti.d.ts
|
|
@@ -64,7 +64,7 @@ declare const Confetti: ({
|
|
|
64
64
|
onFinished,
|
|
65
65
|
shouldAutoSubmit,
|
|
66
66
|
...props
|
|
67
|
-
}: ConfettiProps & Pick<ConfettiControllerProps, "children" | "shouldAutoSubmit">) =>
|
|
67
|
+
}: ConfettiProps & Pick<ConfettiControllerProps, "children" | "shouldAutoSubmit">) => react_jsx_runtime11.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/components/ThankYouMessage.d.ts
|
|
70
70
|
interface ThankYouMessageProps {
|
|
@@ -81,7 +81,7 @@ declare const ThankYouMessage: ({
|
|
|
81
81
|
title,
|
|
82
82
|
description,
|
|
83
83
|
classNames
|
|
84
|
-
}: ThankYouMessageProps) =>
|
|
84
|
+
}: ThankYouMessageProps) => react_jsx_runtime11.JSX.Element | null;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/components/container/ModalContainer.d.ts
|
|
87
87
|
interface ModalContainerProps {
|
|
@@ -105,7 +105,7 @@ declare const ModalContainer: ({
|
|
|
105
105
|
onDismiss,
|
|
106
106
|
isDismissable,
|
|
107
107
|
closeOnFinishMs
|
|
108
|
-
}: ModalContainerProps) =>
|
|
108
|
+
}: ModalContainerProps) => react_jsx_runtime11.JSX.Element;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/components/container/PopoverContainer.d.ts
|
|
111
111
|
interface PopoverContainerProps {
|
|
@@ -127,7 +127,7 @@ declare const PopoverContainer: ({
|
|
|
127
127
|
containerProps,
|
|
128
128
|
onDismiss,
|
|
129
129
|
closeOnFinishMs
|
|
130
|
-
}: PopoverContainerProps) =>
|
|
130
|
+
}: PopoverContainerProps) => react_jsx_runtime11.JSX.Element;
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region src/components/questions/types.d.ts
|
|
133
133
|
type Question$1 = PublicGetSurveyOutput['questions'][number];
|
|
@@ -150,7 +150,7 @@ declare const SurveyQuestionFactory: ({
|
|
|
150
150
|
question,
|
|
151
151
|
onChange,
|
|
152
152
|
error
|
|
153
|
-
}: SurveyQuestionFactoryProps) =>
|
|
153
|
+
}: SurveyQuestionFactoryProps) => react_jsx_runtime11.JSX.Element;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/components/questions/Rating.d.ts
|
|
156
156
|
interface RatingProps extends BaseFieldProps {
|
|
@@ -172,7 +172,6 @@ interface RatingProps extends BaseFieldProps {
|
|
|
172
172
|
ratingNumber?: string;
|
|
173
173
|
ratingDisplayEmoji?: string;
|
|
174
174
|
ratingEmoji?: string;
|
|
175
|
-
ratingTiff?: string;
|
|
176
175
|
error?: string;
|
|
177
176
|
};
|
|
178
177
|
}
|
|
@@ -185,7 +184,7 @@ declare const Rating: ({
|
|
|
185
184
|
id,
|
|
186
185
|
error,
|
|
187
186
|
required
|
|
188
|
-
}: RatingProps) =>
|
|
187
|
+
}: RatingProps) => react_jsx_runtime11.JSX.Element;
|
|
189
188
|
//#endregion
|
|
190
189
|
//#region src/components/questions/FreeText.d.ts
|
|
191
190
|
interface FreeTextProps extends BaseFieldProps {
|
|
@@ -209,7 +208,7 @@ declare const FreeText: ({
|
|
|
209
208
|
classNames,
|
|
210
209
|
required,
|
|
211
210
|
error
|
|
212
|
-
}: FreeTextProps) =>
|
|
211
|
+
}: FreeTextProps) => react_jsx_runtime11.JSX.Element;
|
|
213
212
|
//#endregion
|
|
214
213
|
//#region src/components/questions/SingleChoice.d.ts
|
|
215
214
|
interface SingleChoiceProps extends BaseFieldProps {
|
|
@@ -239,7 +238,7 @@ declare const SingleChoice: ({
|
|
|
239
238
|
id,
|
|
240
239
|
required,
|
|
241
240
|
error
|
|
242
|
-
}: SingleChoiceProps) =>
|
|
241
|
+
}: SingleChoiceProps) => react_jsx_runtime11.JSX.Element;
|
|
243
242
|
//#endregion
|
|
244
243
|
//#region src/components/questions/MultiChoice.d.ts
|
|
245
244
|
interface MultiChoiceProps extends BaseFieldProps {
|
|
@@ -272,7 +271,7 @@ declare const MultiChoice: ({
|
|
|
272
271
|
id,
|
|
273
272
|
required,
|
|
274
273
|
error
|
|
275
|
-
}: MultiChoiceProps) =>
|
|
274
|
+
}: MultiChoiceProps) => react_jsx_runtime11.JSX.Element;
|
|
276
275
|
//#endregion
|
|
277
276
|
//#region src/components/questions/Statement.d.ts
|
|
278
277
|
interface StatementProps extends BaseFieldProps {
|
|
@@ -290,7 +289,7 @@ declare const Statement: ({
|
|
|
290
289
|
title,
|
|
291
290
|
description,
|
|
292
291
|
classNames
|
|
293
|
-
}: StatementProps) =>
|
|
292
|
+
}: StatementProps) => react_jsx_runtime11.JSX.Element;
|
|
294
293
|
//#endregion
|
|
295
294
|
//#region src/components/presentation/Flow.d.ts
|
|
296
295
|
type ChildField = (_: {
|
|
@@ -309,7 +308,7 @@ declare const Flow: ({
|
|
|
309
308
|
children,
|
|
310
309
|
question,
|
|
311
310
|
isLastQuestion
|
|
312
|
-
}: FlowProps) =>
|
|
311
|
+
}: FlowProps) => react_jsx_runtime11.JSX.Element;
|
|
313
312
|
//#endregion
|
|
314
313
|
//#region src/components/presentation/Embed.d.ts
|
|
315
314
|
declare const Embed: ({
|
|
@@ -319,10 +318,10 @@ declare const Embed: ({
|
|
|
319
318
|
}: PropsWithChildren<{
|
|
320
319
|
isCompleted: boolean;
|
|
321
320
|
onSubmit: () => void;
|
|
322
|
-
}>) =>
|
|
321
|
+
}>) => react_jsx_runtime11.JSX.Element;
|
|
323
322
|
//#endregion
|
|
324
323
|
//#region src/templates/EmbeddedConfetti.d.ts
|
|
325
|
-
declare const EmbeddedConfetti: (props: ConfettiProps) =>
|
|
324
|
+
declare const EmbeddedConfetti: (props: ConfettiProps) => react_jsx_runtime11.JSX.Element;
|
|
326
325
|
//#endregion
|
|
327
326
|
//#region src/templates/ModalConfetti.d.ts
|
|
328
327
|
interface ModalConfettiProps extends ConfettiProps {
|
|
@@ -335,7 +334,7 @@ declare const ModalConfetti: ({
|
|
|
335
334
|
closeOnFinishMs,
|
|
336
335
|
isDismissable,
|
|
337
336
|
...props
|
|
338
|
-
}: ModalConfettiProps) =>
|
|
337
|
+
}: ModalConfettiProps) => react_jsx_runtime11.JSX.Element;
|
|
339
338
|
//#endregion
|
|
340
339
|
//#region src/templates/PopoverConfetti.d.ts
|
|
341
340
|
interface PopoverConfettiProps extends ConfettiProps {
|
|
@@ -355,10 +354,10 @@ declare const PopoverConfetti: ({
|
|
|
355
354
|
onDismiss,
|
|
356
355
|
closeOnFinishMs,
|
|
357
356
|
...props
|
|
358
|
-
}: PopoverConfettiProps) =>
|
|
357
|
+
}: PopoverConfettiProps) => react_jsx_runtime11.JSX.Element;
|
|
359
358
|
//#endregion
|
|
360
359
|
//#region src/templates/StepperConfetti.d.ts
|
|
361
|
-
declare const StepperConfetti: (props: ConfettiProps) =>
|
|
360
|
+
declare const StepperConfetti: (props: ConfettiProps) => react_jsx_runtime11.JSX.Element;
|
|
362
361
|
//#endregion
|
|
363
362
|
//#region src/hooks/useVisibleAfterDelay.d.ts
|
|
364
363
|
interface UseVisibleAfterDelayOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengovsg/confetti",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Widgets for Confetti",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"react-aria-components": "1.14.0",
|
|
47
47
|
"tsdown": "0.19.0",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
|
-
"@confetti/eslint-config": "0.0.0",
|
|
50
49
|
"@confetti/prettier-config": "0.0.0",
|
|
51
50
|
"@confetti/tsconfig": "0.0.0",
|
|
51
|
+
"@confetti/eslint-config": "0.0.0",
|
|
52
52
|
"@confetti/validators": "0.0.0"
|
|
53
53
|
},
|
|
54
54
|
"prettier": "@confetti/prettier-config",
|