Skip to content

Commit

Permalink
add autoselect to various fields
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed May 4, 2024
1 parent 38e174e commit 09afb41
Show file tree
Hide file tree
Showing 11 changed files with 950 additions and 152 deletions.
2 changes: 1 addition & 1 deletion apps/gnocchi/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"typecheck": "tsc --build tsconfig.json"
},
"dependencies": {
"@a-type/ui": "^0.8.2",
"@a-type/ui": "^0.8.3",
"@a-type/utils": "^1.0.8",
"@biscuits/client": "workspace:*",
"@biscuits/error": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/shopping/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@a-type/ui": "^0.8.2",
"@a-type/ui": "^0.8.3",
"@a-type/utils": "^1.0.8",
"@biscuits/client": "workspace:*",
"@react-spring/web": "^9.7.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/trip-tick/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@a-type/ui": "^0.8.2",
"@a-type/ui": "^0.8.3",
"@a-type/utils": "^1.0.6",
"@biscuits/client": "workspace:*",
"@radix-ui/react-progress": "^1.0.3",
Expand Down
1 change: 1 addition & 0 deletions apps/trip-tick/web/src/components/lists/ListEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function ListEditor({ list }: ListEditorProps) {
className="text-xl w-full"
autoFocus={editName}
onBlur={() => setEditName(false)}
autoSelect
/>
) : (
<Button
Expand Down
1 change: 1 addition & 0 deletions apps/trip-tick/web/src/components/lists/ListItemEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function ListItemEditor({
value={description}
onChange={(v) => item.set('description', v)}
className="flex-1"
autoSelect
/>
<Button size="icon" color="ghostDestructive" onClick={onDelete}>
<div className="i-solar-trash-bin-minimalistic-linear" />
Expand Down
1 change: 1 addition & 0 deletions apps/trip-tick/web/src/components/trips/TripItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ function ChecklistItem({
onChange={onDescriptionChanged}
placeholder="What is it?"
className="flex-1 min-w-50%"
autoSelect
/>
) : (
<label className="font-bold select-none">{description}</label>
Expand Down
1 change: 1 addition & 0 deletions apps/trip-tick/web/src/components/trips/TripView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function TripViewInfo({
className="text-xl w-full"
autoFocus={editName}
onBlur={() => setEditName(false)}
autoSelect
/>
) : (
<Button
Expand Down
2 changes: 1 addition & 1 deletion blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@a-type/ui": "^0.8.2",
"@a-type/ui": "^0.8.3",
"@astrojs/check": "^0.5.10",
"@astrojs/mdx": "^2.3.1",
"@astrojs/rss": "^4.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"vite-plugin-pwa": "0.19.2"
},
"devDependencies": {
"@a-type/ui": "^0.8.2",
"@a-type/ui": "^0.8.3",
"@types/react": "18.2.79",
"@verdant-web/store": "^3.6.2",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 09afb41

Please sign in to comment.