Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
84b4274
feat: setup tanstack form
edwintantawi Jan 20, 2026
c7f49ca
Merge branch 'dev' of github.com:devsantara/kit into feat/form
edwintantawi Jan 22, 2026
ca14dc3
Merge branch 'dev' of github.com:devsantara/kit into feat/form
edwintantawi Jan 22, 2026
6366fc0
fix(ui): invalid switch disable selector
edwintantawi Jan 22, 2026
3cd2900
feat(form): add base composition form and field components
edwintantawi Jan 22, 2026
59d0151
style(form): add prefix type
edwintantawi Jan 22, 2026
45de82f
feat(form): add composition input field components
edwintantawi Jan 22, 2026
ce0043c
refactor(form): variant is required for the item
edwintantawi Jan 22, 2026
42f77d3
fix(field): reduce description layout shift
edwintantawi Jan 23, 2026
9bfb9eb
fix(form): error can be in object shape on validation
edwintantawi Jan 23, 2026
011a050
style: use import react namespace
edwintantawi Jan 23, 2026
c56ccfa
fix(field): separator content background not correct in card
edwintantawi Jan 23, 2026
d5968e5
feat(form): add other field components
edwintantawi Jan 23, 2026
96024e7
fix(form): error field form is conflict with internal api
edwintantawi Jan 23, 2026
cf3dbd2
refactor(field): use the useField hook instead of the context directly
edwintantawi Jan 23, 2026
30d720c
feat(form): better error with form utils and message i18n
edwintantawi Jan 23, 2026
63bd699
fix(ui): select missing dark disabled style
edwintantawi Jan 23, 2026
e60942e
feat(form): missing select options disabled props
edwintantawi Jan 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"import"
],
"rules": {
// Correctness
"react/no-children-prop": ["off"],

// Perf
"no-await-in-loop": "error",
"no-useless-call": "error",
Expand Down
6 changes: 5 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"app_name": "Devsantara Kit",
"app_description": "The blueprint for your next big idea"
"app_description": "The blueprint for your next big idea",

"common_error_something_went_wrong": "Something went wrong",
"common_error_form_validation_title": "There is something wrong with the form",
"common_error_form_validation_description": "Please review the form and correct them to continue."
}
6 changes: 5 additions & 1 deletion messages/id.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"app_name": "Devsantara Kit",
"app_description": "Rancangan dasar untuk ide besar kamu berikutnya"
"app_description": "Rancangan dasar untuk ide besar kamu berikutnya",

"common_error_something_went_wrong": "Terjadi kesalahan",
"common_error_form_validation_title": "Ada kesalahan pada formulir",
"common_error_form_validation_description": "Silakan periksa kembali formulir dan perbaiki untuk melanjutkan."
}
6 changes: 5 additions & 1 deletion messages/zh-CN.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"app_name": "Devsantara 工具包",
"app_description": "您下一个伟大构想的基石计划"
"app_description": "您下一个伟大构想的基石计划",

"common_error_something_went_wrong": "出现了一些问题",
"common_error_form_validation_title": "表单存在问题",
"common_error_form_validation_description": "请检查表单并更正后继续。"
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"@posthog/react": "^1.5.2",
"@t3-oss/env-core": "^0.13.10",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/react-form": "^1.27.7",
"@tanstack/react-form-devtools": "^0.2.12",
"@tanstack/react-form-start": "^1.27.7",
"@tanstack/react-router": "^1.144.0",
"@tanstack/react-start": "^1.145.5",
"class-variance-authority": "^0.7.1",
Expand Down
153 changes: 153 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/devtools/form-devtools.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { TanStackDevtoolsReactPlugin } from '@tanstack/react-devtools';
import { FormDevtoolsPanel } from '@tanstack/react-form-devtools';

/**
* Currently this cause error during dependency optimization when using Cloudflare.
* @see {@link https://github.com/TanStack/devtools/issues/91}
* @see {@link https://github.com/TanStack/devtools/issues/187}
* @see {@link https://github.com/TanStack/devtools/issues/289}
*/
export const tanstackFormDevtools: TanStackDevtoolsReactPlugin = {
name: 'TanStack Form',
render: <FormDevtoolsPanel />,
};
1 change: 1 addition & 0 deletions src/devtools/router-devtools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools';
export const tanstackRouterDevtools: TanStackDevtoolsReactPlugin = {
name: 'TanStack Router',
render: <TanStackRouterDevtoolsPanel />,
defaultOpen: true,
};
Loading