@burdenoff/fe-libs 2026.1118.13 → 2026.1119.1

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