@grantbii/design-system 1.0.73 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled, { css } from "styled-components";
|
|
3
3
|
import { Colors, Icons, Responsive, Typography } from "../../foundations";
|
|
4
4
|
import { useGrantMatchContext } from "./context";
|
|
5
5
|
const SearchBar = () => {
|
|
6
|
-
const { activeQuery } = useGrantMatchContext();
|
|
7
|
-
return (_jsxs(BaseSearchBar, { "$hasActiveQueryText": activeQuery.text !== "", children: [_jsx(QueryTextInput, {}), _jsxs(Buttons, { children: [_jsx(ResetTextButton, {}), _jsx(SearchButton, {}), _jsx(FileDropButton, {})] })] }));
|
|
6
|
+
const { activeQuery, queryText } = useGrantMatchContext();
|
|
7
|
+
return (_jsxs(BaseSearchBar, { "$hasActiveQueryText": activeQuery.text !== "", children: [_jsx(QueryTextInput, {}), _jsxs(Buttons, { children: [queryText !== "" ? _jsx(ResetTextButton, {}) : _jsx(_Fragment, {}), _jsx(SearchButton, {}), _jsx(FileDropButton, {})] })] }));
|
|
8
8
|
};
|
|
9
9
|
export default SearchBar;
|
|
10
10
|
const BaseSearchBar = styled.div `
|
|
@@ -57,9 +57,9 @@ const BaseIconButton = styled.button `
|
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: center;
|
|
59
59
|
|
|
60
|
-
height:
|
|
61
|
-
width:
|
|
62
|
-
min-width:
|
|
60
|
+
height: 31px;
|
|
61
|
+
width: 31px;
|
|
62
|
+
min-width: 31px;
|
|
63
63
|
|
|
64
64
|
border-radius: 8px;
|
|
65
65
|
`;
|
|
@@ -73,6 +73,7 @@ const ResetTextButton = () => {
|
|
|
73
73
|
};
|
|
74
74
|
const BaseResetTextButton = styled(BaseIconButton) `
|
|
75
75
|
background-color: ${Colors.base.white};
|
|
76
|
+
border: 1px solid ${Colors.base.white};
|
|
76
77
|
`;
|
|
77
78
|
const SearchButton = () => {
|
|
78
79
|
const { activeQuery, updateActiveQuery, queryText } = useGrantMatchContext();
|
|
@@ -80,7 +81,8 @@ const SearchButton = () => {
|
|
|
80
81
|
return (_jsx(BaseSearchButton, { type: "button", onClick: onClick, children: _jsx(Icons.MagnifyingGlassIcon, { size: 16, color: Colors.neutral.grey1 }) }));
|
|
81
82
|
};
|
|
82
83
|
const BaseSearchButton = styled(BaseIconButton) `
|
|
83
|
-
background-color: ${Colors.neutral.
|
|
84
|
+
background-color: ${Colors.neutral.grey4};
|
|
85
|
+
border: 1px solid ${Colors.neutral.grey3};
|
|
84
86
|
`;
|
|
85
87
|
const FileDropButton = () => {
|
|
86
88
|
const { activeQuery, openModal } = useGrantMatchContext();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"description": "Grantbii's Design System",
|
|
5
5
|
"homepage": "https://design.grantbii.com",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@storybook/addon-vitest": "^9.1.3",
|
|
39
39
|
"@storybook/nextjs-vite": "^9.1.3",
|
|
40
40
|
"@types/node": "^20",
|
|
41
|
-
"@types/react": "^19.1.
|
|
41
|
+
"@types/react": "^19.1.12",
|
|
42
42
|
"@types/react-dom": "^19.1.8",
|
|
43
43
|
"@vitest/browser": "^3.2.4",
|
|
44
44
|
"@vitest/coverage-v8": "^3.2.4",
|