From bb5d5b2a71ef85d003a9c1553791f576d2975090 Mon Sep 17 00:00:00 2001 From: zernonia Date: Sat, 23 Nov 2024 00:49:59 +0800 Subject: [PATCH] docs: block preview and codes --- .../theme/components/BlockContainer.vue | 157 +- ...CopyButton.vue => BlockCopyCodeButton.vue} | 0 .../theme/components/BlockPreview.vue | 23 +- .../theme/components/BlockViewerCode.vue | 70 + .../theme/components/BlockViewerFileTree.vue | 150 + .../.vitepress/theme/components/Blocks.vue | 1 + apps/www/__registry__/block.ts | 1022 ++++++ apps/www/__registry__/index.ts | 2894 ++++++----------- apps/www/scripts/build-registry.ts | 87 +- .../src/content/docs/components/sidebar.md | 2 +- .../www/src/public/android-chrome-192x192.png | Bin 5431 -> 9986 bytes .../www/src/public/android-chrome-512x512.png | Bin 26015 -> 49091 bytes apps/www/src/public/apple-touch-icon.png | Bin 4552 -> 8952 bytes apps/www/src/public/favicon-16x16.png | Bin 246 -> 363 bytes apps/www/src/public/favicon-32x32.png | Bin 409 -> 628 bytes apps/www/src/public/favicon.ico | Bin 15406 -> 15406 bytes .../r/styles/default/AccordionDemo.json | 2 +- .../public/r/styles/default/AlertDemo.json | 2 +- .../styles/default/AlertDestructiveDemo.json | 2 +- .../r/styles/default/AlertDialogDemo.json | 2 +- .../default/AreaChartCustomTooltip.json | 2 +- .../r/styles/default/AreaChartDemo.json | 2 +- .../r/styles/default/AreaChartSparkline.json | 2 +- .../r/styles/default/AspectRatioDemo.json | 2 +- .../r/styles/default/Authentication01.json | 2 +- .../r/styles/default/Authentication02.json | 2 +- .../r/styles/default/Authentication03.json | 2 +- .../r/styles/default/Authentication04.json | 2 +- .../public/r/styles/default/AutoFormApi.json | 2 +- .../r/styles/default/AutoFormArray.json | 2 +- .../r/styles/default/AutoFormBasic.json | 2 +- .../default/AutoFormConfirmPassword.json | 2 +- .../r/styles/default/AutoFormControlled.json | 2 +- .../styles/default/AutoFormDependencies.json | 2 +- .../default/AutoFormInputWithoutLabel.json | 2 +- .../r/styles/default/AutoFormSubObject.json | 2 +- .../public/r/styles/default/AvatarDemo.json | 2 +- .../public/r/styles/default/BadgeDemo.json | 2 +- .../styles/default/BadgeDestructiveDemo.json | 2 +- .../r/styles/default/BadgeOutlineDemo.json | 2 +- .../r/styles/default/BadgeSecondaryDemo.json | 2 +- .../styles/default/BarChartCustomTooltip.json | 2 +- .../public/r/styles/default/BarChartDemo.json | 2 +- .../r/styles/default/BarChartRounded.json | 2 +- .../r/styles/default/BarChartStacked.json | 2 +- .../r/styles/default/BreadcrumbDemo.json | 2 +- .../r/styles/default/BreadcrumbDropdown.json | 2 +- .../default/BreadcrumbEllipsisDemo.json | 2 +- .../r/styles/default/BreadcrumbLinkDemo.json | 2 +- .../styles/default/BreadcrumbResponsive.json | 2 +- .../default/BreadcrumbSeparatorDemo.json | 2 +- .../r/styles/default/ButtonAsChildDemo.json | 2 +- .../public/r/styles/default/ButtonDemo.json | 2 +- .../styles/default/ButtonDestructiveDemo.json | 2 +- .../r/styles/default/ButtonGhostDemo.json | 2 +- .../r/styles/default/ButtonIconDemo.json | 2 +- .../r/styles/default/ButtonLinkDemo.json | 2 +- .../r/styles/default/ButtonLoadingDemo.json | 2 +- .../r/styles/default/ButtonOutlineDemo.json | 2 +- .../r/styles/default/ButtonSecondaryDemo.json | 2 +- .../r/styles/default/ButtonWithIconDemo.json | 2 +- .../public/r/styles/default/CalendarDemo.json | 2 +- .../public/r/styles/default/CalendarForm.json | 2 +- .../r/styles/default/CalendarWithSelect.json | 2 +- .../src/public/r/styles/default/CardChat.json | 2 +- .../src/public/r/styles/default/CardDemo.json | 2 +- .../public/r/styles/default/CardFormDemo.json | 2 +- .../public/r/styles/default/CardStats.json | 2 +- .../public/r/styles/default/CardWithForm.json | 2 +- .../public/r/styles/default/CarouselApi.json | 2 +- .../public/r/styles/default/CarouselDemo.json | 2 +- .../r/styles/default/CarouselOrientation.json | 2 +- .../r/styles/default/CarouselPlugin.json | 2 +- .../public/r/styles/default/CarouselSize.json | 2 +- .../r/styles/default/CarouselSpacing.json | 2 +- .../r/styles/default/CarouselThumbnails.json | 2 +- .../public/r/styles/default/CheckboxDemo.json | 2 +- .../r/styles/default/CheckboxDisabled.json | 2 +- .../styles/default/CheckboxFormMultiple.json | 2 +- .../r/styles/default/CheckboxFormSingle.json | 2 +- .../r/styles/default/CheckboxWithText.json | 2 +- .../r/styles/default/CollapsibleDemo.json | 2 +- .../public/r/styles/default/ComboboxDemo.json | 2 +- .../styles/default/ComboboxDropdownMenu.json | 2 +- .../public/r/styles/default/ComboboxForm.json | 2 +- .../r/styles/default/ComboboxPopover.json | 2 +- .../r/styles/default/ComboboxResponsive.json | 2 +- .../public/r/styles/default/CommandDemo.json | 2 +- .../r/styles/default/CommandDialogDemo.json | 2 +- .../r/styles/default/ContextMenuDemo.json | 2 +- .../r/styles/default/CustomChartTooltip.json | 2 +- .../public/r/styles/default/Dashboard01.json | 2 +- .../public/r/styles/default/Dashboard02.json | 2 +- .../public/r/styles/default/Dashboard03.json | 2 +- .../public/r/styles/default/Dashboard04.json | 2 +- .../public/r/styles/default/Dashboard05.json | 2 +- .../public/r/styles/default/Dashboard06.json | 2 +- .../public/r/styles/default/Dashboard07.json | 2 +- .../default/DataTableColumnPinningDemo.json | 2 +- .../r/styles/default/DataTableDemo.json | 2 +- .../r/styles/default/DataTableDemoColumn.json | 2 +- .../styles/default/DataTableReactiveDemo.json | 2 +- .../r/styles/default/DatePickerDemo.json | 2 +- .../r/styles/default/DatePickerForm.json | 2 +- .../DatePickerWithIndependentMonths.json | 2 +- .../styles/default/DatePickerWithPresets.json | 2 +- .../r/styles/default/DatePickerWithRange.json | 2 +- .../default/DialogCustomCloseButton.json | 2 +- .../public/r/styles/default/DialogDemo.json | 2 +- .../public/r/styles/default/DialogForm.json | 2 +- .../styles/default/DialogScrollBodyDemo.json | 2 +- .../default/DialogScrollOverlayDemo.json | 2 +- .../r/styles/default/DonutChartColor.json | 2 +- .../default/DonutChartCustomTooltip.json | 2 +- .../r/styles/default/DonutChartDemo.json | 2 +- .../r/styles/default/DonutChartPie.json | 2 +- .../public/r/styles/default/DrawerDemo.json | 2 +- .../public/r/styles/default/DrawerDialog.json | 2 +- .../default/DropdownMenuCheckboxes.json | 2 +- .../r/styles/default/DropdownMenuDemo.json | 2 +- .../default/DropdownMenuRadioGroup.json | 2 +- .../r/styles/default/HoverCardDemo.json | 2 +- .../public/r/styles/default/InputDemo.json | 2 +- .../r/styles/default/InputDisabled.json | 2 +- .../public/r/styles/default/InputFile.json | 2 +- .../public/r/styles/default/InputForm.json | 2 +- .../styles/default/InputFormAutoAnimate.json | 2 +- .../r/styles/default/InputWithButton.json | 2 +- .../r/styles/default/InputWithIcon.json | 2 +- .../r/styles/default/InputWithLabel.json | 2 +- .../public/r/styles/default/LabelDemo.json | 2 +- .../default/LineChartCustomTooltip.json | 2 +- .../r/styles/default/LineChartDemo.json | 2 +- .../r/styles/default/LineChartSparkline.json | 2 +- .../public/r/styles/default/MenubarDemo.json | 2 +- .../r/styles/default/NavigationMenuDemo.json | 2 +- .../r/styles/default/NumberFieldCurrency.json | 2 +- .../r/styles/default/NumberFieldDecimal.json | 2 +- .../r/styles/default/NumberFieldDemo.json | 2 +- .../r/styles/default/NumberFieldDisabled.json | 2 +- .../r/styles/default/NumberFieldForm.json | 2 +- .../styles/default/NumberFieldPercentage.json | 2 +- .../r/styles/default/PaginationDemo.json | 2 +- .../r/styles/default/PinInputControlled.json | 2 +- .../public/r/styles/default/PinInputDemo.json | 2 +- .../r/styles/default/PinInputDisabled.json | 2 +- .../r/styles/default/PinInputFormDemo.json | 2 +- .../styles/default/PinInputSeparatorDemo.json | 2 +- .../public/r/styles/default/PopoverDemo.json | 2 +- .../public/r/styles/default/ProgressDemo.json | 2 +- .../r/styles/default/RadioGroupDemo.json | 2 +- .../r/styles/default/RadioGroupForm.json | 2 +- .../r/styles/default/RangeCalendarDemo.json | 2 +- .../r/styles/default/ResizableDemo.json | 2 +- .../r/styles/default/ResizableHandleDemo.json | 2 +- .../styles/default/ResizableVerticalDemo.json | 2 +- .../r/styles/default/ScrollAreaDemo.json | 2 +- .../default/ScrollAreaHorizontalDemo.json | 2 +- .../public/r/styles/default/SelectDemo.json | 2 +- .../public/r/styles/default/SelectForm.json | 2 +- .../r/styles/default/SelectScrollable.json | 2 +- .../r/styles/default/SeparatorDemo.json | 2 +- .../public/r/styles/default/SheetDemo.json | 2 +- .../r/styles/default/SheetSideDemo.json | 2 +- .../public/r/styles/default/Sidebar01.json | 2 +- .../public/r/styles/default/Sidebar02.json | 42 + .../public/r/styles/default/Sidebar07.json | 4 +- .../public/r/styles/default/SkeletonCard.json | 2 +- .../public/r/styles/default/SkeletonDemo.json | 2 +- .../public/r/styles/default/SliderDemo.json | 2 +- .../public/r/styles/default/SliderForm.json | 2 +- .../public/r/styles/default/SonnerDemo.json | 2 +- .../r/styles/default/SonnerWithDialog.json | 2 +- .../public/r/styles/default/StepperDemo.json | 2 +- .../public/r/styles/default/StepperForm.json | 2 +- .../r/styles/default/StepperHorizental.json | 2 +- .../r/styles/default/StepperVertical.json | 2 +- .../public/r/styles/default/SwitchDemo.json | 2 +- .../public/r/styles/default/SwitchForm.json | 2 +- .../public/r/styles/default/TableDemo.json | 2 +- .../src/public/r/styles/default/TabsDemo.json | 2 +- .../r/styles/default/TabsVerticalDemo.json | 2 +- .../styles/default/TagsInputComboboxDemo.json | 2 +- .../r/styles/default/TagsInputDemo.json | 2 +- .../r/styles/default/TagsInputFormDemo.json | 2 +- .../public/r/styles/default/TextareaDemo.json | 2 +- .../r/styles/default/TextareaDisabled.json | 2 +- .../public/r/styles/default/TextareaForm.json | 2 +- .../r/styles/default/TextareaWithButton.json | 2 +- .../r/styles/default/TextareaWithLabel.json | 2 +- .../r/styles/default/TextareaWithText.json | 2 +- .../public/r/styles/default/ToastDemo.json | 2 +- .../r/styles/default/ToastDestructive.json | 2 +- .../public/r/styles/default/ToastSimple.json | 2 +- .../r/styles/default/ToastWithAction.json | 2 +- .../r/styles/default/ToastWithTitle.json | 2 +- .../public/r/styles/default/ToggleDemo.json | 2 +- .../r/styles/default/ToggleDisabledDemo.json | 2 +- .../r/styles/default/ToggleGroupDemo.json | 2 +- .../default/ToggleGroupDisabledDemo.json | 2 +- .../styles/default/ToggleGroupLargeDemo.json | 2 +- .../default/ToggleGroupOutlineDemo.json | 2 +- .../styles/default/ToggleGroupSingleDemo.json | 2 +- .../styles/default/ToggleGroupSmallDemo.json | 2 +- .../r/styles/default/ToggleItalicDemo.json | 2 +- .../default/ToggleItalicWithTextDemo.json | 2 +- .../r/styles/default/ToggleLargeDemo.json | 2 +- .../r/styles/default/ToggleSmallDemo.json | 2 +- .../public/r/styles/default/TooltipDemo.json | 2 +- .../styles/default/TypographyBlockquote.json | 2 +- .../r/styles/default/TypographyDemo.json | 2 +- .../public/r/styles/default/TypographyH1.json | 2 +- .../public/r/styles/default/TypographyH2.json | 2 +- .../public/r/styles/default/TypographyH3.json | 2 +- .../public/r/styles/default/TypographyH4.json | 2 +- .../styles/default/TypographyInlineCode.json | 2 +- .../r/styles/default/TypographyLarge.json | 2 +- .../r/styles/default/TypographyLead.json | 2 +- .../r/styles/default/TypographyList.json | 2 +- .../r/styles/default/TypographyMuted.json | 2 +- .../public/r/styles/default/TypographyP.json | 2 +- .../r/styles/default/TypographySmall.json | 2 +- .../r/styles/default/TypographyTable.json | 2 +- .../r/styles/default/VCalendarDemo.json | 2 +- .../r/styles/default/VDatePickerDemo.json | 2 +- .../r/styles/default/VDatePickerForm.json | 2 +- .../default/VDatePickerWithPresets.json | 2 +- .../styles/default/VDatePickerWithRange.json | 2 +- .../r/styles/default/VDateTimePickerDemo.json | 2 +- .../styles/default/VRangePickerWithSlot.json | 2 +- .../src/public/r/styles/default/sidebar.json | 2 +- .../src/public/r/styles/default/toggle.json | 2 +- .../r/styles/new-york/AccordionDemo.json | 2 +- .../public/r/styles/new-york/AlertDemo.json | 2 +- .../styles/new-york/AlertDestructiveDemo.json | 2 +- .../r/styles/new-york/AlertDialogDemo.json | 2 +- .../new-york/AreaChartCustomTooltip.json | 2 +- .../r/styles/new-york/AreaChartDemo.json | 2 +- .../r/styles/new-york/AreaChartSparkline.json | 2 +- .../r/styles/new-york/AspectRatioDemo.json | 2 +- .../r/styles/new-york/Authentication01.json | 2 +- .../r/styles/new-york/Authentication02.json | 2 +- .../r/styles/new-york/Authentication03.json | 2 +- .../r/styles/new-york/Authentication04.json | 2 +- .../public/r/styles/new-york/AutoFormApi.json | 2 +- .../r/styles/new-york/AutoFormArray.json | 2 +- .../r/styles/new-york/AutoFormBasic.json | 2 +- .../new-york/AutoFormConfirmPassword.json | 2 +- .../r/styles/new-york/AutoFormControlled.json | 2 +- .../styles/new-york/AutoFormDependencies.json | 2 +- .../new-york/AutoFormInputWithoutLabel.json | 2 +- .../r/styles/new-york/AutoFormSubObject.json | 2 +- .../public/r/styles/new-york/AvatarDemo.json | 2 +- .../public/r/styles/new-york/BadgeDemo.json | 2 +- .../styles/new-york/BadgeDestructiveDemo.json | 2 +- .../r/styles/new-york/BadgeOutlineDemo.json | 2 +- .../r/styles/new-york/BadgeSecondaryDemo.json | 2 +- .../new-york/BarChartCustomTooltip.json | 2 +- .../r/styles/new-york/BarChartDemo.json | 2 +- .../r/styles/new-york/BarChartRounded.json | 2 +- .../r/styles/new-york/BarChartStacked.json | 2 +- .../r/styles/new-york/BreadcrumbDemo.json | 2 +- .../r/styles/new-york/BreadcrumbDropdown.json | 2 +- .../new-york/BreadcrumbEllipsisDemo.json | 2 +- .../r/styles/new-york/BreadcrumbLinkDemo.json | 2 +- .../styles/new-york/BreadcrumbResponsive.json | 2 +- .../new-york/BreadcrumbSeparatorDemo.json | 2 +- .../r/styles/new-york/ButtonAsChildDemo.json | 2 +- .../public/r/styles/new-york/ButtonDemo.json | 2 +- .../new-york/ButtonDestructiveDemo.json | 2 +- .../r/styles/new-york/ButtonGhostDemo.json | 2 +- .../r/styles/new-york/ButtonIconDemo.json | 2 +- .../r/styles/new-york/ButtonLinkDemo.json | 2 +- .../r/styles/new-york/ButtonLoadingDemo.json | 2 +- .../r/styles/new-york/ButtonOutlineDemo.json | 2 +- .../styles/new-york/ButtonSecondaryDemo.json | 2 +- .../r/styles/new-york/ButtonWithIconDemo.json | 2 +- .../r/styles/new-york/CalendarDemo.json | 2 +- .../r/styles/new-york/CalendarForm.json | 2 +- .../r/styles/new-york/CalendarWithSelect.json | 2 +- .../public/r/styles/new-york/CardChat.json | 2 +- .../public/r/styles/new-york/CardDemo.json | 2 +- .../r/styles/new-york/CardFormDemo.json | 2 +- .../public/r/styles/new-york/CardStats.json | 2 +- .../r/styles/new-york/CardWithForm.json | 2 +- .../public/r/styles/new-york/CarouselApi.json | 2 +- .../r/styles/new-york/CarouselDemo.json | 2 +- .../styles/new-york/CarouselOrientation.json | 2 +- .../r/styles/new-york/CarouselPlugin.json | 2 +- .../r/styles/new-york/CarouselSize.json | 2 +- .../r/styles/new-york/CarouselSpacing.json | 2 +- .../r/styles/new-york/CarouselThumbnails.json | 2 +- .../r/styles/new-york/CheckboxDemo.json | 2 +- .../r/styles/new-york/CheckboxDisabled.json | 2 +- .../styles/new-york/CheckboxFormMultiple.json | 2 +- .../r/styles/new-york/CheckboxFormSingle.json | 2 +- .../r/styles/new-york/CheckboxWithText.json | 2 +- .../r/styles/new-york/CollapsibleDemo.json | 2 +- .../r/styles/new-york/ComboboxDemo.json | 2 +- .../styles/new-york/ComboboxDropdownMenu.json | 2 +- .../r/styles/new-york/ComboboxForm.json | 2 +- .../r/styles/new-york/ComboboxPopover.json | 2 +- .../r/styles/new-york/ComboboxResponsive.json | 2 +- .../public/r/styles/new-york/CommandDemo.json | 2 +- .../r/styles/new-york/CommandDialogDemo.json | 2 +- .../r/styles/new-york/ContextMenuDemo.json | 2 +- .../r/styles/new-york/CustomChartTooltip.json | 2 +- .../public/r/styles/new-york/Dashboard01.json | 2 +- .../public/r/styles/new-york/Dashboard02.json | 2 +- .../public/r/styles/new-york/Dashboard03.json | 2 +- .../public/r/styles/new-york/Dashboard04.json | 2 +- .../public/r/styles/new-york/Dashboard05.json | 2 +- .../public/r/styles/new-york/Dashboard06.json | 2 +- .../public/r/styles/new-york/Dashboard07.json | 2 +- .../new-york/DataTableColumnPinningDemo.json | 2 +- .../r/styles/new-york/DataTableDemo.json | 2 +- .../styles/new-york/DataTableDemoColumn.json | 2 +- .../new-york/DataTableReactiveDemo.json | 2 +- .../r/styles/new-york/DatePickerDemo.json | 2 +- .../r/styles/new-york/DatePickerForm.json | 2 +- .../DatePickerWithIndependentMonths.json | 2 +- .../new-york/DatePickerWithPresets.json | 2 +- .../styles/new-york/DatePickerWithRange.json | 2 +- .../new-york/DialogCustomCloseButton.json | 2 +- .../public/r/styles/new-york/DialogDemo.json | 2 +- .../public/r/styles/new-york/DialogForm.json | 2 +- .../styles/new-york/DialogScrollBodyDemo.json | 2 +- .../new-york/DialogScrollOverlayDemo.json | 2 +- .../r/styles/new-york/DonutChartColor.json | 2 +- .../new-york/DonutChartCustomTooltip.json | 2 +- .../r/styles/new-york/DonutChartDemo.json | 2 +- .../r/styles/new-york/DonutChartPie.json | 2 +- .../public/r/styles/new-york/DrawerDemo.json | 2 +- .../r/styles/new-york/DrawerDialog.json | 2 +- .../new-york/DropdownMenuCheckboxes.json | 2 +- .../r/styles/new-york/DropdownMenuDemo.json | 2 +- .../new-york/DropdownMenuRadioGroup.json | 2 +- .../r/styles/new-york/HoverCardDemo.json | 2 +- .../public/r/styles/new-york/InputDemo.json | 2 +- .../r/styles/new-york/InputDisabled.json | 2 +- .../public/r/styles/new-york/InputFile.json | 2 +- .../public/r/styles/new-york/InputForm.json | 2 +- .../styles/new-york/InputFormAutoAnimate.json | 2 +- .../r/styles/new-york/InputWithButton.json | 2 +- .../r/styles/new-york/InputWithIcon.json | 2 +- .../r/styles/new-york/InputWithLabel.json | 2 +- .../public/r/styles/new-york/LabelDemo.json | 2 +- .../new-york/LineChartCustomTooltip.json | 2 +- .../r/styles/new-york/LineChartDemo.json | 2 +- .../r/styles/new-york/LineChartSparkline.json | 2 +- .../public/r/styles/new-york/MenubarDemo.json | 2 +- .../r/styles/new-york/NavigationMenuDemo.json | 2 +- .../styles/new-york/NumberFieldCurrency.json | 2 +- .../r/styles/new-york/NumberFieldDecimal.json | 2 +- .../r/styles/new-york/NumberFieldDemo.json | 2 +- .../styles/new-york/NumberFieldDisabled.json | 2 +- .../r/styles/new-york/NumberFieldForm.json | 2 +- .../new-york/NumberFieldPercentage.json | 2 +- .../r/styles/new-york/PaginationDemo.json | 2 +- .../r/styles/new-york/PinInputControlled.json | 2 +- .../r/styles/new-york/PinInputDemo.json | 2 +- .../r/styles/new-york/PinInputDisabled.json | 2 +- .../r/styles/new-york/PinInputFormDemo.json | 2 +- .../new-york/PinInputSeparatorDemo.json | 2 +- .../public/r/styles/new-york/PopoverDemo.json | 2 +- .../r/styles/new-york/ProgressDemo.json | 2 +- .../r/styles/new-york/RadioGroupDemo.json | 2 +- .../r/styles/new-york/RadioGroupForm.json | 2 +- .../r/styles/new-york/RangeCalendarDemo.json | 2 +- .../r/styles/new-york/ResizableDemo.json | 2 +- .../styles/new-york/ResizableHandleDemo.json | 2 +- .../new-york/ResizableVerticalDemo.json | 2 +- .../r/styles/new-york/ScrollAreaDemo.json | 2 +- .../new-york/ScrollAreaHorizontalDemo.json | 2 +- .../public/r/styles/new-york/SelectDemo.json | 2 +- .../public/r/styles/new-york/SelectForm.json | 2 +- .../r/styles/new-york/SelectScrollable.json | 2 +- .../r/styles/new-york/SeparatorDemo.json | 2 +- .../public/r/styles/new-york/SheetDemo.json | 2 +- .../r/styles/new-york/SheetSideDemo.json | 2 +- .../public/r/styles/new-york/Sidebar01.json | 2 +- .../public/r/styles/new-york/Sidebar02.json | 42 + .../public/r/styles/new-york/Sidebar07.json | 4 +- .../r/styles/new-york/SkeletonCard.json | 2 +- .../r/styles/new-york/SkeletonDemo.json | 2 +- .../public/r/styles/new-york/SliderDemo.json | 2 +- .../public/r/styles/new-york/SliderForm.json | 2 +- .../public/r/styles/new-york/SonnerDemo.json | 2 +- .../r/styles/new-york/SonnerWithDialog.json | 2 +- .../public/r/styles/new-york/StepperDemo.json | 2 +- .../public/r/styles/new-york/StepperForm.json | 2 +- .../r/styles/new-york/StepperHorizental.json | 2 +- .../r/styles/new-york/StepperVertical.json | 2 +- .../public/r/styles/new-york/SwitchDemo.json | 2 +- .../public/r/styles/new-york/SwitchForm.json | 2 +- .../public/r/styles/new-york/TableDemo.json | 2 +- .../public/r/styles/new-york/TabsDemo.json | 2 +- .../r/styles/new-york/TabsVerticalDemo.json | 2 +- .../new-york/TagsInputComboboxDemo.json | 2 +- .../r/styles/new-york/TagsInputDemo.json | 2 +- .../r/styles/new-york/TagsInputFormDemo.json | 2 +- .../r/styles/new-york/TextareaDemo.json | 2 +- .../r/styles/new-york/TextareaDisabled.json | 2 +- .../r/styles/new-york/TextareaForm.json | 2 +- .../r/styles/new-york/TextareaWithButton.json | 2 +- .../r/styles/new-york/TextareaWithLabel.json | 2 +- .../r/styles/new-york/TextareaWithText.json | 2 +- .../public/r/styles/new-york/ToastDemo.json | 2 +- .../r/styles/new-york/ToastDestructive.json | 2 +- .../public/r/styles/new-york/ToastSimple.json | 2 +- .../r/styles/new-york/ToastWithAction.json | 2 +- .../r/styles/new-york/ToastWithTitle.json | 2 +- .../public/r/styles/new-york/ToggleDemo.json | 2 +- .../r/styles/new-york/ToggleDisabledDemo.json | 2 +- .../r/styles/new-york/ToggleGroupDemo.json | 2 +- .../new-york/ToggleGroupDisabledDemo.json | 2 +- .../styles/new-york/ToggleGroupLargeDemo.json | 2 +- .../new-york/ToggleGroupOutlineDemo.json | 2 +- .../new-york/ToggleGroupSingleDemo.json | 2 +- .../styles/new-york/ToggleGroupSmallDemo.json | 2 +- .../r/styles/new-york/ToggleItalicDemo.json | 2 +- .../new-york/ToggleItalicWithTextDemo.json | 2 +- .../r/styles/new-york/ToggleLargeDemo.json | 2 +- .../r/styles/new-york/ToggleSmallDemo.json | 2 +- .../public/r/styles/new-york/TooltipDemo.json | 2 +- .../styles/new-york/TypographyBlockquote.json | 2 +- .../r/styles/new-york/TypographyDemo.json | 2 +- .../r/styles/new-york/TypographyH1.json | 2 +- .../r/styles/new-york/TypographyH2.json | 2 +- .../r/styles/new-york/TypographyH3.json | 2 +- .../r/styles/new-york/TypographyH4.json | 2 +- .../styles/new-york/TypographyInlineCode.json | 2 +- .../r/styles/new-york/TypographyLarge.json | 2 +- .../r/styles/new-york/TypographyLead.json | 2 +- .../r/styles/new-york/TypographyList.json | 2 +- .../r/styles/new-york/TypographyMuted.json | 2 +- .../public/r/styles/new-york/TypographyP.json | 2 +- .../r/styles/new-york/TypographySmall.json | 2 +- .../r/styles/new-york/TypographyTable.json | 2 +- .../r/styles/new-york/VCalendarDemo.json | 2 +- .../r/styles/new-york/VDatePickerDemo.json | 2 +- .../r/styles/new-york/VDatePickerForm.json | 2 +- .../new-york/VDatePickerWithPresets.json | 2 +- .../styles/new-york/VDatePickerWithRange.json | 2 +- .../styles/new-york/VDateTimePickerDemo.json | 2 +- .../styles/new-york/VRangePickerWithSlot.json | 2 +- .../src/public/r/styles/new-york/sidebar.json | 4 +- .../src/public/r/styles/new-york/toggle.json | 2 +- apps/www/src/public/r/temp.json | 950 +++--- apps/www/src/registry/crawl-content.ts | 41 +- .../block/Sidebar02/components/AppSidebar.vue | 212 ++ .../block/Sidebar02/components/SearchForm.vue | 27 + .../Sidebar02/components/VersionSwitcher.vue | 60 + .../registry/default/block/Sidebar02/page.vue | 54 + .../registry/default/block/Sidebar07/page.vue | 2 +- .../src/registry/default/ui/sidebar/index.ts | 8 + .../src/registry/default/ui/toggle/index.ts | 8 +- .../block/Sidebar02/components/AppSidebar.vue | 212 ++ .../block/Sidebar02/components/SearchForm.vue | 27 + .../Sidebar02/components/VersionSwitcher.vue | 60 + .../new-york/block/Sidebar02/page.vue | 54 + .../new-york/block/Sidebar07/page.vue | 2 +- .../registry/new-york/ui/sidebar/Sidebar.vue | 9 +- .../src/registry/new-york/ui/sidebar/index.ts | 8 + .../src/registry/new-york/ui/toggle/index.ts | 8 +- apps/www/src/registry/schema.ts | 4 + eslint.config.js | 1 + 467 files changed, 4179 insertions(+), 2924 deletions(-) rename apps/www/.vitepress/theme/components/{BlockCopyButton.vue => BlockCopyCodeButton.vue} (100%) create mode 100644 apps/www/.vitepress/theme/components/BlockViewerCode.vue create mode 100644 apps/www/.vitepress/theme/components/BlockViewerFileTree.vue create mode 100644 apps/www/__registry__/block.ts create mode 100644 apps/www/src/public/r/styles/default/Sidebar02.json create mode 100644 apps/www/src/public/r/styles/new-york/Sidebar02.json create mode 100644 apps/www/src/registry/default/block/Sidebar02/components/AppSidebar.vue create mode 100644 apps/www/src/registry/default/block/Sidebar02/components/SearchForm.vue create mode 100644 apps/www/src/registry/default/block/Sidebar02/components/VersionSwitcher.vue create mode 100644 apps/www/src/registry/default/block/Sidebar02/page.vue create mode 100644 apps/www/src/registry/new-york/block/Sidebar02/components/AppSidebar.vue create mode 100644 apps/www/src/registry/new-york/block/Sidebar02/components/SearchForm.vue create mode 100644 apps/www/src/registry/new-york/block/Sidebar02/components/VersionSwitcher.vue create mode 100644 apps/www/src/registry/new-york/block/Sidebar02/page.vue diff --git a/apps/www/.vitepress/theme/components/BlockContainer.vue b/apps/www/.vitepress/theme/components/BlockContainer.vue index 4fcf5885..358b2b19 100644 --- a/apps/www/.vitepress/theme/components/BlockContainer.vue +++ b/apps/www/.vitepress/theme/components/BlockContainer.vue @@ -1,31 +1,33 @@