feat(checkout): searchable address fields and Rajaongkir integration

Admin SPA:
- Changed billing/shipping state from Select to SearchableSelect

Customer SPA:
- Added cmdk package for command palette
- Created popover, command, and searchable-select UI components
- Added searchable country and state fields to checkout
- Fetches countries/states from /countries API
- Auto-clears state when country changes

Backend:
- Added generic woonoow/shipping/before_calculate hook
- Removed hardcoded Rajaongkir session handling

Documentation:
- Updated RAJAONGKIR_INTEGRATION.md with:
  - Complete searchable destination selector plugin code
  - JavaScript implementation
  - React component version
  - REST API endpoint for destination search
This commit is contained in:
Dwindi Ramadhana
2026-01-08 11:19:37 +07:00
parent 786e01c8f6
commit 2939ebfe6b
7 changed files with 730 additions and 127 deletions

View File

@@ -27,6 +27,7 @@
"@tanstack/react-query": "^5.90.5",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"lucide-react": "^0.547.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",