@noxickon/onyx 6.3.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
31
31
  toolbar: string;
32
32
  toolbarGroup: string;
33
33
  divider: string;
34
- filterChips: string;
34
+ collapse: string[];
35
+ collapseClip: string;
36
+ filterChipsRow: string;
35
37
  selectionActions: string;
36
38
  scroll: string;
37
39
  selectCol: string;
@@ -59,6 +61,10 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
59
61
  configLabel: string;
60
62
  configActions: string;
61
63
  configSeparator: string;
64
+ filterMenuItem: string;
65
+ skeleton: string;
66
+ skeletonToolbar: string;
67
+ skeletonBody: string;
62
68
  }, undefined, {
63
69
  density: {
64
70
  comfortable: {};
@@ -91,7 +97,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
91
97
  toolbar: string;
92
98
  toolbarGroup: string;
93
99
  divider: string;
94
- filterChips: string;
100
+ collapse: string[];
101
+ collapseClip: string;
102
+ filterChipsRow: string;
95
103
  selectionActions: string;
96
104
  scroll: string;
97
105
  selectCol: string;
@@ -119,6 +127,10 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
119
127
  configLabel: string;
120
128
  configActions: string;
121
129
  configSeparator: string;
130
+ filterMenuItem: string;
131
+ skeleton: string;
132
+ skeletonToolbar: string;
133
+ skeletonBody: string;
122
134
  }, import('tailwind-variants').TVReturnType<{
123
135
  density: {
124
136
  comfortable: {};
@@ -151,7 +163,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
151
163
  toolbar: string;
152
164
  toolbarGroup: string;
153
165
  divider: string;
154
- filterChips: string;
166
+ collapse: string[];
167
+ collapseClip: string;
168
+ filterChipsRow: string;
155
169
  selectionActions: string;
156
170
  scroll: string;
157
171
  selectCol: string;
@@ -179,5 +193,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
179
193
  configLabel: string;
180
194
  configActions: string;
181
195
  configSeparator: string;
196
+ filterMenuItem: string;
197
+ skeleton: string;
198
+ skeletonToolbar: string;
199
+ skeletonBody: string;
182
200
  }, undefined, unknown, unknown, undefined>>;
183
201
  export type DataTableVariants = VariantProps<typeof dataTableVariants>;
@@ -6,7 +6,14 @@ var t = e({
6
6
  toolbar: "flex min-h-13 items-center justify-between gap-3 border-b border-line px-3 py-2.25 pointer-coarse:flex-col pointer-coarse:items-stretch pointer-coarse:gap-2.5",
7
7
  toolbarGroup: "flex min-w-0 items-center gap-2",
8
8
  divider: "mx-1 h-6 w-px shrink-0 bg-line",
9
- filterChips: "flex flex-wrap items-center gap-2 border-b border-line px-3.5 py-2.5",
9
+ collapse: [
10
+ "grid grid-rows-[1fr] transition-[grid-template-rows,opacity] duration-300 ease-spring",
11
+ "starting:grid-rows-[0fr] starting:opacity-0",
12
+ "data-collapsed:grid-rows-[0fr] data-collapsed:opacity-0",
13
+ "motion-reduce:transition-none"
14
+ ],
15
+ collapseClip: "overflow-hidden",
16
+ filterChipsRow: "flex min-h-[calc(var(--control-h-md)+1.25rem+1px)] flex-wrap items-center gap-2 border-b border-line px-3.5 py-2.5",
10
17
  selectionActions: "flex min-w-0 items-center gap-3",
11
18
  scroll: "relative w-full overflow-auto [-webkit-overflow-scrolling:touch]",
12
19
  selectCol: "pointer-coarse:w-11",
@@ -25,7 +32,7 @@ var t = e({
25
32
  ],
26
33
  headSortIcon: "size-3.5 shrink-0 transition-colors",
27
34
  headMenuTrigger: [
28
- "inline-flex size-6 shrink-0 items-center justify-center rounded-sm text-fg-subtle",
35
+ "inline-flex size-6 shrink-0 items-center justify-center rounded-sm text-fg-subtle cursor-pointer",
29
36
  "opacity-0 transition-[opacity,color,background-color] group-hover/head:opacity-100",
30
37
  "hover:bg-fg/10 hover:text-fg data-[popup-open]:bg-fg/10 data-[popup-open]:opacity-100",
31
38
  "focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-ink"
@@ -41,12 +48,16 @@ var t = e({
41
48
  configPanel: "flex w-64 flex-col",
42
49
  configTitle: "px-2 pt-1.5 pb-2 text-body font-semibold text-fg",
43
50
  configList: "flex flex-col gap-0.5 py-1",
44
- configItem: "flex items-center gap-2.5 rounded-control px-2 py-1.5 hover:bg-fg/8",
51
+ configItem: "flex items-center gap-2.5 rounded-control px-2 py-1.5 ox-interactive:hover:bg-fg/8",
45
52
  configHandle: "shrink-0 cursor-grab text-fg-subtle active:cursor-grabbing",
46
53
  configHandleLocked: "shrink-0 text-fg-subtle opacity-30",
47
54
  configLabel: "flex-1 truncate text-body",
48
55
  configActions: "flex justify-end gap-2 p-2",
49
- configSeparator: "h-px bg-line"
56
+ configSeparator: "h-px bg-line",
57
+ filterMenuItem: "flex cursor-pointer items-center gap-2.5 rounded-control px-2 py-1.5 select-none ox-interactive:hover:bg-fg/8",
58
+ skeleton: "w-full overflow-hidden rounded-card border border-line bg-card shadow-[var(--shadow-card)]",
59
+ skeletonToolbar: "flex items-center justify-between border-b border-line px-3 py-2.25",
60
+ skeletonBody: "flex flex-col gap-3.5 p-4"
50
61
  },
51
62
  variants: {
52
63
  density: {
@@ -17,6 +17,7 @@ interface OxDataTableColumn<TRow> {
17
17
  locked?: boolean;
18
18
  minWidth?: number | string;
19
19
  sortable?: boolean;
20
+ system?: boolean;
20
21
  width?: number | string;
21
22
  }
22
23
  interface OxDataTableSortState {
@@ -80,12 +81,39 @@ interface OxDataTableToolbarGroupProps {
80
81
  interface OxDataTableFilterChipsProps {
81
82
  children?: ReactNode;
82
83
  className?: string;
84
+ clearLabel?: ReactNode;
85
+ onClearAll?: () => void;
83
86
  }
87
+ interface OxDataTableFilterMenuOption {
88
+ label: ReactNode;
89
+ value: string;
90
+ }
91
+ interface OxDataTableFilterMenuGroup {
92
+ id?: string;
93
+ label: ReactNode;
94
+ onToggle: (value: string) => void;
95
+ options: readonly OxDataTableFilterMenuOption[];
96
+ selected: ReadonlySet<string>;
97
+ }
98
+ interface OxDataTableFilterMenuProps {
99
+ className?: string;
100
+ groups: readonly OxDataTableFilterMenuGroup[];
101
+ trigger?: ReactNode;
102
+ triggerLabel?: string;
103
+ }
104
+ interface OxDataTableSkeletonProps {
105
+ className?: string;
106
+ rows?: number;
107
+ toolbar?: boolean;
108
+ }
109
+ type DataTablePaginationVariant = 'simple' | 'numbered';
84
110
  interface OxDataTablePaginationProps {
85
111
  className?: string;
86
112
  layout?: DataTablePaginationLayout;
87
113
  nextLabel?: string;
88
114
  previousLabel?: string;
115
+ summary?: ReactNode;
116
+ variant?: DataTablePaginationVariant;
89
117
  }
90
118
  interface OxDataTableFooterProps {
91
119
  children?: ReactNode;
@@ -93,6 +121,7 @@ interface OxDataTableFooterProps {
93
121
  }
94
122
  interface OxDataTableSelectionActionsProps<TRow> {
95
123
  children: (context: OxDataTableSelectionContext<TRow>) => ReactNode;
124
+ count?: number;
96
125
  fallback?: ReactNode;
97
126
  }
98
127
  interface OxDataTableColumnConfigProps {
@@ -102,4 +131,4 @@ interface OxDataTableColumnConfigProps {
102
131
  title?: ReactNode;
103
132
  trigger?: ReactNode;
104
133
  }
105
- export type { ColumnAccessor, DataTableAlign, DataTableDensity, DataTablePaginationLayout, DataTablePaginationMode, OxDataTableColumn, OxDataTableColumnConfigProps, OxDataTableFilterChipsProps, OxDataTableFooterProps, OxDataTablePaginationProps, OxDataTableProps, OxDataTableSelectionActionsProps, OxDataTableSelectionContext, OxDataTableSortState, OxDataTableToolbarGroupProps, OxDataTableToolbarProps, SortDirection, };
134
+ export type { ColumnAccessor, DataTableAlign, DataTableDensity, DataTablePaginationLayout, DataTablePaginationMode, DataTablePaginationVariant, OxDataTableColumn, OxDataTableColumnConfigProps, OxDataTableFilterChipsProps, OxDataTableFilterMenuGroup, OxDataTableFilterMenuOption, OxDataTableFilterMenuProps, OxDataTableFooterProps, OxDataTablePaginationProps, OxDataTableProps, OxDataTableSelectionActionsProps, OxDataTableSelectionContext, OxDataTableSkeletonProps, OxDataTableSortState, OxDataTableToolbarGroupProps, OxDataTableToolbarProps, SortDirection, };
@@ -1,13 +1,15 @@
1
- import { OxDataTableColumnConfig, OxDataTableDivider, OxDataTableFilterChips, OxDataTableFooter, OxDataTablePagination, OxDataTableRoot, OxDataTableSelectionActions, OxDataTableToolbar, OxDataTableToolbarGroup } from './DataTable';
1
+ import { OxDataTableColumnConfig, OxDataTableDivider, OxDataTableFilterChips, OxDataTableFilterMenu, OxDataTableFooter, OxDataTablePagination, OxDataTableRoot, OxDataTableSelectionActions, OxDataTableSkeleton, OxDataTableToolbar, OxDataTableToolbarGroup } from './DataTable';
2
2
  declare const OxDataTable: typeof OxDataTableRoot & {
3
3
  ColumnConfig: typeof OxDataTableColumnConfig;
4
4
  Divider: typeof OxDataTableDivider;
5
5
  FilterChips: typeof OxDataTableFilterChips;
6
+ FilterMenu: typeof OxDataTableFilterMenu;
6
7
  Footer: typeof OxDataTableFooter;
7
8
  Pagination: typeof OxDataTablePagination;
8
9
  SelectionActions: typeof OxDataTableSelectionActions;
10
+ Skeleton: typeof OxDataTableSkeleton;
9
11
  Toolbar: typeof OxDataTableToolbar;
10
12
  ToolbarGroup: typeof OxDataTableToolbarGroup;
11
13
  };
12
14
  export { OxDataTable };
13
- export type { ColumnAccessor, DataTableAlign, DataTableDensity, DataTablePaginationLayout, DataTablePaginationMode, OxDataTableColumn, OxDataTableColumnConfigProps, OxDataTableFilterChipsProps, OxDataTableFooterProps, OxDataTablePaginationProps, OxDataTableProps, OxDataTableSelectionActionsProps, OxDataTableSelectionContext, OxDataTableSortState, OxDataTableToolbarGroupProps, OxDataTableToolbarProps, SortDirection, } from './DataTable.types';
15
+ export type { ColumnAccessor, DataTableAlign, DataTableDensity, DataTablePaginationLayout, DataTablePaginationMode, DataTablePaginationVariant, OxDataTableColumn, OxDataTableColumnConfigProps, OxDataTableFilterChipsProps, OxDataTableFilterMenuGroup, OxDataTableFilterMenuOption, OxDataTableFilterMenuProps, OxDataTableFooterProps, OxDataTablePaginationProps, OxDataTableProps, OxDataTableSelectionActionsProps, OxDataTableSelectionContext, OxDataTableSkeletonProps, OxDataTableSortState, OxDataTableToolbarGroupProps, OxDataTableToolbarProps, SortDirection, } from './DataTable.types';
@@ -1,14 +1,16 @@
1
- import { OxDataTableColumnConfig as e, OxDataTableDivider as t, OxDataTableFilterChips as n, OxDataTableFooter as r, OxDataTablePagination as i, OxDataTableRoot as a, OxDataTableSelectionActions as o, OxDataTableToolbar as s, OxDataTableToolbarGroup as c } from "./DataTable.js";
1
+ import { OxDataTableColumnConfig as e, OxDataTableDivider as t, OxDataTableFilterChips as n, OxDataTableFilterMenu as r, OxDataTableFooter as i, OxDataTablePagination as a, OxDataTableRoot as o, OxDataTableSelectionActions as s, OxDataTableSkeleton as c, OxDataTableToolbar as l, OxDataTableToolbarGroup as u } from "./DataTable.js";
2
2
  //#region src/components/DataTable/index.ts
3
- var l = Object.assign(a, {
3
+ var d = Object.assign(o, {
4
4
  ColumnConfig: e,
5
5
  Divider: t,
6
6
  FilterChips: n,
7
- Footer: r,
8
- Pagination: i,
9
- SelectionActions: o,
10
- Toolbar: s,
11
- ToolbarGroup: c
7
+ FilterMenu: r,
8
+ Footer: i,
9
+ Pagination: a,
10
+ SelectionActions: s,
11
+ Skeleton: c,
12
+ Toolbar: l,
13
+ ToolbarGroup: u
12
14
  });
13
15
  //#endregion
14
- export { l as OxDataTable };
16
+ export { d as OxDataTable };
@@ -6,5 +6,6 @@ export * from './useForm';
6
6
  export * from './useMediaQuery';
7
7
  export * from './usePagination';
8
8
  export * from './usePoll';
9
+ export * from './useQuery';
9
10
  export * from './useRemember';
10
11
  export * from './useVirtualizer';
@@ -0,0 +1,2 @@
1
+ export { useOxQuery } from './useQuery';
2
+ export type { OxQueryFetcher, OxQueryFetcherResult, OxQueryResult } from './useQuery.types';
@@ -0,0 +1,3 @@
1
+ import { OxQueryFetcher, OxQueryResult } from './useQuery.types';
2
+ declare function useOxQuery<TData, TError = unknown>(fetcher: OxQueryFetcher<TData, TError>, dependencies: readonly unknown[]): OxQueryResult<TData, TError>;
3
+ export { useOxQuery };
@@ -0,0 +1,53 @@
1
+ import { c as e } from "react/compiler-runtime";
2
+ import { useEffect as t, useRef as n, useState as r } from "react";
3
+ //#region src/hooks/useQuery/useQuery.ts
4
+ function i(i, o) {
5
+ let s = e(14), [c, l] = r(void 0), [u, d] = r(void 0), [f, p] = r(!0), [m, h] = r(void 0), [g, _] = r(0), v = n(i), y;
6
+ s[0] === i ? y = s[1] : (y = () => {
7
+ v.current = i;
8
+ }, s[0] = i, s[1] = y), t(y);
9
+ let b;
10
+ s[2] !== o || s[3] !== g ? (b = JSON.stringify([...o, g]), s[2] = o, s[3] = g, s[4] = b) : b = s[4];
11
+ let x = b, [S, C] = r(x);
12
+ x !== S && (C(x), p(!0), h(void 0), d((e) => c ?? e), l(void 0));
13
+ let w;
14
+ s[5] === Symbol.for("react.memo_cache_sentinel") ? (w = () => {
15
+ let e = new AbortController(), t = !1;
16
+ return (async () => {
17
+ try {
18
+ let n = await v.current(e.signal);
19
+ if (t) return;
20
+ if (p(!1), n.error !== void 0) {
21
+ h(n.error);
22
+ return;
23
+ }
24
+ l(n.data);
25
+ } catch (e) {
26
+ let n = e;
27
+ if (t || n instanceof DOMException && n.name === "AbortError") return;
28
+ p(!1), h(n instanceof Error ? n : Error(String(n)));
29
+ }
30
+ })(), () => {
31
+ t = !0, e.abort();
32
+ };
33
+ }, s[5] = w) : w = s[5];
34
+ let T;
35
+ s[6] === x ? T = s[7] : (T = [x], s[6] = x, s[7] = T), t(w, T);
36
+ let E;
37
+ s[8] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
38
+ _(a);
39
+ }, s[8] = E) : E = s[8];
40
+ let D = E, O;
41
+ return s[9] !== c || s[10] !== m || s[11] !== f || s[12] !== u ? (O = {
42
+ data: c,
43
+ error: m,
44
+ loading: f,
45
+ previousData: u,
46
+ refetch: D
47
+ }, s[9] = c, s[10] = m, s[11] = f, s[12] = u, s[13] = O) : O = s[13], O;
48
+ }
49
+ function a(e) {
50
+ return e + 1;
51
+ }
52
+ //#endregion
53
+ export { i as useOxQuery };
@@ -0,0 +1,12 @@
1
+ export interface OxQueryFetcherResult<TData, TError = unknown> {
2
+ data?: TData;
3
+ error?: TError;
4
+ }
5
+ export type OxQueryFetcher<TData, TError = unknown> = (signal: AbortSignal) => Promise<OxQueryFetcherResult<TData, TError>>;
6
+ export interface OxQueryResult<TData, TError = unknown> {
7
+ data: TData | undefined;
8
+ error: Error | TError | undefined;
9
+ loading: boolean;
10
+ previousData: TData | undefined;
11
+ refetch: () => void;
12
+ }
package/dist/hooks.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { useOxMediaQuery as e } from "./hooks/useMediaQuery/useMediaQuery.js";
2
- import { oxBreakpoints as t, useOxBreakpoint as n, useOxBreakpointDown as r, useOxBreakpointUp as i } from "./hooks/useBreakpoint/useBreakpoint.js";
3
- import { useOxVirtualizer as a } from "./hooks/useVirtualizer/useVirtualizer.js";
4
- import { useOxCommandShortcut as o } from "./hooks/useCommandShortcut/useCommandShortcut.js";
5
- import { useOxDebounce as s, useOxDebouncedValue as c } from "./hooks/useDebounce/useDebounce.js";
6
- import { OxFormErrors as l, formErrors as u, useOxForm as d } from "./hooks/useForm/useForm.js";
7
- import { standardSchemaResolver as f } from "./hooks/useForm/standardSchemaResolver.js";
8
- import { useOxFilter as p } from "./hooks/useFilter/useFilter.js";
9
- import { useOxPagination as m } from "./hooks/usePagination/usePagination.js";
2
+ import { useOxPagination as t } from "./hooks/usePagination/usePagination.js";
3
+ import { oxBreakpoints as n, useOxBreakpoint as r, useOxBreakpointDown as i, useOxBreakpointUp as a } from "./hooks/useBreakpoint/useBreakpoint.js";
4
+ import { useOxVirtualizer as o } from "./hooks/useVirtualizer/useVirtualizer.js";
5
+ import { useOxCommandShortcut as s } from "./hooks/useCommandShortcut/useCommandShortcut.js";
6
+ import { useOxDebounce as c, useOxDebouncedValue as l } from "./hooks/useDebounce/useDebounce.js";
7
+ import { OxFormErrors as u, formErrors as d, useOxForm as f } from "./hooks/useForm/useForm.js";
8
+ import { standardSchemaResolver as p } from "./hooks/useForm/standardSchemaResolver.js";
9
+ import { useOxFilter as m } from "./hooks/useFilter/useFilter.js";
10
10
  import { useOxPoll as h } from "./hooks/usePoll/usePoll.js";
11
- import { oxHistoryStateAdapter as g, oxLocalStorageAdapter as _, oxSessionStorageAdapter as v } from "./hooks/useRemember/useRemember.adapters.js";
12
- import { useOxRemember as y } from "./hooks/useRemember/useRemember.js";
13
- export { l as OxFormErrors, u as formErrors, t as oxBreakpoints, g as oxHistoryStateAdapter, _ as oxLocalStorageAdapter, v as oxSessionStorageAdapter, f as standardSchemaResolver, n as useOxBreakpoint, r as useOxBreakpointDown, i as useOxBreakpointUp, o as useOxCommandShortcut, s as useOxDebounce, c as useOxDebouncedValue, p as useOxFilter, d as useOxForm, e as useOxMediaQuery, m as useOxPagination, h as useOxPoll, y as useOxRemember, a as useOxVirtualizer };
11
+ import { useOxQuery as g } from "./hooks/useQuery/useQuery.js";
12
+ import { oxHistoryStateAdapter as _, oxLocalStorageAdapter as v, oxSessionStorageAdapter as y } from "./hooks/useRemember/useRemember.adapters.js";
13
+ import { useOxRemember as b } from "./hooks/useRemember/useRemember.js";
14
+ export { u as OxFormErrors, d as formErrors, n as oxBreakpoints, _ as oxHistoryStateAdapter, v as oxLocalStorageAdapter, y as oxSessionStorageAdapter, p as standardSchemaResolver, r as useOxBreakpoint, i as useOxBreakpointDown, a as useOxBreakpointUp, s as useOxCommandShortcut, c as useOxDebounce, l as useOxDebouncedValue, m as useOxFilter, f as useOxForm, e as useOxMediaQuery, t as useOxPagination, h as useOxPoll, g as useOxQuery, b as useOxRemember, o as useOxVirtualizer };
package/dist/index.js CHANGED
@@ -22,26 +22,26 @@ import { OxContextMenu as T } from "./components/ContextMenu/index.js";
22
22
  import { OxCopyButton as E } from "./components/CopyButton/CopyButton.js";
23
23
  import { OxInput as D } from "./components/Input/index.js";
24
24
  import { OxCopyInput as O } from "./components/CopyInput/CopyInput.js";
25
- import { OxPopover as k } from "./components/Popover/index.js";
26
- import { OxSkeleton as A } from "./components/Skeleton/Skeleton2.js";
27
- import { OxTable as j } from "./components/Table/index.js";
28
- import { OxDataTable as M } from "./components/DataTable/index.js";
29
- import { OxDescriptionList as N } from "./components/DescriptionList/index.js";
30
- import { OxDialog as P } from "./components/Dialog/index.js";
31
- import { OxDrawer as F } from "./components/Drawer/index.js";
32
- import { OxField as I } from "./components/Field/index.js";
33
- import { OxFieldset as L } from "./components/Fieldset/index.js";
34
- import { OxFooter as R } from "./components/Footer/index.js";
35
- import { OxHeader as z } from "./components/Header/index.js";
36
- import { OxHoldToDelete as B } from "./components/HoldToDelete/HoldToDelete2.js";
37
- import { OxKbd as V } from "./components/Kbd/Kbd.js";
38
- import { OxMain as H } from "./components/Main/Main.js";
39
- import { OxMeter as U } from "./components/Meter/index.js";
40
- import { OxNavigationMenu as W } from "./components/NavigationMenu/index.js";
41
- import { OxNumberInput as G } from "./components/NumberInput/index.js";
42
- import { OxOtpField as K } from "./components/OtpField/OtpField.js";
43
- import { OxPageProgress as q } from "./components/PageProgress/PageProgress.js";
44
- import { OxPagination as J } from "./components/Pagination/index.js";
25
+ import { OxPagination as k } from "./components/Pagination/index.js";
26
+ import { OxPopover as A } from "./components/Popover/index.js";
27
+ import { OxSkeleton as j } from "./components/Skeleton/Skeleton2.js";
28
+ import { OxTable as M } from "./components/Table/index.js";
29
+ import { OxDataTable as N } from "./components/DataTable/index.js";
30
+ import { OxDescriptionList as P } from "./components/DescriptionList/index.js";
31
+ import { OxDialog as F } from "./components/Dialog/index.js";
32
+ import { OxDrawer as I } from "./components/Drawer/index.js";
33
+ import { OxField as L } from "./components/Field/index.js";
34
+ import { OxFieldset as R } from "./components/Fieldset/index.js";
35
+ import { OxFooter as z } from "./components/Footer/index.js";
36
+ import { OxHeader as B } from "./components/Header/index.js";
37
+ import { OxHoldToDelete as V } from "./components/HoldToDelete/HoldToDelete2.js";
38
+ import { OxKbd as H } from "./components/Kbd/Kbd.js";
39
+ import { OxMain as U } from "./components/Main/Main.js";
40
+ import { OxMeter as W } from "./components/Meter/index.js";
41
+ import { OxNavigationMenu as G } from "./components/NavigationMenu/index.js";
42
+ import { OxNumberInput as K } from "./components/NumberInput/index.js";
43
+ import { OxOtpField as q } from "./components/OtpField/OtpField.js";
44
+ import { OxPageProgress as J } from "./components/PageProgress/PageProgress.js";
45
45
  import { OxProgress as Y } from "./components/Progress/index.js";
46
46
  import { OxRadio as X, OxRadioGroup as Z } from "./components/Radio/Radio.js";
47
47
  import { OxResponsiveOverlay as Q } from "./components/ResponsiveOverlay/index.js";
@@ -63,4 +63,4 @@ import { OxToast as ge } from "./components/Toast/index.js";
63
63
  import { OxToggle as _e } from "./components/Toggle/index.js";
64
64
  import { OxTypewriter as ve } from "./components/Typewriter/index.js";
65
65
  import { OxVirtualList as ye } from "./components/VirtualList/VirtualList.js";
66
- export { e as OxAccordion, t as OxAlert, r as OxAlertDialog, i as OxAnimatedGradientText, a as OxAppLayout, s as OxAutocomplete, u as OxAvatar, d as OxAvatarGroup, f as OxBadge, m as OxBlurSwitch, g as OxBreadcrumb, p as OxButton, _ as OxCard, C as OxCheckbox, w as OxCheckboxGroup, de as OxChip, v as OxCollapsible, y as OxCombobox, S as OxCommand, T as OxContextMenu, E as OxCopyButton, O as OxCopyInput, M as OxDataTable, N as OxDescriptionList, P as OxDialog, F as OxDrawer, h as OxDropdown, I as OxField, L as OxFieldset, R as OxFooter, z as OxHeader, B as OxHoldToDelete, n as OxIconTile, D as OxInput, V as OxKbd, H as OxMain, U as OxMeter, W as OxNavigationMenu, G as OxNumberInput, K as OxOtpField, q as OxPageProgress, J as OxPagination, k as OxPopover, Y as OxProgress, X as OxRadio, Z as OxRadioGroup, Q as OxResponsiveOverlay, ee as OxScrollArea, $ as OxSelect, te as OxSeparator, ne as OxSidebar, ae as OxSidebarRail, A as OxSkeleton, le as OxSlider, o as OxSpinner, ue as OxStatusDisplay, oe as OxSwitch, se as OxTabBar, j as OxTable, ce as OxTabs, fe as OxTextarea, ge as OxToast, _e as OxToggle, re as OxTooltip, ie as OxTooltipProvider, ve as OxTypewriter, ye as OxVirtualList, pe as createOxToastManager, me as oxToast, c as useOxAutocompleteFilter, l as useOxAutocompleteFilteredItems, b as useOxComboboxFilter, x as useOxComboboxFilteredItems, he as useOxToast };
66
+ export { e as OxAccordion, t as OxAlert, r as OxAlertDialog, i as OxAnimatedGradientText, a as OxAppLayout, s as OxAutocomplete, u as OxAvatar, d as OxAvatarGroup, f as OxBadge, m as OxBlurSwitch, g as OxBreadcrumb, p as OxButton, _ as OxCard, C as OxCheckbox, w as OxCheckboxGroup, de as OxChip, v as OxCollapsible, y as OxCombobox, S as OxCommand, T as OxContextMenu, E as OxCopyButton, O as OxCopyInput, N as OxDataTable, P as OxDescriptionList, F as OxDialog, I as OxDrawer, h as OxDropdown, L as OxField, R as OxFieldset, z as OxFooter, B as OxHeader, V as OxHoldToDelete, n as OxIconTile, D as OxInput, H as OxKbd, U as OxMain, W as OxMeter, G as OxNavigationMenu, K as OxNumberInput, q as OxOtpField, J as OxPageProgress, k as OxPagination, A as OxPopover, Y as OxProgress, X as OxRadio, Z as OxRadioGroup, Q as OxResponsiveOverlay, ee as OxScrollArea, $ as OxSelect, te as OxSeparator, ne as OxSidebar, ae as OxSidebarRail, j as OxSkeleton, le as OxSlider, o as OxSpinner, ue as OxStatusDisplay, oe as OxSwitch, se as OxTabBar, M as OxTable, ce as OxTabs, fe as OxTextarea, ge as OxToast, _e as OxToggle, re as OxTooltip, ie as OxTooltipProvider, ve as OxTypewriter, ye as OxVirtualList, pe as createOxToastManager, me as oxToast, c as useOxAutocompleteFilter, l as useOxAutocompleteFilteredItems, b as useOxComboboxFilter, x as useOxComboboxFilteredItems, he as useOxToast };
@@ -0,0 +1,5 @@
1
+ export declare class OxRestError extends Error {
2
+ readonly status: number;
3
+ readonly body: unknown;
4
+ constructor(status: number, body: unknown);
5
+ }
@@ -0,0 +1,10 @@
1
+ //#region src/rest/executors/OxRestError.ts
2
+ var e = class extends Error {
3
+ status;
4
+ body;
5
+ constructor(e, t) {
6
+ super(`HTTP ${e}`), this.name = "OxRestError", this.status = e, this.body = t;
7
+ }
8
+ };
9
+ //#endregion
10
+ export { e as OxRestError };