@rpcbase/ui 0.213.0 → 0.215.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.
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +4 -5
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +8 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +5 -8
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +3 -3
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +145 -6
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +38 -144
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +4 -39
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +7 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +12 -6
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +30 -6
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +10 -31
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +10 -10
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +8 -10
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +13 -8
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +101 -13
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +20 -102
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +54 -20
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +70 -51
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +9 -72
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +20 -9
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +16 -20
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +23 -16
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -23
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +5 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +23 -5
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +35 -24
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +16 -35
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +7 -16
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +3 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -3
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +8 -24
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +6 -7
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -6
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -5
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -4
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +46 -3
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +46 -5
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +223 -62
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +22 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +24 -363
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +382 -243
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +597 -52
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -46
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +56 -157
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +2 -110
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +363 -24
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +262 -8
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +60 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +46 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +169 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +102 -459
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +24 -185
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -108
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +4 -262
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +5 -9
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -42
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +466 -4
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +177 -597
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +103 -42
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +253 -220
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +10 -22
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +42 -24
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -400
- package/dist/index178.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index230.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +3 -3
- package/dist/index238.js +2 -2
- package/dist/index239.js +23 -12
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +29 -155
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -31
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +67 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +176 -44
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +45 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +13 -44
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +145 -86
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +27 -83
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -105
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +41 -45
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +11 -11
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +42 -35
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +95 -8
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +86 -3
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +105 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +46 -110
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -17
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +35 -13
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +8 -36
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +3 -20
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +8 -7
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +114 -17
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +17 -28
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +14 -15
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +31 -62
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +19 -179
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +8 -46
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +19 -24
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +29 -29
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +17 -5
- package/dist/index269.js.map +1 -1
- package/dist/index273.js +5 -21
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -5
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +24 -3
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +111 -22
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +14 -111
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +528 -14
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +111 -515
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +117 -109
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +20 -133
- package/dist/index281.js.map +1 -1
- package/dist/index299.js +69 -65
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +8 -68
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +14 -9
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +66 -14
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +64 -65
- package/dist/index303.js.map +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index36.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +2 -7
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +2 -34
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -25
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +33 -7
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +48 -11
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +8 -2
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +12 -2
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +7 -7
- package/dist/index59.js +3 -5
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +47 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +50 -5
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +8 -2
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +15 -2
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +133 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -47
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +214 -48
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +13 -8
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +45 -13
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +47 -131
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +4 -11
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -216
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -13
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +49 -46
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -50
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +6 -4
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -4
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -28
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -50
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +2 -9
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +52 -47
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +5 -52
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +4 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +15 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +5 -15
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +7 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +15 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +4 -16
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +5 -4
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +2 -2
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +5 -3
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +24 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +6 -24
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -6
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/dist/lib/react-compose-refs.d.ts +5 -0
- package/dist/lib/react-compose-refs.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/helpers/isMobileDevice.test.d.ts +0 -2
- package/dist/helpers/isMobileDevice.test.d.ts.map +0 -1
- package/dist/helpers/useScrollPagination.test.d.ts +0 -2
- package/dist/helpers/useScrollPagination.test.d.ts.map +0 -1
package/dist/index303.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index303.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index303.js","sources":["../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAA,GACTC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACX;AAAA,IACA,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,QAAM,CAAC;AAAA,MAC9D;AAAA,IACJ;AAAA,IACA,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE;AAAA,MAClB;AACA,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAG;AAAA,QACnC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAQ;AAAA,MACrD;AAAA,IACQ;AAAA,IACA,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAA;AACnB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MACnB;AACA,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAA,GACfD,EAAI,QAAQD,CAAE;AAAA,MAClB,GACII,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAG;AACvE,MAAAC,EAAK,GACLV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAK;AAAA,QACT;AAAA,QACA,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACX;AAAA,MAChB;AAAA,IACQ;AAAA,EACR;AACI,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
package/dist/index31.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { composeEventHandlers as h } from "./
|
|
3
|
-
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./
|
|
4
|
-
import { useComposedRefs as R } from "./
|
|
5
|
-
import { useCallbackRef as g } from "./
|
|
6
|
-
import { useEscapeKeydown as U } from "./
|
|
2
|
+
import { composeEventHandlers as h } from "./index53.js";
|
|
3
|
+
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index54.js";
|
|
4
|
+
import { useComposedRefs as R } from "./index55.js";
|
|
5
|
+
import { useCallbackRef as g } from "./index56.js";
|
|
6
|
+
import { useEscapeKeydown as U } from "./index57.js";
|
|
7
7
|
import { j as x } from "./index30.js";
|
|
8
8
|
var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", C, T = s.createContext({
|
|
9
9
|
layers: /* @__PURE__ */ new Set(),
|
package/dist/index32.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
|
|
2
|
-
import { DateLib as Ze } from "./
|
|
3
|
-
import { createGetModifiers as Ie } from "./
|
|
4
|
-
import { getClassNamesForModifiers as Ge } from "./
|
|
5
|
-
import { getComponents as He } from "./
|
|
6
|
-
import { getDataAttributes as _e } from "./
|
|
7
|
-
import { getDefaultClassNames as Ue } from "./
|
|
8
|
-
import { getFormatters as je } from "./
|
|
9
|
-
import { getLabels as Ve } from "./
|
|
10
|
-
import { getMonthOptions as $e } from "./
|
|
11
|
-
import { getStyleForModifiers as qe } from "./
|
|
12
|
-
import { getWeekdays as ze } from "./
|
|
13
|
-
import { getYearOptions as Je } from "./
|
|
14
|
-
import { createNoonOverrides as Qe } from "./
|
|
15
|
-
import { UI as n, DayFlag as Xe, SelectionState as w } from "./
|
|
16
|
-
import { useAnimation as et } from "./
|
|
17
|
-
import { useCalendar as tt } from "./
|
|
18
|
-
import { dayPickerContext as at } from "./
|
|
19
|
-
import { useFocus as ot } from "./
|
|
20
|
-
import { useSelection as nt } from "./
|
|
21
|
-
import { convertMatchersToTimeZone as K } from "./
|
|
22
|
-
import { rangeIncludesDate as st } from "./
|
|
23
|
-
import { toTimeZone as k } from "./
|
|
24
|
-
import { isDateRange as rt } from "./
|
|
25
|
-
import { enUS as it } from "./
|
|
2
|
+
import { DateLib as Ze } from "./index107.js";
|
|
3
|
+
import { createGetModifiers as Ie } from "./index108.js";
|
|
4
|
+
import { getClassNamesForModifiers as Ge } from "./index109.js";
|
|
5
|
+
import { getComponents as He } from "./index110.js";
|
|
6
|
+
import { getDataAttributes as _e } from "./index111.js";
|
|
7
|
+
import { getDefaultClassNames as Ue } from "./index112.js";
|
|
8
|
+
import { getFormatters as je } from "./index113.js";
|
|
9
|
+
import { getLabels as Ve } from "./index114.js";
|
|
10
|
+
import { getMonthOptions as $e } from "./index115.js";
|
|
11
|
+
import { getStyleForModifiers as qe } from "./index116.js";
|
|
12
|
+
import { getWeekdays as ze } from "./index117.js";
|
|
13
|
+
import { getYearOptions as Je } from "./index118.js";
|
|
14
|
+
import { createNoonOverrides as Qe } from "./index119.js";
|
|
15
|
+
import { UI as n, DayFlag as Xe, SelectionState as w } from "./index120.js";
|
|
16
|
+
import { useAnimation as et } from "./index121.js";
|
|
17
|
+
import { useCalendar as tt } from "./index122.js";
|
|
18
|
+
import { dayPickerContext as at } from "./index123.js";
|
|
19
|
+
import { useFocus as ot } from "./index124.js";
|
|
20
|
+
import { useSelection as nt } from "./index125.js";
|
|
21
|
+
import { convertMatchersToTimeZone as K } from "./index126.js";
|
|
22
|
+
import { rangeIncludesDate as st } from "./index127.js";
|
|
23
|
+
import { toTimeZone as k } from "./index128.js";
|
|
24
|
+
import { isDateRange as rt } from "./index129.js";
|
|
25
|
+
import { enUS as it } from "./index130.js";
|
|
26
26
|
function Yt(R) {
|
|
27
27
|
let e = R;
|
|
28
28
|
const u = e.timeZone;
|
package/dist/index33.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defaultDateLib as A } from "./
|
|
2
|
-
import { rangeIncludesDate as p } from "./
|
|
3
|
-
import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./
|
|
1
|
+
import { defaultDateLib as A } from "./index107.js";
|
|
2
|
+
import { rangeIncludesDate as p } from "./index127.js";
|
|
3
|
+
import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index129.js";
|
|
4
4
|
function b(f, n, r = A) {
|
|
5
5
|
const t = Array.isArray(n) ? n : [n], { isSameDay: o, differenceInCalendarDays: i, isAfter: D } = r;
|
|
6
6
|
return t.some((e) => {
|
package/dist/index36.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCountryList as E } from "./
|
|
1
|
+
import { getCountryList as E } from "./index75.js";
|
|
2
2
|
import { getCountryCallingCode as s } from "./index40.js";
|
|
3
3
|
const c = "US", u = E(), f = /* @__PURE__ */ new Map(), m = "__default_locale__", _ = Array.from(new Set(u.map((e) => s(e)))).sort((e, t) => t.length - e.length), O = _.reduce((e, t) => Math.max(e, t.length), 0), y = ["0011", "001", "011", "00", "810"];
|
|
4
4
|
function R(e) {
|
package/dist/index37.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_DIAL_CODE_LENGTH as W, COMMON_IDD_PREFIXES as $, DEFAULT_COUNTRY as x, COUNTRY_DIAL_CODES as C } from "./index36.js";
|
|
2
2
|
import { getCountryCallingCode as p } from "./index40.js";
|
|
3
|
-
import { AsYouType as I } from "./
|
|
4
|
-
import { validatePhoneNumberLength as D } from "./
|
|
3
|
+
import { AsYouType as I } from "./index76.js";
|
|
4
|
+
import { validatePhoneNumberLength as D } from "./index77.js";
|
|
5
5
|
function g(t) {
|
|
6
6
|
return t.replace(/\D/g, "");
|
|
7
7
|
}
|
package/dist/index40.js
CHANGED
package/dist/index41.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import * as Re from "react-dom";
|
|
3
|
-
import { clamp as Te } from "./
|
|
4
|
-
import { composeEventHandlers as R } from "./
|
|
5
|
-
import { createCollection as tt } from "./
|
|
6
|
-
import { useComposedRefs as j } from "./
|
|
7
|
-
import { createContextScope as ot } from "./
|
|
8
|
-
import { useDirection as nt } from "./
|
|
3
|
+
import { clamp as Te } from "./index59.js";
|
|
4
|
+
import { composeEventHandlers as R } from "./index53.js";
|
|
5
|
+
import { createCollection as tt } from "./index60.js";
|
|
6
|
+
import { useComposedRefs as j } from "./index55.js";
|
|
7
|
+
import { createContextScope as ot } from "./index61.js";
|
|
8
|
+
import { useDirection as nt } from "./index62.js";
|
|
9
9
|
import { DismissableLayer as rt } from "./index31.js";
|
|
10
|
-
import { useFocusGuards as st } from "./
|
|
11
|
-
import { FocusScope as lt } from "./
|
|
12
|
-
import { useId as ye } from "./
|
|
13
|
-
import { Root as ct, createPopperScope as Ee, Anchor as it, Content as at, Arrow as dt } from "./
|
|
14
|
-
import { Portal as ut } from "./
|
|
15
|
-
import { Primitive as M } from "./
|
|
16
|
-
import { createSlot as pt } from "./
|
|
17
|
-
import { useCallbackRef as ft } from "./
|
|
18
|
-
import { useControllableState as Pe } from "./
|
|
19
|
-
import { useLayoutEffect as z } from "./
|
|
20
|
-
import { usePrevious as mt } from "./
|
|
21
|
-
import { VISUALLY_HIDDEN_STYLES as ht } from "./
|
|
22
|
-
import { hideOthers as vt } from "./
|
|
23
|
-
import gt from "./
|
|
10
|
+
import { useFocusGuards as st } from "./index63.js";
|
|
11
|
+
import { FocusScope as lt } from "./index64.js";
|
|
12
|
+
import { useId as ye } from "./index65.js";
|
|
13
|
+
import { Root as ct, createPopperScope as Ee, Anchor as it, Content as at, Arrow as dt } from "./index66.js";
|
|
14
|
+
import { Portal as ut } from "./index67.js";
|
|
15
|
+
import { Primitive as M } from "./index54.js";
|
|
16
|
+
import { createSlot as pt } from "./index68.js";
|
|
17
|
+
import { useCallbackRef as ft } from "./index56.js";
|
|
18
|
+
import { useControllableState as Pe } from "./index69.js";
|
|
19
|
+
import { useLayoutEffect as z } from "./index70.js";
|
|
20
|
+
import { usePrevious as mt } from "./index71.js";
|
|
21
|
+
import { VISUALLY_HIDDEN_STYLES as ht } from "./index72.js";
|
|
22
|
+
import { hideOthers as vt } from "./index73.js";
|
|
23
|
+
import gt from "./index74.js";
|
|
24
24
|
import { j as d } from "./index30.js";
|
|
25
25
|
var St = [" ", "Enter", "ArrowUp", "ArrowDown"], xt = [" ", "Enter"], J = "Select", [ie, ae, wt] = tt(J), [te] = ot(J, [
|
|
26
26
|
wt,
|
package/dist/index45.js
CHANGED
package/dist/index46.js
CHANGED
package/dist/index49.js
CHANGED
package/dist/index50.js
CHANGED
package/dist/index51.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
return function(e) {
|
|
3
|
-
if (n?.(e), t === !1 || !e.defaultPrevented)
|
|
4
|
-
return r?.(e);
|
|
5
|
-
};
|
|
6
|
-
}
|
|
1
|
+
var r = {};
|
|
7
2
|
export {
|
|
8
|
-
|
|
3
|
+
r as __exports
|
|
9
4
|
};
|
|
10
5
|
//# sourceMappingURL=index51.js.map
|
package/dist/index51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index51.js","sources":[
|
|
1
|
+
{"version":3,"file":"index51.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index52.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import * as f from "react-dom";
|
|
3
|
-
import { createSlot as c } from "./index80.js";
|
|
4
|
-
import { j as u } from "./index30.js";
|
|
5
|
-
var l = [
|
|
6
|
-
"a",
|
|
7
|
-
"button",
|
|
8
|
-
"div",
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"select",
|
|
20
|
-
"span",
|
|
21
|
-
"svg",
|
|
22
|
-
"ul"
|
|
23
|
-
], h = l.reduce((t, i) => {
|
|
24
|
-
const o = c(`Primitive.${i}`), r = p.forwardRef((e, s) => {
|
|
25
|
-
const { asChild: m, ...a } = e, n = m ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
|
|
27
|
-
});
|
|
28
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
-
}, {});
|
|
30
|
-
function w(t, i) {
|
|
31
|
-
t && f.flushSync(() => t.dispatchEvent(i));
|
|
32
|
-
}
|
|
1
|
+
var e = {};
|
|
33
2
|
export {
|
|
34
|
-
|
|
35
|
-
w as dispatchDiscreteCustomEvent
|
|
3
|
+
e as __exports
|
|
36
4
|
};
|
|
37
5
|
//# sourceMappingURL=index52.js.map
|
package/dist/index52.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index52.js","sources":[
|
|
1
|
+
{"version":3,"file":"index52.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index53.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
n != null && (n.current = o);
|
|
6
|
-
}
|
|
7
|
-
function i(...n) {
|
|
8
|
-
return (o) => {
|
|
9
|
-
let u = !1;
|
|
10
|
-
const c = n.map((t) => {
|
|
11
|
-
const e = l(t, o);
|
|
12
|
-
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
-
});
|
|
14
|
-
if (u)
|
|
15
|
-
return () => {
|
|
16
|
-
for (let t = 0; t < c.length; t++) {
|
|
17
|
-
const e = c[t];
|
|
18
|
-
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
1
|
+
function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
2
|
+
return function(e) {
|
|
3
|
+
if (n?.(e), t === !1 || !e.defaultPrevented)
|
|
4
|
+
return r?.(e);
|
|
21
5
|
};
|
|
22
6
|
}
|
|
23
|
-
function s(...n) {
|
|
24
|
-
return f.useCallback(i(...n), n);
|
|
25
|
-
}
|
|
26
7
|
export {
|
|
27
|
-
|
|
28
|
-
s as useComposedRefs
|
|
8
|
+
f as composeEventHandlers
|
|
29
9
|
};
|
|
30
10
|
//# sourceMappingURL=index53.js.map
|
package/dist/index53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index53.js","sources":["../../../node_modules/@radix-ui/
|
|
1
|
+
{"version":3,"file":"index53.js","sources":["../../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,IAAuBG,CAAK,GACxBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,IAAkBE,CAAK;AAAA,EAElC;AACF;","x_google_ignoreList":[0]}
|
package/dist/index54.js
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import * as f from "react-dom";
|
|
3
|
+
import { createSlot as c } from "./index151.js";
|
|
4
|
+
import { j as u } from "./index30.js";
|
|
5
|
+
var l = [
|
|
6
|
+
"a",
|
|
7
|
+
"button",
|
|
8
|
+
"div",
|
|
9
|
+
"form",
|
|
10
|
+
"h2",
|
|
11
|
+
"h3",
|
|
12
|
+
"img",
|
|
13
|
+
"input",
|
|
14
|
+
"label",
|
|
15
|
+
"li",
|
|
16
|
+
"nav",
|
|
17
|
+
"ol",
|
|
18
|
+
"p",
|
|
19
|
+
"select",
|
|
20
|
+
"span",
|
|
21
|
+
"svg",
|
|
22
|
+
"ul"
|
|
23
|
+
], h = l.reduce((t, i) => {
|
|
24
|
+
const o = c(`Primitive.${i}`), r = p.forwardRef((e, s) => {
|
|
25
|
+
const { asChild: m, ...a } = e, n = m ? o : i;
|
|
26
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
|
|
27
|
+
});
|
|
28
|
+
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
+
}, {});
|
|
30
|
+
function w(t, i) {
|
|
31
|
+
t && f.flushSync(() => t.dispatchEvent(i));
|
|
7
32
|
}
|
|
8
33
|
export {
|
|
9
|
-
|
|
34
|
+
h as Primitive,
|
|
35
|
+
w as dispatchDiscreteCustomEvent
|
|
10
36
|
};
|
|
11
37
|
//# sourceMappingURL=index54.js.map
|
package/dist/index54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","sources":["../../../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index54.js","sources":["../../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAW,aAAaF,CAAI,EAAE,GACrCG,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUN,IAAOD;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,uBAAO,IAAI,UAAU,CAAC,IAAI,KAEZU,gBAAAA,EAAAA,IAAID,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC3E,CAAC;AACD,SAAAH,EAAK,cAAc,aAAaH,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGG,EAAI;AACrC,GAAG,CAAA,CAAE;AACL,SAASQ,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
|
package/dist/index55.js
CHANGED
|
@@ -1,15 +1,52 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
let s = 0;
|
|
3
|
+
const r = /* @__PURE__ */ new WeakMap(), i = typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e);
|
|
4
|
+
function o(e, t) {
|
|
5
|
+
if (typeof e == "function") {
|
|
6
|
+
if (t === null) {
|
|
7
|
+
const n = ++s;
|
|
8
|
+
r.set(e, n), i(() => {
|
|
9
|
+
r.get(e) === n && (e(null), r.get(e) === n && r.delete(e));
|
|
10
|
+
});
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return r.delete(e), e(t);
|
|
14
|
+
}
|
|
15
|
+
e != null && (e.current = t);
|
|
16
|
+
}
|
|
17
|
+
function a(...e) {
|
|
18
|
+
return (t) => {
|
|
19
|
+
let n = !1;
|
|
20
|
+
const c = e.map((l) => {
|
|
21
|
+
const u = o(l, t);
|
|
22
|
+
return !n && typeof u == "function" && (n = !0), u;
|
|
23
|
+
});
|
|
24
|
+
if (n)
|
|
25
|
+
return () => {
|
|
26
|
+
for (let l = 0; l < c.length; l += 1) {
|
|
27
|
+
const u = c[l];
|
|
28
|
+
typeof u == "function" ? u() : o(e[l], null);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function d(e, t) {
|
|
34
|
+
if (e.length !== t.length)
|
|
35
|
+
return !1;
|
|
36
|
+
for (let n = 0; n < e.length; n += 1)
|
|
37
|
+
if (e[n] !== t[n])
|
|
38
|
+
return !1;
|
|
39
|
+
return !0;
|
|
40
|
+
}
|
|
41
|
+
function p(...e) {
|
|
42
|
+
const t = f.useRef(null);
|
|
43
|
+
return (t.current == null || !d(t.current.refs, e)) && (t.current = {
|
|
44
|
+
callback: a(...e),
|
|
45
|
+
refs: e
|
|
46
|
+
}), t.current.callback;
|
|
11
47
|
}
|
|
12
48
|
export {
|
|
13
|
-
|
|
49
|
+
a as composeRefs,
|
|
50
|
+
p as useComposedRefs
|
|
14
51
|
};
|
|
15
52
|
//# sourceMappingURL=index55.js.map
|
package/dist/index55.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index55.js","sources":["
|
|
1
|
+
{"version":3,"file":"index55.js","sources":["../src/lib/react-compose-refs.ts"],"sourcesContent":["import * as React from \"react\"\n\n\ntype PossibleCleanup = void | (() => void)\n\nlet nextDeferredNullId = 0\nconst deferredNullCalls = new WeakMap<React.RefCallback<unknown>, number>()\n\nconst scheduleMicrotask =\n typeof queueMicrotask === \"function\"\n ? queueMicrotask\n : (callback: () => void) => Promise.resolve().then(callback)\n\nfunction setRef<T>(ref: React.Ref<T> | undefined, value: T | null): PossibleCleanup {\n if (typeof ref === \"function\") {\n if (value === null) {\n const deferredNullId = ++nextDeferredNullId\n deferredNullCalls.set(ref, deferredNullId)\n\n scheduleMicrotask(() => {\n if (deferredNullCalls.get(ref) !== deferredNullId) {\n return\n }\n\n ref(null)\n if (deferredNullCalls.get(ref) === deferredNullId) {\n deferredNullCalls.delete(ref)\n }\n })\n\n return\n }\n\n deferredNullCalls.delete(ref)\n return ref(value)\n }\n\n if (ref != null) {\n ref.current = value\n }\n}\n\nfunction composeRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n return (node: T | null) => {\n let hasCleanup = false\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node)\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true\n }\n return cleanup\n })\n\n if (hasCleanup) {\n return () => {\n for (let index = 0; index < cleanups.length; index += 1) {\n const cleanup = cleanups[index]\n\n if (typeof cleanup === \"function\") {\n cleanup()\n } else {\n setRef(refs[index], null)\n }\n }\n }\n }\n }\n}\n\nfunction haveSameRefs<T>(\n previousRefs: Array<React.Ref<T> | undefined>,\n nextRefs: Array<React.Ref<T> | undefined>,\n) {\n if (previousRefs.length !== nextRefs.length) {\n return false\n }\n\n for (let index = 0; index < previousRefs.length; index += 1) {\n if (previousRefs[index] !== nextRefs[index]) {\n return false\n }\n }\n\n return true\n}\n\nfunction useComposedRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n const composedRefsRef = React.useRef<{\n callback: ReturnType<typeof composeRefs<T>>\n refs: Array<React.Ref<T> | undefined>\n } | null>(null)\n\n if (\n composedRefsRef.current == null ||\n !haveSameRefs(composedRefsRef.current.refs, refs)\n ) {\n composedRefsRef.current = {\n callback: composeRefs(...refs),\n refs,\n }\n }\n\n return composedRefsRef.current.callback\n}\n\nexport {\n composeRefs,\n useComposedRefs,\n}\n"],"names":["nextDeferredNullId","deferredNullCalls","WeakMap","scheduleMicrotask","queueMicrotask","callback","Promise","resolve","then","setRef","ref","value","deferredNullId","set","get","delete","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","index","length","haveSameRefs","previousRefs","nextRefs","useComposedRefs","composedRefsRef","React","useRef"],"mappings":";AAKA,IAAIA,IAAqB;AACzB,MAAMC,wBAAwBC,QAAAA,GAExBC,IACJ,OAAOC,kBAAmB,aACtBA,iBACA,CAACC,MAAyBC,QAAQC,QAAAA,EAAUC,KAAKH,CAAQ;AAE/D,SAASI,EAAUC,GAA+BC,GAAkC;AAClF,MAAI,OAAOD,KAAQ,YAAY;AAC7B,QAAIC,MAAU,MAAM;AAClB,YAAMC,IAAiB,EAAEZ;AACzBC,MAAAA,EAAkBY,IAAIH,GAAKE,CAAc,GAEzCT,EAAkB,MAAM;AACtB,QAAIF,EAAkBa,IAAIJ,CAAG,MAAME,MAInCF,EAAI,IAAI,GACJT,EAAkBa,IAAIJ,CAAG,MAAME,KACjCX,EAAkBc,OAAOL,CAAG;AAAA,MAEhC,CAAC;AAED;AAAA,IACF;AAEAT,WAAAA,EAAkBc,OAAOL,CAAG,GACrBA,EAAIC,CAAK;AAAA,EAClB;AAEA,EAAID,KAAO,SACTA,EAAIM,UAAUL;AAElB;AAEA,SAASM,KAAkBC,GAAuC;AAChE,SAAO,CAACC,MAAmB;AACzB,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAKI,IAAKZ,CAAAA,MAAQ;AACjC,YAAMa,IAAUd,EAAOC,GAAKS,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOG,KAAY,eACpCH,IAAa,KAERG;AAAAA,IACT,CAAC;AAED,QAAIH;AACF,aAAO,MAAM;AACX,iBAASI,IAAQ,GAAGA,IAAQH,EAASI,QAAQD,KAAS,GAAG;AACvD,gBAAMD,IAAUF,EAASG,CAAK;AAE9B,UAAI,OAAOD,KAAY,aACrBA,EAAAA,IAEAd,EAAOS,EAAKM,CAAK,GAAG,IAAI;AAAA,QAE5B;AAAA,MACF;AAAA,EAEJ;AACF;AAEA,SAASE,EACPC,GACAC,GACA;AACA,MAAID,EAAaF,WAAWG,EAASH;AACnC,WAAO;AAGT,WAASD,IAAQ,GAAGA,IAAQG,EAAaF,QAAQD,KAAS;AACxD,QAAIG,EAAaH,CAAK,MAAMI,EAASJ,CAAK;AACxC,aAAO;AAIX,SAAO;AACT;AAEA,SAASK,KAAsBX,GAAuC;AACpE,QAAMY,IAAkBC,EAAMC,OAGpB,IAAI;AAEd,UACEF,EAAgBd,WAAW,QAC3B,CAACU,EAAaI,EAAgBd,QAAQE,MAAMA,CAAI,OAEhDY,EAAgBd,UAAU;AAAA,IACxBX,UAAUY,EAAY,GAAGC,CAAI;AAAA,IAC7BA,MAAAA;AAAAA,EAAAA,IAIGY,EAAgBd,QAAQX;AACjC;"}
|
package/dist/index56.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function c(r) {
|
|
3
|
+
const t = e.useRef(r);
|
|
4
|
+
return e.useEffect(() => {
|
|
5
|
+
t.current = r;
|
|
6
|
+
}), e.useMemo(() => (...u) => t.current?.(...u), []);
|
|
7
|
+
}
|
|
2
8
|
export {
|
|
3
|
-
|
|
9
|
+
c as useCallbackRef
|
|
4
10
|
};
|
|
5
11
|
//# sourceMappingURL=index56.js.map
|
package/dist/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index56.js","sources":["../../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EACxB,CAAC,GACME,EAAM,QAAQ,MAAM,IAAIC,MAASF,EAAY,UAAU,GAAGE,CAAI,GAAG,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index57.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useCallbackRef as s } from "./index56.js";
|
|
3
|
+
function p(n, e = globalThis?.document) {
|
|
4
|
+
const t = s(n);
|
|
5
|
+
r.useEffect(() => {
|
|
6
|
+
const o = (a) => {
|
|
7
|
+
a.key === "Escape" && t(a);
|
|
8
|
+
};
|
|
9
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
10
|
+
}, [t, e]);
|
|
11
|
+
}
|
|
2
12
|
export {
|
|
3
|
-
|
|
13
|
+
p as useEscapeKeydown
|
|
4
14
|
};
|
|
5
15
|
//# sourceMappingURL=index57.js.map
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index57.js","sources":["../../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,YAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAEzB;AACA,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC5F,GAAG,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
|
package/dist/index58.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { composeEventHandlers as m } from "./
|
|
3
|
-
import { composeRefs as C } from "./
|
|
4
|
-
import { createContextScope as E } from "./
|
|
5
|
-
import { useControllableState as S } from "./
|
|
6
|
-
import { Primitive as P } from "./
|
|
7
|
-
import { Anchor as y, Item as O, Root as T, Portal as j, Content as G, createMenuScope as D, Group as k, Label as L, CheckboxItem as K, RadioGroup as U, RadioItem as B, ItemIndicator as F, Separator as H, Arrow as W, SubTrigger as $, SubContent as X } from "./
|
|
8
|
-
import { useId as g } from "./
|
|
2
|
+
import { composeEventHandlers as m } from "./index53.js";
|
|
3
|
+
import { composeRefs as C } from "./index55.js";
|
|
4
|
+
import { createContextScope as E } from "./index61.js";
|
|
5
|
+
import { useControllableState as S } from "./index69.js";
|
|
6
|
+
import { Primitive as P } from "./index54.js";
|
|
7
|
+
import { Anchor as y, Item as O, Root as T, Portal as j, Content as G, createMenuScope as D, Group as k, Label as L, CheckboxItem as K, RadioGroup as U, RadioItem as B, ItemIndicator as F, Separator as H, Arrow as W, SubTrigger as $, SubContent as X } from "./index157.js";
|
|
8
|
+
import { useId as g } from "./index65.js";
|
|
9
9
|
import { j as a } from "./index30.js";
|
|
10
10
|
var f = "DropdownMenu", [q] = E(
|
|
11
11
|
f,
|
package/dist/index59.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function s() {
|
|
4
|
-
return e;
|
|
1
|
+
function m(t, [a, n]) {
|
|
2
|
+
return Math.min(n, Math.max(a, t));
|
|
5
3
|
}
|
|
6
4
|
export {
|
|
7
|
-
|
|
5
|
+
m as clamp
|
|
8
6
|
};
|
|
9
7
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":["
|
|
1
|
+
{"version":3,"file":"index59.js","sources":["../../../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
|