Skip to content

Commit 2ebfb57

Browse files
authored
fix(day-picker): remove unused react-day-picker (#1094)
1 parent 11a7be5 commit 2ebfb57

File tree

9 files changed

+1
-195
lines changed

9 files changed

+1
-195
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/date-input.tsx

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

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export { Code } from './code'
44
export { ComboBox } from './combobox'
55
export { ConditionInput } from './condition-input'
66
export { CredentialSelector } from './credential-selector/credential-selector'
7-
export { DateInput } from './date-input'
87
export { DocumentSelector } from './document-selector/document-selector'
98
export { Dropdown } from './dropdown'
109
export { EvalInput } from './eval-input'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
CheckboxList,
2121
Code,
2222
ComboBox,
23-
DateInput,
2423
FileSelectorInput,
2524
FileUpload,
2625
LongInput,
@@ -172,33 +171,6 @@ function TableSyncWrapper({
172171
)
173172
}
174173

175-
function DateInputSyncWrapper({
176-
blockId,
177-
paramId,
178-
value,
179-
onChange,
180-
uiComponent,
181-
disabled,
182-
}: {
183-
blockId: string
184-
paramId: string
185-
value: string
186-
onChange: (value: string) => void
187-
uiComponent: any
188-
disabled: boolean
189-
}) {
190-
return (
191-
<GenericSyncWrapper blockId={blockId} paramId={paramId} value={value} onChange={onChange}>
192-
<DateInput
193-
blockId={blockId}
194-
subBlockId={paramId}
195-
placeholder={uiComponent.placeholder}
196-
disabled={disabled}
197-
/>
198-
</GenericSyncWrapper>
199-
)
200-
}
201-
202174
function TimeInputSyncWrapper({
203175
blockId,
204176
paramId,
@@ -1159,18 +1131,6 @@ export function ToolInput({
11591131
/>
11601132
)
11611133

1162-
case 'date-input':
1163-
return (
1164-
<DateInputSyncWrapper
1165-
blockId={blockId}
1166-
paramId={param.id}
1167-
value={value}
1168-
onChange={onChange}
1169-
uiComponent={uiComponent}
1170-
disabled={disabled}
1171-
/>
1172-
)
1173-
11741134
case 'time-input':
11751135
return (
11761136
<TimeInputSyncWrapper

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
ComboBox,
1212
ConditionInput,
1313
CredentialSelector,
14-
DateInput,
1514
DocumentSelector,
1615
Dropdown,
1716
EvalInput,
@@ -256,17 +255,6 @@ export function SubBlock({
256255
disabled={isDisabled}
257256
/>
258257
)
259-
case 'date-input':
260-
return (
261-
<DateInput
262-
blockId={blockId}
263-
subBlockId={config.id}
264-
placeholder={config.placeholder}
265-
isPreview={isPreview}
266-
previewValue={previewValue}
267-
disabled={isDisabled}
268-
/>
269-
)
270258
case 'time-input':
271259
return (
272260
<TimeInput

apps/sim/blocks/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export type SubBlockType =
3232
| 'checkbox-list' // Multiple selection
3333
| 'condition-input' // Conditional logic
3434
| 'eval-input' // Evaluation input
35-
| 'date-input' // Date input
3635
| 'time-input' // Time input
3736
| 'oauth-input' // OAuth credential selector
3837
| 'webhook-config' // Webhook configuration

apps/sim/components/ui/calendar.tsx

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

apps/sim/components/ui/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export {
2222
BreadcrumbSeparator,
2323
} from './breadcrumb'
2424
export { Button, buttonVariants } from './button'
25-
export { Calendar } from './calendar'
2625
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './card'
2726
export { Checkbox } from './checkbox'
2827
export { CodeBlock } from './code-block'

apps/sim/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
"prismjs": "^1.30.0",
106106
"react": "19.1.0",
107107
"react-colorful": "5.6.1",
108-
"react-day-picker": "8.10.1",
109108
"react-dom": "19.1.0",
110109
"react-google-drive-picker": "^1.2.2",
111110
"react-hook-form": "^7.54.2",

bun.lock

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134
"prismjs": "^1.30.0",
135135
"react": "19.1.0",
136136
"react-colorful": "5.6.1",
137-
"react-day-picker": "8.10.1",
138137
"react-dom": "19.1.0",
139138
"react-google-drive-picker": "^1.2.2",
140139
"react-hook-form": "^7.54.2",
@@ -2688,8 +2687,6 @@
26882687

26892688
"react-colorful": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-1exovf0uGTGyq5mXQT0zgQ80uvj2PCwvF8zY1RN9/vbJVSjSo3fsB/4L3ObbF7u70NduSiK4xu4Y6q1MHoUGEw=="],
26902689

2691-
"react-day-picker": ["[email protected]", "", { "peerDependencies": { "date-fns": "^2.28.0 || ^3.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA=="],
2692-
26932690
"react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.26.0" }, "peerDependencies": { "react": "^19.1.0" } }, "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g=="],
26942691

26952692
"react-email": ["[email protected]", "", { "dependencies": { "@babel/parser": "^7.27.0", "@babel/traverse": "^7.27.0", "chalk": "^5.0.0", "chokidar": "^4.0.3", "commander": "^13.0.0", "debounce": "^2.0.0", "esbuild": "^0.25.0", "glob": "^11.0.0", "jiti": "2.4.2", "log-symbols": "^7.0.0", "mime-types": "^3.0.0", "normalize-path": "^3.0.0", "nypm": "0.6.0", "ora": "^8.0.0", "prompts": "2.4.2", "socket.io": "^4.8.1", "tsconfig-paths": "4.2.0" }, "bin": { "email": "dist/index.js" } }, "sha512-Eqzs/xZnS881oghPO/4CQ1cULyESuUhEjfYboXmYNOokXnJ6QP5GKKJZ6zjkg9SnKXxSrIxSo5PxzCI5jReJMA=="],
@@ -4444,4 +4441,4 @@
44444441

44454442
"lint-staged/listr2/log-update/cli-cursor/restore-cursor/onetime": ["[email protected]", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],
44464443
}
4447-
}
4444+
}

0 commit comments

Comments
 (0)