diff --git a/package-lock.json b/package-lock.json index 157e7239..6ab685ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "blob-util": "^2.0.2", "cheerio": "^1.0.0-rc.12", "clsx": "^2.1.1", + "cmdk-sv": "^0.0.18", "compression": "^1.7.4", "d3-hierarchy": "^3.1.2", "d3-sankey": "^0.12.3", @@ -3927,6 +3928,35 @@ "node": ">=6" } }, + "node_modules/cmdk-sv": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/cmdk-sv/-/cmdk-sv-0.0.18.tgz", + "integrity": "sha512-istixiQSy9Ez/mQ4VXWB69btqNyDZckbd1XFEwR46Vw+n5zjdmvoWAcOTj0uX3FZXtw9ikwLVmfoW2nwwMClRg==", + "dependencies": { + "bits-ui": "^0.21.12", + "nanoid": "^5.0.7" + }, + "peerDependencies": { + "svelte": "^4.0.0 || ^5.0.0-next.1" + } + }, + "node_modules/cmdk-sv/node_modules/nanoid": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.7.tgz", + "integrity": "sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, "node_modules/code-red": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz", diff --git a/package.json b/package.json index 81922428..35105794 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "blob-util": "^2.0.2", "cheerio": "^1.0.0-rc.12", "clsx": "^2.1.1", + "cmdk-sv": "^0.0.18", "compression": "^1.7.4", "d3-hierarchy": "^3.1.2", "d3-sankey": "^0.12.3", diff --git a/src/lib/components/shadcn/command/command-dialog.svelte b/src/lib/components/shadcn/command/command-dialog.svelte new file mode 100644 index 00000000..8f339079 --- /dev/null +++ b/src/lib/components/shadcn/command/command-dialog.svelte @@ -0,0 +1,23 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-empty.svelte b/src/lib/components/shadcn/command/command-empty.svelte new file mode 100644 index 00000000..f22e8f0d --- /dev/null +++ b/src/lib/components/shadcn/command/command-empty.svelte @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-group.svelte b/src/lib/components/shadcn/command/command-group.svelte new file mode 100644 index 00000000..8f631712 --- /dev/null +++ b/src/lib/components/shadcn/command/command-group.svelte @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-input.svelte b/src/lib/components/shadcn/command/command-input.svelte new file mode 100644 index 00000000..96410584 --- /dev/null +++ b/src/lib/components/shadcn/command/command-input.svelte @@ -0,0 +1,23 @@ + + +
+ + +
\ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-item.svelte b/src/lib/components/shadcn/command/command-item.svelte new file mode 100644 index 00000000..9b97c9da --- /dev/null +++ b/src/lib/components/shadcn/command/command-item.svelte @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-list.svelte b/src/lib/components/shadcn/command/command-list.svelte new file mode 100644 index 00000000..30f9bf67 --- /dev/null +++ b/src/lib/components/shadcn/command/command-list.svelte @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-separator.svelte b/src/lib/components/shadcn/command/command-separator.svelte new file mode 100644 index 00000000..930408ac --- /dev/null +++ b/src/lib/components/shadcn/command/command-separator.svelte @@ -0,0 +1,10 @@ + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command-shortcut.svelte b/src/lib/components/shadcn/command/command-shortcut.svelte new file mode 100644 index 00000000..8450bfe6 --- /dev/null +++ b/src/lib/components/shadcn/command/command-shortcut.svelte @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/command.svelte b/src/lib/components/shadcn/command/command.svelte new file mode 100644 index 00000000..ad20fa58 --- /dev/null +++ b/src/lib/components/shadcn/command/command.svelte @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/command/index.ts b/src/lib/components/shadcn/command/index.ts new file mode 100644 index 00000000..a646126d --- /dev/null +++ b/src/lib/components/shadcn/command/index.ts @@ -0,0 +1,37 @@ +import { Command as CommandPrimitive } from "cmdk-sv"; + +import Root from "./command.svelte"; +import Dialog from "./command-dialog.svelte"; +import Empty from "./command-empty.svelte"; +import Group from "./command-group.svelte"; +import Item from "./command-item.svelte"; +import Input from "./command-input.svelte"; +import List from "./command-list.svelte"; +import Separator from "./command-separator.svelte"; +import Shortcut from "./command-shortcut.svelte"; + +const Loading = CommandPrimitive.Loading; + +export { + Root, + Dialog, + Empty, + Group, + Item, + Input, + List, + Separator, + Shortcut, + Loading, + // + Root as Command, + Dialog as CommandDialog, + Empty as CommandEmpty, + Group as CommandGroup, + Item as CommandItem, + Input as CommandInput, + List as CommandList, + Separator as CommandSeparator, + Shortcut as CommandShortcut, + Loading as CommandLoading, +}; \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-content.svelte b/src/lib/components/shadcn/dialog/dialog-content.svelte new file mode 100644 index 00000000..ea07e4e6 --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-content.svelte @@ -0,0 +1,36 @@ + + + + + + + + + Close + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-description.svelte b/src/lib/components/shadcn/dialog/dialog-description.svelte new file mode 100644 index 00000000..360f5c7e --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-description.svelte @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-footer.svelte b/src/lib/components/shadcn/dialog/dialog-footer.svelte new file mode 100644 index 00000000..12b1e024 --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-footer.svelte @@ -0,0 +1,16 @@ + + +
+ +
\ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-header.svelte b/src/lib/components/shadcn/dialog/dialog-header.svelte new file mode 100644 index 00000000..ab921592 --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-header.svelte @@ -0,0 +1,13 @@ + + +
+ +
\ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-overlay.svelte b/src/lib/components/shadcn/dialog/dialog-overlay.svelte new file mode 100644 index 00000000..0263c03e --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-overlay.svelte @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-portal.svelte b/src/lib/components/shadcn/dialog/dialog-portal.svelte new file mode 100644 index 00000000..872304d8 --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-portal.svelte @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/dialog-title.svelte b/src/lib/components/shadcn/dialog/dialog-title.svelte new file mode 100644 index 00000000..6cf42445 --- /dev/null +++ b/src/lib/components/shadcn/dialog/dialog-title.svelte @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/dialog/index.ts b/src/lib/components/shadcn/dialog/index.ts new file mode 100644 index 00000000..702e1221 --- /dev/null +++ b/src/lib/components/shadcn/dialog/index.ts @@ -0,0 +1,37 @@ +import { Dialog as DialogPrimitive } from "bits-ui"; + +import Title from "./dialog-title.svelte"; +import Portal from "./dialog-portal.svelte"; +import Footer from "./dialog-footer.svelte"; +import Header from "./dialog-header.svelte"; +import Overlay from "./dialog-overlay.svelte"; +import Content from "./dialog-content.svelte"; +import Description from "./dialog-description.svelte"; + +const Root = DialogPrimitive.Root; +const Trigger = DialogPrimitive.Trigger; +const Close = DialogPrimitive.Close; + +export { + Root, + Title, + Portal, + Footer, + Header, + Trigger, + Overlay, + Content, + Description, + Close, + // + Root as Dialog, + Title as DialogTitle, + Portal as DialogPortal, + Footer as DialogFooter, + Header as DialogHeader, + Trigger as DialogTrigger, + Overlay as DialogOverlay, + Content as DialogContent, + Description as DialogDescription, + Close as DialogClose, +}; \ No newline at end of file diff --git a/src/lib/components/shadcn/popover/index.ts b/src/lib/components/shadcn/popover/index.ts new file mode 100644 index 00000000..3f14fa45 --- /dev/null +++ b/src/lib/components/shadcn/popover/index.ts @@ -0,0 +1,17 @@ +import { Popover as PopoverPrimitive } from "bits-ui"; +import Content from "./popover-content.svelte"; +const Root = PopoverPrimitive.Root; +const Trigger = PopoverPrimitive.Trigger; +const Close = PopoverPrimitive.Close; + +export { + Root, + Content, + Trigger, + Close, + // + Root as Popover, + Content as PopoverContent, + Trigger as PopoverTrigger, + Close as PopoverClose, +}; \ No newline at end of file diff --git a/src/lib/components/shadcn/popover/popover-content.svelte b/src/lib/components/shadcn/popover/popover-content.svelte new file mode 100644 index 00000000..9372ebcb --- /dev/null +++ b/src/lib/components/shadcn/popover/popover-content.svelte @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/src/routes/economic-calendar/+page.svelte b/src/routes/economic-calendar/+page.svelte index 04cf1de9..d6e67120 100644 --- a/src/routes/economic-calendar/+page.svelte +++ b/src/routes/economic-calendar/+page.svelte @@ -1,283 +1,98 @@ - - + @@ -364,7 +179,6 @@ const loadWorker = async () => {
-
@@ -416,20 +230,8 @@ const loadWorker = async () => { -