Skip to content

Commit 572fb58

Browse files
committed
chore: missing REUSE config
1 parent 161859c commit 572fb58

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

REUSE.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ path = [
1414
"**/.gitignore",
1515

1616
# code/ directory licensing
17+
"code/public/**",
1718
"code/.dockerignore",
1819
"code/.prettierignore",
1920
"code/.eslintrc.json",
2021
"code/.tool-versions",
2122
"code/components.json",
2223
"code/jsrepo.json",
24+
"code/justfile",
2325
"code/package*.json",
2426
"code/tsconfig.json",
2527
]

code/components/ui/toggle-group.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
"use client"
1+
// SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
24

3-
import * as React from "react"
4-
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5-
import { type VariantProps } from "class-variance-authority"
5+
"use client";
66

7-
import { cn } from "@/lib/utils"
8-
import { toggleVariants } from "@/components/ui/toggle"
7+
import * as React from "react";
8+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
9+
import { type VariantProps } from "class-variance-authority";
10+
11+
import { cn } from "@/lib/utils";
12+
import { toggleVariants } from "@/components/ui/toggle";
913

1014
const ToggleGroupContext = React.createContext<
1115
VariantProps<typeof toggleVariants>
1216
>({
1317
size: "default",
1418
variant: "default",
15-
})
19+
});
1620

1721
function ToggleGroup({
1822
className,
@@ -37,7 +41,7 @@ function ToggleGroup({
3741
{children}
3842
</ToggleGroupContext.Provider>
3943
</ToggleGroupPrimitive.Root>
40-
)
44+
);
4145
}
4246

4347
function ToggleGroupItem({
@@ -48,7 +52,7 @@ function ToggleGroupItem({
4852
...props
4953
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &
5054
VariantProps<typeof toggleVariants>) {
51-
const context = React.useContext(ToggleGroupContext)
55+
const context = React.useContext(ToggleGroupContext);
5256

5357
return (
5458
<ToggleGroupPrimitive.Item
@@ -67,7 +71,7 @@ function ToggleGroupItem({
6771
>
6872
{children}
6973
</ToggleGroupPrimitive.Item>
70-
)
74+
);
7175
}
7276

73-
export { ToggleGroup, ToggleGroupItem }
77+
export { ToggleGroup, ToggleGroupItem };

code/components/ui/toggle.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
"use client"
1+
// SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
24

3-
import * as React from "react"
4-
import * as TogglePrimitive from "@radix-ui/react-toggle"
5-
import { cva, type VariantProps } from "class-variance-authority"
5+
"use client";
66

7-
import { cn } from "@/lib/utils"
7+
import * as React from "react";
8+
import * as TogglePrimitive from "@radix-ui/react-toggle";
9+
import { cva, type VariantProps } from "class-variance-authority";
10+
11+
import { cn } from "@/lib/utils";
812

913
const toggleVariants = cva(
1014
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
@@ -26,7 +30,7 @@ const toggleVariants = cva(
2630
size: "default",
2731
},
2832
}
29-
)
33+
);
3034

3135
function Toggle({
3236
className,
@@ -41,7 +45,7 @@ function Toggle({
4145
className={cn(toggleVariants({ variant, size, className }))}
4246
{...props}
4347
/>
44-
)
48+
);
4549
}
4650

47-
export { Toggle, toggleVariants }
51+
export { Toggle, toggleVariants };

0 commit comments

Comments
 (0)