@rpcbase/ui 0.223.0 → 0.224.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/components/I18nField/index.d.ts +7 -2
- package/dist/components/I18nField/index.d.ts.map +1 -1
- package/dist/index100.js +4 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +52 -9
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +3 -3
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +15 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +7 -145
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +16 -39
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +4 -7
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +139 -132
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +5 -13
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +5 -13
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +4 -7
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +4 -31
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +6 -10
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +24 -10
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +6 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +4 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +6 -101
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +6 -20
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -53
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -72
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -9
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +8 -20
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +5 -16
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +4 -6
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -5
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +145 -23
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +39 -34
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +5 -16
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +7 -6
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +13 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +13 -4
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +7 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +31 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +10 -3
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +10 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +9 -24
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +13 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +101 -6
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +20 -6
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +53 -3
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +72 -3
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +9 -4
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +20 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +16 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +23 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +6 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +5 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +19 -42
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +35 -6
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +16 -69
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +7 -2
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -363
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -261
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -60
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -46
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +3 -169
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +6 -109
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +24 -25
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +8 -8
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +6 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +5 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +3 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +3 -466
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -185
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +3 -107
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -262
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -9
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +3 -42
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +3 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index177.js +13 -58
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +154 -8
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +28 -64
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +9 -19
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +46 -14
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +11 -5
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +43 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +95 -6
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +86 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +105 -6
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +52 -16
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +11 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +37 -4
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +8 -12
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +116 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +17 -13
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +15 -13
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +3 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +36 -5
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +20 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +9 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +8 -54
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -8
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +28 -4
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +16 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +58 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +8 -4
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +66 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +19 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +16 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -9
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +5 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -10
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +4 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +6 -9
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +16 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -4
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +12 -5
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +9 -6
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +13 -5
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -16
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +4 -7
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +5 -10
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +6 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -21
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +54 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +8 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +4 -16
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -9
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +3 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +10 -15
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +9 -29
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +10 -12
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -25
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +9 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +6 -13
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -154
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -30
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +6 -48
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +5 -11
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +14 -42
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +7 -95
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -85
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -104
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +21 -52
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +10 -11
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -37
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +8 -7
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +4 -116
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +5 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +15 -14
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +9 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +16 -34
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +15 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +12 -9
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +29 -8
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -18
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +23 -26
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +5 -16
- package/dist/index261.js.map +1 -1
- package/dist/index265.js +20 -4
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -18
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +18 -13
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -20
- package/dist/index268.js.map +1 -1
- package/dist/index270.js +1 -1
- package/dist/index272.js +4 -4
- package/dist/index284.js +2 -2
- package/dist/index287.js +1 -1
- package/dist/index288.js +2 -2
- package/dist/index290.js +1 -1
- package/dist/index291.js +1 -1
- package/dist/index292.js +1 -1
- package/dist/index293.js +1 -1
- package/dist/index294.js +69 -65
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -68
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +14 -9
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +66 -14
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +64 -65
- package/dist/index298.js.map +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index40.js +2 -2
- package/dist/index41.js +4 -4
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index53.js +2 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +2 -34
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +5 -47
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +33 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +48 -11
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -2
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +12 -2
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +1 -1
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index64.js +1 -1
- package/dist/index68.js +3 -3
- package/dist/index70.js +3 -3
- package/dist/index71.js +1 -1
- package/dist/index72.js +1 -1
- package/dist/index76.js +1 -1
- package/dist/index79.js +47 -52
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +5 -4
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +68 -4
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +2 -16
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +363 -5
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +261 -7
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +60 -16
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +46 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +169 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +109 -5
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +24 -5
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +8 -5
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +5 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -24
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +466 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +185 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +107 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +262 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +9 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +42 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index298.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index298.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index298.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 "./index55.js";
|
|
3
|
+
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index56.js";
|
|
4
|
+
import { useComposedRefs as R } from "./index57.js";
|
|
5
|
+
import { useCallbackRef as g } from "./index58.js";
|
|
6
|
+
import { useEscapeKeydown as U } from "./index59.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 "./index128.js";
|
|
3
|
+
import { createGetModifiers as Ie } from "./index129.js";
|
|
4
|
+
import { getClassNamesForModifiers as Ge } from "./index130.js";
|
|
5
|
+
import { getComponents as He } from "./index131.js";
|
|
6
|
+
import { getDataAttributes as _e } from "./index132.js";
|
|
7
|
+
import { getDefaultClassNames as Ue } from "./index133.js";
|
|
8
|
+
import { getFormatters as je } from "./index134.js";
|
|
9
|
+
import { getLabels as Ve } from "./index135.js";
|
|
10
|
+
import { getMonthOptions as $e } from "./index136.js";
|
|
11
|
+
import { getStyleForModifiers as qe } from "./index137.js";
|
|
12
|
+
import { getWeekdays as ze } from "./index138.js";
|
|
13
|
+
import { getYearOptions as Je } from "./index139.js";
|
|
14
|
+
import { createNoonOverrides as Qe } from "./index140.js";
|
|
15
|
+
import { UI as n, DayFlag as Xe, SelectionState as w } from "./index141.js";
|
|
16
|
+
import { useAnimation as et } from "./index142.js";
|
|
17
|
+
import { useCalendar as tt } from "./index143.js";
|
|
18
|
+
import { dayPickerContext as at } from "./index144.js";
|
|
19
|
+
import { useFocus as ot } from "./index145.js";
|
|
20
|
+
import { useSelection as nt } from "./index146.js";
|
|
21
|
+
import { convertMatchersToTimeZone as K } from "./index147.js";
|
|
22
|
+
import { rangeIncludesDate as st } from "./index148.js";
|
|
23
|
+
import { toTimeZone as k } from "./index149.js";
|
|
24
|
+
import { isDateRange as rt } from "./index150.js";
|
|
25
|
+
import { enUS as it } from "./index151.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 "./index128.js";
|
|
2
|
+
import { rangeIncludesDate as p } from "./index148.js";
|
|
3
|
+
import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index150.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/index40.js
CHANGED
package/dist/index41.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import * as Re from "react-dom";
|
|
3
3
|
import { clamp as Te } from "./index63.js";
|
|
4
|
-
import { composeEventHandlers as R } from "./
|
|
4
|
+
import { composeEventHandlers as R } from "./index55.js";
|
|
5
5
|
import { createCollection as et } from "./index64.js";
|
|
6
|
-
import { useComposedRefs as D } from "./
|
|
6
|
+
import { useComposedRefs as D } from "./index57.js";
|
|
7
7
|
import { createContextScope as tt } from "./index65.js";
|
|
8
8
|
import { useDirection as ot } from "./index66.js";
|
|
9
9
|
import { DismissableLayer as nt } from "./index31.js";
|
|
@@ -12,9 +12,9 @@ import { FocusScope as st } from "./index68.js";
|
|
|
12
12
|
import { useId as ye } from "./index69.js";
|
|
13
13
|
import { Root as ct, createPopperScope as Ee, Anchor as lt, Content as it, Arrow as at } from "./index70.js";
|
|
14
14
|
import { Portal as dt } from "./index71.js";
|
|
15
|
-
import { Primitive as N } from "./
|
|
15
|
+
import { Primitive as N } from "./index56.js";
|
|
16
16
|
import { createSlot as ut } from "./index72.js";
|
|
17
|
-
import { useCallbackRef as pt } from "./
|
|
17
|
+
import { useCallbackRef as pt } from "./index58.js";
|
|
18
18
|
import { useControllableState as Pe } from "./index73.js";
|
|
19
19
|
import { useLayoutEffect as V } from "./index74.js";
|
|
20
20
|
import { usePrevious as ft } from "./index75.js";
|
package/dist/index49.js
CHANGED
package/dist/index50.js
CHANGED
package/dist/index53.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=index53.js.map
|
package/dist/index53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index53.js","sources":[
|
|
1
|
+
{"version":3,"file":"index53.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index54.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import * as f from "react-dom";
|
|
3
|
-
import { createSlot as c } from "./index150.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=index54.js.map
|
package/dist/index54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","sources":[
|
|
1
|
+
{"version":3,"file":"index54.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index55.js
CHANGED
|
@@ -1,52 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
};
|
|
1
|
+
function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
2
|
+
return function(e) {
|
|
3
|
+
if (n?.(e), t === !1 || !e.defaultPrevented)
|
|
4
|
+
return r?.(e);
|
|
31
5
|
};
|
|
32
6
|
}
|
|
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;
|
|
47
|
-
}
|
|
48
7
|
export {
|
|
49
|
-
|
|
50
|
-
p as useComposedRefs
|
|
8
|
+
f as composeEventHandlers
|
|
51
9
|
};
|
|
52
10
|
//# 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":["../../../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/index56.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 "./index79.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=index56.js.map
|
package/dist/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":["../../../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index56.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/index57.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=index57.js.map
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["
|
|
1
|
+
{"version":3,"file":"index57.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/index58.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=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index58.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/index59.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useCallbackRef as s } from "./index58.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=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index59.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/index60.js
CHANGED
package/dist/index61.js
CHANGED
package/dist/index62.js
CHANGED
package/dist/index64.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
2
|
import { createContextScope as y } from "./index65.js";
|
|
3
|
-
import { useComposedRefs as S } from "./
|
|
3
|
+
import { useComposedRefs as S } from "./index57.js";
|
|
4
4
|
import { createSlot as M } from "./index172.js";
|
|
5
5
|
import { j as d } from "./index30.js";
|
|
6
6
|
function D(s) {
|
package/dist/index68.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import { useComposedRefs as P } from "./
|
|
3
|
-
import { Primitive as M } from "./
|
|
4
|
-
import { useCallbackRef as y } from "./
|
|
2
|
+
import { useComposedRefs as P } from "./index57.js";
|
|
3
|
+
import { Primitive as M } from "./index56.js";
|
|
4
|
+
import { useCallbackRef as y } from "./index58.js";
|
|
5
5
|
import { j as _ } from "./index30.js";
|
|
6
6
|
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, t) => {
|
|
7
7
|
const {
|
package/dist/index70.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import { useFloating as fe, offset as me, shift as he, flip as ue, size as ge, arrow as we, hide as xe, limitShift as Pe } from "./index173.js";
|
|
3
3
|
import { Root as ye } from "./index174.js";
|
|
4
|
-
import { useComposedRefs as z } from "./
|
|
4
|
+
import { useComposedRefs as z } from "./index57.js";
|
|
5
5
|
import { createContextScope as Ae } from "./index65.js";
|
|
6
|
-
import { Primitive as I } from "./
|
|
7
|
-
import { useCallbackRef as ve } from "./
|
|
6
|
+
import { Primitive as I } from "./index56.js";
|
|
7
|
+
import { useCallbackRef as ve } from "./index58.js";
|
|
8
8
|
import { useLayoutEffect as W } from "./index74.js";
|
|
9
9
|
import { useSize as Ce } from "./index175.js";
|
|
10
10
|
import { j as f } from "./index30.js";
|
package/dist/index71.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import n from "react-dom";
|
|
3
|
-
import { Primitive as f } from "./
|
|
3
|
+
import { Primitive as f } from "./index56.js";
|
|
4
4
|
import { useLayoutEffect as u } from "./index74.js";
|
|
5
5
|
import { j as c } from "./index30.js";
|
|
6
6
|
var l = "Portal", p = o.forwardRef((r, e) => {
|