@simpleapps-com/augur-web 2026.11.1 → 2026.11.3
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/EXPORTS.md +1 -1
- package/README.md +7 -2
- package/dist/add-to-cart-button.cjs +3 -2
- package/dist/add-to-cart-button.cjs.map +1 -1
- package/dist/add-to-cart-button.js +2 -1
- package/dist/add-to-cart-button.js.map +1 -1
- package/dist/bin-scan.d.ts +23 -0
- package/dist/bin-scan.d.ts.map +1 -0
- package/dist/button.d.ts +1 -1
- package/dist/{chunk-32XB3REY.cjs → chunk-6SSR5Z6X.cjs} +8 -5
- package/dist/chunk-6SSR5Z6X.cjs.map +1 -0
- package/dist/{chunk-RCUKSVMF.js → chunk-6USFUHWW.js} +9 -14
- package/dist/chunk-6USFUHWW.js.map +1 -0
- package/dist/{chunk-WJUDOEVB.cjs → chunk-7RDA26CL.cjs} +7 -7
- package/dist/{chunk-WJUDOEVB.cjs.map → chunk-7RDA26CL.cjs.map} +1 -1
- package/dist/{chunk-UMNTUD2P.js → chunk-AC3OCGDU.js} +6 -8
- package/dist/chunk-AC3OCGDU.js.map +1 -0
- package/dist/{chunk-MOC5N2N4.js → chunk-BSRLAXZ2.js} +9 -6
- package/dist/chunk-BSRLAXZ2.js.map +1 -0
- package/dist/{chunk-UB7HYAAC.js → chunk-EBCKH6JE.js} +6 -3
- package/dist/chunk-EBCKH6JE.js.map +1 -0
- package/dist/{chunk-WFMP6TZN.js → chunk-I6LMIYVF.js} +3 -3
- package/dist/{chunk-RGJT67PN.js → chunk-IDCDOE2L.js} +6 -3
- package/dist/chunk-IDCDOE2L.js.map +1 -0
- package/dist/{chunk-MXSQYVCK.js → chunk-IXQFZJSN.js} +7 -3
- package/dist/chunk-IXQFZJSN.js.map +1 -0
- package/dist/{chunk-76RSVRGB.cjs → chunk-KVJQIZSM.cjs} +10 -15
- package/dist/chunk-KVJQIZSM.cjs.map +1 -0
- package/dist/{chunk-OQV27VC5.cjs → chunk-L7JN7ED7.cjs} +37 -37
- package/dist/chunk-L7JN7ED7.cjs.map +1 -0
- package/dist/{chunk-JXW4XE2P.cjs → chunk-N57EZBPE.cjs} +10 -7
- package/dist/chunk-N57EZBPE.cjs.map +1 -0
- package/dist/chunk-NBXA42AW.cjs +534 -0
- package/dist/chunk-NBXA42AW.cjs.map +1 -0
- package/dist/chunk-NSMOT7GD.js +534 -0
- package/dist/chunk-NSMOT7GD.js.map +1 -0
- package/dist/{chunk-BXMTQGKV.cjs → chunk-OJS2B6U2.cjs} +7 -3
- package/dist/chunk-OJS2B6U2.cjs.map +1 -0
- package/dist/{chunk-5VMEEKZ5.cjs → chunk-SJGSBMMN.cjs} +7 -9
- package/dist/chunk-SJGSBMMN.cjs.map +1 -0
- package/dist/{chunk-PFEPE5UE.js → chunk-TEDFINZP.js} +2 -2
- package/dist/{chunk-YTBB63IE.cjs → chunk-VCFKYOVH.cjs} +3 -3
- package/dist/{chunk-YTBB63IE.cjs.map → chunk-VCFKYOVH.cjs.map} +1 -1
- package/dist/{chunk-Z57QBVUC.cjs → chunk-VXVOYZBN.cjs} +8 -5
- package/dist/chunk-VXVOYZBN.cjs.map +1 -0
- package/dist/{chunk-JWTTXZDS.js → chunk-YJDVFOVR.js} +40 -40
- package/dist/chunk-YJDVFOVR.js.map +1 -0
- package/dist/command.cjs +3 -3
- package/dist/command.cjs.map +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +2 -2
- package/dist/command.js.map +1 -1
- package/dist/confirm-dialog.cjs +3 -2
- package/dist/confirm-dialog.cjs.map +1 -1
- package/dist/confirm-dialog.js +2 -1
- package/dist/confirm-dialog.js.map +1 -1
- package/dist/data-table.cjs +65 -46
- package/dist/data-table.cjs.map +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +59 -40
- package/dist/data-table.js.map +1 -1
- package/dist/detail-panel.cjs +71 -63
- package/dist/detail-panel.cjs.map +1 -1
- package/dist/detail-panel.d.ts.map +1 -1
- package/dist/detail-panel.js +70 -62
- package/dist/detail-panel.js.map +1 -1
- package/dist/dropdown-menu.cjs +3 -2
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +2 -1
- package/dist/financing-widget.cjs +4 -1
- package/dist/financing-widget.cjs.map +1 -1
- package/dist/financing-widget.d.ts.map +1 -1
- package/dist/financing-widget.js +4 -1
- package/dist/financing-widget.js.map +1 -1
- package/dist/form-field.cjs +3 -2
- package/dist/form-field.cjs.map +1 -1
- package/dist/form-field.d.ts.map +1 -1
- package/dist/form-field.js +2 -1
- package/dist/form-input.cjs +4 -3
- package/dist/form-input.cjs.map +1 -1
- package/dist/form-input.d.ts.map +1 -1
- package/dist/form-input.js +3 -2
- package/dist/form-select.cjs +5 -4
- package/dist/form-select.cjs.map +1 -1
- package/dist/form-select.js +4 -3
- package/dist/form-textarea.cjs +4 -3
- package/dist/form-textarea.cjs.map +1 -1
- package/dist/form-textarea.d.ts.map +1 -1
- package/dist/form-textarea.js +3 -2
- package/dist/gtm.cjs +3 -3
- package/dist/gtm.js +2 -2
- package/dist/pagination.cjs +3 -3
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +2 -2
- package/dist/payment-modal.cjs +52 -34
- package/dist/payment-modal.cjs.map +1 -1
- package/dist/payment-modal.d.ts +4 -4
- package/dist/payment-modal.d.ts.map +1 -1
- package/dist/payment-modal.js +52 -34
- package/dist/payment-modal.js.map +1 -1
- package/dist/popover.cjs +4 -4
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.js +3 -3
- package/dist/popover.js.map +1 -1
- package/dist/price.cjs +2 -2
- package/dist/price.js +1 -1
- package/dist/provider.cjs +3 -3
- package/dist/provider.js +2 -2
- package/dist/quantity-input.cjs +125 -111
- package/dist/quantity-input.cjs.map +1 -1
- package/dist/quantity-input.d.ts +16 -5
- package/dist/quantity-input.d.ts.map +1 -1
- package/dist/quantity-input.js +127 -113
- package/dist/quantity-input.js.map +1 -1
- package/dist/resource-tabs.cjs +10 -5
- package/dist/resource-tabs.cjs.map +1 -1
- package/dist/resource-tabs.d.ts +1 -1
- package/dist/resource-tabs.d.ts.map +1 -1
- package/dist/resource-tabs.js +10 -5
- package/dist/resource-tabs.js.map +1 -1
- package/dist/rules.d.ts +315 -17
- package/dist/rules.d.ts.map +1 -1
- package/dist/select.cjs +3 -2
- package/dist/select.cjs.map +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +2 -1
- package/dist/separator.cjs +8 -9
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +7 -8
- package/dist/separator.js.map +1 -1
- package/dist/session-replay.cjs +2 -2
- package/dist/session-replay.js +1 -1
- package/dist/spinner.cjs +3 -2
- package/dist/spinner.cjs.map +1 -1
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.js +2 -1
- package/dist/stock-label.cjs +28 -33
- package/dist/stock-label.cjs.map +1 -1
- package/dist/stock-label.d.ts.map +1 -1
- package/dist/stock-label.js +30 -35
- package/dist/stock-label.js.map +1 -1
- package/llms.txt +3 -2
- package/package.json +9 -7
- package/dist/chunk-32XB3REY.cjs.map +0 -1
- package/dist/chunk-5VMEEKZ5.cjs.map +0 -1
- package/dist/chunk-76RSVRGB.cjs.map +0 -1
- package/dist/chunk-BXMTQGKV.cjs.map +0 -1
- package/dist/chunk-EEJYDSXR.cjs +0 -220
- package/dist/chunk-EEJYDSXR.cjs.map +0 -1
- package/dist/chunk-JWTTXZDS.js.map +0 -1
- package/dist/chunk-JXW4XE2P.cjs.map +0 -1
- package/dist/chunk-MOC5N2N4.js.map +0 -1
- package/dist/chunk-MXSQYVCK.js.map +0 -1
- package/dist/chunk-OQV27VC5.cjs.map +0 -1
- package/dist/chunk-RCUKSVMF.js.map +0 -1
- package/dist/chunk-RGJT67PN.js.map +0 -1
- package/dist/chunk-UB7HYAAC.js.map +0 -1
- package/dist/chunk-UMNTUD2P.js.map +0 -1
- package/dist/chunk-VI2IE6RC.js +0 -220
- package/dist/chunk-VI2IE6RC.js.map +0 -1
- package/dist/chunk-Z57QBVUC.cjs.map +0 -1
- /package/dist/{chunk-WFMP6TZN.js.map → chunk-I6LMIYVF.js.map} +0 -0
- /package/dist/{chunk-PFEPE5UE.js.map → chunk-TEDFINZP.js.map} +0 -0
package/dist/rules.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type JsonField, type JsonNode } from "@atlas/utils/json-node";
|
|
1
2
|
/** One entry of a pagination bar: a page number or an ellipsis. */
|
|
2
3
|
export type PageEntry = {
|
|
3
4
|
kind: "page";
|
|
@@ -48,6 +49,51 @@ export declare function prevTarget(page: number): number;
|
|
|
48
49
|
* @ensures exactly the model's NextTarget
|
|
49
50
|
*/
|
|
50
51
|
export declare function nextTarget(page: number, totalPages: number): number;
|
|
52
|
+
/** One item of ListPagination's bar: an ellipsis or a page link, with its React key. */
|
|
53
|
+
interface BarItem {
|
|
54
|
+
key: string;
|
|
55
|
+
n: number;
|
|
56
|
+
active: boolean;
|
|
57
|
+
ellipsis: number[];
|
|
58
|
+
page: number[];
|
|
59
|
+
}
|
|
60
|
+
/** ListPagination's bar. */
|
|
61
|
+
export interface PaginationBar {
|
|
62
|
+
shown: number[];
|
|
63
|
+
prevTarget: number;
|
|
64
|
+
prevOff: boolean;
|
|
65
|
+
nextTarget: number;
|
|
66
|
+
nextOff: boolean;
|
|
67
|
+
items: BarItem[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* ListPagination's bar: shown only with more than one page; Prev and Next with their targets,
|
|
71
|
+
* off at the ends; one item per page number entry.
|
|
72
|
+
*
|
|
73
|
+
* @ensures exactly the model's PaginationBarOf (in the link)
|
|
74
|
+
*/
|
|
75
|
+
export declare function paginationBarOf(page: number, totalPages: number): PaginationBar;
|
|
76
|
+
/**
|
|
77
|
+
* An end of the bar that is off is dimmed and unclickable.
|
|
78
|
+
*
|
|
79
|
+
* @ensures exactly the model's DisabledClass
|
|
80
|
+
*/
|
|
81
|
+
export declare function disabledClass(off: boolean): string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* An end of the bar that is off is announced disabled; one that is on says nothing.
|
|
84
|
+
*
|
|
85
|
+
* @ensures exactly the model's AriaDisabled
|
|
86
|
+
*/
|
|
87
|
+
export declare function ariaDisabled(off: boolean): boolean | undefined;
|
|
88
|
+
/** What a click on a bar link does. */
|
|
89
|
+
export type ClickAction = "block" | "handle" | "follow";
|
|
90
|
+
/**
|
|
91
|
+
* A click on a bar link: an end that is off is blocked; with a page callback the link is
|
|
92
|
+
* handled in place; otherwise the browser follows the href.
|
|
93
|
+
*
|
|
94
|
+
* @ensures exactly the model's ClickActionOf
|
|
95
|
+
*/
|
|
96
|
+
export declare function clickActionOf(off: boolean, hasCallback: boolean): ClickAction;
|
|
51
97
|
/**
|
|
52
98
|
* commit's clamp: at least min, then at most max when there is one (max wins if max < min).
|
|
53
99
|
*
|
|
@@ -97,12 +143,151 @@ export declare function editingKey(key: string): boolean;
|
|
|
97
143
|
* @ensures exactly the model's KeyAllowed
|
|
98
144
|
*/
|
|
99
145
|
export declare function keyAllowed(key: string, decimals: number, hasDot: boolean): boolean;
|
|
146
|
+
/** What a keypress in the quantity input does. */
|
|
147
|
+
export type KeyAction = "commit" | "allow" | "block";
|
|
148
|
+
/**
|
|
149
|
+
* Enter commits, an allowed key types (the text has a "." already when it holds one), anything
|
|
150
|
+
* else is blocked.
|
|
151
|
+
*
|
|
152
|
+
* @ensures exactly the model's KeyActionOf
|
|
153
|
+
*/
|
|
154
|
+
export declare function keyActionOf(key: string, decimals: number, text: string): KeyAction;
|
|
155
|
+
/**
|
|
156
|
+
* `v` rounded up to the next multiple of `s` (the model's CeilDiv(v, s) · s).
|
|
157
|
+
*
|
|
158
|
+
* @ensures result ≥ v, a multiple of s; exactly the model's RoundToStep for s > 1 (in the link)
|
|
159
|
+
*/
|
|
160
|
+
export declare function roundUpTo(v: number, s: number): number;
|
|
161
|
+
/**
|
|
162
|
+
* Typed text worth `u` units of 10^-k, at p = max(k, d) places, rounded up to the step (`step`
|
|
163
|
+
* in 10^-d units); a step of one whole unit or less leaves it.
|
|
164
|
+
*
|
|
165
|
+
* @ensures exactly the model's CommitUnits before the clamp (in the link)
|
|
166
|
+
*/
|
|
167
|
+
export declare function roundedUnits(u: number, k: number, step: number, d: number): number;
|
|
168
|
+
/**
|
|
169
|
+
* commit over the typed text, every quantity in 10^-d units: text that isn't fixed-point is
|
|
170
|
+
* `min`; else rounded up to the step, clamped to [min, max], then rounded half up to d places.
|
|
171
|
+
*
|
|
172
|
+
* @ensures exactly the model's CommitUnits (in the link)
|
|
173
|
+
*/
|
|
174
|
+
export declare function commitUnits(text: string, min: number, max: number | undefined, step: number, d: number): number;
|
|
175
|
+
/**
|
|
176
|
+
* A slot list markup maps over in place of `show && <…>`: one slot when shown, none otherwise
|
|
177
|
+
* (QuantityInput's steppers, FormField's required marker), so the markup holds no `&&`.
|
|
178
|
+
*
|
|
179
|
+
* @ensures exactly the model's SlotsWhen
|
|
180
|
+
*/
|
|
181
|
+
export declare function slotsWhen(show: boolean): number[];
|
|
182
|
+
/**
|
|
183
|
+
* A text slot: the text, when there is some (FormField's error message).
|
|
184
|
+
*
|
|
185
|
+
* @ensures exactly the model's TextSlots
|
|
186
|
+
*/
|
|
187
|
+
export declare function textSlots(text: string | undefined): string[];
|
|
188
|
+
/** The detail panel's slots. */
|
|
189
|
+
export interface PanelSlots {
|
|
190
|
+
header: number[];
|
|
191
|
+
title: string[];
|
|
192
|
+
editButton: number[];
|
|
193
|
+
actions: number[];
|
|
194
|
+
edit: number[];
|
|
195
|
+
read: number[];
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The detail panel's slots: the header row shows with a title or while reading; the Edit button
|
|
199
|
+
* while reading; Save and Cancel, and each field's input, while editing; each field's value while
|
|
200
|
+
* reading.
|
|
201
|
+
*
|
|
202
|
+
* @ensures exactly the model's PanelSlotsOf
|
|
203
|
+
*/
|
|
204
|
+
export declare function panelSlotsOf(title: string | undefined, editing: boolean): PanelSlots;
|
|
205
|
+
/** Which input a field edits with. */
|
|
206
|
+
export interface FieldSlots {
|
|
207
|
+
readonly: number[];
|
|
208
|
+
select: number[];
|
|
209
|
+
textarea: number[];
|
|
210
|
+
input: number[];
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Which input a field edits with: shown read-only, a select, a textarea, else a text input.
|
|
214
|
+
*
|
|
215
|
+
* @ensures exactly the model's FieldSlotsOf
|
|
216
|
+
*/
|
|
217
|
+
export declare function fieldSlotsOf(kind: string): FieldSlots;
|
|
218
|
+
/** ResourceTabs' view: whether it shows, and the tab it opens on. */
|
|
219
|
+
export interface TabsView {
|
|
220
|
+
shown: number[];
|
|
221
|
+
defaultTab: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* ResourceTabs shows with at least one tab, opening on the given tab, else the first.
|
|
225
|
+
*
|
|
226
|
+
* @ensures exactly the model's TabsViewOf
|
|
227
|
+
*/
|
|
228
|
+
export declare function tabsViewOf(defaultTab: string | undefined, values: string[]): TabsView;
|
|
229
|
+
/**
|
|
230
|
+
* A form control's id: its own id, else its name, else "".
|
|
231
|
+
*
|
|
232
|
+
* @ensures exactly the model's FieldId
|
|
233
|
+
*/
|
|
234
|
+
export declare function fieldId(id: string | undefined, name: string | undefined): string;
|
|
235
|
+
/** The on-screen keyboard a quantity input asks for. */
|
|
236
|
+
export type InputMode = "decimal" | "numeric";
|
|
237
|
+
/**
|
|
238
|
+
* The on-screen keyboard: decimal when the field has places, else numeric.
|
|
239
|
+
*
|
|
240
|
+
* @ensures exactly the model's InputModeOf
|
|
241
|
+
*/
|
|
242
|
+
export declare function inputModeOf(decimals: number): InputMode;
|
|
100
243
|
/**
|
|
101
244
|
* handleChange from index `i`: digits only, plus the first "." when decimals are allowed.
|
|
102
245
|
*
|
|
103
246
|
* @ensures exactly the model's CleanQtyFrom
|
|
104
247
|
*/
|
|
105
248
|
export declare function cleanQtyFrom(raw: string, allowDot: boolean, seenDot: boolean, i: number): string;
|
|
249
|
+
/**
|
|
250
|
+
* The spinner's size classes: sm 12px, md 16px (the default), lg 24px.
|
|
251
|
+
*
|
|
252
|
+
* @ensures exactly the model's SpinnerSizeClass
|
|
253
|
+
*/
|
|
254
|
+
export declare function spinnerSizeClass(size: string): string;
|
|
255
|
+
/**
|
|
256
|
+
* A separator is one pixel high across, or one pixel wide down (the default is across).
|
|
257
|
+
*
|
|
258
|
+
* @ensures exactly the model's SeparatorClass
|
|
259
|
+
*/
|
|
260
|
+
export declare function separatorClass(orientation: string): string;
|
|
261
|
+
/**
|
|
262
|
+
* A pagination link's aria-current: "page" on the current page, none elsewhere.
|
|
263
|
+
*
|
|
264
|
+
* @ensures exactly the model's PaginationAriaCurrent
|
|
265
|
+
*/
|
|
266
|
+
export declare function paginationAriaCurrent(isActive: boolean): string | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* A pagination link's button variant: outlined on the current page, a ghost elsewhere.
|
|
269
|
+
*
|
|
270
|
+
* @ensures exactly the model's PaginationVariant
|
|
271
|
+
*/
|
|
272
|
+
export declare function paginationVariant(isActive: boolean): "outline" | "ghost";
|
|
273
|
+
/**
|
|
274
|
+
* A menu item, label or sub-trigger set in to line up with checkable items.
|
|
275
|
+
*
|
|
276
|
+
* @ensures exactly the model's InsetClass
|
|
277
|
+
*/
|
|
278
|
+
export declare function insetClass(inset: boolean): string;
|
|
279
|
+
/**
|
|
280
|
+
* A select's popper-positioned content shifts off its trigger (popper is the default).
|
|
281
|
+
*
|
|
282
|
+
* @ensures exactly the model's SelectContentClass
|
|
283
|
+
*/
|
|
284
|
+
export declare function selectContentClass(position: string): string;
|
|
285
|
+
/**
|
|
286
|
+
* A select's popper-positioned viewport takes its trigger's size.
|
|
287
|
+
*
|
|
288
|
+
* @ensures exactly the model's SelectViewportClass
|
|
289
|
+
*/
|
|
290
|
+
export declare function selectViewportClass(position: string): string;
|
|
106
291
|
/** What a stock label shows. */
|
|
107
292
|
export type StockView = "loading" | "out-of-stock" | "low-stock" | "in-stock";
|
|
108
293
|
/**
|
|
@@ -117,6 +302,21 @@ export declare function stockViewOf(loading: boolean, isInStock: boolean, isLowS
|
|
|
117
302
|
* @ensures exactly the model's ShowStockQuantity
|
|
118
303
|
*/
|
|
119
304
|
export declare function showStockQuantity(view: StockView, hasQuantity: boolean): boolean;
|
|
305
|
+
/** The stock label's slots. */
|
|
306
|
+
export interface StockSlots {
|
|
307
|
+
skeleton: number[];
|
|
308
|
+
outOfStock: number[];
|
|
309
|
+
lowStock: number[];
|
|
310
|
+
inStock: number[];
|
|
311
|
+
quantity: number[];
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* The stock label's slots: one per view (exactly one holds a slot), plus the quantity
|
|
315
|
+
* parenthetical where `showStockQuantity` shows it.
|
|
316
|
+
*
|
|
317
|
+
* @ensures exactly the model's StockSlotsOf
|
|
318
|
+
*/
|
|
319
|
+
export declare function stockSlotsOf(loading: boolean, isInStock: boolean, isLowStock: boolean, hasQuantity: boolean): StockSlots;
|
|
120
320
|
/** What a price shows. */
|
|
121
321
|
export type PriceView = "skeleton" | "zero-label" | "amount";
|
|
122
322
|
/**
|
|
@@ -138,6 +338,20 @@ export declare function needsQuotes(s: string): boolean;
|
|
|
138
338
|
* @ensures exactly the model's CsvField
|
|
139
339
|
*/
|
|
140
340
|
export declare function csvField(s: string): string;
|
|
341
|
+
/**
|
|
342
|
+
* The CSV export's lines from index `i`: each row's (already `csvField`-escaped) fields joined
|
|
343
|
+
* by ",".
|
|
344
|
+
*
|
|
345
|
+
* @ensures exactly the model's CsvLines (in the link)
|
|
346
|
+
*/
|
|
347
|
+
export declare function csvLines(rows: string[][], i: number): string[];
|
|
348
|
+
/**
|
|
349
|
+
* The CSV export's text: the header line (the headers joined as they are), then the rows,
|
|
350
|
+
* joined by line feeds.
|
|
351
|
+
*
|
|
352
|
+
* @ensures exactly the model's CsvText (in the link)
|
|
353
|
+
*/
|
|
354
|
+
export declare function csvText(headers: string[], rows: string[][]): string;
|
|
141
355
|
/** A column's sort direction. */
|
|
142
356
|
export type SortDir = "asc" | "desc" | "unsorted";
|
|
143
357
|
/**
|
|
@@ -154,6 +368,31 @@ export declare function ariaSortOf(sortable: boolean, dir: SortDir): string | un
|
|
|
154
368
|
* @ensures exactly the model's AlignClass
|
|
155
369
|
*/
|
|
156
370
|
export declare function alignClass(align: string): string;
|
|
371
|
+
/**
|
|
372
|
+
* The toolbar shows when there is anything to put in it: search, a toolbar of the caller's, the
|
|
373
|
+
* column toggle, the CSV export, or a selection.
|
|
374
|
+
*
|
|
375
|
+
* @ensures exactly the model's ToolbarShown
|
|
376
|
+
*/
|
|
377
|
+
export declare function toolbarShown(searchable: boolean, hasToolbar: boolean, columnToggle: boolean, exportCsv: boolean, selectedCount: number): boolean;
|
|
378
|
+
/**
|
|
379
|
+
* A column's cell alignment class from its optional `align` (left when it has none).
|
|
380
|
+
*
|
|
381
|
+
* @ensures exactly the model's AlignClassOf
|
|
382
|
+
*/
|
|
383
|
+
export declare function alignClassOf(align: string | undefined): string;
|
|
384
|
+
/**
|
|
385
|
+
* A column sorts only when it says so (`sortable ?? false`).
|
|
386
|
+
*
|
|
387
|
+
* @ensures exactly the model's EnableSorting
|
|
388
|
+
*/
|
|
389
|
+
export declare function enableSorting(sortable: boolean | undefined): boolean;
|
|
390
|
+
/**
|
|
391
|
+
* A column hides unless it says it can't (`hideable !== false`).
|
|
392
|
+
*
|
|
393
|
+
* @ensures exactly the model's EnableHiding
|
|
394
|
+
*/
|
|
395
|
+
export declare function enableHiding(hideable: boolean | undefined): boolean;
|
|
157
396
|
/** What the table body shows. */
|
|
158
397
|
export type BodyView = "loading" | "empty" | "rows";
|
|
159
398
|
/**
|
|
@@ -162,6 +401,37 @@ export type BodyView = "loading" | "empty" | "rows";
|
|
|
162
401
|
* @ensures exactly the model's BodyViewOf
|
|
163
402
|
*/
|
|
164
403
|
export declare function bodyViewOf(loading: boolean, rowCount: number): BodyView;
|
|
404
|
+
/** The table body's slots, one list per view. */
|
|
405
|
+
export interface ViewSlots {
|
|
406
|
+
loading: number[];
|
|
407
|
+
empty: number[];
|
|
408
|
+
rows: number[];
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* The table body's slots: exactly one view's list holds a slot, so the markup maps over each in
|
|
412
|
+
* place of an `if` per view.
|
|
413
|
+
*
|
|
414
|
+
* @ensures exactly the model's BodySlots
|
|
415
|
+
*/
|
|
416
|
+
export declare function bodySlots(loading: boolean, rowCount: number): ViewSlots;
|
|
417
|
+
/** The sort indicator's icon slots. */
|
|
418
|
+
export interface SortSlots {
|
|
419
|
+
up: number[];
|
|
420
|
+
down: number[];
|
|
421
|
+
both: number[];
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* The sort indicator's icon: up for ascending, down for descending, both ways otherwise.
|
|
425
|
+
*
|
|
426
|
+
* @ensures exactly the model's SortSlotsOf
|
|
427
|
+
*/
|
|
428
|
+
export declare function sortSlotsOf(dir: SortDir): SortSlots;
|
|
429
|
+
/**
|
|
430
|
+
* The bulk actions bar shows with a selection and actions to offer.
|
|
431
|
+
*
|
|
432
|
+
* @ensures exactly the model's BulkBarShown
|
|
433
|
+
*/
|
|
434
|
+
export declare function bulkBarShown(selectedCount: number, hasBulkActions: boolean): boolean;
|
|
165
435
|
/** When GTM loads. */
|
|
166
436
|
export type LoadTiming = "idle" | "next-tick" | "now";
|
|
167
437
|
/**
|
|
@@ -171,6 +441,12 @@ export type LoadTiming = "idle" | "next-tick" | "now";
|
|
|
171
441
|
* @ensures exactly the model's GtmTiming
|
|
172
442
|
*/
|
|
173
443
|
export declare function gtmTiming(strategy: string, hasIdleCallback: boolean): LoadTiming;
|
|
444
|
+
/**
|
|
445
|
+
* A widget script is injected unless disabled or already there (the financing widget).
|
|
446
|
+
*
|
|
447
|
+
* @ensures exactly the model's InjectAllowed
|
|
448
|
+
*/
|
|
449
|
+
export declare function injectAllowed(disabled: boolean, injected: boolean): boolean;
|
|
174
450
|
/**
|
|
175
451
|
* Session replay is injected unless disabled or already there, and, under a rate below 1, only
|
|
176
452
|
* when the draw is at or under it.
|
|
@@ -179,32 +455,54 @@ export declare function gtmTiming(strategy: string, hasIdleCallback: boolean): L
|
|
|
179
455
|
*/
|
|
180
456
|
export declare function replaySampled(disabled: boolean, injected: boolean, rate: number, draw: number): boolean;
|
|
181
457
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
458
|
+
* extractBin from a message string (`/[?&]Bin=([^&]+)/`): the first mark's value up to the next
|
|
459
|
+
* "&" (never empty), or undefined.
|
|
184
460
|
*
|
|
185
|
-
* @ensures
|
|
461
|
+
* @ensures exactly the model's BinFromString
|
|
186
462
|
*/
|
|
187
|
-
export declare function
|
|
463
|
+
export declare function binFromString(s: string): string | undefined;
|
|
464
|
+
/** The Unified/Element iframe's configuration. */
|
|
465
|
+
export interface UnifiedFrame {
|
|
466
|
+
uiEndpoint: string;
|
|
467
|
+
transactionSetupId: string;
|
|
468
|
+
}
|
|
469
|
+
/** The payment modal's frame: the iframe's URL, or the loading text. */
|
|
470
|
+
export interface PaymentFrame {
|
|
471
|
+
src: string[];
|
|
472
|
+
loading: number[];
|
|
473
|
+
}
|
|
188
474
|
/**
|
|
189
|
-
* The
|
|
190
|
-
*
|
|
475
|
+
* The payment modal's frame: with the Unified config, its iframe URL
|
|
476
|
+
* (`<uiEndpoint>?TransactionSetupID=<id>`); without it, the loading text.
|
|
191
477
|
*
|
|
192
|
-
* @ensures
|
|
193
|
-
* exactly the model's BinAt
|
|
478
|
+
* @ensures exactly the model's PaymentFrameOf
|
|
194
479
|
*/
|
|
195
|
-
export declare function
|
|
480
|
+
export declare function paymentFrameOf(unified: UnifiedFrame | null): PaymentFrame;
|
|
196
481
|
/**
|
|
197
|
-
*
|
|
198
|
-
* "&" (never empty), or undefined.
|
|
482
|
+
* The modal listens for the iframe's BIN message only while open and with someone to tell.
|
|
199
483
|
*
|
|
200
|
-
* @ensures exactly the model's
|
|
484
|
+
* @ensures exactly the model's BinListenerOn
|
|
201
485
|
*/
|
|
202
|
-
export declare function
|
|
486
|
+
export declare function binListenerOn(open: boolean, hasCapture: boolean): boolean;
|
|
487
|
+
/**
|
|
488
|
+
* A node's string when it is a non-empty one.
|
|
489
|
+
*
|
|
490
|
+
* @ensures exactly the model's NonEmptyText
|
|
491
|
+
*/
|
|
492
|
+
export declare function nonEmptyText(v: JsonNode): string | undefined;
|
|
493
|
+
/**
|
|
494
|
+
* extractBin from an object's fields: the first non-empty string of Bin, bin, CardBIN and
|
|
495
|
+
* cardBin, else a non-empty string data.Bin.
|
|
496
|
+
*
|
|
497
|
+
* @ensures exactly the model's BinOfFields (in the link)
|
|
498
|
+
*/
|
|
499
|
+
export declare function binOfFields(fs: JsonField[]): string | undefined;
|
|
203
500
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
501
|
+
* extractBin over a postMessage payload read into a JSON node: a string's BIN mark, an object's
|
|
502
|
+
* BIN field, else none.
|
|
206
503
|
*
|
|
207
|
-
* @ensures
|
|
504
|
+
* @ensures exactly the model's BinOfNode (in the link)
|
|
208
505
|
*/
|
|
209
|
-
export declare function
|
|
506
|
+
export declare function binOfNode(v: JsonNode): string | undefined;
|
|
507
|
+
export {};
|
|
210
508
|
//# sourceMappingURL=rules.d.ts.map
|
package/dist/rules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AASnF,mEAAmE;AACnE,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI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,GAAG,MAAM,GAAG,SAAS,CAO3D;AAED,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,wEAAwE;AACxE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,YAAY,CAQzE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAIzE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAK5D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,GAAG,SAAS,CAa/D;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAMzD"}
|
package/dist/select.cjs
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKVJQIZSMcjs = require('./chunk-KVJQIZSM.cjs');
|
|
15
|
+
require('./chunk-NBXA42AW.cjs');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
@@ -23,5 +24,5 @@ var _chunk76RSVRGBcjs = require('./chunk-76RSVRGB.cjs');
|
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
|
|
26
|
-
exports.Select =
|
|
27
|
+
exports.Select = _chunkKVJQIZSMcjs.Select; exports.SelectContent = _chunkKVJQIZSMcjs.SelectContent; exports.SelectGroup = _chunkKVJQIZSMcjs.SelectGroup; exports.SelectItem = _chunkKVJQIZSMcjs.SelectItem; exports.SelectLabel = _chunkKVJQIZSMcjs.SelectLabel; exports.SelectScrollDownButton = _chunkKVJQIZSMcjs.SelectScrollDownButton; exports.SelectScrollUpButton = _chunkKVJQIZSMcjs.SelectScrollUpButton; exports.SelectSeparator = _chunkKVJQIZSMcjs.SelectSeparator; exports.SelectTrigger = _chunkKVJQIZSMcjs.SelectTrigger; exports.SelectValue = _chunkKVJQIZSMcjs.SelectValue;
|
|
27
28
|
//# sourceMappingURL=select.cjs.map
|
package/dist/select.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/select.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6jBAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/select.cjs"}
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/select.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6jBAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/select.cjs"}
|
package/dist/select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../src/select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../src/select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AACpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAC1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAWxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAW1B,CAAC;AAGH,QAAA,MAAM,aAAa,8JAsBjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JASf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAmBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKASnB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
|
package/dist/select.js
CHANGED
package/dist/separator.cjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
var _chunkNBXA42AWcjs = require('./chunk-NBXA42AW.cjs');
|
|
6
|
+
|
|
4
7
|
// src/separator.tsx
|
|
5
8
|
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
6
9
|
var _reactseparator = require('@radix-ui/react-separator'); var SeparatorPrimitive = _interopRequireWildcard(_reactseparator);
|
|
7
10
|
var _web = require('@simpleapps-com/augur-utils/web');
|
|
8
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
9
|
-
var Separator = React.forwardRef(({ className, orientation
|
|
12
|
+
var Separator = React.forwardRef(({ className, orientation, decorative, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10
13
|
SeparatorPrimitive.Root,
|
|
11
14
|
{
|
|
12
15
|
ref,
|
|
13
|
-
decorative,
|
|
14
|
-
orientation,
|
|
15
|
-
className: _web.cn.call(void 0,
|
|
16
|
-
"bg-border shrink-0",
|
|
17
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
16
|
+
decorative: _nullishCoalesce(decorative, () => ( true)),
|
|
17
|
+
orientation: _nullishCoalesce(orientation, () => ( "horizontal")),
|
|
18
|
+
className: _web.cn.call(void 0, "bg-border shrink-0", _chunkNBXA42AWcjs.separatorClass.call(void 0, _nullishCoalesce(orientation, () => ( "horizontal"))), className),
|
|
20
19
|
...props
|
|
21
20
|
}
|
|
22
21
|
));
|
package/dist/separator.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/separator.cjs","../src/separator.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/separator.cjs","../src/separator.tsx"],"names":[],"mappings":"AAAA,2cAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACA;ACHA,2EAAuB;AACvB,8HAAoC;AACpC,sDAAmB;AAOjB,+CAAA;AAJF,IAAM,UAAA,EAAkB,KAAA,CAAA,UAAA,CAGtB,CAAC,EAAE,SAAA,EAAW,WAAA,EAAa,UAAA,EAAY,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACnD,6BAAA;AAAA,EAAoB,kBAAA,CAAA,IAAA;AAAA,EAAnB;AAAA,IACC,GAAA;AAAA,IACA,UAAA,mBAAY,UAAA,UAAc,MAAA;AAAA,IAC1B,WAAA,mBAAa,WAAA,UAAe,cAAA;AAAA,IAC5B,SAAA,EAAW,qBAAA,oBAAG,EAAsB,8CAAA,iBAAe,WAAA,UAAe,cAAY,CAAA,EAAG,SAAS,CAAA;AAAA,IACzF,GAAG;AAAA,EAAA;AACN,CACD,CAAA;AACD,SAAA,CAAU,YAAA,EAAiC,kBAAA,CAAA,IAAA,CAAK,WAAA;ADEhD;AACE;AACF,8BAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/separator.cjs","sourcesContent":[null,"/** Styled wrapper around @radix-ui/react-separator. See https://www.radix-ui.com/primitives/docs/components/separator */\n\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { separatorClass } from \"./rules\";\n\nconst Separator = React.forwardRef<\n React.ComponentRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation, decorative, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative ?? true}\n orientation={orientation ?? \"horizontal\"}\n className={cn(\"bg-border shrink-0\", separatorClass(orientation ?? \"horizontal\"), className)}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"]}
|
package/dist/separator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../src/separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../src/separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,6JAWb,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/separator.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
+
import {
|
|
4
|
+
separatorClass
|
|
5
|
+
} from "./chunk-NSMOT7GD.js";
|
|
3
6
|
|
|
4
7
|
// src/separator.tsx
|
|
5
8
|
import * as React from "react";
|
|
6
9
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
7
10
|
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
8
11
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var Separator = React.forwardRef(({ className, orientation
|
|
12
|
+
var Separator = React.forwardRef(({ className, orientation, decorative, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
13
|
SeparatorPrimitive.Root,
|
|
11
14
|
{
|
|
12
15
|
ref,
|
|
13
|
-
decorative,
|
|
14
|
-
orientation,
|
|
15
|
-
className: cn(
|
|
16
|
-
"bg-border shrink-0",
|
|
17
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
16
|
+
decorative: decorative ?? true,
|
|
17
|
+
orientation: orientation ?? "horizontal",
|
|
18
|
+
className: cn("bg-border shrink-0", separatorClass(orientation ?? "horizontal"), className),
|
|
20
19
|
...props
|
|
21
20
|
}
|
|
22
21
|
));
|
package/dist/separator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/separator.tsx"],"sourcesContent":["/** Styled wrapper around @radix-ui/react-separator. See https://www.radix-ui.com/primitives/docs/components/separator */\n\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\n\nconst Separator = React.forwardRef<\n React.ComponentRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation
|
|
1
|
+
{"version":3,"sources":["../src/separator.tsx"],"sourcesContent":["/** Styled wrapper around @radix-ui/react-separator. See https://www.radix-ui.com/primitives/docs/components/separator */\n\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { separatorClass } from \"./rules\";\n\nconst Separator = React.forwardRef<\n React.ComponentRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation, decorative, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative ?? true}\n orientation={orientation ?? \"horizontal\"}\n className={cn(\"bg-border shrink-0\", separatorClass(orientation ?? \"horizontal\"), className)}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"mappings":";;;;;;;AAGA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AACpC,SAAS,UAAU;AAOjB;AAJF,IAAM,YAAkB,iBAGtB,CAAC,EAAE,WAAW,aAAa,YAAY,GAAG,MAAM,GAAG,QACnD;AAAA,EAAoB;AAAA,EAAnB;AAAA,IACC;AAAA,IACA,YAAY,cAAc;AAAA,IAC1B,aAAa,eAAe;AAAA,IAC5B,WAAW,GAAG,sBAAsB,eAAe,eAAe,YAAY,GAAG,SAAS;AAAA,IACzF,GAAG;AAAA;AACN,CACD;AACD,UAAU,cAAiC,wBAAK;","names":[]}
|
package/dist/session-replay.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNBXA42AWcjs = require('./chunk-NBXA42AW.cjs');
|
|
6
6
|
|
|
7
7
|
// src/session-replay.tsx
|
|
8
8
|
var _react = require('react');
|
|
@@ -44,7 +44,7 @@ function SessionReplayScript({
|
|
|
44
44
|
}) {
|
|
45
45
|
const injectedRef = _react.useRef.call(void 0, false);
|
|
46
46
|
_react.useEffect.call(void 0, () => {
|
|
47
|
-
if (!
|
|
47
|
+
if (!_chunkNBXA42AWcjs.replaySampled.call(void 0, disabled, injectedRef.current, sampleRate, Math.random())) return;
|
|
48
48
|
injectedRef.current = true;
|
|
49
49
|
const inject = injectors[provider];
|
|
50
50
|
if (typeof requestIdleCallback === "function") {
|
package/dist/session-replay.js
CHANGED
package/dist/spinner.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSJGSBMMNcjs = require('./chunk-SJGSBMMN.cjs');
|
|
5
|
+
require('./chunk-NBXA42AW.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
exports.Spinner =
|
|
8
|
+
exports.Spinner = _chunkSJGSBMMNcjs.Spinner;
|
|
8
9
|
//# sourceMappingURL=spinner.cjs.map
|
package/dist/spinner.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/spinner.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,4CAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/spinner.cjs"}
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/spinner.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,4CAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/spinner.cjs"}
|
package/dist/spinner.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ interface SpinnerProps {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
size?: "sm" | "md" | "lg";
|
|
4
4
|
}
|
|
5
|
-
/** Animated SVG loading spinner. Sizes: `sm` (12px), `md` (16px), `lg` (24px). */
|
|
5
|
+
/** Animated SVG loading spinner. Sizes: `sm` (12px), `md` (16px, the default), `lg` (24px). */
|
|
6
6
|
declare const Spinner: ({ className, size }: SpinnerProps) => import("react").JSX.Element;
|
|
7
7
|
export { Spinner };
|
|
8
8
|
//# sourceMappingURL=spinner.d.ts.map
|
package/dist/spinner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../src/spinner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../src/spinner.tsx"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,+FAA+F;AAC/F,QAAA,MAAM,OAAO,GAAI,qBAAqB,YAAY,gCAgBjD,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|