@anoki/fse-ui 1.0.397 → 1.0.398
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/ui/DoctorSkeleton/DoctorSkeleton.css +1 -1
- package/dist/components/ui/DocumentsListSkeleton/DocumentsListSkeleton.css +1 -1
- package/dist/components/ui/HealthProfileSkeleton/HealthProfileSkeleton.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs161.js.map +1 -1
- package/dist/index.cjs162.js +2 -0
- package/dist/index.cjs162.js.map +1 -0
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs267.js +2 -0
- package/dist/index.cjs267.js.map +1 -0
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs268.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs269.js.map +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +2 -0
- package/dist/index.cjs276.js.map +1 -0
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs280.js.map +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs283.js.map +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs289.js.map +1 -1
- package/dist/index.cjs290.js +2 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/index.cjs291.js +2 -0
- package/dist/index.cjs291.js.map +1 -0
- package/dist/index.cjs292.js +2 -0
- package/dist/index.cjs292.js.map +1 -0
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs294.js.map +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs295.js.map +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs298.js.map +1 -1
- package/dist/{index.cjs313.js → index.cjs299.js} +2 -2
- package/dist/{index.cjs313.js.map → index.cjs299.js.map} +1 -1
- package/dist/{index.cjs314.js → index.cjs300.js} +1 -1
- package/dist/{index.cjs314.js.map → index.cjs300.js.map} +1 -1
- package/dist/{index.cjs315.js → index.cjs301.js} +2 -2
- package/dist/{index.cjs315.js.map → index.cjs301.js.map} +1 -1
- package/dist/index.cjs302.js +2 -0
- package/dist/{index.cjs316.js.map → index.cjs302.js.map} +1 -1
- package/dist/{index.cjs317.js → index.cjs303.js} +1 -1
- package/dist/{index.cjs317.js.map → index.cjs303.js.map} +1 -1
- package/dist/index.cjs304.js +2 -0
- package/dist/{index.cjs318.js.map → index.cjs304.js.map} +1 -1
- package/dist/index.cjs305.js +2 -0
- package/dist/index.cjs305.js.map +1 -0
- package/dist/index.cjs306.js +5 -0
- package/dist/index.cjs306.js.map +1 -0
- package/dist/index.cjs307.js +2 -0
- package/dist/index.cjs307.js.map +1 -0
- package/dist/index.cjs308.js +2 -0
- package/dist/index.cjs308.js.map +1 -0
- package/dist/index.cjs309.js +2 -0
- package/dist/index.cjs309.js.map +1 -0
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs310.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs320.js +38 -4
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es119.js +1 -1
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +1 -1
- package/dist/index.es161.js +2 -27
- package/dist/index.es161.js.map +1 -1
- package/dist/index.es162.js +30 -0
- package/dist/index.es162.js.map +1 -0
- package/dist/index.es171.js +1 -1
- package/dist/index.es177.js +7 -7
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es188.js +8 -8
- package/dist/index.es197.js +1 -1
- package/dist/index.es199.js +14 -14
- package/dist/index.es206.js +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es211.js +1 -1
- package/dist/index.es216.js +1 -1
- package/dist/index.es218.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es224.js +1 -1
- package/dist/index.es225.js +1 -1
- package/dist/index.es226.js +7 -7
- package/dist/index.es25.js +1 -1
- package/dist/index.es262.js +1 -1
- package/dist/index.es263.js +1 -1
- package/dist/index.es267.js +5 -0
- package/dist/index.es267.js.map +1 -0
- package/dist/index.es268.js +2 -7
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +5 -25
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es270.js +23 -64
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +65 -27
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +29 -32
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +31 -620
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +621 -10
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +11 -15
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +18 -0
- package/dist/index.es276.js.map +1 -0
- package/dist/index.es280.js +10 -68
- package/dist/index.es280.js.map +1 -1
- package/dist/index.es281.js +42 -2
- package/dist/index.es281.js.map +1 -1
- package/dist/index.es282.js +46 -2
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es283.js +7 -124
- package/dist/index.es283.js.map +1 -1
- package/dist/index.es284.js +116 -126
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +14 -13
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +134 -14
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +217 -8
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +14 -50
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es289.js +66 -39
- package/dist/index.es289.js.map +1 -1
- package/dist/index.es290.js +181 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/index.es291.js +53 -0
- package/dist/index.es291.js.map +1 -0
- package/dist/index.es292.js +12 -0
- package/dist/index.es292.js.map +1 -0
- package/dist/index.es293.js +4 -11
- package/dist/index.es293.js.map +1 -1
- package/dist/index.es294.js +5 -45
- package/dist/index.es294.js.map +1 -1
- package/dist/index.es295.js +24 -7
- package/dist/index.es295.js.map +1 -1
- package/dist/index.es296.js +11 -217
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +199 -172
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +22 -4
- package/dist/index.es298.js.map +1 -1
- package/dist/{index.es313.js → index.es299.js} +4 -4
- package/dist/{index.es313.js.map → index.es299.js.map} +1 -1
- package/dist/{index.es314.js → index.es300.js} +1 -1
- package/dist/{index.es314.js.map → index.es300.js.map} +1 -1
- package/dist/{index.es315.js → index.es301.js} +5 -5
- package/dist/{index.es315.js.map → index.es301.js.map} +1 -1
- package/dist/index.es302.js +8 -0
- package/dist/{index.es316.js.map → index.es302.js.map} +1 -1
- package/dist/{index.es317.js → index.es303.js} +1 -1
- package/dist/{index.es317.js.map → index.es303.js.map} +1 -1
- package/dist/index.es304.js +6 -0
- package/dist/{index.es318.js.map → index.es304.js.map} +1 -1
- package/dist/index.es305.js +27 -0
- package/dist/index.es305.js.map +1 -0
- package/dist/index.es306.js +113 -0
- package/dist/index.es306.js.map +1 -0
- package/dist/index.es307.js +19 -0
- package/dist/index.es307.js.map +1 -0
- package/dist/index.es308.js +526 -0
- package/dist/index.es308.js.map +1 -0
- package/dist/index.es309.js +130 -0
- package/dist/index.es309.js.map +1 -0
- package/dist/index.es310.js +128 -11
- package/dist/index.es310.js.map +1 -1
- package/dist/index.es319.js +63 -22
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es320.js +66 -107
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +8 -15
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +11 -520
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +61 -126
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +3 -128
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +19 -61
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es329.js +22 -61
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +13 -4
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +27 -22
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +4 -22
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs163.js +0 -2
- package/dist/index.cjs163.js.map +0 -1
- package/dist/index.cjs278.js +0 -2
- package/dist/index.cjs278.js.map +0 -1
- package/dist/index.cjs279.js +0 -2
- package/dist/index.cjs279.js.map +0 -1
- package/dist/index.cjs311.js +0 -2
- package/dist/index.cjs311.js.map +0 -1
- package/dist/index.cjs312.js +0 -2
- package/dist/index.cjs312.js.map +0 -1
- package/dist/index.cjs316.js +0 -2
- package/dist/index.cjs318.js +0 -2
- package/dist/index.cjs326.js +0 -39
- package/dist/index.cjs326.js.map +0 -1
- package/dist/index.cjs327.js +0 -2
- package/dist/index.cjs327.js.map +0 -1
- package/dist/index.cjs328.js +0 -2
- package/dist/index.cjs328.js.map +0 -1
- package/dist/index.cjs333.js +0 -2
- package/dist/index.cjs333.js.map +0 -1
- package/dist/index.cjs334.js +0 -2
- package/dist/index.cjs334.js.map +0 -1
- package/dist/index.cjs335.js +0 -2
- package/dist/index.cjs335.js.map +0 -1
- package/dist/index.es163.js +0 -5
- package/dist/index.es163.js.map +0 -1
- package/dist/index.es278.js +0 -9
- package/dist/index.es278.js.map +0 -1
- package/dist/index.es279.js +0 -28
- package/dist/index.es279.js.map +0 -1
- package/dist/index.es311.js +0 -208
- package/dist/index.es311.js.map +0 -1
- package/dist/index.es312.js +0 -25
- package/dist/index.es312.js.map +0 -1
- package/dist/index.es316.js +0 -8
- package/dist/index.es318.js +0 -6
- package/dist/index.es326.js +0 -72
- package/dist/index.es326.js.map +0 -1
- package/dist/index.es327.js +0 -12
- package/dist/index.es327.js.map +0 -1
- package/dist/index.es328.js +0 -17
- package/dist/index.es328.js.map +0 -1
- package/dist/index.es333.js +0 -16
- package/dist/index.es333.js.map +0 -1
- package/dist/index.es334.js +0 -31
- package/dist/index.es334.js.map +0 -1
- package/dist/index.es335.js +0 -8
- package/dist/index.es335.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es325.js
CHANGED
@@ -1,68 +1,26 @@
|
|
1
|
-
import {
|
2
|
-
function
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
useMedium: function(u) {
|
14
|
-
var n = t(u, o);
|
15
|
-
return e.push(n), function() {
|
16
|
-
e = e.filter(function(i) {
|
17
|
-
return i !== n;
|
18
|
-
});
|
19
|
-
};
|
20
|
-
},
|
21
|
-
assignSyncMedium: function(u) {
|
22
|
-
for (o = !0; e.length; ) {
|
23
|
-
var n = e;
|
24
|
-
e = [], n.forEach(u);
|
25
|
-
}
|
26
|
-
e = {
|
27
|
-
push: function(i) {
|
28
|
-
return u(i);
|
1
|
+
import { useState as u } from "react";
|
2
|
+
function n(c, r) {
|
3
|
+
var e = u(function() {
|
4
|
+
return {
|
5
|
+
// value
|
6
|
+
value: c,
|
7
|
+
// last callback
|
8
|
+
callback: r,
|
9
|
+
// "memoized" public interface
|
10
|
+
facade: {
|
11
|
+
get current() {
|
12
|
+
return e.value;
|
29
13
|
},
|
30
|
-
|
31
|
-
|
14
|
+
set current(a) {
|
15
|
+
var t = e.value;
|
16
|
+
t !== a && (e.value = a, e.callback(a, t));
|
32
17
|
}
|
33
|
-
};
|
34
|
-
},
|
35
|
-
assignMedium: function(u) {
|
36
|
-
o = !0;
|
37
|
-
var n = [];
|
38
|
-
if (e.length) {
|
39
|
-
var i = e;
|
40
|
-
e = [], i.forEach(u), n = e;
|
41
18
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}, a = function() {
|
46
|
-
return Promise.resolve().then(s);
|
47
|
-
};
|
48
|
-
a(), e = {
|
49
|
-
push: function(f) {
|
50
|
-
n.push(f), a();
|
51
|
-
},
|
52
|
-
filter: function(f) {
|
53
|
-
return n = n.filter(f), e;
|
54
|
-
}
|
55
|
-
};
|
56
|
-
}
|
57
|
-
};
|
58
|
-
return c;
|
59
|
-
}
|
60
|
-
function v(r) {
|
61
|
-
r === void 0 && (r = {});
|
62
|
-
var t = h(null);
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
19
|
+
};
|
20
|
+
})[0];
|
21
|
+
return e.callback = r, e.facade;
|
64
22
|
}
|
65
23
|
export {
|
66
|
-
|
24
|
+
n as useCallbackRef
|
67
25
|
};
|
68
26
|
//# sourceMappingURL=index.es325.js.map
|
package/dist/index.es325.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es325.js","sources":["../node_modules/use-
|
1
|
+
{"version":3,"file":"index.es325.js","sources":["../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACd;AAAA,QACD,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAE/B;AAAA,MACJ;AAAA,IACT;AAAA,EAAO,CAAE,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
|
package/dist/index.es329.js
CHANGED
@@ -1,65 +1,26 @@
|
|
1
|
-
var
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
return (
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
if (v) {
|
22
|
-
var n = b(e, t), a = n[1], l = n[2];
|
23
|
-
if (a > l)
|
24
|
-
return !0;
|
25
|
-
}
|
26
|
-
t = t.parentNode;
|
27
|
-
} while (t && t !== o.body);
|
28
|
-
return !1;
|
29
|
-
}, B = function(e) {
|
30
|
-
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
31
|
-
return [
|
32
|
-
r,
|
33
|
-
o,
|
34
|
-
t
|
35
|
-
];
|
36
|
-
}, V = function(e) {
|
37
|
-
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
38
|
-
return [
|
39
|
-
r,
|
40
|
-
o,
|
41
|
-
t
|
42
|
-
];
|
43
|
-
}, g = function(e, r) {
|
44
|
-
return e === "v" ? y(r) : H(r);
|
45
|
-
}, b = function(e, r) {
|
46
|
-
return e === "v" ? B(r) : V(r);
|
47
|
-
}, D = function(e, r) {
|
48
|
-
return e === "h" && r === "rtl" ? -1 : 1;
|
49
|
-
}, W = function(e, r, o, t, v) {
|
50
|
-
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
51
|
-
do {
|
52
|
-
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
53
|
-
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
54
|
-
} while (
|
55
|
-
// portaled content
|
56
|
-
!f && l !== document.body || // self content
|
57
|
-
f && (r.contains(l) || r === l)
|
58
|
-
);
|
59
|
-
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
1
|
+
var a = {
|
2
|
+
left: 0,
|
3
|
+
top: 0,
|
4
|
+
right: 0,
|
5
|
+
gap: 0
|
6
|
+
}, e = function(t) {
|
7
|
+
return parseInt(t || "", 10) || 0;
|
8
|
+
}, o = function(t) {
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
10
|
+
return [e(i), e(r), e(d)];
|
11
|
+
}, f = function(t) {
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
13
|
+
return a;
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
15
|
+
return {
|
16
|
+
left: n[0],
|
17
|
+
top: n[1],
|
18
|
+
right: n[2],
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
20
|
+
};
|
60
21
|
};
|
61
22
|
export {
|
62
|
-
|
63
|
-
|
23
|
+
f as getGapWidth,
|
24
|
+
a as zeroGap
|
64
25
|
};
|
65
26
|
//# sourceMappingURL=index.es329.js.map
|
package/dist/index.es329.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es329.js","sources":["../node_modules/react-remove-scroll/dist/es2015/
|
1
|
+
{"version":3,"file":"index.es329.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAI,GAC3DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EACzE;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es330.js
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import * as o from "react";
|
2
|
+
import { stylesheetSingleton as r } from "./index.es331.js";
|
3
|
+
var i = function() {
|
4
|
+
var t = r();
|
5
|
+
return function(e, n) {
|
6
|
+
o.useEffect(function() {
|
7
|
+
return t.add(e), function() {
|
8
|
+
t.remove();
|
9
|
+
};
|
10
|
+
}, [e && n]);
|
11
|
+
};
|
12
|
+
};
|
4
13
|
export {
|
5
|
-
i as
|
14
|
+
i as styleHookSingleton
|
6
15
|
};
|
7
16
|
//# sourceMappingURL=index.es330.js.map
|
package/dist/index.es330.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es330.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es330.js","sources":["../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es331.js
CHANGED
@@ -1,26 +1,31 @@
|
|
1
|
-
import {
|
2
|
-
function
|
3
|
-
|
4
|
-
return
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
// "memoized" public interface
|
10
|
-
facade: {
|
11
|
-
get current() {
|
12
|
-
return e.value;
|
13
|
-
},
|
14
|
-
set current(a) {
|
15
|
-
var t = e.value;
|
16
|
-
t !== a && (e.value = a, e.callback(a, t));
|
17
|
-
}
|
18
|
-
}
|
19
|
-
};
|
20
|
-
})[0];
|
21
|
-
return e.callback = r, e.facade;
|
1
|
+
import { getNonce as o } from "./index.es332.js";
|
2
|
+
function r() {
|
3
|
+
if (!document)
|
4
|
+
return null;
|
5
|
+
var t = document.createElement("style");
|
6
|
+
t.type = "text/css";
|
7
|
+
var e = o();
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
22
9
|
}
|
10
|
+
function l(t, e) {
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
12
|
+
}
|
13
|
+
function a(t) {
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
15
|
+
e.appendChild(t);
|
16
|
+
}
|
17
|
+
var c = function() {
|
18
|
+
var t = 0, e = null;
|
19
|
+
return {
|
20
|
+
add: function(n) {
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
22
|
+
},
|
23
|
+
remove: function() {
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
25
|
+
}
|
26
|
+
};
|
27
|
+
};
|
23
28
|
export {
|
24
|
-
|
29
|
+
c as stylesheetSingleton
|
25
30
|
};
|
26
31
|
//# sourceMappingURL=index.es331.js.map
|
package/dist/index.es331.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es331.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es331.js","sources":["../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAU;AACtB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACH;AAAA,IACD,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAEpB;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es332.js
CHANGED
@@ -1,26 +1,8 @@
|
|
1
|
-
var
|
2
|
-
|
3
|
-
|
4
|
-
right: 0,
|
5
|
-
gap: 0
|
6
|
-
}, e = function(t) {
|
7
|
-
return parseInt(t || "", 10) || 0;
|
8
|
-
}, o = function(t) {
|
9
|
-
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
10
|
-
return [e(i), e(r), e(d)];
|
11
|
-
}, f = function(t) {
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
13
|
-
return a;
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
15
|
-
return {
|
16
|
-
left: n[0],
|
17
|
-
top: n[1],
|
18
|
-
right: n[2],
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
20
|
-
};
|
1
|
+
var e = function() {
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
3
|
+
return __webpack_nonce__;
|
21
4
|
};
|
22
5
|
export {
|
23
|
-
|
24
|
-
a as zeroGap
|
6
|
+
e as getNonce
|
25
7
|
};
|
26
8
|
//# sourceMappingURL=index.es332.js.map
|
package/dist/index.es332.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es332.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es332.js","sources":["../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
package/dist/index.es56.js
CHANGED
package/dist/index.es6.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as p } from "./index.es152.js";
|
2
2
|
import { clsx as l } from "./index.es154.js";
|
3
3
|
import { useMemo as u } from "react";
|
4
|
-
import { createSpacingClasses as x } from "./index.
|
4
|
+
import { createSpacingClasses as x } from "./index.es162.js";
|
5
5
|
import './components/ui/Container/Container.css';/* empty css */
|
6
6
|
const v = ({
|
7
7
|
as: o,
|
package/dist/index.es7.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as a } from "./index.es152.js";
|
2
2
|
import { useMemo as i } from "react";
|
3
3
|
import { clsx as m } from "./index.es154.js";
|
4
|
-
import { createSpacingClasses as c } from "./index.
|
4
|
+
import { createSpacingClasses as c } from "./index.es162.js";
|
5
5
|
const g = ({
|
6
6
|
as: o,
|
7
7
|
className: r,
|
package/dist/index.es8.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as g } from "./index.es152.js";
|
2
2
|
import { useMemo as s } from "react";
|
3
3
|
import { clsx as x } from "./index.es154.js";
|
4
|
-
import { createSpacingClasses as f } from "./index.
|
4
|
+
import { createSpacingClasses as f } from "./index.es162.js";
|
5
5
|
const v = ({
|
6
6
|
as: e,
|
7
7
|
className: i,
|
package/dist/index.es89.js
CHANGED
package/dist/index.es9.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { j as x } from "./index.es152.js";
|
2
2
|
import { useMemo as y } from "react";
|
3
3
|
import { clsx as g } from "./index.es154.js";
|
4
|
-
import { createSpacingClasses as j } from "./index.
|
5
|
-
import { createColorClasses as u } from "./index.
|
4
|
+
import { createSpacingClasses as j } from "./index.es162.js";
|
5
|
+
import { createColorClasses as u } from "./index.es161.js";
|
6
6
|
import { createTypographyClasses as h } from "./index.es164.js";
|
7
7
|
const E = ({
|
8
8
|
as: o,
|
package/dist/index.es90.js
CHANGED
package/dist/index.es91.js
CHANGED
package/dist/index.es92.js
CHANGED
package/dist/index.es93.js
CHANGED
package/dist/index.es94.js
CHANGED
package/dist/index.es95.js
CHANGED
package/dist/index.es96.js
CHANGED
package/dist/index.es97.js
CHANGED
package/dist/index.es98.js
CHANGED
package/dist/index.es99.js
CHANGED
package/package.json
CHANGED
package/dist/index.cjs163.js
DELETED
package/dist/index.cjs163.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs163.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\n | \"primary\"\n | \"white\"\n | \"status-success\"\n | \"warning\"\n | \"error\"\n | \"muted\"\n | \"emphasis\"\n | \"slate-20\"\n | \"slate-14\"\n | \"slate-28\"\n | \"border-divider\"\n | \"transparent\"\n | \"blue-30\"\n | \"disabled\"\n | \"lightblue-a01\"\n | \"lightblue-a02\"\n | \"lightblue-a03\"\n | \"secondary\";\n\nexport type ColorProps = {\n bg?: ColorKeys;\n text?: ColorKeys;\n color?: ColorKeys;\n border?: ColorKeys;\n};\n\nexport type ColorPropsKeys = keyof ColorProps;\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\n\nexport const createColorClasses = <TProps extends ColorProps>(\n props: TProps,\n) => {\n return colorPropsKeys\n .map((key) => {\n if (!props[key]) return \"\";\n\n if (key === \"color\") return `text-${props[key]}`;\n return `${key}-${props[key]}`;\n })\n .filter(Boolean);\n};\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"gFA4BA,MAAMA,EAAmC,CAAC,KAAM,OAAQ,QAAS,QAAQ,EAE5DC,EACXC,GAEOF,EACJ,IAAKG,GACCD,EAAMC,CAAG,EAEVA,IAAQ,QAAgB,QAAQD,EAAMC,CAAG,CAAC,GACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAHH,EAIzB,EACA,OAAO,OAAO"}
|
package/dist/index.cjs278.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=c(o);function s(e){const t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
|
2
|
-
//# sourceMappingURL=index.cjs278.js.map
|
package/dist/index.cjs278.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs278.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/usePrevious.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":"mYAEA,SAASA,EAAYC,EAAO,CAC1B,MAAMC,EAAMC,EAAM,OAAO,CAAE,MAAAF,EAAO,SAAUA,EAAO,EACnD,OAAOE,EAAM,QAAQ,KACfD,EAAI,QAAQ,QAAUD,IACxBC,EAAI,QAAQ,SAAWA,EAAI,QAAQ,MACnCA,EAAI,QAAQ,MAAQD,GAEfC,EAAI,QAAQ,UAClB,CAACD,CAAK,CAAC,CACZ","x_google_ignoreList":[0]}
|
package/dist/index.cjs279.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs298.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
|
2
|
-
//# sourceMappingURL=index.cjs279.js.map
|
package/dist/index.cjs279.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs279.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/useSize.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":"kaAGA,SAASA,EAAQC,EAAS,CACxB,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,MAAM,EAC7CC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAIJ,EAAS,CACXE,EAAQ,CAAE,MAAOF,EAAQ,YAAa,OAAQA,EAAQ,aAAc,EACpE,MAAMK,EAAiB,IAAI,eAAgBC,GAAY,CAIrD,GAHI,CAAC,MAAM,QAAQA,CAAO,GAGtB,CAACA,EAAQ,OACX,OAEF,MAAMC,EAAQD,EAAQ,CAAC,EACvB,IAAIE,EACAC,EACJ,GAAI,kBAAmBF,EAAO,CAC5B,MAAMG,EAAkBH,EAAM,cACxBI,EAAa,MAAM,QAAQD,CAAe,EAAIA,EAAgB,CAAC,EAAIA,EACzEF,EAAQG,EAAW,WACnBF,EAASE,EAAW,SAC9B,MACUH,EAAQR,EAAQ,YAChBS,EAAST,EAAQ,aAEnBE,EAAQ,CAAE,MAAAM,EAAO,OAAAC,EAAQ,CACjC,CAAO,EACD,OAAAJ,EAAe,QAAQL,EAAS,CAAE,IAAK,YAAY,CAAE,EAC9C,IAAMK,EAAe,UAAUL,CAAO,CACnD,MACME,EAAQ,MAAM,CAEpB,EAAK,CAACF,CAAO,CAAC,EACLC,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs311.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs313.js"),j=require("react"),H=require("react-dom");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(j),I=U(H);var R=typeof document<"u"?j.useLayoutEffect:j.useEffect;function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!P(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const g=s[r];if(!(g==="_owner"&&e.$$typeof)&&!P(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function $(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L(e,t){const n=$(e);return Math.round(t*n)/n}function D(e){const t=o.useRef(e);return R(()=>{t.current=e}),t}function J(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:g,floating:A}={},transform:k=!0,whileElementsMounted:E,open:S}=e,[u,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[M,T]=o.useState(r);P(M,r)||T(r);const[B,N]=o.useState(null),[V,W]=o.useState(null),F=o.useCallback(f=>{f!==d.current&&(d.current=f,N(f))},[]),q=o.useCallback(f=>{f!==m.current&&(m.current=f,W(f))},[]),c=g||B,l=A||V,d=o.useRef(null),m=o.useRef(null),w=o.useRef(u),G=E!=null,O=D(E),_=D(s),v=D(S),y=o.useCallback(()=>{if(!d.current||!m.current)return;const f={placement:t,strategy:n,middleware:M};_.current&&(f.platform=_.current),i.computePosition(d.current,m.current,f).then(h=>{const p={...h,isPositioned:v.current!==!1};x.current&&!P(w.current,p)&&(w.current=p,I.flushSync(()=>{b(p)}))})},[M,t,n,_,v]);R(()=>{S===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,b(f=>({...f,isPositioned:!1})))},[S]);const x=o.useRef(!1);R(()=>(x.current=!0,()=>{x.current=!1}),[]),R(()=>{if(c&&(d.current=c),l&&(m.current=l),c&&l){if(O.current)return O.current(c,l,y);y()}},[c,l,y,O,G]);const z=o.useMemo(()=>({reference:d,floating:m,setReference:F,setFloating:q}),[F,q]),a=o.useMemo(()=>({reference:c,floating:l}),[c,l]),C=o.useMemo(()=>{const f={position:n,left:0,top:0};if(!a.floating)return f;const h=L(a.floating,u.x),p=L(a.floating,u.y);return k?{...f,transform:"translate("+h+"px, "+p+"px)",...$(a.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:h,top:p}},[n,k,a.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:y,refs:z,elements:a,floatingStyles:C}),[u,y,z,a,C])}const K=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i.arrow({element:r.current,padding:s}).fn(n):{}:r?i.arrow({element:r,padding:s}).fn(n):{}}}},Q=(e,t)=>({...i.offset(e),options:[e,t]}),X=(e,t)=>({...i.shift(e),options:[e,t]}),Y=(e,t)=>({...i.limitShift(e),options:[e,t]}),Z=(e,t)=>({...i.flip(e),options:[e,t]}),ee=(e,t)=>({...i.size(e),options:[e,t]}),te=(e,t)=>({...i.hide(e),options:[e,t]}),ne=(e,t)=>({...K(e),options:[e,t]});exports.autoUpdate=i.autoUpdate;exports.computePosition=i.computePosition;exports.platform=i.platform;exports.arrow=ne;exports.flip=Z;exports.hide=te;exports.limitShift=Y;exports.offset=Q;exports.shift=X;exports.size=ee;exports.useFloating=J;
|
2
|
-
//# sourceMappingURL=index.cjs311.js.map
|