@bfrs/agentic-components 0.9.1 → 0.9.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/components/data-display/DataTable/DataTable.d.ts +1 -1
- package/dist/components/data-display/DataTable/DataTable.js +370 -361
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +24 -0
- package/dist/components/data-display/DataTable/TablePagination.js +123 -73
- package/dist/components/data-display/DataTable/TablePagination.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/patterns/SidePanel/SidePanel.d.ts +94 -0
- package/dist/components/ui/patterns/SidePanel/SidePanel.js +265 -0
- package/dist/components/ui/patterns/SidePanel/SidePanel.js.map +1 -0
- package/dist/components/ui/patterns/SidePanel/index.d.ts +1 -0
- package/dist/custom-elements.js +10148 -10074
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +116 -114
- package/dist/index.js.map +1 -1
- package/dist/lib/useMediaQuery.d.ts +4 -0
- package/dist/lib/useMediaQuery.js +23 -0
- package/dist/lib/useMediaQuery.js.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Accordion as y } from "./components/ui/patterns/Accordion/Accordion.js"
|
|
|
5
5
|
import { ActionMenu as A } from "./components/navigation/ActionMenu/ActionMenu.js";
|
|
6
6
|
import { Alert as R } from "./components/ui/feedback/Alert/Alert.js";
|
|
7
7
|
import { Avatar as V } from "./components/ui/data-display/Avatar/Avatar.js";
|
|
8
|
-
import { BASE_YEAR as E, CUSTOM_PRESET_ID as
|
|
8
|
+
import { BASE_YEAR as E, CUSTOM_PRESET_ID as P, DAY_HEADS as I, DAY_MS as _, DAY_WINDOW_DAYS as M, MONTH_NAMES as O, RESTRICTED_WINDOW_DAYS as k, SHORT_MONTH_NAMES as v, YEAR_LAST_30_DAYS as Y, YEAR_LAST_ONE as L, YEAR_OPTIONS as F, addDays as z, buildDayWindowOptions as H, buildYearOptions as N, clampYearRange as W, coerceDateRangeValue as G, compareDay as K, computeDayWindowRange as U, computeLastOneYearRange as j, computeYearRange as q, dayWindowDays as J, dayWindowValue as Q, dayWindowValueForSpan as X, daysInMonth as Z, defaultDateRangePresets as $, defaultFormatDate as ee, differenceInCalendarDays as re, getInitialCalendar as oe, getPresetLabel as te, hasCompleteRange as ae, normalizeRange as pe, presetToRange as me, sameDay as fe, shiftMonth as ie, startOfDay as ne } from "./components/filters/DateRangePicker/DateRangePicker.utils.js";
|
|
9
9
|
import { Badge as le } from "./components/primitives/Badge/Badge.js";
|
|
10
10
|
import { BfrsAnalyticsProvider as de } from "./components/ui/providers/BfrsAnalyticsProvider/BfrsAnalyticsProvider.js";
|
|
11
11
|
import { BfrsPortalScope as Se, BfrsProvider as Te } from "./components/ui/providers/BfrsProvider/BfrsProvider.js";
|
|
@@ -15,7 +15,7 @@ import { BusinessInfoDisplayCard as he } from "./components/ui/patterns/Business
|
|
|
15
15
|
import { BusinessInfoDisplayCardSkeleton as De } from "./components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCardSkeleton.js";
|
|
16
16
|
import { Button as we, IconButton as Ve } from "./components/primitives/Button/Button.js";
|
|
17
17
|
import { ButtonGroup as Ee } from "./components/primitives/Button/ButtonGroup.js";
|
|
18
|
-
import { Card as
|
|
18
|
+
import { Card as Ie, CardContent as _e, CardFooter as Me, CardHeader as Oe } from "./components/primitives/Card/Card.js";
|
|
19
19
|
import { ChatBubble as ve } from "./components/ui/patterns/ChatBubble/ChatBubble.js";
|
|
20
20
|
import { ChatComposer as Le } from "./components/ui/patterns/ChatComposer/ChatComposer.js";
|
|
21
21
|
import { Checkbox as ze } from "./components/ui/forms/Checkbox/Checkbox.js";
|
|
@@ -38,7 +38,7 @@ import { FieldLabel as br, FormSection as Cr, HelperText as yr, InlineError as h
|
|
|
38
38
|
import { FileDropzone as Dr } from "./components/ui/forms/FileDropzone/FileDropzone.js";
|
|
39
39
|
import { FilterBar as wr } from "./components/filters/FilterBar/FilterBar.js";
|
|
40
40
|
import { FilterDrawer as Br } from "./components/filters/FilterDrawer/FilterDrawer.js";
|
|
41
|
-
import { FormField as
|
|
41
|
+
import { FormField as Pr } from "./components/ui/forms/FormField/FormField.js";
|
|
42
42
|
import { FullPageLoader as _r } from "./components/ui/patterns/FullPageLoader/FullPageLoader.js";
|
|
43
43
|
import { Grid as Or } from "./components/ui/primitives/Grid/Grid.js";
|
|
44
44
|
import { HorizontalStepper as vr } from "./components/ui/patterns/HorizontalStepper/HorizontalStepper.js";
|
|
@@ -64,50 +64,51 @@ import { RevealField as yo } from "./components/ui/forms/RevealField/RevealField
|
|
|
64
64
|
import { SearchableSelect as Ao } from "./components/ui/forms/SearchableSelect/SearchableSelect.js";
|
|
65
65
|
import { SectionHeader as Ro } from "./components/layout/SectionHeader/SectionHeader.js";
|
|
66
66
|
import { Select as Vo, groupSelectOptions as Bo } from "./components/ui/forms/Select/Select.js";
|
|
67
|
-
import { SelectableChipGroup as
|
|
67
|
+
import { SelectableChipGroup as Po } from "./components/ui/forms/SelectableChipGroup/SelectableChipGroup.js";
|
|
68
68
|
import { SideNav as _o } from "./components/ui/patterns/SideNav/SideNav.js";
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
69
|
+
import { SidePanel as Oo } from "./components/ui/patterns/SidePanel/SidePanel.js";
|
|
70
|
+
import { Skeleton as vo } from "./components/ui/feedback/Skeleton/Skeleton.js";
|
|
71
|
+
import { Slider as Lo } from "./components/ui/forms/Slider/Slider.js";
|
|
72
|
+
import { Spinner as zo } from "./components/ui/feedback/Spinner/Spinner.js";
|
|
73
|
+
import { Stack as No } from "./components/ui/primitives/Stack/Stack.js";
|
|
74
|
+
import { StepProgressCard as Go } from "./components/ui/patterns/StepProgressCard/StepProgressCard.js";
|
|
75
|
+
import { StepProgressCardSkeleton as Uo } from "./components/ui/patterns/StepProgressCard/StepProgressCardSkeleton.js";
|
|
76
|
+
import { SuggestInput as qo } from "./components/ui/forms/SuggestInput/SuggestInput.js";
|
|
77
|
+
import { SummaryBar as Qo } from "./components/ui/patterns/SummaryBar/SummaryBar.js";
|
|
78
|
+
import { Switch as Zo } from "./components/ui/forms/Switch/Switch.js";
|
|
79
|
+
import { Table as et, Tbody as rt, Td as ot, Tfoot as tt, Th as at, Thead as pt, Tr as mt } from "./components/data-display/Table/Table.js";
|
|
80
|
+
import { TableBulkActions as it } from "./components/data-display/DataTable/TableBulkActions.js";
|
|
81
|
+
import { TableColumnVisibility as xt } from "./components/data-display/DataTable/TableColumnVisibility.js";
|
|
82
|
+
import { TableEmptyState as st, TableEmptyStateContent as dt } from "./components/data-display/DataTable/TableEmptyState.js";
|
|
83
|
+
import { TableErrorState as St } from "./components/data-display/DataTable/TableErrorState.js";
|
|
84
|
+
import { TablePagination as gt } from "./components/data-display/DataTable/TablePagination.js";
|
|
85
|
+
import { TableRowActions as bt } from "./components/data-display/DataTable/TableRowActions.js";
|
|
86
|
+
import { TableSaveView as yt } from "./components/data-display/DataTable/TableSaveView.js";
|
|
87
|
+
import { TableSkeleton as At } from "./components/data-display/DataTable/TableSkeleton.js";
|
|
88
|
+
import { TableToolbar as Rt } from "./components/data-display/DataTable/TableToolbar.js";
|
|
89
|
+
import { TableViewSelector as Vt } from "./components/data-display/DataTable/TableViewSelector.js";
|
|
90
|
+
import { Tabs as Et } from "./components/navigation/Tabs/Tabs.js";
|
|
91
|
+
import { TagInput as It, TagsInput as _t } from "./components/ui/forms/TagInput/TagInput.js";
|
|
92
|
+
import { Text as Ot } from "./components/ui/primitives/Text/Text.js";
|
|
93
|
+
import { Textarea as vt } from "./components/ui/forms/Textarea/Textarea.js";
|
|
94
|
+
import { Tip as Lt } from "./components/ui/feedback/Tip/Tip.js";
|
|
95
|
+
import { ToastContext as zt, useToast as Ht } from "./components/feedback/Toast/Toast.context.js";
|
|
96
|
+
import { ToastManager as Wt, ToastProvider as Gt } from "./components/feedback/Toast/Toast.js";
|
|
97
|
+
import { Tooltip as Ut } from "./components/ui/overlays/Tooltip/Tooltip.js";
|
|
98
|
+
import { WorkspaceHeader as qt } from "./components/ui/patterns/WorkspaceHeader/WorkspaceHeader.js";
|
|
99
|
+
import { cardSizes as Qt, controlSizes as Xt, drawerSizes as Zt, iconSizes as $t, modalSizes as ea, tableDensities as ra } from "./tokens/sizes.js";
|
|
100
|
+
import { colors as ta } from "./tokens/colors.js";
|
|
101
|
+
import { createLocalSaveView as pa, createLocalViewStore as ma } from "./components/data-display/DataTable/viewStore.js";
|
|
102
|
+
import { createSavedViewAnalytics as ia, toSavedViewAnalyticsConfig as na, useSavedViewAnalytics as xa } from "./components/data-display/DataTable/savedViewAnalytics.js";
|
|
103
|
+
import { emitBfrsAnalytics as sa, getBfrsAnalyticsSink as da, setBfrsAnalyticsSink as ca, useBfrsAnalyticsSink as Sa } from "./components/ui/providers/BfrsAnalyticsProvider/analyticsContext.js";
|
|
104
|
+
import { motion as ga } from "./tokens/motion.js";
|
|
105
|
+
import { radius as ba } from "./tokens/radius.js";
|
|
106
|
+
import { shadows as ya } from "./tokens/shadows.js";
|
|
107
|
+
import { spacing as Aa } from "./tokens/spacing.js";
|
|
108
|
+
import { typography as Ra } from "./tokens/typography.js";
|
|
109
|
+
import { useSavedViews as Va } from "./components/data-display/DataTable/useSavedViews.js";
|
|
110
|
+
import { useViewDraft as Ea } from "./components/data-display/DataTable/useViewDraft.js";
|
|
111
|
+
import { zIndex as Ia } from "./tokens/zIndex.js";
|
|
111
112
|
export {
|
|
112
113
|
y as Accordion,
|
|
113
114
|
A as ActionMenu,
|
|
@@ -124,8 +125,8 @@ export {
|
|
|
124
125
|
De as BusinessInfoDisplayCardSkeleton,
|
|
125
126
|
we as Button,
|
|
126
127
|
Ee as ButtonGroup,
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
P as CUSTOM_PRESET_ID,
|
|
129
|
+
Ie as Card,
|
|
129
130
|
_e as CardContent,
|
|
130
131
|
Me as CardFooter,
|
|
131
132
|
Oe as CardHeader,
|
|
@@ -139,7 +140,7 @@ export {
|
|
|
139
140
|
Qe as CommandMenu,
|
|
140
141
|
Ze as ConfirmDialog,
|
|
141
142
|
er as Container,
|
|
142
|
-
|
|
143
|
+
I as DAY_HEADS,
|
|
143
144
|
_ as DAY_MS,
|
|
144
145
|
M as DAY_WINDOW_DAYS,
|
|
145
146
|
or as DataTable,
|
|
@@ -154,7 +155,7 @@ export {
|
|
|
154
155
|
Dr as FileDropzone,
|
|
155
156
|
wr as FilterBar,
|
|
156
157
|
Br as FilterDrawer,
|
|
157
|
-
|
|
158
|
+
Pr as FormField,
|
|
158
159
|
Cr as FormSection,
|
|
159
160
|
_r as FullPageLoader,
|
|
160
161
|
Or as Grid,
|
|
@@ -188,46 +189,47 @@ export {
|
|
|
188
189
|
Ao as SearchableSelect,
|
|
189
190
|
Ro as SectionHeader,
|
|
190
191
|
Vo as Select,
|
|
191
|
-
|
|
192
|
+
Po as SelectableChipGroup,
|
|
192
193
|
_o as SideNav,
|
|
193
|
-
Oo as
|
|
194
|
-
vo as
|
|
195
|
-
Lo as
|
|
196
|
-
zo as
|
|
197
|
-
No as
|
|
198
|
-
Go as
|
|
199
|
-
Uo as
|
|
200
|
-
qo as
|
|
201
|
-
Qo as
|
|
202
|
-
Zo as
|
|
203
|
-
|
|
204
|
-
it as
|
|
205
|
-
xt as
|
|
206
|
-
|
|
207
|
-
dt as
|
|
208
|
-
St as
|
|
209
|
-
gt as
|
|
210
|
-
bt as
|
|
211
|
-
yt as
|
|
212
|
-
At as
|
|
213
|
-
Rt as
|
|
214
|
-
Vt as
|
|
215
|
-
Et as
|
|
216
|
-
It as
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
Ot as
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
Lt as
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Gt as
|
|
229
|
-
|
|
230
|
-
|
|
194
|
+
Oo as SidePanel,
|
|
195
|
+
vo as Skeleton,
|
|
196
|
+
Lo as Slider,
|
|
197
|
+
zo as Spinner,
|
|
198
|
+
No as Stack,
|
|
199
|
+
Go as StepProgressCard,
|
|
200
|
+
Uo as StepProgressCardSkeleton,
|
|
201
|
+
qo as SuggestInput,
|
|
202
|
+
Qo as SummaryBar,
|
|
203
|
+
Zo as Switch,
|
|
204
|
+
et as Table,
|
|
205
|
+
it as TableBulkActions,
|
|
206
|
+
xt as TableColumnVisibility,
|
|
207
|
+
st as TableEmptyState,
|
|
208
|
+
dt as TableEmptyStateContent,
|
|
209
|
+
St as TableErrorState,
|
|
210
|
+
gt as TablePagination,
|
|
211
|
+
bt as TableRowActions,
|
|
212
|
+
yt as TableSaveView,
|
|
213
|
+
At as TableSkeleton,
|
|
214
|
+
Rt as TableToolbar,
|
|
215
|
+
Vt as TableViewSelector,
|
|
216
|
+
Et as Tabs,
|
|
217
|
+
It as TagInput,
|
|
218
|
+
_t as TagsInput,
|
|
219
|
+
rt as Tbody,
|
|
220
|
+
ot as Td,
|
|
221
|
+
Ot as Text,
|
|
222
|
+
vt as Textarea,
|
|
223
|
+
tt as Tfoot,
|
|
224
|
+
at as Th,
|
|
225
|
+
pt as Thead,
|
|
226
|
+
Lt as Tip,
|
|
227
|
+
zt as ToastContext,
|
|
228
|
+
Wt as ToastManager,
|
|
229
|
+
Gt as ToastProvider,
|
|
230
|
+
Ut as Tooltip,
|
|
231
|
+
mt as Tr,
|
|
232
|
+
qt as WorkspaceHeader,
|
|
231
233
|
Y as YEAR_LAST_30_DAYS,
|
|
232
234
|
L as YEAR_LAST_ONE,
|
|
233
235
|
F as YEAR_OPTIONS,
|
|
@@ -244,22 +246,22 @@ export {
|
|
|
244
246
|
s as applyAgenticTheme,
|
|
245
247
|
H as buildDayWindowOptions,
|
|
246
248
|
N as buildYearOptions,
|
|
247
|
-
|
|
249
|
+
Qt as cardSizes,
|
|
248
250
|
W as clampYearRange,
|
|
249
251
|
d as clearAgenticTheme,
|
|
250
252
|
b as cn,
|
|
251
253
|
G as coerceDateRangeValue,
|
|
252
|
-
|
|
254
|
+
ta as colors,
|
|
253
255
|
K as compareDay,
|
|
254
256
|
U as computeDayWindowRange,
|
|
255
257
|
j as computeLastOneYearRange,
|
|
256
258
|
q as computeYearRange,
|
|
257
|
-
|
|
259
|
+
Xt as controlSizes,
|
|
258
260
|
c as createAgenticThemeCssText,
|
|
259
261
|
S as createAgenticThemeVariables,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
262
|
+
pa as createLocalSaveView,
|
|
263
|
+
ma as createLocalViewStore,
|
|
264
|
+
ia as createSavedViewAnalytics,
|
|
263
265
|
J as dayWindowDays,
|
|
264
266
|
Q as dayWindowValue,
|
|
265
267
|
X as dayWindowValueForSpan,
|
|
@@ -267,35 +269,35 @@ export {
|
|
|
267
269
|
$ as defaultDateRangePresets,
|
|
268
270
|
ee as defaultFormatDate,
|
|
269
271
|
re as differenceInCalendarDays,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
Zt as drawerSizes,
|
|
273
|
+
sa as emitBfrsAnalytics,
|
|
274
|
+
da as getBfrsAnalyticsSink,
|
|
273
275
|
oe as getInitialCalendar,
|
|
274
276
|
te as getPresetLabel,
|
|
275
277
|
Bo as groupSelectOptions,
|
|
276
278
|
ae as hasCompleteRange,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
$t as iconSizes,
|
|
280
|
+
ea as modalSizes,
|
|
281
|
+
ga as motion,
|
|
280
282
|
pe as normalizeRange,
|
|
281
283
|
T as normalizeThemeColorValue,
|
|
282
284
|
g as normalizeThemeRgbChannels,
|
|
283
285
|
me as presetToRange,
|
|
284
|
-
|
|
286
|
+
ba as radius,
|
|
285
287
|
fe as sameDay,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
+
ca as setBfrsAnalyticsSink,
|
|
289
|
+
ya as shadows,
|
|
288
290
|
ie as shiftMonth,
|
|
289
|
-
|
|
291
|
+
Aa as spacing,
|
|
290
292
|
ne as startOfDay,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
293
|
+
ra as tableDensities,
|
|
294
|
+
na as toSavedViewAnalyticsConfig,
|
|
295
|
+
Ra as typography,
|
|
296
|
+
Sa as useBfrsAnalyticsSink,
|
|
297
|
+
xa as useSavedViewAnalytics,
|
|
298
|
+
Va as useSavedViews,
|
|
299
|
+
Ht as useToast,
|
|
300
|
+
Ea as useViewDraft,
|
|
301
|
+
Ia as zIndex
|
|
300
302
|
};
|
|
301
303
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Phones: narrower than the `md` breakpoint (48rem / 768px). */
|
|
2
|
+
export declare const phoneMediaQuery = "not all and (min-width: 48rem)";
|
|
3
|
+
/** Whether a media query matches, kept in sync as it changes. False on the server. */
|
|
4
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useCallback as o, useSyncExternalStore as c } from "react";
|
|
2
|
+
const r = "not all and (min-width: 48rem)", i = () => typeof window < "u" && typeof window.matchMedia == "function";
|
|
3
|
+
function s(e) {
|
|
4
|
+
const a = o(
|
|
5
|
+
(n) => {
|
|
6
|
+
if (!i()) return () => {
|
|
7
|
+
};
|
|
8
|
+
const t = window.matchMedia(e);
|
|
9
|
+
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
10
|
+
},
|
|
11
|
+
[e]
|
|
12
|
+
);
|
|
13
|
+
return c(
|
|
14
|
+
a,
|
|
15
|
+
() => i() && window.matchMedia(e).matches,
|
|
16
|
+
() => !1
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
r as phoneMediaQuery,
|
|
21
|
+
s as useMediaQuery
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=useMediaQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaQuery.js","sources":["../../src/lib/useMediaQuery.ts"],"sourcesContent":["import { useCallback, useSyncExternalStore } from \"react\";\n\n/** Phones: narrower than the `md` breakpoint (48rem / 768px). */\nexport const phoneMediaQuery = \"not all and (min-width: 48rem)\";\n\nconst canMatch = () => typeof window !== \"undefined\" && typeof window.matchMedia === \"function\";\n\n/** Whether a media query matches, kept in sync as it changes. False on the server. */\nexport function useMediaQuery(query: string): boolean {\n const subscribe = useCallback(\n (onChange: () => void) => {\n if (!canMatch()) return () => undefined;\n const list = window.matchMedia(query);\n list.addEventListener(\"change\", onChange);\n return () => list.removeEventListener(\"change\", onChange);\n },\n [query]\n );\n return useSyncExternalStore(\n subscribe,\n () => canMatch() && window.matchMedia(query).matches,\n () => false\n );\n}\n"],"names":["phoneMediaQuery","canMatch","useMediaQuery","query","subscribe","useCallback","onChange","list","useSyncExternalStore"],"mappings":";AAGO,MAAMA,IAAkB,kCAEzBC,IAAW,MAAM,OAAO,SAAW,OAAe,OAAO,OAAO,cAAe;AAG9E,SAASC,EAAcC,GAAwB;AACpD,QAAMC,IAAYC;AAAA,IAChB,CAACC,MAAyB;AACxB,UAAI,CAACL,IAAY,QAAO;;AACxB,YAAMM,IAAO,OAAO,WAAWJ,CAAK;AACpC,aAAAI,EAAK,iBAAiB,UAAUD,CAAQ,GACjC,MAAMC,EAAK,oBAAoB,UAAUD,CAAQ;AAAA,IAC1D;AAAA,IACA,CAACH,CAAK;AAAA,EAAA;AAER,SAAOK;AAAA,IACLJ;AAAA,IACA,MAAMH,EAAA,KAAc,OAAO,WAAWE,CAAK,EAAE;AAAA,IAC7C,MAAM;AAAA,EAAA;AAEV;"}
|