@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/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 I, DAY_HEADS as P, 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";
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 Pe, CardContent as _e, CardFooter as Me, CardHeader as Oe } from "./components/primitives/Card/Card.js";
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 Ir } from "./components/ui/forms/FormField/FormField.js";
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 Io } from "./components/ui/forms/SelectableChipGroup/SelectableChipGroup.js";
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 { Skeleton as Oo } from "./components/ui/feedback/Skeleton/Skeleton.js";
70
- import { Slider as vo } from "./components/ui/forms/Slider/Slider.js";
71
- import { Spinner as Lo } from "./components/ui/feedback/Spinner/Spinner.js";
72
- import { Stack as zo } from "./components/ui/primitives/Stack/Stack.js";
73
- import { StepProgressCard as No } from "./components/ui/patterns/StepProgressCard/StepProgressCard.js";
74
- import { StepProgressCardSkeleton as Go } from "./components/ui/patterns/StepProgressCard/StepProgressCardSkeleton.js";
75
- import { SuggestInput as Uo } from "./components/ui/forms/SuggestInput/SuggestInput.js";
76
- import { SummaryBar as qo } from "./components/ui/patterns/SummaryBar/SummaryBar.js";
77
- import { Switch as Qo } from "./components/ui/forms/Switch/Switch.js";
78
- import { Table as Zo, Tbody as $o, Td as et, Tfoot as rt, Th as ot, Thead as tt, Tr as at } from "./components/data-display/Table/Table.js";
79
- import { TableBulkActions as mt } from "./components/data-display/DataTable/TableBulkActions.js";
80
- import { TableColumnVisibility as it } from "./components/data-display/DataTable/TableColumnVisibility.js";
81
- import { TableEmptyState as xt, TableEmptyStateContent as lt } from "./components/data-display/DataTable/TableEmptyState.js";
82
- import { TableErrorState as dt } from "./components/data-display/DataTable/TableErrorState.js";
83
- import { TablePagination as St } from "./components/data-display/DataTable/TablePagination.js";
84
- import { TableRowActions as gt } from "./components/data-display/DataTable/TableRowActions.js";
85
- import { TableSaveView as bt } from "./components/data-display/DataTable/TableSaveView.js";
86
- import { TableSkeleton as yt } from "./components/data-display/DataTable/TableSkeleton.js";
87
- import { TableToolbar as At } from "./components/data-display/DataTable/TableToolbar.js";
88
- import { TableViewSelector as Rt } from "./components/data-display/DataTable/TableViewSelector.js";
89
- import { Tabs as Vt } from "./components/navigation/Tabs/Tabs.js";
90
- import { TagInput as Et, TagsInput as It } from "./components/ui/forms/TagInput/TagInput.js";
91
- import { Text as _t } from "./components/ui/primitives/Text/Text.js";
92
- import { Textarea as Ot } from "./components/ui/forms/Textarea/Textarea.js";
93
- import { Tip as vt } from "./components/ui/feedback/Tip/Tip.js";
94
- import { ToastContext as Lt, useToast as Ft } from "./components/feedback/Toast/Toast.context.js";
95
- import { ToastManager as Ht, ToastProvider as Nt } from "./components/feedback/Toast/Toast.js";
96
- import { Tooltip as Gt } from "./components/ui/overlays/Tooltip/Tooltip.js";
97
- import { WorkspaceHeader as Ut } from "./components/ui/patterns/WorkspaceHeader/WorkspaceHeader.js";
98
- import { cardSizes as qt, controlSizes as Jt, drawerSizes as Qt, iconSizes as Xt, modalSizes as Zt, tableDensities as $t } from "./tokens/sizes.js";
99
- import { colors as ra } from "./tokens/colors.js";
100
- import { createLocalSaveView as ta, createLocalViewStore as aa } from "./components/data-display/DataTable/viewStore.js";
101
- import { createSavedViewAnalytics as ma, toSavedViewAnalyticsConfig as fa, useSavedViewAnalytics as ia } from "./components/data-display/DataTable/savedViewAnalytics.js";
102
- import { emitBfrsAnalytics as xa, getBfrsAnalyticsSink as la, setBfrsAnalyticsSink as sa, useBfrsAnalyticsSink as da } from "./components/ui/providers/BfrsAnalyticsProvider/analyticsContext.js";
103
- import { motion as Sa } from "./tokens/motion.js";
104
- import { radius as ga } from "./tokens/radius.js";
105
- import { shadows as ba } from "./tokens/shadows.js";
106
- import { spacing as ya } from "./tokens/spacing.js";
107
- import { typography as Aa } from "./tokens/typography.js";
108
- import { useSavedViews as Ra } from "./components/data-display/DataTable/useSavedViews.js";
109
- import { useViewDraft as Va } from "./components/data-display/DataTable/useViewDraft.js";
110
- import { zIndex as Ea } from "./tokens/zIndex.js";
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
- I as CUSTOM_PRESET_ID,
128
- Pe as Card,
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
- P as DAY_HEADS,
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
- Ir as FormField,
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
- Io as SelectableChipGroup,
192
+ Po as SelectableChipGroup,
192
193
  _o as SideNav,
193
- Oo as Skeleton,
194
- vo as Slider,
195
- Lo as Spinner,
196
- zo as Stack,
197
- No as StepProgressCard,
198
- Go as StepProgressCardSkeleton,
199
- Uo as SuggestInput,
200
- qo as SummaryBar,
201
- Qo as Switch,
202
- Zo as Table,
203
- mt as TableBulkActions,
204
- it as TableColumnVisibility,
205
- xt as TableEmptyState,
206
- lt as TableEmptyStateContent,
207
- dt as TableErrorState,
208
- St as TablePagination,
209
- gt as TableRowActions,
210
- bt as TableSaveView,
211
- yt as TableSkeleton,
212
- At as TableToolbar,
213
- Rt as TableViewSelector,
214
- Vt as Tabs,
215
- Et as TagInput,
216
- It as TagsInput,
217
- $o as Tbody,
218
- et as Td,
219
- _t as Text,
220
- Ot as Textarea,
221
- rt as Tfoot,
222
- ot as Th,
223
- tt as Thead,
224
- vt as Tip,
225
- Lt as ToastContext,
226
- Ht as ToastManager,
227
- Nt as ToastProvider,
228
- Gt as Tooltip,
229
- at as Tr,
230
- Ut as WorkspaceHeader,
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
- qt as cardSizes,
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
- ra as colors,
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
- Jt as controlSizes,
259
+ Xt as controlSizes,
258
260
  c as createAgenticThemeCssText,
259
261
  S as createAgenticThemeVariables,
260
- ta as createLocalSaveView,
261
- aa as createLocalViewStore,
262
- ma as createSavedViewAnalytics,
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
- Qt as drawerSizes,
271
- xa as emitBfrsAnalytics,
272
- la as getBfrsAnalyticsSink,
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
- Xt as iconSizes,
278
- Zt as modalSizes,
279
- Sa as motion,
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
- ga as radius,
286
+ ba as radius,
285
287
  fe as sameDay,
286
- sa as setBfrsAnalyticsSink,
287
- ba as shadows,
288
+ ca as setBfrsAnalyticsSink,
289
+ ya as shadows,
288
290
  ie as shiftMonth,
289
- ya as spacing,
291
+ Aa as spacing,
290
292
  ne as startOfDay,
291
- $t as tableDensities,
292
- fa as toSavedViewAnalyticsConfig,
293
- Aa as typography,
294
- da as useBfrsAnalyticsSink,
295
- ia as useSavedViewAnalytics,
296
- Ra as useSavedViews,
297
- Ft as useToast,
298
- Va as useViewDraft,
299
- Ea as zIndex
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;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfrs/agentic-components",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "private": false,
5
5
  "description": "Shiprocket agentic component library and documentation showcase.",
6
6
  "keywords": [