pollcatch 1.0.6 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/pc.js +340 -388
package/README.md CHANGED
@@ -42,7 +42,7 @@ pnpm install pollcatch
42
42
 
43
43
  <!-- Or use the components individually -->
44
44
  <pc-stars max-stars="5" label="How would you rate our service?"></pc-stars>
45
- <pc-reaction options="👍,👎" mode="expand" label="Was this helpful?"></pc-reaction>
45
+ <pc-reaction options="👍,👎" label="Was this helpful?"></pc-reaction>
46
46
  <pc-reaction icon="like" label="Like this article?"></pc-reaction>
47
47
  ```
48
48
 
@@ -79,15 +79,15 @@ A flexible star rating component with a sophisticated two-mode experience for co
79
79
  An emoji-based reaction component for emotional feedback. Can be used for thumbs up/down, emoji reactions, custom feedback options, and also supports custom reaction icons.
80
80
 
81
81
  ```html
82
- <pc-reaction label="Was this helpful?" options="👍,👎" mode="expand"></pc-reaction>
83
- <pc-reaction label="React to this article" options="👍,❤️,😂,😮,😢,😡" mode="compact" multiple show-stats></pc-reaction>
82
+ <pc-reaction label="Was this helpful?" options="👍,👎" </pc-reaction>
83
+ <pc-reaction label="React to this article" options="👍,❤️,😂,😮,😢,😡" compact multiple show-stats></pc-reaction>
84
84
  ```
85
85
 
86
86
  **Custom Reaction Icons:**
87
87
  You can define custom icons using the `<pc-reaction-icon>` element as children of `<pc-reaction>`. This allows you to use SVGs or custom images as reaction options.
88
88
 
89
89
  ```html
90
- <pc-reaction label="How do you feel?" mode="expand">
90
+ <pc-reaction label="How do you feel?"
91
91
  <pc-reaction-icon name="like" icon="👍" tooltip="Like"></pc-reaction-icon>
92
92
  <pc-reaction-icon name="love" icon="❤️" tooltip="Love"></pc-reaction-icon>
93
93
  <pc-reaction-icon name="star" icon="star-outline.svg" tooltip="Star"></pc-reaction-icon>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pollcatch",
3
3
  "private": false,
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
6
  "main": "pc.js",
7
7
  "module": "pc.js",