cozy-search 2.7.0 → 2.8.0
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.
- package/dist/components/AssistantMobile.js +2 -1
- package/dist/components/Search/NotFoundConversation.js +17 -7
- package/dist/components/Search/SearchBarDesktop.js +2 -1
- package/dist/components/Search/SearchConversation.js +10 -11
- package/dist/components/Search/SuggestionsPlaceholder.js +2 -1
- package/dist/components/Search/styles.styl +5 -0
- package/dist/locales/en.json +1 -1
- package/dist/locales/index.js +2 -2
- package/dist/locales/ru.json +1 -1
- package/dist/stylesheet.css +3 -0
- package/package.json +3 -3
|
@@ -29,7 +29,8 @@ var styles = {
|
|
|
29
29
|
"searchBarDesktop--result": "styles__searchBarDesktop--result___2bQQy",
|
|
30
30
|
"suggestionsPlaceholder": "styles__suggestionsPlaceholder___y-vsv",
|
|
31
31
|
"search-bar-icon": "styles__search-bar-icon___1affF",
|
|
32
|
-
"search-bar--mobile": "styles__search-bar--mobile___1CSb2"
|
|
32
|
+
"search-bar--mobile": "styles__search-bar--mobile___1CSb2",
|
|
33
|
+
"not-found-icon": "styles__not-found-icon___1as3P"
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
var AssistantMobile = function AssistantMobile(_ref) {
|
|
@@ -7,14 +7,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
14
16
|
var _Typography = _interopRequireDefault(require("cozy-ui/transpiled/react/Typography"));
|
|
15
17
|
|
|
16
18
|
var _twakeI18n = require("twake-i18n");
|
|
17
19
|
|
|
20
|
+
var styles = {
|
|
21
|
+
"searchBarDesktop--result": "styles__searchBarDesktop--result___2bQQy",
|
|
22
|
+
"suggestionsPlaceholder": "styles__suggestionsPlaceholder___y-vsv",
|
|
23
|
+
"search-bar-icon": "styles__search-bar-icon___1affF",
|
|
24
|
+
"search-bar--mobile": "styles__search-bar--mobile___1CSb2",
|
|
25
|
+
"not-found-icon": "styles__not-found-icon___1as3P"
|
|
26
|
+
};
|
|
27
|
+
|
|
18
28
|
var NotFoundConversation = function NotFoundConversation() {
|
|
19
29
|
var _useI18n = (0, _twakeI18n.useI18n)(),
|
|
20
30
|
t = _useI18n.t;
|
|
@@ -22,18 +32,18 @@ var NotFoundConversation = function NotFoundConversation() {
|
|
|
22
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
33
|
className: "u-flex u-flex-column u-flex-items-center u-flex-justify-center u-h-100 u-w-100 u-ta-center"
|
|
24
34
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
-
className:
|
|
35
|
+
className: (0, _classnames.default)('u-flex u-flex-items-center u-flex-justify-center u-w-3 u-h-3 u-bdrs-circle u-mb-half', styles['not-found-icon'])
|
|
26
36
|
}, /*#__PURE__*/_react.default.createElement(_twakeIcons.Icon, {
|
|
27
|
-
icon: _twakeIcons.
|
|
28
|
-
color: "
|
|
29
|
-
size:
|
|
37
|
+
icon: _twakeIcons.Comment,
|
|
38
|
+
color: "var(--primaryColor)",
|
|
39
|
+
size: 32
|
|
30
40
|
})), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
31
41
|
variant: "h4",
|
|
32
|
-
className: "u-mb-
|
|
42
|
+
className: "u-mb-half"
|
|
33
43
|
}, t('assistant.search_conversation.not_found_title')), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
34
44
|
variant: "body1",
|
|
35
45
|
color: "textSecondary",
|
|
36
|
-
className: "u-maw-
|
|
46
|
+
className: "u-maw-6"
|
|
37
47
|
}, t('assistant.search_conversation.not_found_desc')));
|
|
38
48
|
};
|
|
39
49
|
|
|
@@ -33,7 +33,8 @@ var styles = {
|
|
|
33
33
|
"searchBarDesktop--result": "styles__searchBarDesktop--result___2bQQy",
|
|
34
34
|
"suggestionsPlaceholder": "styles__suggestionsPlaceholder___y-vsv",
|
|
35
35
|
"search-bar-icon": "styles__search-bar-icon___1affF",
|
|
36
|
-
"search-bar--mobile": "styles__search-bar--mobile___1CSb2"
|
|
36
|
+
"search-bar--mobile": "styles__search-bar--mobile___1CSb2",
|
|
37
|
+
"not-found-icon": "styles__not-found-icon___1as3P"
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
var SearchBarDesktop = function SearchBarDesktop(_ref) {
|
|
@@ -15,8 +15,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
15
15
|
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
|
|
18
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
-
|
|
20
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
19
|
|
|
22
20
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
@@ -25,6 +23,8 @@ var _escapeRegExp = _interopRequireDefault(require("lodash/escapeRegExp"));
|
|
|
25
23
|
|
|
26
24
|
var _react = _interopRequireWildcard(require("react"));
|
|
27
25
|
|
|
26
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
27
|
+
|
|
28
28
|
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
29
29
|
|
|
30
30
|
var _Dialog = _interopRequireDefault(require("cozy-ui/transpiled/react/Dialog"));
|
|
@@ -63,7 +63,8 @@ var styles = {
|
|
|
63
63
|
"searchBarDesktop--result": "styles__searchBarDesktop--result___2bQQy",
|
|
64
64
|
"suggestionsPlaceholder": "styles__suggestionsPlaceholder___y-vsv",
|
|
65
65
|
"search-bar-icon": "styles__search-bar-icon___1affF",
|
|
66
|
-
"search-bar--mobile": "styles__search-bar--mobile___1CSb2"
|
|
66
|
+
"search-bar--mobile": "styles__search-bar--mobile___1CSb2",
|
|
67
|
+
"not-found-icon": "styles__not-found-icon___1as3P"
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
var SearchConversationContainer = function SearchConversationContainer(_ref) {
|
|
@@ -166,13 +167,12 @@ var SearchConversation = function SearchConversation() {
|
|
|
166
167
|
return /*#__PURE__*/_react.default.createElement(SearchConversationContainer, {
|
|
167
168
|
isMobile: isMobile
|
|
168
169
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
169
|
-
className: (0, _classnames.default)('u-h-100 u-flex u-flex-column u-flex-items-start u-ov-hidden', {
|
|
170
|
-
'u-
|
|
171
|
-
'u-w-100': isMobile
|
|
170
|
+
className: (0, _classnames.default)('u-h-100 u-flex u-flex-column u-flex-items-start u-ov-hidden u-w-100', {
|
|
171
|
+
'u-maw-7': !isMobile
|
|
172
172
|
})
|
|
173
173
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
174
174
|
className: (0, _classnames.default)('u-w-100 u-bxz', {
|
|
175
|
-
'u-
|
|
175
|
+
'u-mt-1-half u-mb-2': !isMobile,
|
|
176
176
|
'u-p-1': isMobile
|
|
177
177
|
})
|
|
178
178
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -182,7 +182,7 @@ var SearchConversation = function SearchConversation() {
|
|
|
182
182
|
disabledHover: !!isMobile,
|
|
183
183
|
className: (0, _classnames.default)('u-flex-auto u-miw-0', (_cx = {}, (0, _defineProperty2.default)(_cx, styles['search-bar--mobile'], isMobile), (0, _defineProperty2.default)(_cx, 'u-mb-2', !isMobile), _cx)),
|
|
184
184
|
placeholder: t('assistant.search_conversation.placeholder'),
|
|
185
|
-
size:
|
|
185
|
+
size: isMobile ? 'medium' : 'small',
|
|
186
186
|
value: searchStr,
|
|
187
187
|
onChange: handleSearchChange
|
|
188
188
|
}), isMobile && /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
@@ -202,9 +202,8 @@ var SearchConversation = function SearchConversation() {
|
|
|
202
202
|
}),
|
|
203
203
|
onClick: createNewConversation,
|
|
204
204
|
size: "large",
|
|
205
|
-
className: (0, _classnames.default)({
|
|
206
|
-
'u-
|
|
207
|
-
'u-mt-1 u-bdrs-7 u-bdw-1': isMobile
|
|
205
|
+
className: (0, _classnames.default)('u-bdrs-6', {
|
|
206
|
+
'u-mt-1 u-bdw-1': isMobile
|
|
208
207
|
})
|
|
209
208
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
210
209
|
className: "u-ov-auto u-flex-auto u-w-100 u-pos-relative"
|
|
@@ -27,7 +27,8 @@ var styles = {
|
|
|
27
27
|
"searchBarDesktop--result": "styles__searchBarDesktop--result___2bQQy",
|
|
28
28
|
"suggestionsPlaceholder": "styles__suggestionsPlaceholder___y-vsv",
|
|
29
29
|
"search-bar-icon": "styles__search-bar-icon___1affF",
|
|
30
|
-
"search-bar--mobile": "styles__search-bar--mobile___1CSb2"
|
|
30
|
+
"search-bar--mobile": "styles__search-bar--mobile___1CSb2",
|
|
31
|
+
"not-found-icon": "styles__not-found-icon___1as3P"
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
var SuggestionsPlaceholder = function SuggestionsPlaceholder() {
|
|
@@ -12,3 +12,8 @@
|
|
|
12
12
|
.search-bar--mobile
|
|
13
13
|
border-radius 24px !important
|
|
14
14
|
height 48px
|
|
15
|
+
|
|
16
|
+
.not-found-icon
|
|
17
|
+
// The primary color at its hover opacity, as the design's token. unquote()
|
|
18
|
+
// keeps Stylus from parsing `in` as an operator.
|
|
19
|
+
background-color unquote('color-mix(in srgb, var(--primaryColor) 8%, transparent)')
|
package/dist/locales/en.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"show": "Show",
|
|
55
55
|
"search_conversation": {
|
|
56
56
|
"placeholder": "Search in your conversations...",
|
|
57
|
-
"new_chat": "New
|
|
57
|
+
"new_chat": "New conversation",
|
|
58
58
|
"recent": "Recent Conversations",
|
|
59
59
|
"older": "Older",
|
|
60
60
|
"not_found_title": "No conversations found",
|
package/dist/locales/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var en = {
|
|
|
60
60
|
show: "Show",
|
|
61
61
|
search_conversation: {
|
|
62
62
|
placeholder: "Search in your conversations...",
|
|
63
|
-
new_chat: "New
|
|
63
|
+
new_chat: "New conversation",
|
|
64
64
|
recent: "Recent Conversations",
|
|
65
65
|
older: "Older",
|
|
66
66
|
not_found_title: "No conversations found",
|
|
@@ -426,7 +426,7 @@ var ru = {
|
|
|
426
426
|
show: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",
|
|
427
427
|
search_conversation: {
|
|
428
428
|
placeholder: "\u041F\u043E\u0438\u0441\u043A \u0432 \u043F\u0435\u0440\u0435\u043F\u0438\u0441\u043A\u0430\u0445...",
|
|
429
|
-
new_chat: "\u041D\u043E\u0432\u044B\u0439 \
|
|
429
|
+
new_chat: "\u041D\u043E\u0432\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440",
|
|
430
430
|
recent: "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u043F\u0435\u0440\u0435\u043F\u0438\u0441\u043A\u0438",
|
|
431
431
|
older: "\u0421\u0442\u0430\u0440\u044B\u0435",
|
|
432
432
|
not_found_title: "\u041F\u0435\u0440\u0435\u043F\u0438\u0441\u043E\u043A \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
|
package/dist/locales/ru.json
CHANGED
package/dist/stylesheet.css
CHANGED
|
@@ -119,6 +119,9 @@
|
|
|
119
119
|
border-radius: 24px !important;
|
|
120
120
|
height: 48px;
|
|
121
121
|
}
|
|
122
|
+
.styles__not-found-icon___1as3P {
|
|
123
|
+
background-color: color-mix(in srgb, var(--primaryColor) 8%, transparent);
|
|
124
|
+
}
|
|
122
125
|
/* imported from styles.styl */
|
|
123
126
|
|
|
124
127
|
.styles__pretty-scrollbar___1-Jwd {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-search",
|
|
3
3
|
"description": "UI components about search bar and IA assistant",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cozy Cloud",
|
|
7
7
|
"url": "https://github.com/cozy"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"cozy-pouch-link": "^54.0.0",
|
|
38
38
|
"cozy-realtime": "^5.9.4",
|
|
39
39
|
"cozy-ui": "^138.4.0",
|
|
40
|
-
"cozy-ui-plus": "^13.0.
|
|
40
|
+
"cozy-ui-plus": "^13.0.8",
|
|
41
41
|
"cross-fetch": "^4.0.0",
|
|
42
42
|
"jest": "30.3.0",
|
|
43
43
|
"react": "18.2.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"lint": "cd .. && yarn eslint --ext js,jsx,ts packages/cozy-search"
|
|
97
97
|
},
|
|
98
98
|
"types": "dist/index.d.ts",
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "b4d4af7f8d59196f7370d81fdab64e5c8eb98f38"
|
|
100
100
|
}
|