Skip to content

Commit b93a036

Browse files
committed
feat(search-component): update class names to include 'trieve-mode-' prefix for better styling consistency
1 parent 13d5b06 commit b93a036

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

clients/search-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"import": "./dist/vanilla/index.js"
2020
}
2121
},
22-
"version": "0.4.58",
22+
"version": "0.4.59",
2323
"license": "MIT",
2424
"homepage": "https://github.com/devflowinc/trieve/tree/main/clients/search-component",
2525
"scripts": {

clients/search-component/src/TrieveModal/Chat/ChatInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const ChatInput = ({
8686
<input
8787
ref={chatInput}
8888
value={currentQuestion}
89-
className={`${props.inline ? "inline-input " : ""}${mode} tv-rounded-md tv-mb-0 tv-max-w-full`}
89+
className={`${props.inline ? "inline-input " : ""}trieve-mode-${mode} tv-rounded-md tv-mb-0 tv-max-w-full`}
9090
onChange={(e) => setCurrentQuestion(e.target.value)}
9191
disabled={props.previewTopicId != undefined}
9292
placeholder={

clients/search-component/src/TrieveModal/ModeSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const ChatModeSwitch = () => {
1010
return (
1111
<div
1212
className={cn(
13-
`mode-switch-wrapper tv-flex tv-items-center tv-px-2 tv-gap-2 tv-justify-end tv-mt-2 tv-font-medium ${mode}${
13+
`mode-switch-wrapper tv-flex tv-items-center tv-px-2 tv-gap-2 tv-justify-end tv-mt-2 tv-font-medium trieve-mode-${mode}${
1414
query ? " has-query" : ""
1515
}${props.inline ? "" : " mode-switch-popup"}${" " + props.type}`.trim(),
1616
)}

clients/search-component/src/TrieveModal/Search/SearchInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const SearchInput = () => {
2121
} = useModalState();
2222

2323
return (
24-
<div className={`input-wrapper ${props.type} tv-pt-2 ${mode}`}>
24+
<div className={`input-wrapper ${props.type} tv-pt-2 trieve-mode-${mode}`}>
2525
<div className="input-flex group-focus:tv-border has-[:focus]:tv-border has-[:focus]:tv-border-[var(--tv-prop-brand-color)] sm:tv-text-sm sm:tv-leading-6 tv-py-1.5 tv-px-4 tv-items-center tv-flex tv-justify-between tv-w-full tv-rounded-lg tv-border-[1px]">
2626
<input
2727
ref={inputRef}

clients/search-component/src/TrieveModal/index.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ body {
3737
padding: 0;
3838
font-size: inherit;
3939
display: inherit;
40+
border: none;
4041

4142
&.mic-button-container,
4243
&.image-button-container,
@@ -128,8 +129,8 @@ body {
128129
@apply tv-top-2.5 tv-z-30;
129130
}
130131

131-
&.docs.chat,
132-
&.pdf.chat {
132+
&.docs.trieve-mode-chat,
133+
&.pdf.trieve-mode-chat {
133134
@apply tv-top-0;
134135
}
135136

@@ -677,14 +678,14 @@ body {
677678
color: var(--tv-zinc-400);
678679
}
679680

680-
&.chat {
681+
&.trieve-mode-chat {
681682
.back-icon {
682683
@apply tv-top-[0.825rem] tv-left-5 tv-absolute tv-z-20;
683684
}
684685
}
685686
}
686687

687-
input.chat {
688+
input.trieve-mode-chat {
688689
@apply tv-block tv-w-full tv-rounded-lg tv-border-[1px] tv-py-1.5 tv-shadow-sm tv-ring-0 tv-outline-none sm:tv-text-sm sm:tv-leading-6 tv-pl-3 tv-pr-[5rem] tv-h-12 tv-z-10 tv-relative;
689690
color: var(--tv-zinc-900);
690691
background-color: var(--tv-zinc-50);
@@ -1090,9 +1091,9 @@ body {
10901091
}
10911092
}
10921093

1093-
&.docs.search,
1094-
&.pdf.search,
1095-
&.ecommerce.search {
1094+
&.docs.trieve-mode-search,
1095+
&.pdf.trieve-mode-search,
1096+
&.ecommerce.trieve-mode-search {
10961097
background-color: var(--tv-zinc-900);
10971098
color: var(--tv-zinc-50);
10981099
outline: none;

0 commit comments

Comments
 (0)