nuxt-discord 0.0.17 → 0.2.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.
Files changed (132) hide show
  1. package/README.md +249 -171
  2. package/dist/module.d.mts +146 -10
  3. package/dist/module.json +3 -3
  4. package/dist/module.mjs +1077 -348
  5. package/dist/runtime/acknowledgement.d.ts +11 -0
  6. package/dist/runtime/acknowledgement.js +156 -0
  7. package/dist/runtime/client/chat-theme.css +52 -0
  8. package/dist/runtime/client/components/ChatAvatar.d.vue.ts +6 -0
  9. package/dist/runtime/client/components/ChatAvatar.vue +11 -0
  10. package/dist/runtime/client/components/ChatAvatar.vue.d.ts +6 -0
  11. package/dist/runtime/client/components/CommandPicker.d.vue.ts +24 -0
  12. package/dist/runtime/client/components/CommandPicker.vue +67 -0
  13. package/dist/runtime/client/components/CommandPicker.vue.d.ts +24 -0
  14. package/dist/runtime/client/components/CommandReference.d.vue.ts +20 -0
  15. package/dist/runtime/client/components/CommandReference.vue +21 -0
  16. package/dist/runtime/client/components/CommandReference.vue.d.ts +20 -0
  17. package/dist/runtime/client/components/CommandTestBar.d.vue.ts +60 -0
  18. package/dist/runtime/client/components/CommandTestBar.vue +332 -0
  19. package/dist/runtime/client/components/CommandTestBar.vue.d.ts +60 -0
  20. package/dist/runtime/client/components/CommandTranscript.d.vue.ts +39 -0
  21. package/dist/runtime/client/components/CommandTranscript.vue +147 -0
  22. package/dist/runtime/client/components/CommandTranscript.vue.d.ts +39 -0
  23. package/dist/runtime/client/components/ProjectLogo.d.vue.ts +3 -0
  24. package/dist/runtime/client/components/ProjectLogo.vue +31 -0
  25. package/dist/runtime/client/components/ProjectLogo.vue.d.ts +3 -0
  26. package/dist/runtime/client/components/ReferenceContent.d.ts +26 -0
  27. package/dist/runtime/client/components/ReferenceContent.js +73 -0
  28. package/dist/runtime/client/components/TheHeader.d.vue.ts +3 -0
  29. package/dist/runtime/client/components/TheHeader.vue +53 -16
  30. package/dist/runtime/client/components/TheHeader.vue.d.ts +2 -2
  31. package/dist/runtime/client/components/appearance-select.d.ts +17 -0
  32. package/dist/runtime/client/components/appearance-select.js +15 -0
  33. package/dist/runtime/client/pages/activity.d.vue.ts +3 -0
  34. package/dist/runtime/client/pages/activity.vue +202 -0
  35. package/dist/runtime/client/pages/activity.vue.d.ts +3 -0
  36. package/dist/runtime/client/pages/context-menus.d.vue.ts +3 -0
  37. package/dist/runtime/client/pages/context-menus.vue +120 -0
  38. package/dist/runtime/client/pages/context-menus.vue.d.ts +3 -0
  39. package/dist/runtime/client/pages/listeners.d.vue.ts +3 -0
  40. package/dist/runtime/client/pages/listeners.vue +68 -0
  41. package/dist/runtime/client/pages/listeners.vue.d.ts +3 -0
  42. package/dist/runtime/client/pages/overview.d.vue.ts +3 -0
  43. package/dist/runtime/client/pages/overview.vue +280 -0
  44. package/dist/runtime/client/pages/overview.vue.d.ts +3 -0
  45. package/dist/runtime/client/pages/slash-commands.d.vue.ts +3 -0
  46. package/dist/runtime/client/pages/slash-commands.vue +185 -359
  47. package/dist/runtime/client/pages/slash-commands.vue.d.ts +2 -3
  48. package/dist/runtime/client/reference.css +46 -0
  49. package/dist/runtime/client/style.css +4 -1
  50. package/dist/runtime/client/useActivityLog.d.ts +7 -0
  51. package/dist/runtime/client/useActivityLog.js +76 -0
  52. package/dist/runtime/client/useCommandRegistry.d.ts +7 -0
  53. package/dist/runtime/client/useCommandRegistry.js +34 -0
  54. package/dist/runtime/client/useDashboardCatalog.d.ts +5 -0
  55. package/dist/runtime/client/useDashboardCatalog.js +9 -0
  56. package/dist/runtime/client/useDiscordCommandReference.d.ts +2 -0
  57. package/dist/runtime/client/useDiscordCommandReference.js +6 -0
  58. package/dist/runtime/dashboard/auth.d.ts +4 -0
  59. package/dist/runtime/dashboard/auth.js +55 -0
  60. package/dist/runtime/dashboard/oauth.d.ts +17 -0
  61. package/dist/runtime/dashboard/oauth.js +172 -0
  62. package/dist/runtime/dashboard/origin.d.ts +3 -0
  63. package/dist/runtime/dashboard/origin.js +15 -0
  64. package/dist/runtime/dashboard/permissions.d.ts +4 -0
  65. package/dist/runtime/dashboard/permissions.js +84 -0
  66. package/dist/runtime/dashboard/signin.d.ts +3 -0
  67. package/dist/runtime/dashboard/signin.js +42 -0
  68. package/dist/runtime/diagnostics.d.ts +4 -0
  69. package/dist/runtime/diagnostics.js +24 -0
  70. package/dist/runtime/discordInvocation.d.ts +14 -0
  71. package/dist/runtime/discordInvocation.js +28 -0
  72. package/dist/runtime/middleware.d.ts +1 -0
  73. package/dist/runtime/middleware.js +12 -0
  74. package/dist/runtime/reference/access.d.ts +6 -0
  75. package/dist/runtime/reference/access.js +143 -0
  76. package/dist/runtime/reference/catalog.d.ts +2 -0
  77. package/dist/runtime/reference/catalog.js +9 -0
  78. package/dist/runtime/reference/document.d.ts +2 -0
  79. package/dist/runtime/reference/document.js +22 -0
  80. package/dist/runtime/reference/hosted.d.ts +2 -0
  81. package/dist/runtime/reference/hosted.js +16 -0
  82. package/dist/runtime/reference/oauth.d.ts +2 -0
  83. package/dist/runtime/reference/oauth.js +4 -0
  84. package/dist/runtime/registration.d.ts +65 -0
  85. package/dist/runtime/registration.js +354 -0
  86. package/dist/runtime/server/api/discord/activity.get.d.ts +2 -0
  87. package/dist/runtime/server/api/discord/activity.get.js +6 -0
  88. package/dist/runtime/server/api/discord/catalog.get.d.ts +2 -0
  89. package/dist/runtime/server/api/discord/catalog.get.js +3 -0
  90. package/dist/runtime/server/api/discord/slash-command/autocomplete.post.d.ts +2 -0
  91. package/dist/runtime/server/api/discord/slash-command/autocomplete.post.js +14 -0
  92. package/dist/runtime/server/api/discord/slash-command/register.post.d.ts +1 -1
  93. package/dist/runtime/server/api/discord/slash-command/register.post.js +1 -1
  94. package/dist/runtime/server/api/discord/slash-command/remote-all.get.d.ts +1 -1
  95. package/dist/runtime/server/api/discord/slash-command/remote-diff.post.d.ts +1 -238
  96. package/dist/runtime/server/api/discord/slash-command/remote-diff.post.js +3 -1
  97. package/dist/runtime/server/api/discord/slash-command/test.post.d.ts +20 -0
  98. package/dist/runtime/server/api/discord/slash-command/test.post.js +19 -0
  99. package/dist/runtime/server/plugins/discord.js +95 -31
  100. package/dist/runtime/server/utils/client.d.ts +59 -246
  101. package/dist/runtime/server/utils/client.js +413 -451
  102. package/dist/runtime/server/utils/defineContextMenu.d.ts +49 -0
  103. package/dist/runtime/server/utils/defineContextMenu.js +12 -0
  104. package/dist/runtime/server/utils/defineListener.d.ts +24 -0
  105. package/dist/runtime/server/utils/defineListener.js +7 -0
  106. package/dist/runtime/server/utils/defineMiddleware.d.ts +29 -0
  107. package/dist/runtime/server/utils/defineMiddleware.js +24 -0
  108. package/dist/runtime/server/utils/describeCommand.d.ts +2 -0
  109. package/dist/runtime/server/utils/describeOption.d.ts +1 -1
  110. package/dist/runtime/server/utils/messageSender.d.ts +37 -0
  111. package/dist/runtime/server/utils/messageSender.js +149 -0
  112. package/dist/runtime/server/utils/middleware/cooldown.d.ts +1 -0
  113. package/dist/runtime/server/utils/middleware/cooldown.js +39 -0
  114. package/dist/runtime/server/utils/middleware/guildOnly.d.ts +1 -0
  115. package/dist/runtime/server/utils/middleware/guildOnly.js +6 -0
  116. package/dist/runtime/server/utils/middleware/ownerOnly.d.ts +1 -0
  117. package/dist/runtime/server/utils/middleware/ownerOnly.js +10 -0
  118. package/dist/runtime/server/utils/middleware/requireRole.d.ts +1 -0
  119. package/dist/runtime/server/utils/middleware/requireRole.js +15 -0
  120. package/dist/runtime/server/utils/reply.d.ts +13 -3
  121. package/dist/runtime/server/utils/reply.js +111 -162
  122. package/dist/runtime/server/utils/simulateInteraction.d.ts +20 -0
  123. package/dist/runtime/server/utils/simulateInteraction.js +127 -0
  124. package/dist/runtime/server/utils/useTextChannel.d.ts +56 -0
  125. package/dist/runtime/server/utils/useTextChannel.js +105 -0
  126. package/dist/types.d.mts +11 -1
  127. package/dist/types.d.ts +11 -1
  128. package/package.json +62 -44
  129. package/dist/runtime/client/components/TheHeader.css +0 -1
  130. package/dist/runtime/client/pages/slash-commands.css +0 -1
  131. package/dist/runtime/client/uno.config.d.ts +0 -2
  132. package/dist/runtime/client/uno.config.js +0 -10
package/dist/types.d.ts CHANGED
@@ -4,6 +4,16 @@ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
+ export { type MiddlewareDefinition, type MiddlewareError, type MiddlewareFn, type MiddlewareOpts } from '../dist/runtime/server/utils/defineMiddleware.js'
8
+
9
+ export { type ActivityLogEntry, type DiscordClient, type DiscordClientError } from '../dist/runtime/server/utils/client.js'
10
+
11
+ export { type ContextMenuDefinition } from '../dist/runtime/server/utils/defineContextMenu.js'
12
+
13
+ export { type ListenerDefinition } from '../dist/runtime/server/utils/defineListener.js'
14
+
15
+ export { type SendHandle, type UseTextChannelReturn } from '../dist/runtime/server/utils/useTextChannel.js'
16
+
7
17
  export { default, type slashCommandOptionTypeIdentifiers, type typeIdentifierToEnum } from './module.mjs'
8
18
 
9
- export { type DiscordRuntimeConfig, type NuxtDiscordContext, type NuxtDiscordOptions, type SlashCommand, type SlashCommandBooleanOption, type SlashCommandCustomReturnHandler, type SlashCommandIntegerOption, type SlashCommandNumberOption, type SlashCommandOption, type SlashCommandOptionBase, type SlashCommandOptionType, type SlashCommandOptionTypeIdentifier, type SlashCommandReturnType, type SlashCommandRuntime, type SlashCommandStringOption, type SlashCommandSubcommand, type SlashCommandSubcommandGroup, type SlashCommandSubcommandGroupRuntime, type SlashCommandSubcommandRuntime, type integer } from './module.mjs'
19
+ export { type ContextMenu, type DashboardCatalog, type DiscordCommandReference, type DiscordReferenceOption, type DiscordReferenceOptions, type DiscordRuntimeConfig, type Listener, type Mentionable, type MiddlewareEntry, type NuxtDiscordContext, type NuxtDiscordOptions, type SlashCommand, type SlashCommandAttachmentOption, type SlashCommandBooleanOption, type SlashCommandChannelOption, type SlashCommandCustomReturnHandler, type SlashCommandIntegerOption, type SlashCommandMentionableOption, type SlashCommandNumberOption, type SlashCommandOption, type SlashCommandOptionBase, type SlashCommandOptionType, type SlashCommandOptionTypeIdentifier, type SlashCommandReturnType, type SlashCommandRoleOption, type SlashCommandRuntime, type SlashCommandStringOption, type SlashCommandSubcommand, type SlashCommandSubcommandGroup, type SlashCommandSubcommandGroupRuntime, type SlashCommandSubcommandRuntime, type SlashCommandUserOption, type integer } from './module.mjs'
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "nuxt-discord",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.2.0",
5
+ "packageManager": "bun@1.4.5",
5
6
  "description": "A Nuxt module for building Discord bots",
6
7
  "author": "Jize Zou <jeffzou2001@gmail.com> (https://github.com/zojize)",
7
8
  "license": "MIT",
@@ -34,60 +35,77 @@
34
35
  "files": [
35
36
  "dist"
36
37
  ],
38
+ "scripts": {
39
+ "prepack": "nuxt-module-build prepare && nuxt-module-build build",
40
+ "dev": "bun run dev:prepare && nuxi dev playground",
41
+ "dev:debug": "bun run dev:prepare && node --inspect ./node_modules/nuxt/bin/nuxt.mjs dev playground --no-fork",
42
+ "dev:build": "nuxi build playground",
43
+ "dev:docs": "nuxi dev docs --port 4000",
44
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
45
+ "release": "bun run release:check && changelogen --release && bun publish && git push --follow-tags",
46
+ "lint": "eslint .",
47
+ "test": "vitest run",
48
+ "test:watch": "vitest watch",
49
+ "test:types": "node node_modules/@typescript/native/bin/tsc --noEmit -p tsconfig.json && vue-tsc --noEmit -p tsconfig.json && vue-tsc --noEmit -p docs/tsconfig.json && node node_modules/@typescript/native/bin/tsc --noEmit -p docs/.nuxt/tsconfig.node.json",
50
+ "prepare": "simple-git-hooks",
51
+ "test:package": "node scripts/test-package.mjs",
52
+ "release:check": "bun run dev:prepare && nuxi prepare docs && bun run lint && bun run test:types && bun run test && bun run test:package && NUXT_APP_BASE_URL=/nuxt-discord/ bun run --cwd docs generate"
53
+ },
37
54
  "peerDependencies": {
38
- "discord.js": "^14.21.0"
55
+ "discord.js": "^14.28.1"
39
56
  },
40
57
  "dependencies": {
41
- "@nuxt/kit": "^3.17.7",
42
- "@nuxt/ui": "^3.2.0",
43
- "ansis": "^4.1.0",
44
- "chokidar": "^4.0.3",
45
- "defu": "^6.1.4",
46
- "knitwork": "^1.2.0",
47
- "listhen": "^1.9.0",
48
- "rollup": "^4.45.1",
49
- "simple-icons": "^15.6.0",
50
- "unocss": "^66.3.3",
51
- "ws": "^8.18.3"
58
+ "@fontsource-variable/source-sans-3": "^5.3.1",
59
+ "@iconify-json/lucide": "^1.2.157",
60
+ "@iconify-json/simple-icons": "^1.2.103",
61
+ "@iconify/vue": "^5.0.5",
62
+ "@nuxt/kit": "^4.6.4",
63
+ "@nuxt/ui": "^4.13.0",
64
+ "@vueuse/core": "^15.0.0",
65
+ "ansis": "^4.5.0",
66
+ "chokidar": "^6.0.0",
67
+ "defu": "^6.1.7",
68
+ "knitwork": "^1.3.0",
69
+ "listhen": "^1.10.1",
70
+ "rollup": "^4.68.7",
71
+ "simple-icons": "^16.38.0",
72
+ "tailwindcss": "^4.3.5",
73
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
74
+ "ws": "^8.23.0"
52
75
  },
53
76
  "devDependencies": {
54
- "@antfu/eslint-config": "^4.17.0",
55
- "@nuxt/devtools": "^2.6.2",
56
- "@nuxt/eslint-config": "^1.6.0",
57
- "@nuxt/module-builder": "^1.0.1",
58
- "@nuxt/schema": "^3.17.7",
59
- "@nuxt/test-utils": "^3.19.2",
60
- "@types/node": "^24.0.15",
61
- "@unocss/eslint-plugin": "^66.3.3",
62
- "@vueuse/core": "^13.5.0",
77
+ "@antfu/eslint-config": "^10.0.0",
78
+ "@nuxt/devtools": "^4.2.0",
79
+ "@nuxt/eslint-config": "^1.17.0",
80
+ "@nuxt/module-builder": "^1.0.4",
81
+ "@nuxt/schema": "^4.6.4",
82
+ "@nuxt/test-utils": "^4.4.0",
83
+ "@types/node": "^26.6.6",
84
+ "@types/ws": "^8.18.2",
85
+ "@typescript/native": "npm:typescript@^7.0.2",
63
86
  "changelogen": "^0.6.2",
64
- "eslint": "^9.31.0",
65
- "lint-staged": "^16.1.2",
66
- "nuxt": "^3.17.7",
67
- "simple-git-hooks": "^2.13.0",
68
- "typescript": "~5.8.3",
69
- "unbuild": "^3.5.0",
70
- "vitest": "^3.2.4",
71
- "vue-tsc": "^2.2.12"
87
+ "eslint": "^10.15.0",
88
+ "knip": "^6.47.0",
89
+ "lint-staged": "^17.6.1",
90
+ "nuxt": "^4.6.4",
91
+ "simple-git-hooks": "^2.14.0",
92
+ "unbuild": "^3.6.1",
93
+ "vitest": "^5.1.1",
94
+ "vue": "^3.5.46",
95
+ "vue-router": "^5.5.1",
96
+ "vue-tsc": "^3.3.14"
72
97
  },
98
+ "workspaces": [
99
+ "playground",
100
+ "docs"
101
+ ],
73
102
  "resolutions": {
74
- "nuxt-discord": "workspace:*"
103
+ "nuxt-discord": "link:."
75
104
  },
76
105
  "simple-git-hooks": {
77
- "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
106
+ "pre-commit": "bun install --frozen-lockfile && bunx lint-staged"
78
107
  },
79
108
  "lint-staged": {
80
109
  "*": "eslint --fix"
81
- },
82
- "scripts": {
83
- "dev": "pnpm run dev:prepare && nuxi dev playground",
84
- "dev:debug": "pnpm run dev:prepare && node --inspect ./node_modules/nuxt/bin/nuxt.mjs dev playground --no-fork",
85
- "dev:build": "nuxi build playground",
86
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
87
- "release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
88
- "lint": "eslint .",
89
- "test": "vitest run",
90
- "test:watch": "vitest watch",
91
- "test:types": "vue-tsc --noEmit"
92
110
  }
93
- }
111
+ }
@@ -1 +0,0 @@
1
- @supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--un-border-opacity:100%;--un-divide-opacity:100%;--un-text-opacity:100%;--un-space-y-reverse:initial}}@property --un-backdrop-blur{syntax:"*";inherits:false}@property --un-backdrop-brightness{syntax:"*";inherits:false}@property --un-backdrop-contrast{syntax:"*";inherits:false}@property --un-backdrop-grayscale{syntax:"*";inherits:false}@property --un-backdrop-hue-rotate{syntax:"*";inherits:false}@property --un-backdrop-invert{syntax:"*";inherits:false}@property --un-backdrop-opacity{syntax:"*";inherits:false}@property --un-backdrop-saturate{syntax:"*";inherits:false}@property --un-backdrop-sepia{syntax:"*";inherits:false}:host,:root{--spacing:0.25rem;--fontWeight-bold:700;--default-transition-timingFunction:cubic-bezier(0.4,0,0.2,1);--default-transition-duration:150ms;--fontWeight-semibold:600;--fontWeight-medium:500;--colors-gray-900:oklch(21% 0.034 264.665);--colors-gray-600:oklch(44.6% 0.03 256.802);--colors-gray-700:oklch(37.3% 0.034 259.733);--colors-gray-500:oklch(55.1% 0.027 264.364);--colors-gray-400:oklch(70.7% 0.022 261.325);--text-3xl-fontSize:1.875rem;--text-3xl-lineHeight:2.25rem;--text-sm-fontSize:0.875rem;--text-sm-lineHeight:1.25rem;--text-lg-fontSize:1.125rem;--text-lg-lineHeight:1.75rem;--text-xs-fontSize:0.75rem;--text-xs-lineHeight:1rem;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-white:#fff;--colors-gray-200:oklch(92.8% 0.006 264.531);--colors-gray-300:oklch(87.2% 0.01 258.338)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.font-bold{--un-font-weight:var(--fontWeight-bold);font-weight:var(--fontWeight-bold)}.mx-auto{margin-inline:auto}.px-6{padding-inline:calc(var(--spacing)*6)}.border-b{border-bottom-width:1px}.flex{display:flex}.gap-4{gap:calc(var(--spacing)*4)}.h-16{height:calc(var(--spacing)*16)}.w-full{width:100%}.items-center{align-items:center}.top-0{top:calc(var(--spacing)*0)}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.sticky{position:sticky}.z-10{z-index:10}.backdrop-blur{--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,);backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,)}
@@ -1 +0,0 @@
1
- @supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--un-border-opacity:100%;--un-divide-opacity:100%;--un-text-opacity:100%;--un-space-y-reverse:initial}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --un-divide-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}:host,:root{--spacing:0.25rem;--fontWeight-bold:700;--default-transition-timingFunction:cubic-bezier(0.4,0,0.2,1);--default-transition-duration:150ms;--fontWeight-semibold:600;--fontWeight-medium:500;--colors-gray-900:oklch(21% 0.034 264.665);--colors-gray-600:oklch(44.6% 0.03 256.802);--colors-gray-700:oklch(37.3% 0.034 259.733);--colors-gray-500:oklch(55.1% 0.027 264.364);--colors-gray-400:oklch(70.7% 0.022 261.325);--text-3xl-fontSize:1.875rem;--text-3xl-lineHeight:2.25rem;--text-sm-fontSize:0.875rem;--text-sm-lineHeight:1.25rem;--text-lg-fontSize:1.125rem;--text-lg-lineHeight:1.75rem;--text-xs-fontSize:0.75rem;--text-xs-lineHeight:1rem;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-white:#fff;--colors-gray-200:oklch(92.8% 0.006 264.531);--colors-gray-300:oklch(87.2% 0.01 258.338)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-3xl{font-size:var(--text-3xl-fontSize);line-height:var(--un-leading,var(--text-3xl-lineHeight))}.text-lg{font-size:var(--text-lg-fontSize);line-height:var(--un-leading,var(--text-lg-lineHeight))}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight))}.dark .dark\:text-gray-200{color:color-mix(in srgb,var(--colors-gray-200) var(--un-text-opacity),transparent)}.dark .dark\:text-gray-300{color:color-mix(in srgb,var(--colors-gray-300) var(--un-text-opacity),transparent)}.dark .dark\:text-gray-400,.text-gray-400{color:color-mix(in srgb,var(--colors-gray-400) var(--un-text-opacity),transparent)}.dark .dark\:text-white{color:color-mix(in srgb,var(--colors-white) var(--un-text-opacity),transparent)}.text-\[var\(--ui-error\)\]\!{color:color-mix(in oklab,var(--ui-error) var(--un-text-opacity),transparent)!important}.text-gray-500{color:color-mix(in srgb,var(--colors-gray-500) var(--un-text-opacity),transparent)}.text-gray-600{color:color-mix(in srgb,var(--colors-gray-600) var(--un-text-opacity),transparent)}.text-gray-700{color:color-mix(in srgb,var(--colors-gray-700) var(--un-text-opacity),transparent)}.text-gray-900{color:color-mix(in srgb,var(--colors-gray-900) var(--un-text-opacity),transparent)}.font-bold{--un-font-weight:var(--fontWeight-bold);font-weight:var(--fontWeight-bold)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.mx-auto{margin-inline:auto}.my-0\.75{margin-block:calc(var(--spacing)*.75)}.my-6{margin-block:calc(var(--spacing)*6)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-16{margin-bottom:calc(var(--spacing)*16)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mt-4{margin-top:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-2{padding-top:calc(var(--spacing)*2)}.text-center{text-align:center}.outline{outline-style:var(--un-outline-style);outline-width:1px}.border{border-width:1px}.border-\[var\(--ui-error\)\]\/50,.divide-\[var\(--ui-error\)\]\/50>:not(:last-child){border-color:color-mix(in oklab,var(--ui-error) 50%,transparent)}.border-\[var\(--ui-neutral\)\]\/50,.divide-\[var\(--ui-neutral\)\]\/50>:not(:last-child){border-color:color-mix(in oklab,var(--ui-neutral) 50%,transparent)}.border-\[var\(--ui-secondary\)\]\/50,.divide-\[var\(--ui-secondary\)\]\/50>:not(:last-child){border-color:color-mix(in oklab,var(--ui-secondary) 50%,transparent)}.border-\[var\(--ui-warning\)\]\/50,.divide-\[var\(--ui-warning\)\]\/50>:not(:last-child){border-color:color-mix(in oklab,var(--ui-warning) 50%,transparent)}.border-dashed{--un-border-style:dashed;border-style:dashed}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.grid{display:grid}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.h-4{height:calc(var(--spacing)*4)}.w-12{width:calc(var(--spacing)*12)}.w-4{width:calc(var(--spacing)*4)}.w-full{width:100%}.hover\:cursor-pointer:hover{cursor:pointer}.disabled\:hover\:cursor-not-allowed:hover:disabled{cursor:not-allowed}.ring-0{--un-ring-shadow:var(--un-ring-inset,) 0 0 0 calc(var(--un-ring-offset-width)) var(--un-ring-color,currentColor);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.transition-shadow{transition-duration:var(--un-duration,var(--default-transition-duration));transition-property:box-shadow;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction))}.duration-200{--un-duration:200ms;transition-duration:.2s}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.space-y-1>:not(:last-child){--un-space-y-reverse:0;margin-block-end:calc(var(--spacing)*1*(1 - var(--un-space-y-reverse)));margin-block-start:calc(var(--spacing)*1*var(--un-space-y-reverse))}.divide-dashed>:not(:last-child){border-style:dashed}@supports (color:color-mix(in lab,red,red)){.dark .dark\:text-gray-200{color:color-mix(in oklab,var(--colors-gray-200) var(--un-text-opacity),transparent)}.dark .dark\:text-gray-300{color:color-mix(in oklab,var(--colors-gray-300) var(--un-text-opacity),transparent)}.dark .dark\:text-gray-400{color:color-mix(in oklab,var(--colors-gray-400) var(--un-text-opacity),transparent)}.dark .dark\:text-white{color:color-mix(in oklab,var(--colors-white) var(--un-text-opacity),transparent)}.text-gray-400{color:color-mix(in oklab,var(--colors-gray-400) var(--un-text-opacity),transparent)}.text-gray-500{color:color-mix(in oklab,var(--colors-gray-500) var(--un-text-opacity),transparent)}.text-gray-600{color:color-mix(in oklab,var(--colors-gray-600) var(--un-text-opacity),transparent)}.text-gray-700{color:color-mix(in oklab,var(--colors-gray-700) var(--un-text-opacity),transparent)}.text-gray-900{color:color-mix(in oklab,var(--colors-gray-900) var(--un-text-opacity),transparent)}}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@@ -1,2 +0,0 @@
1
- declare const _default: import("unocss").UserConfig<import("unocss").PresetWind4Theme>;
2
- export default _default;
@@ -1,10 +0,0 @@
1
- import { defineConfig, presetWind4 } from "unocss";
2
- export default defineConfig({
3
- presets: [
4
- presetWind4({
5
- preflights: {
6
- reset: false
7
- }
8
- })
9
- ]
10
- });