pollcatch 1.1.1 → 2.0.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/package.json +2 -2
- package/pc.js +2549 -4944
- package/README.md +0 -44
package/README.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Pollcatch
|
|
2
|
-
|
|
3
|
-
A collection of lightweight, customizable feedback Web Components built with Lit and TypeScript.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- Modular design with specialized components for different feedback types
|
|
8
|
-
- Lightweight and focused components that can be used individually or combined
|
|
9
|
-
- Supports multiple feedback types:
|
|
10
|
-
- Star ratings
|
|
11
|
-
- Reactions (emoji-based feedback, including thumbs up/down)
|
|
12
|
-
- NPS (Net Promoter Score)
|
|
13
|
-
- Poll questions
|
|
14
|
-
- Text feedback
|
|
15
|
-
- Styling via CSS custom properties
|
|
16
|
-
- Accessible and responsive design
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pnpm install pollcatch
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Basic Usage
|
|
25
|
-
|
|
26
|
-
```html
|
|
27
|
-
<!-- Load from CDN -->
|
|
28
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/pollcatch@latest"></script>
|
|
29
|
-
|
|
30
|
-
<!-- Or import directly in your JavaScript module -->
|
|
31
|
-
<script type="module">
|
|
32
|
-
import 'pollcatch';
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<!-- Use the unified wrapper component (recommended) -->
|
|
36
|
-
<poll-catch type="stars" question="Rate our service" max="5"></poll-catch>
|
|
37
|
-
<poll-catch type="nps" question="How likely are you to recommend us?"></poll-catch>
|
|
38
|
-
<poll-catch type="poll" question="Favorite color?" options='["Red", "Blue", "Green"]'></poll-catch>
|
|
39
|
-
<poll-catch type="text" question="Feedback" placeholder="Tell us what you think..."></poll-catch>
|
|
40
|
-
<poll-catch type="reaction" question="How was your experience?" options='["👍", "👎"]'></poll-catch>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
For detailed documentation, properties, and advanced usage, see the [Pollcatch Documentation](https://pollcatch.com).
|