@burdenoff/fe-libs 2026.1118.13 → 2026.1119.2
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/chrome/globalSearch/AdvancedFiltersPanel.js +128 -127
- package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
- package/dist/connections/CredentialStorageSelector.js +135 -134
- package/dist/connections/SharePanels.js +70 -69
- package/dist/credentials/AuthMethodSelector.js +33 -32
- package/dist/credentials/SchemaForm.js +96 -95
- package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
- package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
- package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
- package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +199 -193
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
- package/dist/shared/providers/shell/ThemeProvider.js +65 -62
- package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
- package/dist/shared/providers/shell/themedNativeControls.js +13 -0
- package/dist/sharing/ShareDialog.js +33 -32
- package/dist/storage/StorageFolderPicker.js +50 -49
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/themed-select-context.d.ts +9 -0
- package/dist/ui/themed-select-context.js +15 -0
- package/dist/ui/themed-select-menu.d.ts +10 -0
- package/dist/ui/themed-select-menu.js +70 -0
- package/dist/ui/themed-select-options.d.ts +42 -0
- package/dist/ui/themed-select-options.js +88 -0
- package/dist/ui/themed-select-state.d.ts +43 -0
- package/dist/ui/themed-select-state.js +73 -0
- package/dist/ui/themed-select.d.ts +7 -0
- package/dist/ui/themed-select.js +176 -0
- package/dist/ui.js +31 -29
- package/package.json +1 -1
- package/src/shared/tokens/tokens.css +100 -0
|
@@ -1,254 +1,255 @@
|
|
|
1
1
|
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemedSelect as t } from "../../ui/themed-select.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
4
|
// src/chrome/globalSearch/AdvancedFiltersPanel.tsx
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function i({ filters: i }) {
|
|
6
|
+
let a = e();
|
|
7
|
+
return /* @__PURE__ */ r("div", {
|
|
7
8
|
className: "px-3 py-2 border-b border-border-subtle space-y-2 bg-bg-sunken/40 max-h-64 overflow-y-auto",
|
|
8
9
|
children: [
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */ r("div", {
|
|
10
11
|
className: "flex items-center gap-2",
|
|
11
|
-
children: [/* @__PURE__ */
|
|
12
|
+
children: [/* @__PURE__ */ n("label", {
|
|
12
13
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
13
|
-
children:
|
|
14
|
-
}), /* @__PURE__ */
|
|
15
|
-
value:
|
|
16
|
-
onChange: (e) =>
|
|
14
|
+
children: a("search.sortBy", "Sort by")
|
|
15
|
+
}), /* @__PURE__ */ r(t, {
|
|
16
|
+
value: i.sortBy,
|
|
17
|
+
onChange: (e) => i.setSortBy(e.target.value),
|
|
17
18
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong scheme-normal dark:scheme-dark transition-colors [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ n("option", {
|
|
20
21
|
value: "SCORE_DESC",
|
|
21
|
-
children:
|
|
22
|
+
children: a("search.relevance", "Relevance")
|
|
22
23
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ n("option", {
|
|
24
25
|
value: "CREATED_DESC",
|
|
25
|
-
children:
|
|
26
|
+
children: a("search.newestFirst", "Newest first")
|
|
26
27
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ n("option", {
|
|
28
29
|
value: "CREATED_ASC",
|
|
29
|
-
children:
|
|
30
|
+
children: a("search.oldestFirst", "Oldest first")
|
|
30
31
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ n("option", {
|
|
32
33
|
value: "UPDATED_DESC",
|
|
33
|
-
children:
|
|
34
|
+
children: a("search.recentlyUpdated", "Recently updated")
|
|
34
35
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ n("option", {
|
|
36
37
|
value: "UPDATED_ASC",
|
|
37
|
-
children:
|
|
38
|
+
children: a("search.leastRecentlyUpdated", "Least recently updated")
|
|
38
39
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ n("option", {
|
|
40
41
|
value: "TITLE_ASC",
|
|
41
|
-
children:
|
|
42
|
+
children: a("search.titleAZ", "Title A-Z")
|
|
42
43
|
}),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ n("option", {
|
|
44
45
|
value: "TITLE_DESC",
|
|
45
|
-
children:
|
|
46
|
+
children: a("search.titleZA", "Title Z-A")
|
|
46
47
|
})
|
|
47
48
|
]
|
|
48
49
|
})]
|
|
49
50
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ r("div", {
|
|
51
52
|
className: "flex items-center gap-2",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ n("label", {
|
|
53
54
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
54
|
-
children:
|
|
55
|
-
}), /* @__PURE__ */
|
|
56
|
-
"aria-label":
|
|
55
|
+
children: a("search.products", "Products")
|
|
56
|
+
}), /* @__PURE__ */ n("input", {
|
|
57
|
+
"aria-label": a("search.productSourcesFilter", "Product sources filter"),
|
|
57
58
|
type: "text",
|
|
58
59
|
placeholder: "vibecontrols, wspace-tags",
|
|
59
|
-
value:
|
|
60
|
-
onChange: (e) =>
|
|
60
|
+
value: i.productSourcesInput,
|
|
61
|
+
onChange: (e) => i.setProductSourcesInput(e.target.value),
|
|
61
62
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
62
63
|
})]
|
|
63
64
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ r("div", {
|
|
65
66
|
className: "flex items-center gap-2",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ n("label", {
|
|
67
68
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
68
|
-
children:
|
|
69
|
-
}), /* @__PURE__ */
|
|
70
|
-
"aria-label":
|
|
69
|
+
children: a("contextSwitcher.project", "Project")
|
|
70
|
+
}), /* @__PURE__ */ n("input", {
|
|
71
|
+
"aria-label": a("search.projectIDFilter", "Project ID filter"),
|
|
71
72
|
type: "text",
|
|
72
|
-
placeholder:
|
|
73
|
-
value:
|
|
74
|
-
onChange: (e) =>
|
|
73
|
+
placeholder: a("projectDetail.projectId", "Project ID"),
|
|
74
|
+
value: i.projectId,
|
|
75
|
+
onChange: (e) => i.setProjectId(e.target.value),
|
|
75
76
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
76
77
|
})]
|
|
77
78
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ r("div", {
|
|
79
80
|
className: "flex items-center gap-2",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ n("label", {
|
|
81
82
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
82
|
-
children:
|
|
83
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: a("search.createdBy", "Created by")
|
|
84
|
+
}), /* @__PURE__ */ n("input", {
|
|
84
85
|
type: "text",
|
|
85
|
-
placeholder:
|
|
86
|
-
value:
|
|
87
|
-
onChange: (e) =>
|
|
86
|
+
placeholder: a("rbac.checker.form.actorId.label", "Actor ID"),
|
|
87
|
+
value: i.createdBy,
|
|
88
|
+
onChange: (e) => i.setCreatedBy(e.target.value),
|
|
88
89
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
89
90
|
})]
|
|
90
91
|
}),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ r("div", {
|
|
92
93
|
className: "flex items-center gap-2",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ n("label", {
|
|
94
95
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
95
|
-
children:
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
"aria-label":
|
|
96
|
+
children: a("search.updatedBy", "Updated by")
|
|
97
|
+
}), /* @__PURE__ */ n("input", {
|
|
98
|
+
"aria-label": a("search.updatedByFilter", "Updated by filter"),
|
|
98
99
|
type: "text",
|
|
99
|
-
placeholder:
|
|
100
|
-
value:
|
|
101
|
-
onChange: (e) =>
|
|
100
|
+
placeholder: a("rbac.checker.form.actorId.label", "Actor ID"),
|
|
101
|
+
value: i.updatedBy,
|
|
102
|
+
onChange: (e) => i.setUpdatedBy(e.target.value),
|
|
102
103
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
103
104
|
})]
|
|
104
105
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ r("div", {
|
|
106
107
|
className: "flex items-center gap-2",
|
|
107
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ n("label", {
|
|
108
109
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
109
|
-
children:
|
|
110
|
-
}), /* @__PURE__ */
|
|
110
|
+
children: a("search.dateFrom", "Date from")
|
|
111
|
+
}), /* @__PURE__ */ n("input", {
|
|
111
112
|
type: "date",
|
|
112
|
-
value:
|
|
113
|
-
onChange: (e) =>
|
|
113
|
+
value: i.dateFrom,
|
|
114
|
+
onChange: (e) => i.setDateFrom(e.target.value),
|
|
114
115
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
115
116
|
})]
|
|
116
117
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ r("div", {
|
|
118
119
|
className: "flex items-center gap-2",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ n("label", {
|
|
120
121
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
121
|
-
children:
|
|
122
|
-
}), /* @__PURE__ */
|
|
122
|
+
children: a("search.dateTo", "Date to")
|
|
123
|
+
}), /* @__PURE__ */ n("input", {
|
|
123
124
|
type: "date",
|
|
124
|
-
value:
|
|
125
|
-
onChange: (e) =>
|
|
125
|
+
value: i.dateTo,
|
|
126
|
+
onChange: (e) => i.setDateTo(e.target.value),
|
|
126
127
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
127
128
|
})]
|
|
128
129
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ r("div", {
|
|
130
131
|
className: "flex items-center gap-2",
|
|
131
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ n("label", {
|
|
132
133
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
133
|
-
children:
|
|
134
|
-
}), /* @__PURE__ */
|
|
135
|
-
"aria-label":
|
|
134
|
+
children: a("search.updatedFrom", "Updated from")
|
|
135
|
+
}), /* @__PURE__ */ n("input", {
|
|
136
|
+
"aria-label": a("search.updatedFromDate", "Updated from date"),
|
|
136
137
|
type: "date",
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
138
|
+
value: i.updatedDateFrom,
|
|
139
|
+
onChange: (e) => i.setUpdatedDateFrom(e.target.value),
|
|
139
140
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
140
141
|
})]
|
|
141
142
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ r("div", {
|
|
143
144
|
className: "flex items-center gap-2",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ n("label", {
|
|
145
146
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
146
|
-
children:
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
"aria-label":
|
|
147
|
+
children: a("search.updatedTo", "Updated to")
|
|
148
|
+
}), /* @__PURE__ */ n("input", {
|
|
149
|
+
"aria-label": a("search.updatedToDate", "Updated to date"),
|
|
149
150
|
type: "date",
|
|
150
|
-
value:
|
|
151
|
-
onChange: (e) =>
|
|
151
|
+
value: i.updatedDateTo,
|
|
152
|
+
onChange: (e) => i.setUpdatedDateTo(e.target.value),
|
|
152
153
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong transition-colors"
|
|
153
154
|
})]
|
|
154
155
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ r("div", {
|
|
156
157
|
className: "flex items-center gap-2",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ n("label", {
|
|
158
159
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
159
|
-
children:
|
|
160
|
-
}), /* @__PURE__ */
|
|
161
|
-
"aria-label":
|
|
160
|
+
children: a("search.tagKeys", "Tag keys")
|
|
161
|
+
}), /* @__PURE__ */ n("input", {
|
|
162
|
+
"aria-label": a("search.tagKeysFilter", "Tag keys filter"),
|
|
162
163
|
type: "text",
|
|
163
164
|
placeholder: "search, team/platform",
|
|
164
|
-
value:
|
|
165
|
-
onChange: (e) =>
|
|
165
|
+
value: i.tagKeysInput,
|
|
166
|
+
onChange: (e) => i.setTagKeysInput(e.target.value),
|
|
166
167
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
167
168
|
})]
|
|
168
169
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ r("div", {
|
|
170
171
|
className: "flex items-center gap-2",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ n("label", {
|
|
172
173
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
173
|
-
children:
|
|
174
|
-
}), /* @__PURE__ */
|
|
175
|
-
"aria-label":
|
|
174
|
+
children: a("search.tagIDs", "Tag IDs")
|
|
175
|
+
}), /* @__PURE__ */ n("input", {
|
|
176
|
+
"aria-label": a("search.tagIDsFilter", "Tag IDs filter"),
|
|
176
177
|
type: "text",
|
|
177
|
-
placeholder:
|
|
178
|
-
value:
|
|
179
|
-
onChange: (e) =>
|
|
178
|
+
placeholder: a("search.commaSeparatedIDs", "Comma-separated IDs"),
|
|
179
|
+
value: i.tagIdsInput,
|
|
180
|
+
onChange: (e) => i.setTagIdsInput(e.target.value),
|
|
180
181
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
181
182
|
})]
|
|
182
183
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ r("div", {
|
|
184
185
|
className: "flex items-center gap-2",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ n("label", {
|
|
186
187
|
className: "text-[10px] font-medium text-text-muted w-16 flex-shrink-0",
|
|
187
|
-
children:
|
|
188
|
-
}), /* @__PURE__ */
|
|
189
|
-
"aria-label":
|
|
188
|
+
children: a("search.tagPaths", "Tag paths")
|
|
189
|
+
}), /* @__PURE__ */ n("input", {
|
|
190
|
+
"aria-label": a("search.tagHierarchyFilter", "Tag hierarchy filter"),
|
|
190
191
|
type: "text",
|
|
191
192
|
placeholder: "team/engineering",
|
|
192
|
-
value:
|
|
193
|
-
onChange: (e) =>
|
|
193
|
+
value: i.tagPathsInput,
|
|
194
|
+
onChange: (e) => i.setTagPathsInput(e.target.value),
|
|
194
195
|
className: "flex-1 h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
195
196
|
})]
|
|
196
197
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ r("div", {
|
|
198
199
|
className: "grid grid-cols-[1fr_auto_1fr] gap-2 items-center",
|
|
199
200
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
"aria-label":
|
|
201
|
+
/* @__PURE__ */ n("input", {
|
|
202
|
+
"aria-label": a("search.metadataKeyFilter", "Metadata key filter"),
|
|
202
203
|
type: "text",
|
|
203
204
|
placeholder: "metadata.path",
|
|
204
|
-
value:
|
|
205
|
-
onChange: (e) =>
|
|
205
|
+
value: i.metadataKey,
|
|
206
|
+
onChange: (e) => i.setMetadataKey(e.target.value),
|
|
206
207
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
207
208
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
"aria-label":
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
209
|
+
/* @__PURE__ */ r(t, {
|
|
210
|
+
"aria-label": a("search.metadataOperatorFilter", "Metadata operator filter"),
|
|
211
|
+
value: i.metadataOperator,
|
|
212
|
+
onChange: (e) => i.setMetadataOperator(e.target.value),
|
|
212
213
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong scheme-normal dark:scheme-dark transition-colors [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
213
214
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ n("option", {
|
|
215
216
|
value: "EQUALS",
|
|
216
217
|
children: "="
|
|
217
218
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ n("option", {
|
|
219
220
|
value: "NOT_EQUALS",
|
|
220
221
|
children: "≠"
|
|
221
222
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ n("option", {
|
|
223
224
|
value: "CONTAINS",
|
|
224
|
-
children:
|
|
225
|
+
children: a("search.contains", "contains")
|
|
225
226
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ n("option", {
|
|
227
228
|
value: "STARTS_WITH",
|
|
228
|
-
children:
|
|
229
|
+
children: a("search.starts", "starts")
|
|
229
230
|
})
|
|
230
231
|
]
|
|
231
232
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
"aria-label":
|
|
233
|
+
/* @__PURE__ */ n("input", {
|
|
234
|
+
"aria-label": a("search.metadataValueFilter", "Metadata value filter"),
|
|
234
235
|
type: "text",
|
|
235
|
-
placeholder:
|
|
236
|
-
value:
|
|
237
|
-
onChange: (e) =>
|
|
236
|
+
placeholder: a("search.value", "Value"),
|
|
237
|
+
value: i.metadataValue,
|
|
238
|
+
onChange: (e) => i.setMetadataValue(e.target.value),
|
|
238
239
|
className: "h-7 text-xs rounded-input border border-border-subtle bg-bg-surface text-text-primary px-2 outline-none focus:border-border-strong placeholder:text-text-placeholder transition-colors"
|
|
239
240
|
})
|
|
240
241
|
]
|
|
241
242
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ n("div", {
|
|
243
244
|
className: "flex justify-end",
|
|
244
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ n("button", {
|
|
245
246
|
type: "button",
|
|
246
|
-
onClick:
|
|
247
|
+
onClick: i.reset,
|
|
247
248
|
className: "text-[10px] text-text-muted hover:text-text-primary transition-colors",
|
|
248
|
-
children:
|
|
249
|
+
children: a("common.clearFilters", "Clear filters")
|
|
249
250
|
})
|
|
250
251
|
})
|
|
251
252
|
]
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
|
-
export {
|
|
255
|
+
export { i as AdvancedFiltersPanel };
|
|
@@ -1,70 +1,71 @@
|
|
|
1
1
|
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
2
|
import { FILTER_TABS as t, TYPE_CONFIG as n, TYPE_FILTERS as r } from "./constants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ThemedSelect as i } from "../../ui/themed-select.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
5
|
// src/chrome/notificationCenter/NotificationFilters.tsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
all:
|
|
8
|
-
unread:
|
|
9
|
-
read:
|
|
10
|
-
},
|
|
11
|
-
ALL:
|
|
12
|
-
SYSTEM:
|
|
13
|
-
ALERT:
|
|
14
|
-
TRANSACTIONAL:
|
|
15
|
-
MARKETING:
|
|
6
|
+
var s = ({ filterTab: s, typeFilter: c, appFilter: l, sortBy: u, appNames: d, onFilterTabChange: f, onTypeFilterChange: p, onAppFilterChange: m, onSortByChange: h }) => {
|
|
7
|
+
let g = e(), _ = {
|
|
8
|
+
all: g("notifications.filterAll", "All"),
|
|
9
|
+
unread: g("notifications.filterUnread", "Unread"),
|
|
10
|
+
read: g("notifications.filterRead", "Read")
|
|
11
|
+
}, v = {
|
|
12
|
+
ALL: g("notifications.filterAll", "All"),
|
|
13
|
+
SYSTEM: g("notifications.topicType.SYSTEM", "System"),
|
|
14
|
+
ALERT: g("notifications.topicType.ALERT", "Alert"),
|
|
15
|
+
TRANSACTIONAL: g("notifications.typeTransactional", "Transactional"),
|
|
16
|
+
MARKETING: g("notifications.topicType.MARKETING", "Marketing")
|
|
16
17
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ o("div", {
|
|
18
19
|
className: "px-4 pt-3 pb-2 space-y-2 border-b border-border-subtle",
|
|
19
20
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ a("div", {
|
|
21
22
|
className: "flex gap-1",
|
|
22
|
-
children: t.map((e) => /* @__PURE__ */
|
|
23
|
-
onClick: () =>
|
|
24
|
-
className: `px-3 py-1 text-xs font-medium rounded-full transition-colors ${
|
|
25
|
-
children:
|
|
23
|
+
children: t.map((e) => /* @__PURE__ */ a("button", {
|
|
24
|
+
onClick: () => f(e.value),
|
|
25
|
+
className: `px-3 py-1 text-xs font-medium rounded-full transition-colors ${s === e.value ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:bg-bg-sunken"}`,
|
|
26
|
+
children: _[e.value]
|
|
26
27
|
}, e.value))
|
|
27
28
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ o("div", {
|
|
29
30
|
className: "flex flex-wrap items-center gap-1",
|
|
30
|
-
children: [r.map((e) => /* @__PURE__ */
|
|
31
|
-
onClick: () =>
|
|
32
|
-
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${
|
|
33
|
-
children: [e.value !== "ALL" && n[e.value] && /* @__PURE__ */
|
|
31
|
+
children: [r.map((e) => /* @__PURE__ */ o("button", {
|
|
32
|
+
onClick: () => p(e.value),
|
|
33
|
+
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${c === e.value ? "bg-bg-elevated text-text-primary border border-border-default" : "text-text-muted hover:text-text-secondary hover:bg-bg-sunken"}`,
|
|
34
|
+
children: [e.value !== "ALL" && n[e.value] && /* @__PURE__ */ a("span", {
|
|
34
35
|
className: "me-0.5",
|
|
35
36
|
children: n[e.value].icon
|
|
36
|
-
}),
|
|
37
|
-
}, e.value)), /* @__PURE__ */
|
|
38
|
-
value:
|
|
39
|
-
onChange: (e) =>
|
|
37
|
+
}), v[e.value]]
|
|
38
|
+
}, e.value)), /* @__PURE__ */ o(i, {
|
|
39
|
+
value: u,
|
|
40
|
+
onChange: (e) => h(e.target.value),
|
|
40
41
|
className: "ms-auto text-[11px] text-text-secondary bg-transparent border-none cursor-pointer scheme-normal dark:scheme-dark focus:outline-none [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
41
|
-
"aria-label":
|
|
42
|
+
"aria-label": g("notifications.sortNotifications", "Sort notifications"),
|
|
42
43
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ a("option", {
|
|
44
45
|
value: "newest",
|
|
45
|
-
children:
|
|
46
|
+
children: g("notifications.newest", "Newest")
|
|
46
47
|
}),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ a("option", {
|
|
48
49
|
value: "oldest",
|
|
49
|
-
children:
|
|
50
|
+
children: g("notifications.oldest", "Oldest")
|
|
50
51
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ a("option", {
|
|
52
53
|
value: "priority",
|
|
53
|
-
children:
|
|
54
|
+
children: g("notifications.csv.priority", "Priority")
|
|
54
55
|
})
|
|
55
56
|
]
|
|
56
57
|
})]
|
|
57
58
|
}),
|
|
58
|
-
|
|
59
|
+
d.length > 1 && /* @__PURE__ */ o("div", {
|
|
59
60
|
className: "flex flex-wrap gap-1",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
61
|
-
onClick: () =>
|
|
62
|
-
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${
|
|
63
|
-
children:
|
|
64
|
-
}),
|
|
65
|
-
onClick: () =>
|
|
66
|
-
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${
|
|
67
|
-
children: [e, /* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ a("button", {
|
|
62
|
+
onClick: () => m("ALL"),
|
|
63
|
+
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${l === "ALL" ? "bg-bg-elevated text-text-primary border border-border-default" : "text-text-muted hover:text-text-secondary hover:bg-bg-sunken"}`,
|
|
64
|
+
children: g("pages.marketplace.allApps", "All Apps")
|
|
65
|
+
}), d.map(([e, t]) => /* @__PURE__ */ o("button", {
|
|
66
|
+
onClick: () => m(e),
|
|
67
|
+
className: `px-2 py-0.5 text-[11px] font-medium rounded-full whitespace-nowrap transition-colors ${l === e ? "bg-bg-elevated text-text-primary border border-border-default" : "text-text-muted hover:text-text-secondary hover:bg-bg-sunken"}`,
|
|
68
|
+
children: [e, /* @__PURE__ */ o("span", {
|
|
68
69
|
className: "ms-1 text-text-muted",
|
|
69
70
|
children: [
|
|
70
71
|
"(",
|
|
@@ -77,4 +78,4 @@ var o = ({ filterTab: o, typeFilter: s, appFilter: c, sortBy: l, appNames: u, on
|
|
|
77
78
|
]
|
|
78
79
|
});
|
|
79
80
|
};
|
|
80
|
-
export {
|
|
81
|
+
export { s as NotificationFilters };
|