@sprawlify/react 0.0.7 → 0.0.9
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/chunk-BYnRvbsk.cjs +53 -0
- package/dist/{collapsible-D5kle6Bc.cjs → collapsible-aFKYmVbP.cjs} +10 -9
- package/dist/{collapsible-B06GGGE7.mjs → collapsible-vqmKK3px.mjs} +7 -7
- package/dist/{collection-DEsp9z6X.mjs → collection-BYYMj_V8.mjs} +2 -2
- package/dist/{collection-BKabYqpE.cjs → collection-DGEUORi5.cjs} +4 -3
- package/dist/components/accordion/index.cjs +13 -11
- package/dist/components/accordion/index.d.cts +11 -11
- package/dist/components/accordion/index.d.mts +11 -11
- package/dist/components/accordion/index.mjs +10 -9
- package/dist/components/angle-slider/index.cjs +11 -9
- package/dist/components/angle-slider/index.d.cts +13 -13
- package/dist/components/angle-slider/index.d.mts +13 -13
- package/dist/components/angle-slider/index.mjs +8 -7
- package/dist/components/avatar/index.cjs +11 -9
- package/dist/components/avatar/index.d.cts +8 -8
- package/dist/components/avatar/index.d.mts +8 -8
- package/dist/components/avatar/index.mjs +8 -7
- package/dist/components/bottom-sheet/index.cjs +17 -14
- package/dist/components/bottom-sheet/index.d.cts +15 -15
- package/dist/components/bottom-sheet/index.d.mts +13 -13
- package/dist/components/bottom-sheet/index.mjs +12 -10
- package/dist/components/carousel/index.cjs +11 -9
- package/dist/components/carousel/index.d.cts +18 -18
- package/dist/components/carousel/index.d.mts +18 -18
- package/dist/components/carousel/index.mjs +8 -7
- package/dist/components/checkbox/index.cjs +17 -14
- package/dist/components/checkbox/index.d.cts +14 -14
- package/dist/components/checkbox/index.d.mts +14 -14
- package/dist/components/checkbox/index.mjs +13 -11
- package/dist/components/client-only/index.cjs +1 -1
- package/dist/components/clipboard/index.cjs +8 -7
- package/dist/components/clipboard/index.d.cts +12 -12
- package/dist/components/clipboard/index.d.mts +12 -12
- package/dist/components/clipboard/index.mjs +6 -6
- package/dist/components/collapsible/index.cjs +8 -6
- package/dist/components/collapsible/index.d.cts +10 -10
- package/dist/components/collapsible/index.d.mts +10 -10
- package/dist/components/collapsible/index.mjs +7 -6
- package/dist/components/collection/index.cjs +3 -3
- package/dist/components/collection/index.d.cts +1 -1
- package/dist/components/collection/index.d.mts +1 -1
- package/dist/components/collection/index.mjs +3 -3
- package/dist/components/color-picker/index.cjs +19 -15
- package/dist/components/color-picker/index.d.cts +35 -35
- package/dist/components/color-picker/index.d.mts +36 -36
- package/dist/components/color-picker/index.mjs +14 -11
- package/dist/components/combobox/index.cjs +19 -15
- package/dist/components/combobox/index.d.cts +22 -22
- package/dist/components/combobox/index.d.mts +23 -23
- package/dist/components/combobox/index.mjs +15 -12
- package/dist/components/date-picker/index.cjs +567 -0
- package/dist/components/date-picker/index.d.cts +164 -0
- package/dist/components/date-picker/index.d.mts +165 -0
- package/dist/components/date-picker/index.mjs +526 -0
- package/dist/components/dialog/index.cjs +211 -0
- package/dist/components/dialog/index.d.cts +80 -0
- package/dist/components/dialog/index.d.mts +81 -0
- package/dist/components/dialog/index.mjs +187 -0
- package/dist/components/download-trigger/index.cjs +43 -0
- package/dist/components/download-trigger/index.d.cts +16 -0
- package/dist/components/download-trigger/index.d.mts +16 -0
- package/dist/components/download-trigger/index.mjs +42 -0
- package/dist/components/editable/index.cjs +246 -0
- package/dist/components/editable/index.d.cts +79 -0
- package/dist/components/editable/index.d.mts +79 -0
- package/dist/components/editable/index.mjs +221 -0
- package/dist/components/field/index.cjs +9 -7
- package/dist/components/field/index.d.cts +12 -12
- package/dist/components/field/index.d.mts +14 -14
- package/dist/components/field/index.mjs +9 -7
- package/dist/components/fieldset/index.cjs +10 -8
- package/dist/components/fieldset/index.d.cts +10 -10
- package/dist/components/fieldset/index.d.mts +10 -10
- package/dist/components/fieldset/index.mjs +9 -7
- package/dist/components/file-upload/index.cjs +351 -0
- package/dist/components/file-upload/index.d.cts +102 -0
- package/dist/components/file-upload/index.d.mts +102 -0
- package/dist/components/file-upload/index.mjs +322 -0
- package/dist/components/floating-panel/index.cjs +287 -0
- package/dist/components/floating-panel/index.d.cts +100 -0
- package/dist/components/floating-panel/index.d.mts +101 -0
- package/dist/components/floating-panel/index.mjs +259 -0
- package/dist/components/focus-trap/index.cjs +36 -0
- package/dist/components/focus-trap/index.d.cts +14 -0
- package/dist/components/focus-trap/index.d.mts +14 -0
- package/dist/components/focus-trap/index.mjs +35 -0
- package/dist/components/format/index.cjs +57 -0
- package/dist/components/format/index.d.cts +36 -0
- package/dist/components/format/index.d.mts +36 -0
- package/dist/components/format/index.mjs +49 -0
- package/dist/components/frame/index.cjs +90 -0
- package/dist/components/frame/index.d.cts +13 -0
- package/dist/components/frame/index.d.mts +13 -0
- package/dist/components/frame/index.mjs +89 -0
- package/dist/components/highlight/index.cjs +2 -2
- package/dist/components/highlight/index.d.cts +3 -3
- package/dist/components/highlight/index.d.mts +3 -3
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.cjs +165 -0
- package/dist/components/hover-card/index.d.cts +70 -0
- package/dist/components/hover-card/index.d.mts +71 -0
- package/dist/components/hover-card/index.mjs +143 -0
- package/dist/components/image-cropper/index.cjs +197 -0
- package/dist/components/image-cropper/index.d.cts +64 -0
- package/dist/components/image-cropper/index.d.mts +64 -0
- package/dist/components/image-cropper/index.mjs +175 -0
- package/dist/components/json-tree-view/index.cjs +246 -0
- package/dist/components/json-tree-view/index.d.cts +43 -0
- package/dist/components/json-tree-view/index.d.mts +48 -0
- package/dist/components/json-tree-view/index.mjs +237 -0
- package/dist/components/listbox/index.cjs +314 -0
- package/dist/components/listbox/index.d.cts +110 -0
- package/dist/components/listbox/index.d.mts +110 -0
- package/dist/components/listbox/index.mjs +289 -0
- package/dist/components/marquee/index.cjs +176 -0
- package/dist/components/marquee/index.d.cts +61 -0
- package/dist/components/marquee/index.d.mts +61 -0
- package/dist/components/marquee/index.mjs +155 -0
- package/dist/components/menu/index.cjs +548 -0
- package/dist/components/menu/index.d.cts +159 -0
- package/dist/components/menu/index.d.mts +162 -0
- package/dist/components/menu/index.mjs +512 -0
- package/dist/components/navigation-menu/index.cjs +339 -0
- package/dist/components/navigation-menu/index.d.cts +90 -0
- package/dist/components/navigation-menu/index.d.mts +90 -0
- package/dist/components/navigation-menu/index.mjs +312 -0
- package/dist/components/number-input/index.cjs +237 -0
- package/dist/components/number-input/index.d.cts +74 -0
- package/dist/components/number-input/index.d.mts +74 -0
- package/dist/components/number-input/index.mjs +213 -0
- package/dist/components/pagination/index.cjs +197 -0
- package/dist/components/pagination/index.d.cts +69 -0
- package/dist/components/pagination/index.d.mts +69 -0
- package/dist/components/pagination/index.mjs +174 -0
- package/dist/components/password-input/index.cjs +193 -0
- package/dist/components/password-input/index.d.cts +66 -0
- package/dist/components/password-input/index.d.mts +66 -0
- package/dist/components/password-input/index.mjs +171 -0
- package/dist/components/pin-input/index.cjs +192 -0
- package/dist/components/pin-input/index.d.cts +59 -0
- package/dist/components/pin-input/index.d.mts +59 -0
- package/dist/components/pin-input/index.mjs +171 -0
- package/dist/components/popover/index.cjs +237 -0
- package/dist/components/popover/index.d.cts +95 -0
- package/dist/components/popover/index.d.mts +96 -0
- package/dist/components/popover/index.mjs +210 -0
- package/dist/components/portal/index.cjs +6 -31
- package/dist/components/portal/index.d.cts +2 -2
- package/dist/components/portal/index.d.mts +2 -2
- package/dist/components/portal/index.mjs +5 -29
- package/dist/components/presence/index.cjs +5 -5
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.mts +3 -3
- package/dist/components/presence/index.mjs +5 -5
- package/dist/components/select/index.cjs +19 -15
- package/dist/components/select/index.d.cts +21 -21
- package/dist/components/select/index.d.mts +22 -22
- package/dist/components/select/index.mjs +15 -12
- package/dist/components/tree-view/index.cjs +51 -0
- package/dist/components/tree-view/index.d.cts +3 -0
- package/dist/components/tree-view/index.d.mts +6 -0
- package/dist/components/tree-view/index.mjs +13 -0
- package/dist/compose-refs-C5QNDywq.cjs +22 -0
- package/dist/compose-refs-Cl5LpASY.mjs +16 -0
- package/dist/{core-CPLjF6nm.cjs → core-DCWyxy9D.cjs} +2 -53
- package/dist/{create-context-D6DyFRSf.cjs → create-context-CQ4U0lLj.cjs} +1 -1
- package/dist/{environment-BXkWNF2O.mjs → environment-Cc02I6aF.mjs} +1 -1
- package/dist/{environment-DLPiALpf.cjs → environment-CvilmfQt.cjs} +2 -2
- package/dist/{factory-DQlmCPH2.mjs → factory-7ydMApfi.mjs} +2 -16
- package/dist/{factory-CDX-oCN5.cjs → factory-C166evrS.cjs} +3 -23
- package/dist/{field-CGCTFCx2.mjs → field-BXY6su53.mjs} +9 -7
- package/dist/{field-CXhpW6zO.cjs → field-C-57Gj2E.cjs} +12 -10
- package/dist/{fieldset-CuSSYZxV.cjs → fieldset-B-MkM2Ms.cjs} +15 -13
- package/dist/{fieldset-poJ8RDvB.mjs → fieldset-BeHm9oxe.mjs} +8 -6
- package/dist/{index-DtdZfcpz.d.mts → index-BLd57Y0z.d.mts} +3 -3
- package/dist/index-BcXWsxRa.d.mts +40 -0
- package/dist/{index-BUN9wyVM.d.mts → index-Bkxp7VrU.d.mts} +7 -7
- package/dist/index-Cquz7y70.d.cts +52 -0
- package/dist/index-DTzLUoop.d.cts +150 -0
- package/dist/{index-DqRXPiW_.d.cts → index-aYGfRRLA.d.cts} +7 -7
- package/dist/index-wlpTZGhs.d.mts +150 -0
- package/dist/index.cjs +12 -10
- package/dist/index.d.cts +6 -56
- package/dist/index.d.mts +6 -44
- package/dist/index.mjs +7 -6
- package/dist/{providers-Bk3ALTxZ.cjs → locale-BcnWD1Hf.cjs} +2 -2
- package/dist/{providers-CyTYcOU1.mjs → locale-D4LX0eEq.mjs} +1 -1
- package/dist/{normalize-props-sqcs77GC.d.cts → normalize-props-Dw0EepzR.d.cts} +3 -3
- package/dist/portal-BOhFScBS.mjs +29 -0
- package/dist/portal-DRyJqgA1.cjs +35 -0
- package/dist/{presence-2A4loEJY.mjs → presence-C9BcvdTf.mjs} +6 -5
- package/dist/{presence-BX1tNsGA.cjs → presence-CPov8wyU.cjs} +9 -7
- package/dist/providers-BNAArubQ.cjs +0 -0
- package/dist/providers-CoJceYkV.mjs +1 -0
- package/dist/{render-strategy-D3w8btTD.mjs → render-strategy-BgIBKraZ.mjs} +2 -2
- package/dist/{render-strategy-k1JmEGnq.cjs → render-strategy-BywM_IvB.cjs} +2 -2
- package/dist/tree-view-CzJvwlYQ.mjs +365 -0
- package/dist/tree-view-DsOPEocd.cjs +509 -0
- package/dist/{types-FLvjyw__.d.mts → types-CrwpJrFp.d.mts} +2 -1
- package/dist/{types-DYWV3uAj.d.cts → types-DcUAwTQC.d.cts} +2 -1
- package/dist/{use-event-CGMgV6xB.cjs → use-event-CLH8zHoJ.cjs} +1 -1
- package/dist/use-fieldset-context-6GRSrrlt.mjs +12 -0
- package/dist/{use-safe-layout-effect-vuYaDIpT.cjs → use-fieldset-context-CCQLmNLL.cjs} +1 -13
- package/dist/use-safe-layout-effect-C2GgvNT3.cjs +13 -0
- package/dist/use-safe-layout-effect-DPn_9-dD.mjs +7 -0
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +222 -2
- package/dist/use-safe-layout-effect-BlOhFUAp.mjs +0 -17
- /package/dist/{chunk-DLP0tNsH.mjs → chunk-BU8PiJgx.mjs} +0 -0
- /package/dist/{core-C0F-4KYH.mjs → core-79NSyZp-.mjs} +0 -0
- /package/dist/{create-context-CdjrBhu7.mjs → create-context-DbhrVE2B.mjs} +0 -0
- /package/dist/{create-split-props-BJQdOyld.mjs → create-split-props-BJdRM9I_.mjs} +0 -0
- /package/dist/{create-split-props-CSkzaUOy.cjs → create-split-props-Dp4TWOyM.cjs} +0 -0
- /package/dist/{factory-BbbIuDqa.d.mts → factory-DaVlp4Ba.d.mts} +0 -0
- /package/dist/{factory-DaNWFLLN.d.cts → factory-fcFI3pbG.d.cts} +0 -0
- /package/dist/{index-BwTxN5vG.d.mts → index-BoLg0FWF.d.mts} +0 -0
- /package/dist/{index-DsZldSch.d.cts → index-CReeoTjv.d.cts} +0 -0
- /package/dist/{index-Dhthtdz_.d.mts → index-DPoOdvOg.d.mts} +0 -0
- /package/dist/{index-zOmANnUL.d.cts → index-r8rv70-L.d.cts} +0 -0
- /package/dist/{render-strategy-GetMScNK.d.mts → render-strategy-CRwPcG33.d.mts} +0 -0
- /package/dist/{render-strategy-CdpAg9jb.d.cts → render-strategy-M8NkD01w.d.cts} +0 -0
- /package/dist/{use-event-BcyNH29h.mjs → use-event-B4e6iJDK.mjs} +0 -0
- /package/dist/{utils-DflO0-3U.mjs → utils-BQJFlkDE.mjs} +0 -0
- /package/dist/{utils-Cb5K29pi.cjs → utils-B_Ojepvp.cjs} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/utils/compose-refs.ts
|
|
3
|
+
function composeRefs(...refs) {
|
|
4
|
+
return (node) => {
|
|
5
|
+
const cleanUps = [];
|
|
6
|
+
for (const ref of refs) if (typeof ref === "function") {
|
|
7
|
+
const cb = ref(node);
|
|
8
|
+
if (typeof cb === "function") cleanUps.push(cb);
|
|
9
|
+
} else if (ref) ref.current = node;
|
|
10
|
+
if (cleanUps.length) return () => {
|
|
11
|
+
for (const cleanUp of cleanUps) cleanUp();
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, 'composeRefs', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return composeRefs;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/utils/compose-refs.ts
|
|
2
|
+
function composeRefs(...refs) {
|
|
3
|
+
return (node) => {
|
|
4
|
+
const cleanUps = [];
|
|
5
|
+
for (const ref of refs) if (typeof ref === "function") {
|
|
6
|
+
const cb = ref(node);
|
|
7
|
+
if (typeof cb === "function") cleanUps.push(cb);
|
|
8
|
+
} else if (ref) ref.current = node;
|
|
9
|
+
if (cleanUps.length) return () => {
|
|
10
|
+
for (const cleanUp of cleanUps) cleanUp();
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { composeRefs as t };
|
|
@@ -1,47 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (all, symbols) => {
|
|
9
|
-
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
__defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
if (symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
24
|
-
key = keys[i];
|
|
25
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
26
|
-
__defProp(to, key, {
|
|
27
|
-
get: ((k) => from[k]).bind(null, key),
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
36
|
-
value: mod,
|
|
37
|
-
enumerable: true
|
|
38
|
-
}) : target, mod));
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
1
|
+
const require_chunk = require('./chunk-BYnRvbsk.cjs');
|
|
41
2
|
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
42
3
|
let __sprawlify_primitives_utils = require("@sprawlify/primitives/utils");
|
|
43
4
|
let react = require("react");
|
|
44
|
-
react = __toESM(react);
|
|
5
|
+
react = require_chunk.__toESM(react);
|
|
45
6
|
let react_dom = require("react-dom");
|
|
46
7
|
let __sprawlify_primitives_types = require("@sprawlify/primitives/types");
|
|
47
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -392,18 +353,6 @@ Object.defineProperty(exports, 'Portal', {
|
|
|
392
353
|
return Portal;
|
|
393
354
|
}
|
|
394
355
|
});
|
|
395
|
-
Object.defineProperty(exports, '__export', {
|
|
396
|
-
enumerable: true,
|
|
397
|
-
get: function () {
|
|
398
|
-
return __export;
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
Object.defineProperty(exports, '__toESM', {
|
|
402
|
-
enumerable: true,
|
|
403
|
-
get: function () {
|
|
404
|
-
return __toESM;
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
356
|
Object.defineProperty(exports, 'normalizeProps', {
|
|
408
357
|
enumerable: true,
|
|
409
358
|
get: function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createContext$1 } from "./create-context-
|
|
1
|
+
import { t as createContext$1 } from "./create-context-DbhrVE2B.mjs";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { getDocument, getWindow } from "@sprawlify/primitives/dom-query";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_create_context = require('./create-context-
|
|
1
|
+
const require_chunk = require('./chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_create_context = require('./create-context-CQ4U0lLj.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let __sprawlify_primitives_dom_query = require("@sprawlify/primitives/dom-query");
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
+
import { t as composeRefs } from "./compose-refs-Cl5LpASY.mjs";
|
|
1
2
|
import { mergeProps } from "@sprawlify/primitives/core";
|
|
2
3
|
import { Children, cloneElement, createElement, forwardRef, isValidElement, memo } from "react";
|
|
3
4
|
|
|
4
|
-
//#region src/utils/compose-refs.ts
|
|
5
|
-
function composeRefs(...refs) {
|
|
6
|
-
return (node) => {
|
|
7
|
-
const cleanUps = [];
|
|
8
|
-
for (const ref of refs) if (typeof ref === "function") {
|
|
9
|
-
const cb = ref(node);
|
|
10
|
-
if (typeof cb === "function") cleanUps.push(cb);
|
|
11
|
-
} else if (ref) ref.current = node;
|
|
12
|
-
if (cleanUps.length) return () => {
|
|
13
|
-
for (const cleanUp of cleanUps) cleanUp();
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
5
|
//#region src/components/factory.ts
|
|
20
6
|
function getRef(element) {
|
|
21
7
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
@@ -60,4 +46,4 @@ const jsxFactory = () => {
|
|
|
60
46
|
const sprawlify = jsxFactory();
|
|
61
47
|
|
|
62
48
|
//#endregion
|
|
63
|
-
export { sprawlify as n,
|
|
49
|
+
export { sprawlify as n, jsxFactory as t };
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_chunk = require('./chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_compose_refs = require('./compose-refs-C5QNDywq.cjs');
|
|
2
3
|
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
3
4
|
let react = require("react");
|
|
4
5
|
|
|
5
|
-
//#region src/utils/compose-refs.ts
|
|
6
|
-
function composeRefs(...refs) {
|
|
7
|
-
return (node) => {
|
|
8
|
-
const cleanUps = [];
|
|
9
|
-
for (const ref of refs) if (typeof ref === "function") {
|
|
10
|
-
const cb = ref(node);
|
|
11
|
-
if (typeof cb === "function") cleanUps.push(cb);
|
|
12
|
-
} else if (ref) ref.current = node;
|
|
13
|
-
if (cleanUps.length) return () => {
|
|
14
|
-
for (const cleanUp of cleanUps) cleanUp();
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
6
|
//#region src/components/factory.ts
|
|
21
7
|
function getRef(element) {
|
|
22
8
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
@@ -39,7 +25,7 @@ const withAsChild = (Component) => {
|
|
|
39
25
|
const childRef = getRef(onlyChild);
|
|
40
26
|
return (0, react.cloneElement)(onlyChild, {
|
|
41
27
|
...(0, __sprawlify_primitives_core.mergeProps)(restProps, onlyChild.props),
|
|
42
|
-
ref: ref ? composeRefs(ref, childRef) : childRef
|
|
28
|
+
ref: ref ? require_compose_refs.composeRefs(ref, childRef) : childRef
|
|
43
29
|
});
|
|
44
30
|
}));
|
|
45
31
|
Comp.displayName = typeof Component === "string" ? Component : Component.displayName || Component.name;
|
|
@@ -61,12 +47,6 @@ const jsxFactory = () => {
|
|
|
61
47
|
const sprawlify = jsxFactory();
|
|
62
48
|
|
|
63
49
|
//#endregion
|
|
64
|
-
Object.defineProperty(exports, 'composeRefs', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return composeRefs;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
50
|
Object.defineProperty(exports, 'jsxFactory', {
|
|
71
51
|
enumerable: true,
|
|
72
52
|
get: function () {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import { t as mergeProps$1 } from "./core-
|
|
3
|
-
import { t as createContext$1 } from "./create-context-
|
|
4
|
-
import { n as useEnvironmentContext } from "./environment-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { t as __export } from "./chunk-BU8PiJgx.mjs";
|
|
2
|
+
import { t as mergeProps$1 } from "./core-79NSyZp-.mjs";
|
|
3
|
+
import { t as createContext$1 } from "./create-context-DbhrVE2B.mjs";
|
|
4
|
+
import { n as useEnvironmentContext } from "./environment-Cc02I6aF.mjs";
|
|
5
|
+
import { t as composeRefs } from "./compose-refs-Cl5LpASY.mjs";
|
|
6
|
+
import { n as sprawlify } from "./factory-7ydMApfi.mjs";
|
|
7
|
+
import { t as createSplitProps } from "./create-split-props-BJdRM9I_.mjs";
|
|
8
|
+
import { n as useFieldsetContext } from "./use-fieldset-context-6GRSrrlt.mjs";
|
|
9
|
+
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-DPn_9-dD.mjs";
|
|
8
10
|
import { mergeProps } from "@sprawlify/primitives/core";
|
|
9
11
|
import { forwardRef, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
10
12
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_create_context = require('./create-context-
|
|
3
|
-
const require_environment = require('./environment-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
const require_chunk = require('./chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_create_context = require('./create-context-CQ4U0lLj.cjs');
|
|
3
|
+
const require_environment = require('./environment-CvilmfQt.cjs');
|
|
4
|
+
const require_compose_refs = require('./compose-refs-C5QNDywq.cjs');
|
|
5
|
+
const require_factory = require('./factory-C166evrS.cjs');
|
|
6
|
+
const require_create_split_props = require('./create-split-props-Dp4TWOyM.cjs');
|
|
7
|
+
const require_use_fieldset_context = require('./use-fieldset-context-CCQLmNLL.cjs');
|
|
8
|
+
const require_use_safe_layout_effect = require('./use-safe-layout-effect-C2GgvNT3.cjs');
|
|
7
9
|
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
8
10
|
let react = require("react");
|
|
9
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -91,7 +93,7 @@ const parts = fieldAnatomy.build();
|
|
|
91
93
|
//#endregion
|
|
92
94
|
//#region src/components/field/use-field.ts
|
|
93
95
|
const useField = (props = {}) => {
|
|
94
|
-
const fieldset =
|
|
96
|
+
const fieldset = require_use_fieldset_context.useFieldsetContext();
|
|
95
97
|
const env = require_environment.useEnvironmentContext();
|
|
96
98
|
const { ids, disabled = Boolean(fieldset?.disabled), invalid = false, readOnly = false, required = false } = props;
|
|
97
99
|
const [hasErrorText, setHasErrorText] = (0, react.useState)(false);
|
|
@@ -252,7 +254,7 @@ const FieldRoot = (0, react.forwardRef)((props, ref) => {
|
|
|
252
254
|
value: field,
|
|
253
255
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
254
256
|
...mergedProps,
|
|
255
|
-
ref:
|
|
257
|
+
ref: require_compose_refs.composeRefs(ref, field.refs.rootRef)
|
|
256
258
|
})
|
|
257
259
|
});
|
|
258
260
|
});
|
|
@@ -297,14 +299,14 @@ const FieldTextarea = (0, react.forwardRef)((props, ref) => {
|
|
|
297
299
|
}, [autoresize]);
|
|
298
300
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.textarea, {
|
|
299
301
|
...mergedProps,
|
|
300
|
-
ref:
|
|
302
|
+
ref: require_compose_refs.composeRefs(ref, textareaRef)
|
|
301
303
|
});
|
|
302
304
|
});
|
|
303
305
|
FieldTextarea.displayName = "FieldTextarea";
|
|
304
306
|
|
|
305
307
|
//#endregion
|
|
306
308
|
//#region src/components/field/field.ts
|
|
307
|
-
var field_exports = /* @__PURE__ */
|
|
309
|
+
var field_exports = /* @__PURE__ */ require_chunk.__export({
|
|
308
310
|
Context: () => FieldContext,
|
|
309
311
|
ErrorText: () => FieldErrorText,
|
|
310
312
|
HelperText: () => FieldHelperText,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_environment = require('./environment-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const require_chunk = require('./chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_environment = require('./environment-CvilmfQt.cjs');
|
|
3
|
+
const require_compose_refs = require('./compose-refs-C5QNDywq.cjs');
|
|
4
|
+
const require_factory = require('./factory-C166evrS.cjs');
|
|
5
|
+
const require_create_split_props = require('./create-split-props-Dp4TWOyM.cjs');
|
|
6
|
+
const require_use_fieldset_context = require('./use-fieldset-context-CCQLmNLL.cjs');
|
|
7
|
+
const require_use_safe_layout_effect = require('./use-safe-layout-effect-C2GgvNT3.cjs');
|
|
6
8
|
let react = require("react");
|
|
7
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
10
|
let __sprawlify_primitives_dom_query = require("@sprawlify/primitives/dom-query");
|
|
@@ -10,12 +12,12 @@ let __sprawlify_primitives_anatomy = require("@sprawlify/primitives/anatomy");
|
|
|
10
12
|
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
11
13
|
|
|
12
14
|
//#region src/components/fieldset/fieldset-context.tsx
|
|
13
|
-
const FieldsetContext = (props) => props.children(
|
|
15
|
+
const FieldsetContext = (props) => props.children(require_use_fieldset_context.useFieldsetContext());
|
|
14
16
|
|
|
15
17
|
//#endregion
|
|
16
18
|
//#region src/components/fieldset/fieldset-error-text.tsx
|
|
17
19
|
const FieldsetErrorText = (0, react.forwardRef)((props, ref) => {
|
|
18
|
-
const fieldset =
|
|
20
|
+
const fieldset = require_use_fieldset_context.useFieldsetContext();
|
|
19
21
|
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(fieldset.getErrorTextProps(), props);
|
|
20
22
|
return fieldset.invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
21
23
|
...mergedProps,
|
|
@@ -27,7 +29,7 @@ FieldsetErrorText.displayName = "FieldsetErrorText";
|
|
|
27
29
|
//#endregion
|
|
28
30
|
//#region src/components/fieldset/fieldset-helper-text.tsx
|
|
29
31
|
const FieldsetHelperText = (0, react.forwardRef)((props, ref) => {
|
|
30
|
-
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(
|
|
32
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(require_use_fieldset_context.useFieldsetContext().getHelperTextProps(), props);
|
|
31
33
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
32
34
|
...mergedProps,
|
|
33
35
|
ref
|
|
@@ -38,7 +40,7 @@ FieldsetHelperText.displayName = "FieldsetHelperText";
|
|
|
38
40
|
//#endregion
|
|
39
41
|
//#region src/components/fieldset/fieldset-legend.tsx
|
|
40
42
|
const FieldsetLegend = (0, react.forwardRef)((props, ref) => {
|
|
41
|
-
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(
|
|
43
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(require_use_fieldset_context.useFieldsetContext().getLegendProps(), props);
|
|
42
44
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.legend, {
|
|
43
45
|
...mergedProps,
|
|
44
46
|
ref
|
|
@@ -143,11 +145,11 @@ const FieldsetRoot = (0, react.forwardRef)((props, ref) => {
|
|
|
143
145
|
]);
|
|
144
146
|
const fieldset = useFieldset(useFieldsetProps);
|
|
145
147
|
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(fieldset.getRootProps(), localProps);
|
|
146
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
148
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_fieldset_context.FieldsetProvider, {
|
|
147
149
|
value: fieldset,
|
|
148
150
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.fieldset, {
|
|
149
151
|
...mergedProps,
|
|
150
|
-
ref:
|
|
152
|
+
ref: require_compose_refs.composeRefs(ref, fieldset.refs.rootRef)
|
|
151
153
|
})
|
|
152
154
|
});
|
|
153
155
|
});
|
|
@@ -159,7 +161,7 @@ const splitRootProviderProps = require_create_split_props.createSplitProps();
|
|
|
159
161
|
const FieldsetRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
160
162
|
const [{ value: fieldset }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
161
163
|
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(fieldset.getRootProps(), localProps);
|
|
162
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
164
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_fieldset_context.FieldsetProvider, {
|
|
163
165
|
value: fieldset,
|
|
164
166
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.fieldset, {
|
|
165
167
|
...mergedProps,
|
|
@@ -171,7 +173,7 @@ FieldsetRootProvider.displayName = "FieldsetRootProvider";
|
|
|
171
173
|
|
|
172
174
|
//#endregion
|
|
173
175
|
//#region src/components/fieldset/fieldset.ts
|
|
174
|
-
var fieldset_exports = /* @__PURE__ */
|
|
176
|
+
var fieldset_exports = /* @__PURE__ */ require_chunk.__export({
|
|
175
177
|
Context: () => FieldsetContext,
|
|
176
178
|
ErrorText: () => FieldsetErrorText,
|
|
177
179
|
HelperText: () => FieldsetHelperText,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import { t as mergeProps } from "./core-
|
|
3
|
-
import { n as useEnvironmentContext } from "./environment-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { t as __export } from "./chunk-BU8PiJgx.mjs";
|
|
2
|
+
import { t as mergeProps } from "./core-79NSyZp-.mjs";
|
|
3
|
+
import { n as useEnvironmentContext } from "./environment-Cc02I6aF.mjs";
|
|
4
|
+
import { t as composeRefs } from "./compose-refs-Cl5LpASY.mjs";
|
|
5
|
+
import { n as sprawlify } from "./factory-7ydMApfi.mjs";
|
|
6
|
+
import { t as createSplitProps } from "./create-split-props-BJdRM9I_.mjs";
|
|
7
|
+
import { n as useFieldsetContext, t as FieldsetProvider } from "./use-fieldset-context-6GRSrrlt.mjs";
|
|
8
|
+
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-DPn_9-dD.mjs";
|
|
7
9
|
import { forwardRef, useId, useRef, useState } from "react";
|
|
8
10
|
import { jsx } from "react/jsx-runtime";
|
|
9
11
|
import { dataAttr } from "@sprawlify/primitives/dom-query";
|
|
@@ -8,11 +8,11 @@ declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userPr
|
|
|
8
8
|
//#region src/core/normalize-props.d.ts
|
|
9
9
|
type WithoutRef<T> = Omit<T, "ref">;
|
|
10
10
|
type ElementsWithoutRef = { [K in keyof JSX.IntrinsicElements]: WithoutRef<JSX.IntrinsicElements[K]> };
|
|
11
|
-
type PropTypes = ElementsWithoutRef & {
|
|
11
|
+
type PropTypes$1 = ElementsWithoutRef & {
|
|
12
12
|
element: WithoutRef<HTMLAttributes<HTMLElement>>;
|
|
13
13
|
style: CSSProperties;
|
|
14
14
|
};
|
|
15
|
-
declare const normalizeProps: _sprawlify_primitives_types0.NormalizeProps<PropTypes>;
|
|
15
|
+
declare const normalizeProps: _sprawlify_primitives_types0.NormalizeProps<PropTypes$1>;
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/core/portal.d.ts
|
|
18
18
|
interface PortalProps {
|
|
@@ -22,4 +22,4 @@ interface PortalProps {
|
|
|
22
22
|
}
|
|
23
23
|
declare const Portal: (props: PropsWithChildren<PortalProps>) => JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { useMachine as a, normalizeProps as i, PortalProps as n, PropTypes as r, Portal as t };
|
|
25
|
+
export { useMachine as a, normalizeProps as i, PortalProps as n, PropTypes$1 as r, Portal as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
|
+
import { FilterOptions, FilterReturn, Locale } from "@sprawlify/primitives/i18n-utils";
|
|
4
|
+
|
|
5
|
+
//#region src/providers/environment/use-environment-context.d.ts
|
|
6
|
+
type RootNode = ShadowRoot | Document | Node;
|
|
7
|
+
interface UseEnvironmentContext {
|
|
8
|
+
getRootNode(): RootNode;
|
|
9
|
+
getDocument(): Document;
|
|
10
|
+
getWindow(): Window & typeof globalThis;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/providers/environment/environment-provider.d.ts
|
|
14
|
+
interface EnvironmentProviderProps {
|
|
15
|
+
children?: ReactNode | undefined;
|
|
16
|
+
value?: RootNode | (() => RootNode) | undefined;
|
|
17
|
+
}
|
|
18
|
+
declare const EnvironmentProvider: (props: EnvironmentProviderProps) => react_jsx_runtime20.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/providers/locale/locale-provider.d.ts
|
|
21
|
+
interface LocaleProviderProps extends PropsWithChildren {
|
|
22
|
+
locale: string;
|
|
23
|
+
}
|
|
24
|
+
declare const LocaleProvider: (props: LocaleProviderProps) => react_jsx_runtime20.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/providers/locale/use-collator.d.ts
|
|
27
|
+
interface UseCollatorProps extends Intl.CollatorOptions {
|
|
28
|
+
locale?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function useCollator(props?: UseCollatorProps): Intl.Collator;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/providers/locale/use-filter.d.ts
|
|
33
|
+
interface UseFilterProps extends FilterOptions {}
|
|
34
|
+
declare function useFilter(props: UseFilterProps): UseFilterReturn;
|
|
35
|
+
interface UseFilterReturn extends FilterReturn {}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/providers/locale/use-locale-context.d.ts
|
|
38
|
+
interface UseLocaleContext extends Locale {}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { useFilter as a, LocaleProvider as c, EnvironmentProviderProps as d, RootNode as f, UseFilterReturn as i, LocaleProviderProps as l, useEnvironmentContext as m, useLocaleContext as n, UseCollatorProps as o, UseEnvironmentContext as p, UseFilterProps as r, useCollator as s, UseLocaleContext as t, EnvironmentProvider as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as PolymorphicProps, t as HTMLProps } from "./factory-
|
|
3
|
-
import { t as RenderStrategyProps } from "./render-strategy-
|
|
4
|
-
import * as
|
|
1
|
+
import { r as Optional } from "./types-CrwpJrFp.mjs";
|
|
2
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory-DaVlp4Ba.mjs";
|
|
3
|
+
import { t as RenderStrategyProps } from "./render-strategy-CRwPcG33.mjs";
|
|
4
|
+
import * as react225 from "react";
|
|
5
5
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
6
6
|
|
|
7
7
|
//#region src/components/presence/use-presence.d.ts
|
|
@@ -22,13 +22,13 @@ declare const usePresence: (props?: UsePresenceProps) => {
|
|
|
22
22
|
//#region src/components/presence/presence.d.ts
|
|
23
23
|
interface PresenceBaseProps extends UsePresenceProps, PolymorphicProps {}
|
|
24
24
|
interface PresenceProps extends HTMLProps<"div">, PresenceBaseProps {}
|
|
25
|
-
declare const Presence:
|
|
25
|
+
declare const Presence: react225.ForwardRefExoticComponent<PresenceProps & react225.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/presence/split-presence-props.d.ts
|
|
28
|
-
declare const splitPresenceProps: <T extends UsePresenceProps>(props: T) => [UsePresenceProps, Omit<T, "
|
|
28
|
+
declare const splitPresenceProps: <T extends UsePresenceProps>(props: T) => [UsePresenceProps, Omit<T, "onExitComplete" | "lazyMount" | "unmountOnExit" | "present" | "immediate" | "skipAnimationOnMount">];
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/presence/use-presence-context.d.ts
|
|
31
31
|
interface UsePresenceContext extends UsePresenceReturn {}
|
|
32
|
-
declare const PresenceProvider:
|
|
32
|
+
declare const PresenceProvider: react225.Provider<UsePresenceContext>, usePresenceContext: () => UsePresenceContext;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { Presence as a, UsePresenceProps as c, splitPresenceProps as i, UsePresenceReturn as l, UsePresenceContext as n, PresenceBaseProps as o, usePresenceContext as r, PresenceProps as s, PresenceProvider as t, usePresence as u };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { JSX, PropsWithChildren, ReactNode, RefObject } from "react";
|
|
2
|
+
import { Machine, MachineSchema, Service } from "@sprawlify/primitives/core";
|
|
3
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
4
|
+
import { FilterOptions, FilterReturn, Locale } from "@sprawlify/primitives/i18n-utils";
|
|
5
|
+
|
|
6
|
+
//#region src/core/machine.d.ts
|
|
7
|
+
declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userProps?: Partial<T["props"]>): Service<T>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/core/portal.d.ts
|
|
10
|
+
interface PortalProps {
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
container?: RefObject<HTMLElement> | undefined;
|
|
13
|
+
getRootNode?: (() => ShadowRoot | Document | Node) | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare const Portal: (props: PropsWithChildren<PortalProps>) => JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/providers/environment/use-environment-context.d.ts
|
|
18
|
+
type RootNode = ShadowRoot | Document | Node;
|
|
19
|
+
interface UseEnvironmentContext {
|
|
20
|
+
getRootNode(): RootNode;
|
|
21
|
+
getDocument(): Document;
|
|
22
|
+
getWindow(): Window & typeof globalThis;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/providers/environment/environment-provider.d.ts
|
|
26
|
+
interface EnvironmentProviderProps {
|
|
27
|
+
children?: ReactNode | undefined;
|
|
28
|
+
value?: RootNode | (() => RootNode) | undefined;
|
|
29
|
+
}
|
|
30
|
+
declare const EnvironmentProvider: (props: EnvironmentProviderProps) => react_jsx_runtime20.JSX.Element;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/providers/locale/locale-provider.d.ts
|
|
33
|
+
interface LocaleProviderProps extends PropsWithChildren {
|
|
34
|
+
locale: string;
|
|
35
|
+
}
|
|
36
|
+
declare const LocaleProvider: (props: LocaleProviderProps) => react_jsx_runtime20.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/providers/locale/use-collator.d.ts
|
|
39
|
+
interface UseCollatorProps extends Intl.CollatorOptions {
|
|
40
|
+
locale?: string;
|
|
41
|
+
}
|
|
42
|
+
declare function useCollator(props?: UseCollatorProps): Intl.Collator;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/providers/locale/use-filter.d.ts
|
|
45
|
+
interface UseFilterProps extends FilterOptions {}
|
|
46
|
+
declare function useFilter(props: UseFilterProps): UseFilterReturn;
|
|
47
|
+
interface UseFilterReturn extends FilterReturn {}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/providers/locale/use-locale-context.d.ts
|
|
50
|
+
interface UseLocaleContext extends Locale {}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { useMachine as _, useFilter as a, LocaleProvider as c, EnvironmentProviderProps as d, RootNode as f, PortalProps as g, Portal as h, UseFilterReturn as i, LocaleProviderProps as l, useEnvironmentContext as m, useLocaleContext as n, UseCollatorProps as o, UseEnvironmentContext as p, UseFilterProps as r, useCollator as s, UseLocaleContext as t, EnvironmentProvider as u };
|