// Name: Random Choices Showcase
// Description: Demonstrates all possible choice options and configurations in Script Kit
// Author: johnlindquist
import "@johnlindquist/kit"
// Generate random data for demonstrations
const generateRandomChoices = (count = 10) => {
const adjectives = ['Amazing', 'Brilliant', 'Creative', 'Dynamic', 'Elegant', 'Fantastic', 'Gorgeous', 'Incredible', 'Magnificent', 'Outstanding']
const nouns = ['Script', 'Widget', 'Tool', 'App', 'Feature', 'Component', 'Module', 'Function', 'Service', 'Platform']
const colors = ['red', 'blue', 'green', 'purple', 'orange', 'pink', 'yellow', 'cyan', 'magenta', 'lime']
return Array.from({ length: count }, (_, i) => ({
name: `${adjectives[i % adjectives.length]} ${nouns[i % nouns.length]} ${i + 1}`,
value: `choice-${i + 1}`,
description: `This is a detailed description for choice ${i + 1} with lots of helpful information`,
tag: colors[i % colors.length],
shortcut: i < 5 ? `cmd+${i + 1}` : undefined,
icon: i % 3 === 0 ? '🎯' : i % 3 === 1 ? '⭐' : '🚀',
preview: () => `<div class="p-4 bg-gradient-to-r from-${colors[i % colors.length]}-400 to-${colors[(i + 1) % colors.length]}-600 text-white rounded-lg">