Skip to content

Commit bd36d41

Browse files
committed
Update translation file creation date and add new dependencies in pnpm-lock.yaml
- Updated POT-Creation-Date in codeideal-open-fields.pot to 2026-02-24T12:22:57+00:00. - Added '@wordpress/i18n' dependency with version 6.13.0. - Introduced several '@Tannin' packages with their respective versions. - Updated dependencies for '@wordpress/hooks' and '@wordpress/i18n'. - Added new packages including 'gettext-parser', 'encoding', and 'memize' with their dependencies.
1 parent 38a7f71 commit bd36d41

24 files changed

+209
-115
lines changed

admin/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function MainLayout({ initialTab }: MainLayoutProps) {
111111
];
112112

113113
return (
114-
<div className="openfields-main-layout -ml-5 -mr-2.5">
114+
<div className="openfields-main-layout -ms-5 -me-2.5">
115115
{/* Header */}
116116
<header className="bg-white border-b border-gray-200 px-4 sm:px-6 py-4">
117117
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">

admin/src/components/ui/alert-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const AlertDialogHeader = ({
4949
}: React.HTMLAttributes<HTMLDivElement>) => (
5050
<div
5151
className={cn(
52-
"flex flex-col space-y-2 text-center sm:text-left",
52+
"flex flex-col space-y-2 text-center sm:text-start",
5353
className
5454
)}
5555
{...props}

admin/src/components/ui/async-combobox.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ export function AsyncCombobox({
179179
return (
180180
<div className="flex flex-wrap gap-1">
181181
{selectedValues.map(val => (
182-
<Badge key={val} variant="secondary" className="pr-1">
182+
<Badge key={val} variant="secondary" className="pe-1">
183183
{getLabel(val)}
184184
<button
185185
type="button"
186-
className="ml-1 rounded-full hover:bg-muted"
186+
className="ms-1 rounded-full hover:bg-muted"
187187
onClick={(e) => handleRemove(e, val)}
188188
>
189189
<X className="h-3 w-3" />
@@ -212,7 +212,7 @@ export function AsyncCombobox({
212212
)}
213213
>
214214
{renderTriggerContent()}
215-
<div className="flex items-center gap-1 shrink-0 ml-2">
215+
<div className="flex items-center gap-1 shrink-0 ms-2">
216216
{clearable && selectedValues.length > 0 && (
217217
<X
218218
className="h-4 w-4 opacity-50 hover:opacity-100 cursor-pointer"
@@ -235,7 +235,7 @@ export function AsyncCombobox({
235235
<CommandList>
236236
{loading && (
237237
<div className="flex items-center justify-center py-6 text-sm text-muted-foreground">
238-
<Loader2 className="h-4 w-4 animate-spin mr-2" />
238+
<Loader2 className="h-4 w-4 animate-spin me-2" />
239239
{loadingText}
240240
</div>
241241
)}
@@ -256,13 +256,13 @@ export function AsyncCombobox({
256256
>
257257
<Check
258258
className={cn(
259-
"mr-2 h-4 w-4",
259+
"me-2 h-4 w-4",
260260
selectedValues.includes(option.value)
261261
? "opacity-100"
262262
: "opacity-0"
263263
)}
264264
/>
265-
{option.icon && <span className="mr-2">{option.icon}</span>}
265+
{option.icon && <span className="me-2">{option.icon}</span>}
266266
<div className="flex flex-col">
267267
<span>{option.label}</span>
268268
{option.description && (

admin/src/components/ui/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const CommandInput = React.forwardRef<
3838
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
3939
>(({ className, ...props }, ref) => (
4040
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
41-
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
41+
<Search className="me-2 h-4 w-4 shrink-0 opacity-50" />
4242
<CommandPrimitive.Input
4343
ref={ref}
4444
className={cn(

admin/src/components/ui/dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DialogContent = React.forwardRef<
4444
{...props}
4545
>
4646
{children}
47-
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
47+
<DialogPrimitive.Close className="absolute end-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
4848
<X className="h-4 w-4" />
4949
<span className="sr-only">Close</span>
5050
</DialogPrimitive.Close>
@@ -59,7 +59,7 @@ const DialogHeader = ({
5959
}: React.HTMLAttributes<HTMLDivElement>) => (
6060
<div
6161
className={cn(
62-
"flex flex-col space-y-1.5 text-center sm:text-left",
62+
"flex flex-col space-y-1.5 text-center sm:text-start",
6363
className
6464
)}
6565
{...props}

admin/src/components/ui/drawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const DrawerHeader = ({
5858
...props
5959
}: React.HTMLAttributes<HTMLDivElement>) => (
6060
<div
61-
className={cn("grid gap-1.5 p-4 text-center sm:text-left", className)}
61+
className={cn("grid gap-1.5 p-4 text-center sm:text-start", className)}
6262
{...props}
6363
/>
6464
)

admin/src/components/ui/scroll-area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ScrollBar = React.forwardRef<
3131
className={cn(
3232
"flex touch-none select-none transition-colors",
3333
orientation === "vertical" &&
34-
"h-full w-2.5 border-l border-l-transparent p-[1px]",
34+
"h-full w-2.5 border-s border-s-transparent p-[1px]",
3535
orientation === "horizontal" &&
3636
"h-2.5 flex-col border-t border-t-transparent p-[1px]",
3737
className

admin/src/components/ui/select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const SelectLabel = React.forwardRef<
103103
>(({ className, ...props }, ref) => (
104104
<SelectPrimitive.Label
105105
ref={ref}
106-
className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}
106+
className={cn("py-1.5 ps-8 pe-2 text-sm font-semibold", className)}
107107
{...props}
108108
/>
109109
))
@@ -116,12 +116,12 @@ const SelectItem = React.forwardRef<
116116
<SelectPrimitive.Item
117117
ref={ref}
118118
className={cn(
119-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
119+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
120120
className
121121
)}
122122
{...props}
123123
>
124-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
124+
<span className="absolute start-2 flex h-3.5 w-3.5 items-center justify-center">
125125
<SelectPrimitive.ItemIndicator>
126126
<Check className="h-4 w-4" />
127127
</SelectPrimitive.ItemIndicator>

admin/src/components/ui/toast.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ToastViewport = React.forwardRef<
1414
<ToastPrimitives.Viewport
1515
ref={ref}
1616
className={cn(
17-
'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',
17+
'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:end-0 sm:top-auto sm:flex-col md:max-w-[420px]',
1818
className
1919
)}
2020
{...props}
@@ -23,7 +23,7 @@ const ToastViewport = React.forwardRef<
2323
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
2424

2525
const toastVariants = cva(
26-
'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
26+
'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pe-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
2727
{
2828
variants: {
2929
variant: {
@@ -75,7 +75,7 @@ const ToastClose = React.forwardRef<
7575
<ToastPrimitives.Close
7676
ref={ref}
7777
className={cn(
78-
'absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
78+
'absolute end-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
7979
className
8080
)}
8181
toast-close=""

admin/src/fields/SelectFieldSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function SelectFieldSettings({ field, onSettingsChange }: FieldSettingsPr
150150
onClick={handleAddChoice}
151151
className="w-full mt-2"
152152
>
153-
<Plus className="h-3 w-3 mr-1" />{__('Add Choice', 'codeideal-open-fields')}</Button>
153+
<Plus className="h-3 w-3 me-1" />{__('Add Choice', 'codeideal-open-fields')}</Button>
154154
</div>
155155
</div>
156156

0 commit comments

Comments
 (0)