Skip to content

Commit e3497cf

Browse files
committed
fix(tsconfig): simplify config schema
Signed-off-by: aphilibeaux <[email protected]>
1 parent 86ea85d commit e3497cf

File tree

45 files changed

+317
-402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+317
-402
lines changed

.changeset/tricky-laws-wash.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@ultraviolet/illustrations": patch
3+
"@ultraviolet/nextjs": patch
4+
"@ultraviolet/themes": patch
5+
"@ultraviolet/fonts": patch
6+
"@ultraviolet/icons": patch
7+
"@ultraviolet/form": patch
8+
"@ultraviolet/plus": patch
9+
"@ultraviolet/config": patch
10+
"@ultraviolet/ui": patch
11+
---
12+
13+
tsconfig add isolated module

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ next-env.d.ts*
5959
**/playwright/.cache/
6060

6161
#AI
62-
62+
AGENTS.md
6363
WARP.md
6464
CLAUDE.md

.turbo/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"teamid": "team_ultraviolet",
3+
"apiurl": "https://turbopm2juoty-turbo.functions.fnc.fr-par.scw.cloud"
4+
}

AGENTS.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

e2e/tests/componentsWithinModal/render.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ const Render = () => {
2222
/>
2323
<div data-testid="input-value">{firstName}</div>
2424

25-
<Form
26-
errors={mockErrors}
27-
methods={methods}
28-
onSubmit={() => {}}
29-
>
25+
<Form errors={mockErrors} methods={methods} onSubmit={() => {}}>
3026
<Stack gap={1}>
3127
<TextInputField
3228
control={methods.control}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"analyse:deps:ui": "tsx ./utils/scripts/analyse-deps.ts packages/ui/src/components",
3838
"analyse:deps:form": "tsx ./utils/scripts/analyse-deps.ts packages/form/src/components",
3939
"tokens:update": "tsx ./utils/scripts/figma-synchronise-token/index.ts && pnpm run format packages/themes/src/themes/console",
40-
"icons:update": "tsx ./utils/scripts/generate-icons-file.tsx && pnpm run format packages/icons",
40+
"icons:update": "tsx ./utils/scripts/generate-icons-file.ts && pnpm run format packages/icons",
4141
"release": "pnpm build && pnpm changeset publish",
4242
"svg": "svgo --config=./svgo.config.mjs --pretty --multipass",
4343
"svg:all": "pnpm run svg -r -f 'packages/illustrations/src/assets'",
@@ -144,6 +144,7 @@
144144
"cross-env": "10.1.0",
145145
"cz-conventional-changelog": "3.3.0",
146146
"date-fns": "4.1.0",
147+
"esbuild-plugin-browserslist": "2.0.0",
147148
"eslint": "9.39.1",
148149
"eslint-plugin-oxlint": "1.31.0",
149150
"eslint-plugin-storybook": "9.1.16",
@@ -177,7 +178,7 @@
177178
"tsx": "4.21.0",
178179
"turbo": "2.6.1",
179180
"typescript": "5.9.3",
180-
"vite": "8.0.0-beta.2",
181+
"vite": "7.2.6",
181182
"vitest": "4.0.15",
182183
"vitest-canvas-mock": "1.1.3",
183184
"vitest-localstorage-mock": "0.1.2",

packages/fonts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@
3434
"type": "module",
3535
"exports": {
3636
".": {
37+
"style": "./dist/fonts.css",
3738
"require": "./dist/fonts.css",
3839
"import": "./dist/fonts.css",
39-
"style": "./dist/fonts.css",
4040
"default": "./dist/fonts.css"
4141
},
4242
"./fonts.css": {
43+
"style": "./dist/fonts.css",
4344
"require": "./dist/fonts.css",
4445
"import": "./dist/fonts.css",
4546
"default": "./dist/fonts.css"

packages/form/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"@types/react": "19.2.7",
7373
"@types/react-dom": "19.2.3",
7474
"@ultraviolet/config": "workspace:*",
75-
"@ultraviolet/ui": "workspace:*",
7675
"@utils/test": "workspace:*",
7776
"react": "19.2.1",
7877
"react-dom": "19.2.1"

packages/form/src/components/CheckboxGroupField/index.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type ElementProps = {
2828
required?: boolean
2929
}
3030

31-
export const CheckboxGroupField = <
31+
const CheckboxGroupFieldComponent = <
3232
TFieldValues extends FieldValues,
3333
TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
3434
>({
@@ -124,4 +124,13 @@ export const CheckboxGroupField = <
124124
)
125125
}
126126

127-
CheckboxGroupField.Checkbox = CheckboxGroup.Checkbox
127+
type RadioGroupFieldType = typeof CheckboxGroupFieldComponent & {
128+
Checkbox: typeof CheckboxGroup.Checkbox
129+
}
130+
131+
export const CheckboxGroupField: RadioGroupFieldType = Object.assign(
132+
CheckboxGroupFieldComponent,
133+
{
134+
Checkbox: CheckboxGroup.Checkbox,
135+
},
136+
)

packages/form/src/components/RadioGroupField/index.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type RadioGroupFieldProps<
1414
Omit<ComponentProps<typeof RadioGroup>, 'value' | 'onChange' | 'legend'> &
1515
Partial<Pick<ComponentProps<typeof RadioGroup>, 'legend'>>
1616

17-
export const RadioGroupField = <
17+
const RadioGroupFieldComponent = <
1818
TFieldValues extends FieldValues,
1919
TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
2020
>({
@@ -63,4 +63,13 @@ export const RadioGroupField = <
6363
)
6464
}
6565

66-
RadioGroupField.Radio = RadioGroup.Radio
66+
type RadioGroupFieldType = typeof RadioGroupFieldComponent & {
67+
Radio: typeof RadioGroup.Radio
68+
}
69+
70+
export const RadioGroupField: RadioGroupFieldType = Object.assign(
71+
RadioGroupFieldComponent,
72+
{
73+
Radio: RadioGroup.Radio,
74+
},
75+
)

0 commit comments

Comments
 (0)