From 2b6dfd1fbbcaa5fae96b170bf6d66a4cf8d7553f Mon Sep 17 00:00:00 2001 From: Raed Bahri Date: Tue, 5 Mar 2024 08:56:43 +0100 Subject: [PATCH 1/6] fix: change to css logical props --- .../default/example/ButtonLoadingDemo.vue | 2 +- .../default/example/ButtonWithIconDemo.vue | 2 +- .../lib/registry/default/example/CardChat.vue | 6 +- .../lib/registry/default/example/CardDemo.vue | 2 +- .../default/example/Cards/DataTable.vue | 10 +-- .../default/example/CarouselSpacing.vue | 4 +- .../registry/default/example/ComboboxDemo.vue | 4 +- .../default/example/ComboboxDropdownMenu.vue | 10 +-- .../registry/default/example/ComboboxForm.vue | 4 +- .../default/example/ComboboxPopover.vue | 6 +- .../registry/default/example/CommandDemo.vue | 12 ++-- .../example/DataTableColumnPinningDemo.vue | 11 ++-- .../default/example/DataTableDemo.vue | 6 +- .../default/example/DatePickerDemo.vue | 2 +- .../default/example/DatePickerWithPresets.vue | 2 +- .../default/example/DatePickerWithRange.vue | 2 +- .../default/example/DateTimePickerDemo.vue | 2 +- .../registry/default/example/DrawerDialog.vue | 4 +- .../default/example/DropdownMenuDemo.vue | 28 ++++---- .../default/example/HoverCardDemo.vue | 2 +- .../default/example/InputWithIcon.vue | 2 +- .../default/example/RangePickerWithSlot.vue | 2 +- .../example/ToggleItalicWithTextDemo.vue | 2 +- .../default/example/TypographyBlockquote.vue | 2 +- .../default/example/TypographyDemo.vue | 4 +- .../default/example/TypographyList.vue | 2 +- .../ui/alert-dialog/AlertDialogContent.vue | 2 +- .../lib/registry/default/ui/alert/index.ts | 2 +- .../registry/default/ui/calendar/Calendar.vue | 64 +++++++++---------- .../default/ui/carousel/CarouselContent.vue | 2 +- .../default/ui/carousel/CarouselItem.vue | 2 +- .../default/ui/carousel/CarouselNext.vue | 2 +- .../default/ui/carousel/CarouselPrevious.vue | 2 +- .../default/ui/command/CommandInput.vue | 2 +- .../default/ui/command/CommandShortcut.vue | 2 +- .../context-menu/ContextMenuCheckboxItem.vue | 4 +- .../ui/context-menu/ContextMenuItem.vue | 4 +- .../ui/context-menu/ContextMenuLabel.vue | 4 +- .../ui/context-menu/ContextMenuRadioItem.vue | 4 +- .../ui/context-menu/ContextMenuShortcut.vue | 2 +- .../ui/context-menu/ContextMenuSubTrigger.vue | 6 +- .../default/ui/dialog/DialogContent.vue | 4 +- .../default/ui/dialog/DialogScrollContent.vue | 2 +- .../DropdownMenuCheckboxItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuLabel.vue | 4 +- .../dropdown-menu/DropdownMenuRadioItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuShortcut.vue | 2 +- .../dropdown-menu/DropdownMenuSubTrigger.vue | 2 +- .../ui/menubar/MenubarCheckboxItem.vue | 4 +- .../default/ui/menubar/MenubarItem.vue | 4 +- .../default/ui/menubar/MenubarLabel.vue | 4 +- .../default/ui/menubar/MenubarRadioItem.vue | 4 +- .../default/ui/menubar/MenubarShortcut.vue | 2 +- .../default/ui/menubar/MenubarSubTrigger.vue | 6 +- .../navigation-menu/NavigationMenuTrigger.vue | 2 +- .../NavigationMenuViewport.vue | 2 +- .../registry/default/ui/select/SelectItem.vue | 4 +- .../default/ui/select/SelectLabel.vue | 2 +- .../default/ui/sheet/SheetContent.vue | 4 +- .../lib/registry/default/ui/sheet/index.ts | 4 +- .../registry/default/ui/table/TableCell.vue | 2 +- .../registry/default/ui/table/TableHead.vue | 2 +- .../ui/tags-input/TagsInputItemDelete.vue | 2 +- .../registry/default/ui/toast/ToastClose.vue | 2 +- .../default/ui/toast/ToastViewport.vue | 2 +- .../lib/registry/default/ui/toast/index.ts | 4 +- .../new-york/example/ButtonLoadingDemo.vue | 2 +- .../new-york/example/ButtonWithIconDemo.vue | 2 +- .../registry/new-york/example/CardChat.vue | 6 +- .../registry/new-york/example/CardDemo.vue | 2 +- .../new-york/example/Cards/DataTable.vue | 10 +-- .../new-york/example/CarouselSpacing.vue | 4 +- .../new-york/example/ComboboxDemo.vue | 4 +- .../new-york/example/ComboboxDropdownMenu.vue | 2 +- .../new-york/example/ComboboxForm.vue | 4 +- .../registry/new-york/example/CommandDemo.vue | 12 ++-- .../example/DataTableColumnPinningDemo.vue | 11 ++-- .../new-york/example/DataTableDemo.vue | 6 +- .../new-york/example/DatePickerDemo.vue | 2 +- .../example/DatePickerWithPresets.vue | 2 +- .../new-york/example/DatePickerWithRange.vue | 2 +- .../new-york/example/DateTimePickerDemo.vue | 2 +- .../new-york/example/DrawerDialog.vue | 4 +- .../new-york/example/HoverCardDemo.vue | 2 +- .../new-york/example/InputWithIcon.vue | 2 +- .../new-york/example/RangePickerWithSlot.vue | 2 +- .../example/ToggleItalicWithTextDemo.vue | 2 +- .../new-york/example/TypographyBlockquote.vue | 2 +- .../new-york/example/TypographyDemo.vue | 4 +- .../new-york/example/TypographyList.vue | 2 +- .../ui/alert-dialog/AlertDialogContent.vue | 2 +- .../lib/registry/new-york/ui/alert/index.ts | 2 +- .../new-york/ui/calendar/Calendar.vue | 64 +++++++++---------- .../new-york/ui/carousel/CarouselContent.vue | 2 +- .../new-york/ui/carousel/CarouselItem.vue | 2 +- .../new-york/ui/carousel/CarouselNext.vue | 2 +- .../new-york/ui/carousel/CarouselPrevious.vue | 2 +- .../new-york/ui/command/CommandInput.vue | 2 +- .../new-york/ui/command/CommandShortcut.vue | 2 +- .../context-menu/ContextMenuCheckboxItem.vue | 4 +- .../ui/context-menu/ContextMenuItem.vue | 4 +- .../ui/context-menu/ContextMenuLabel.vue | 4 +- .../ui/context-menu/ContextMenuRadioItem.vue | 4 +- .../ui/context-menu/ContextMenuShortcut.vue | 2 +- .../ui/context-menu/ContextMenuSubTrigger.vue | 6 +- .../new-york/ui/dialog/DialogContent.vue | 4 +- .../ui/dialog/DialogScrollContent.vue | 3 +- .../DropdownMenuCheckboxItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuLabel.vue | 4 +- .../dropdown-menu/DropdownMenuRadioItem.vue | 4 +- .../ui/dropdown-menu/DropdownMenuShortcut.vue | 2 +- .../dropdown-menu/DropdownMenuSubTrigger.vue | 2 +- .../ui/menubar/MenubarCheckboxItem.vue | 4 +- .../new-york/ui/menubar/MenubarItem.vue | 4 +- .../new-york/ui/menubar/MenubarLabel.vue | 4 +- .../new-york/ui/menubar/MenubarRadioItem.vue | 4 +- .../new-york/ui/menubar/MenubarShortcut.vue | 2 +- .../new-york/ui/menubar/MenubarSubTrigger.vue | 6 +- .../navigation-menu/NavigationMenuTrigger.vue | 2 +- .../NavigationMenuViewport.vue | 2 +- .../new-york/ui/select/SelectItem.vue | 4 +- .../new-york/ui/sheet/SheetContent.vue | 4 +- .../lib/registry/new-york/ui/sheet/index.ts | 4 +- .../registry/new-york/ui/table/TableCell.vue | 2 +- .../registry/new-york/ui/table/TableHead.vue | 2 +- .../ui/tags-input/TagsInputItemDelete.vue | 2 +- .../registry/new-york/ui/toast/ToastClose.vue | 2 +- .../new-york/ui/toast/ToastViewport.vue | 2 +- .../lib/registry/new-york/ui/toast/index.ts | 4 +- 131 files changed, 296 insertions(+), 303 deletions(-) diff --git a/apps/www/src/lib/registry/default/example/ButtonLoadingDemo.vue b/apps/www/src/lib/registry/default/example/ButtonLoadingDemo.vue index 221e1403..6207909c 100644 --- a/apps/www/src/lib/registry/default/example/ButtonLoadingDemo.vue +++ b/apps/www/src/lib/registry/default/example/ButtonLoadingDemo.vue @@ -5,7 +5,7 @@ import { Button } from '@/lib/registry/default/ui/button' diff --git a/apps/www/src/lib/registry/default/example/ButtonWithIconDemo.vue b/apps/www/src/lib/registry/default/example/ButtonWithIconDemo.vue index 801e4ebe..9ace85ba 100644 --- a/apps/www/src/lib/registry/default/example/ButtonWithIconDemo.vue +++ b/apps/www/src/lib/registry/default/example/ButtonWithIconDemo.vue @@ -5,6 +5,6 @@ import { Button } from '@/lib/registry/default/ui/button' diff --git a/apps/www/src/lib/registry/default/example/CardChat.vue b/apps/www/src/lib/registry/default/example/CardChat.vue index 66089f4e..d80997ea 100644 --- a/apps/www/src/lib/registry/default/example/CardChat.vue +++ b/apps/www/src/lib/registry/default/example/CardChat.vue @@ -105,7 +105,7 @@ const selectedUsers = ref([]) :key="index" :class="cn( 'flex w-max max-w-[75%] flex-col gap-2 rounded-lg px-3 py-2 text-sm', - message.role === 'user' ? 'ml-auto bg-primary text-primary-foreground' : 'bg-muted', + message.role === 'user' ? 'ms-auto bg-primary text-primary-foreground' : 'bg-muted', )" > {{ message.content }} @@ -168,7 +168,7 @@ const selectedUsers = ref([]) {{ user.name[0] }} -
+

{{ user.name }}

@@ -176,7 +176,7 @@ const selectedUsers = ref([]) {{ user.email }}

- + diff --git a/apps/www/src/lib/registry/default/example/CardDemo.vue b/apps/www/src/lib/registry/default/example/CardDemo.vue index 81e6eff7..7b6b4d3a 100644 --- a/apps/www/src/lib/registry/default/example/CardDemo.vue +++ b/apps/www/src/lib/registry/default/example/CardDemo.vue @@ -67,7 +67,7 @@ const notifications = [ diff --git a/apps/www/src/lib/registry/default/example/Cards/DataTable.vue b/apps/www/src/lib/registry/default/example/Cards/DataTable.vue index e208a04a..33b3215a 100644 --- a/apps/www/src/lib/registry/default/example/Cards/DataTable.vue +++ b/apps/www/src/lib/registry/default/example/Cards/DataTable.vue @@ -104,7 +104,7 @@ const columns: ColumnDef[] = [ return h(Button, { variant: 'ghost', onClick: () => column.toggleSorting(column.getIsSorted() === 'asc'), - }, ['Email', h(ChevronsUpDown, { class: 'ml-2 h-4 w-4' })]) + }, ['Email', h(ChevronsUpDown, { class: 'ms-2 h-4 w-4' })]) }, cell: ({ row }) => h('div', { class: 'lowercase' }, row.getValue('email')), }, @@ -178,8 +178,8 @@ const table = useVueTable({ /> - @@ -201,7 +201,7 @@ const table = useVueTable({ - + @@ -213,7 +213,7 @@ const table = useVueTable({ :key="row.id" :data-state="row.getIsSelected() && 'selected'" > - + diff --git a/apps/www/src/lib/registry/default/example/CarouselSpacing.vue b/apps/www/src/lib/registry/default/example/CarouselSpacing.vue index 04bc1024..650a4844 100644 --- a/apps/www/src/lib/registry/default/example/CarouselSpacing.vue +++ b/apps/www/src/lib/registry/default/example/CarouselSpacing.vue @@ -10,8 +10,8 @@ import { Card, CardContent } from '@/lib/registry/default/ui/card' align: 'start', }" > - - + +
diff --git a/apps/www/src/lib/registry/default/example/ComboboxDemo.vue b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue index da21cf4e..33d35245 100644 --- a/apps/www/src/lib/registry/default/example/ComboboxDemo.vue +++ b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue @@ -44,7 +44,7 @@ const value = ref('') {{ value ? frameworks.find((framework) => framework.value === value)?.label : "Select framework..." }} - + @@ -67,7 +67,7 @@ const value = ref('') {{ framework.label }} diff --git a/apps/www/src/lib/registry/default/example/ComboboxDropdownMenu.vue b/apps/www/src/lib/registry/default/example/ComboboxDropdownMenu.vue index a274c0c5..671cc98d 100644 --- a/apps/www/src/lib/registry/default/example/ComboboxDropdownMenu.vue +++ b/apps/www/src/lib/registry/default/example/ComboboxDropdownMenu.vue @@ -42,7 +42,7 @@ const open = ref(false)