Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't ignore calendar in the registry #516

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/www/scripts/build-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { themes } from "../src/lib/registry/themes";
import { buildRegistry } from "./registry";

const REGISTRY_PATH = path.join(process.cwd(), "static/registry");
const REGISTRY_IGNORE = ["super-form"];

const registry = await buildRegistry();
const result = registrySchema.safeParse(registry);
Expand Down Expand Up @@ -118,8 +119,6 @@ fs.writeFileSync(
"utf8"
);

const REGISTRY_IGNORE = ["super-form", "calendar"];

// ----------------------------------------------------------------------------
// Build registry/index.json.
// ----------------------------------------------------------------------------
Expand Down
27 changes: 27 additions & 0 deletions apps/www/static/registry/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,33 @@
],
"type": "components:ui"
},
{
"name": "calendar",
"dependencies": [
"bits-ui",
"@internationalized/date"
],
"registryDependencies": [
"button"
],
"files": [
"ui/calendar/calendar-cell.svelte",
"ui/calendar/calendar-day.svelte",
"ui/calendar/calendar-grid-body.svelte",
"ui/calendar/calendar-grid-head.svelte",
"ui/calendar/calendar-grid-row.svelte",
"ui/calendar/calendar-grid.svelte",
"ui/calendar/calendar-head-cell.svelte",
"ui/calendar/calendar-header.svelte",
"ui/calendar/calendar-heading.svelte",
"ui/calendar/calendar-months.svelte",
"ui/calendar/calendar-next-button.svelte",
"ui/calendar/calendar-prev-button.svelte",
"ui/calendar/calendar.svelte",
"ui/calendar/index.ts"
],
"type": "components:ui"
},
{
"name": "card",
"dependencies": [],
Expand Down
2 changes: 1 addition & 1 deletion apps/www/static/registry/styles/default/dropdown-menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
{
"name": "dropdown-menu-sub-trigger.svelte",
"content": "<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils\";\n\timport { ChevronRight } from \"lucide-svelte\";\n\n\ttype $$Props = DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t};\n\ttype $$Events = DropdownMenuPrimitive.SubTriggerEvents;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let inset: $$Props[\"inset\"] = undefined;\n\texport { className as class };\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tclass={cn(\n\t\t\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent\",\n\t\tinset && \"pl-8\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n\ton:focusin\n\ton:focusout\n\ton:pointerleave\n\ton:pointermove\n>\n\t<slot />\n\t<ChevronRight class=\"ml-auto h-4 w-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n"
"content": "<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils\";\n\timport { ChevronRight } from \"lucide-svelte\";\n\n\ttype $$Props = DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t};\n\ttype $$Events = DropdownMenuPrimitive.SubTriggerEvents;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let inset: $$Props[\"inset\"] = undefined;\n\texport { className as class };\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tclass={cn(\n\t\t\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground\",\n\t\tinset && \"pl-8\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n\ton:focusin\n\ton:focusout\n\ton:pointerleave\n\ton:pointermove\n>\n\t<slot />\n\t<ChevronRight class=\"ml-auto h-4 w-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n"
},
{
"name": "index.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
{
"name": "dropdown-menu-sub-trigger.svelte",
"content": "<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils\";\n\timport { ChevronRight } from \"radix-icons-svelte\";\n\n\ttype $$Props = DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t};\n\ttype $$Events = DropdownMenuPrimitive.SubTriggerEvents;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let inset: $$Props[\"inset\"] = undefined;\n\texport { className as class };\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tclass={cn(\n\t\t\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent\",\n\t\tinset && \"pl-8\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n\ton:focusin\n\ton:focusout\n\ton:pointerleave\n\ton:pointermove\n>\n\t<slot />\n\t<ChevronRight class=\"ml-auto h-4 w-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n"
"content": "<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils\";\n\timport { ChevronRight } from \"radix-icons-svelte\";\n\n\ttype $$Props = DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t};\n\ttype $$Events = DropdownMenuPrimitive.SubTriggerEvents;\n\n\tlet className: $$Props[\"class\"] = undefined;\n\texport let inset: $$Props[\"inset\"] = undefined;\n\texport { className as class };\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tclass={cn(\n\t\t\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground\",\n\t\tinset && \"pl-8\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n\ton:focusin\n\ton:focusout\n\ton:pointerleave\n\ton:pointermove\n>\n\t<slot />\n\t<ChevronRight class=\"ml-auto h-4 w-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n"
},
{
"name": "index.ts",
Expand Down