Skip to content

Commit de7395c

Browse files
authored
Merge pull request #31 from tylerslaton/input-colors
style: update input styles
2 parents 931fc07 + 6417905 commit de7395c

File tree

11 files changed

+23
-4
lines changed

11 files changed

+23
-4
lines changed

components/build/modalTextArea.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const ModalTextArea = (props: ModalTextAreaProps) => {
3333
>
3434
<GrExpand className="text-zinc-500"/>
3535
</Button>
36-
<Textarea
36+
<Textarea
37+
color="primary"
3738
value={props.defaultValue}
3839
onChange={(e) => props.setText(e.target.value)}
3940
placeholder={props.placeholder}

components/build/tool/config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const Custom = () => {
7070
</Switch>
7171

7272
<Textarea
73+
color="primary"
7374
fullWidth
7475
label="Description"
7576
placeholder="Describe your tool..."

components/edit/configure.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ const Configure: React.FC<ConfigureProps> = ({file, className, custom }) => {
7676
</div>
7777
<div className="px-2 flex flex-col space-y-4 mb-6">
7878
<Input
79+
color="primary"
7980
variant="bordered"
8081
label="Name"
8182
placeholder="Give your chat bot a name..."
8283
defaultValue={root.name}
8384
onChange={(e) => setRoot({...root, name: e.target.value})}
8485
/>
8586
<Textarea
87+
color="primary"
8688
fullWidth
8789
variant="bordered"
8890
label="Description"
@@ -91,6 +93,7 @@ const Configure: React.FC<ConfigureProps> = ({file, className, custom }) => {
9193
onChange={(e) => setRoot({...root, description: e.target.value})}
9294
/>
9395
<Textarea
96+
color="primary"
9497
fullWidth
9598
variant="bordered"
9699
label="Instructions"

components/edit/configure/customTool.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,15 @@ const CustomTool: React.FC<ConfigureProps> = ({file, className, models, tool })
144144
</div>
145145
<div className="px-2 flex flex-col space-y-4 mb-6">
146146
<Input
147+
color="primary"
147148
variant="bordered"
148149
label="Name"
149150
placeholder="Give your chat bot a name"
150151
value={name}
151152
onChange={(e) => setName(e.target.value)}
152153
/>
153154
<Textarea
155+
color="primary"
154156
fullWidth
155157
variant="bordered"
156158
label="Description"
@@ -159,6 +161,7 @@ const CustomTool: React.FC<ConfigureProps> = ({file, className, models, tool })
159161
onChange={(e) => setCustomTool({...customTool, description: e.target.value})}
160162
/>
161163
<Textarea
164+
color="primary"
162165
fullWidth
163166
variant="bordered"
164167
label="Instructions"

components/edit/configure/imports.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const Imports: React.FC<ExternalProps> = ({tools, setTools, label, className, de
8282
)}
8383
<div className="flex w-full h-full space-x-2">
8484
<Input
85+
color="primary"
8586
size="sm"
8687
variant="bordered"
8788
id="toolInput"

components/edit/configure/models.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const Models: React.FC<ModelsProps> = ({ options, onChange, defaultValue }) => {
7171
return (
7272
<div className="relative">
7373
<Input
74+
color='primary'
7475
label="Model"
7576
placeholder="Select a non-default model..."
7677
type="text"
@@ -94,14 +95,14 @@ const Models: React.FC<ModelsProps> = ({ options, onChange, defaultValue }) => {
9495
/>
9596
)}
9697
{showDropdown && filteredOptions.length > 0 && (
97-
<div className="absolute top-full left-0 z-50 max-h-80 overflow-y-auto rounded-xl bg-white border w-full shadow-2xl py-2">
98+
<div className="absolute top-full left-0 z-50 max-h-80 overflow-y-auto rounded-xl bg-white dark:bg-zinc-900 border-2 border-primary w-full shadow-2xl py-2">
9899
{filteredOptions.map((option, index) => (
99100
<h1
100101
aria-label={option}
101102
key={index}
102103
role="button"
103104
onMouseDown={() => handleOptionSelect(option)}
104-
className={`cursor-pointer p-2 mx-2 my-1 hover:bg-gray-200 rounded-xl ${option === selectedOption ? 'bg-gray-200' : ''}`}
105+
className={`cursor-pointer text-sm p-2 mx-2 my-1 hover:bg-gray-200 dark:hover:bg-zinc-600 rounded-xl ${option === selectedOption ? 'bg-gray-300 dark:bg-zinc-700' : ''}`}
105106
>
106107
{option}
107108
</h1>

components/edit/configure/params.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const Imports: React.FC<ExternalProps> = ({params, setParams, className, descrip
5353
{params && Object.keys(params).map((param) => (
5454
<div key={param} className="flex space-x-2 mt-2">
5555
<Input
56+
color="primary"
5657
size="sm"
5758
placeholder="Name..."
5859
className="w-1/3"
@@ -67,6 +68,7 @@ const Imports: React.FC<ExternalProps> = ({params, setParams, className, descrip
6768
}}
6869
/>
6970
<Input
71+
color="primary"
7072
size="sm"
7173
placeholder="Description..."
7274
variant="bordered"
@@ -92,6 +94,7 @@ const Imports: React.FC<ExternalProps> = ({params, setParams, className, descrip
9294
))}
9395
<div className="flex space-x-2 mt-2">
9496
<Input
97+
color="primary"
9598
size="sm"
9699
placeholder="Name..."
97100
className="w-1/3"
@@ -103,6 +106,7 @@ const Imports: React.FC<ExternalProps> = ({params, setParams, className, descrip
103106
onKeyDown={handleKeyDown}
104107
/>
105108
<Input
109+
color="primary"
106110
size="sm"
107111
placeholder="Description..."
108112
variant="bordered"

components/edit/new.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const NewForm: React.FC<NewFormProps> = ({className, setFile}) => {
2525
<form className={`flex flex-col gap-4 ${className}`} onSubmit={handleSubmit}>
2626
<h1 className="text-lg">Create a new chat bot</h1>
2727
<Input
28+
color="primary"
2829
label="Filename"
2930
type="text"
3031
variant="bordered"
@@ -35,13 +36,15 @@ const NewForm: React.FC<NewFormProps> = ({className, setFile}) => {
3536
onChange={(e) => setFilename(e.target.value)}
3637
/>
3738
<Input
39+
color="primary"
3840
label="Chat Bot Name"
3941
variant="bordered"
4042
type="text"
4143
placeholder="Name for the chat bot"
4244
onChange={(e) => setName(e.target.value)}
4345
/>
4446
<Textarea
47+
color="primary"
4548
label="Instructions"
4649
variant="bordered"
4750
type="text"

components/script/chatBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const ChatBar = ({
7171
</Tooltip>
7272
<Upload disabled={disabled} onRestart={onRestart}/>
7373
<Textarea
74+
color="primary"
7475
isDisabled={disabled}
7576
id="chatInput"
7677
autoComplete="off"
@@ -79,7 +80,6 @@ const ChatBar = ({
7980
radius="full"
8081
minRows={1}
8182
variant="bordered"
82-
color="primary"
8383
onChange={(e) => setInputValue(e.target.value)}
8484
onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => {
8585
if (event.key === "Enter" && !event.shiftKey) {

components/script/chatBar/upload/workspace.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const Workspace = ({onRestart}: WorkspaceProps) => {
3333
return (
3434
<div className="flex w-full space-x-4">
3535
<Input
36+
color="primary"
3637
variant="bordered"
3738
placeholder="Set your workspace folder..."
3839
label="Workspace folder"

0 commit comments

Comments
 (0)