@rpcbase/ui 0.188.0 → 0.189.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/helpers/useScrollPagination.d.ts.map +1 -1
- package/dist/index100.js +185 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +107 -5
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +262 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +9 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +42 -6
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -24
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +46 -6
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +205 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +22 -7
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +24 -5
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +399 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +46 -5
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +52 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +3 -7
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -5
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +15 -4
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -4
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -6
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +16 -145
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -39
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -4
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -7
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +5 -13
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -13
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -7
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +6 -31
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +24 -10
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -10
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -8
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -13
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +5 -101
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +5 -20
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -53
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -72
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +8 -9
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +5 -20
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -16
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -23
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -6
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +145 -5
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +39 -23
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +5 -35
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +8 -16
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +13 -6
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +13 -4
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +7 -4
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +31 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +10 -4
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +10 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +8 -6
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +14 -24
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +101 -7
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +20 -7
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +53 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +72 -3
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +9 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +20 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +16 -3
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +23 -4
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +6 -3
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +5 -3
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +23 -3
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +35 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +16 -69
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +7 -2
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +4 -363
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -261
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -60
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -46
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -169
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -109
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -25
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -8
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -5
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +3 -4
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +3 -466
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -185
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +3 -107
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -262
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +3 -9
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +3 -42
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -4
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +65 -22
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +179 -27
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +47 -5
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +12 -66
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +150 -176
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +27 -43
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +9 -58
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +47 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +10 -65
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +43 -18
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +93 -14
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +85 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +104 -4
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +52 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +11 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +37 -7
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +8 -17
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +116 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +17 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +15 -13
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +36 -14
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +20 -14
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +9 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +8 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +19 -7
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +28 -6
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +16 -9
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +24 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +29 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +5 -10
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +16 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +5 -5
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -4
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +58 -11
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +66 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +6 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -11
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +7 -11
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +17 -10
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +5 -7
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +13 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -6
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +14 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +14 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -55
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +6 -16
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -7
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +6 -10
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +9 -10
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -21
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +5 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +9 -9
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -9
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -4
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -5
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +11 -16
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +10 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +10 -18
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -15
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +11 -12
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +10 -29
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -12
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +6 -25
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -5
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +6 -13
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +7 -154
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +6 -30
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +55 -9
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +8 -47
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +18 -10
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +14 -42
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +7 -95
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +9 -85
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -104
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +21 -52
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +10 -11
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -37
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +8 -7
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +4 -116
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -17
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +15 -14
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +9 -3
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +16 -34
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +15 -20
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +12 -9
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +29 -8
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +11 -18
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +23 -26
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -16
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +21 -5
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -3
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +3 -24
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +22 -111
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +111 -14
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +14 -523
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +511 -114
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +111 -117
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +133 -4
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +5 -19
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +19 -13
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +12 -20
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +1 -1
- package/dist/index287.js +1 -1
- package/dist/index298.js +2 -2
- package/dist/index301.js +1 -1
- package/dist/index302.js +2 -2
- package/dist/index304.js +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index35.js +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index44.js +20 -20
- package/dist/index48.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.js +7 -7
- package/dist/index55.js +2 -4
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +2 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +5 -47
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +7 -26
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +5 -50
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +156 -128
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +53 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +2 -15
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +2 -134
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +3 -10
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +6 -216
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +48 -13
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +26 -33
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +47 -43
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +7 -7
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +13 -48
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +134 -4
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +10 -5
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +216 -27
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +13 -50
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +34 -9
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +47 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +8 -2
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +49 -11
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +4 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +6 -2
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +28 -6
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +50 -8
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +9 -6
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +11 -53
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +599 -40
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +5 -205
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +69 -22
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -25
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +342 -378
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +259 -44
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +52 -597
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +47 -52
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +169 -4
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +109 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +24 -15
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +8 -6
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -7
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -16
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +466 -4
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":";;;;;AAQA,SAASA,EAAiBC,GAAM;AAC9B,QAAMC,IAAgBD,IAAO,sBACvB,CAACE,GAAyBC,CAAqB,IAAIC,EAAmBH,CAAa,GACnF,CAACI,GAAwBC,CAAoB,IAAIJ;AAAA,IACrDD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAG,EAAE;AAAA,EAC1E,GACQM,IAAqB,CAACC,MAAU;AACpC,UAAM,EAAE,OAAAC,GAAO,UAAAC,EAAQ,IAAKF,GACtBG,IAAMC,EAAM,OAAO,IAAI,GACvBC,IAAUD,EAAM,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACxD,WAAuBE,gBAAAA,EAAAA,IAAIT,GAAwB,EAAE,OAAAI,GAAO,SAAAI,GAAS,eAAeF,GAAK,UAAAD,GAAU;AAAA,EACrG;AACA,EAAAH,EAAmB,cAAcN;AACjC,QAAMc,IAAuBf,IAAO,kBAC9BgB,IAAqBC,EAAWF,CAAoB,GACpDG,IAAiBN,EAAM;AAAA,IAC3B,CAACJ,GAAOW,MAAiB;AACvB,YAAM,EAAE,OAAAV,GAAO,UAAAC,EAAQ,IAAKF,GACtBY,IAAUd,EAAqBS,GAAsBN,CAAK,GAC1DY,IAAeC,EAAgBH,GAAcC,EAAQ,aAAa;AACxE,aAAuBN,gBAAAA,EAAAA,IAAIE,GAAoB,EAAE,KAAKK,GAAc,UAAAX,EAAQ,CAAE;AAAA,IAChF;AAAA,EACJ;AACE,EAAAQ,EAAe,cAAcH;AAC7B,QAAMQ,IAAiBvB,IAAO,sBACxBwB,IAAiB,8BACjBC,IAAyBR,EAAWM,CAAc,GAClDG,IAAqBd,EAAM;AAAA,IAC/B,CAACJ,GAAOW,MAAiB;AACvB,YAAM,EAAE,OAAAV,GAAO,UAAAC,GAAU,GAAGiB,EAAQ,IAAKnB,GACnCG,IAAMC,EAAM,OAAO,IAAI,GACvBS,IAAeC,EAAgBH,GAAcR,CAAG,GAChDS,IAAUd,EAAqBiB,GAAgBd,CAAK;AAC1DG,aAAAA,EAAM,UAAU,OACdQ,EAAQ,QAAQ,IAAIT,GAAK,EAAE,KAAAA,GAAK,GAAGgB,GAAU,GACtC,MAAA;AAAM,QAAKP,EAAQ,QAAQ,OAAOT,CAAG;AAAA,QAC7C,GACsBG,gBAAAA,MAAIW,GAAwB,EAAO,CAACD,CAAc,GAAG,IAAM,KAAKH,GAAc,UAAAX,GAAU;AAAA,IACjH;AAAA,EACJ;AACE,EAAAgB,EAAmB,cAAcH;AACjC,WAASK,EAAcnB,GAAO;AAC5B,UAAMW,IAAUd,EAAqBN,IAAO,sBAAsBS,CAAK;AAWvE,WAViBG,EAAM,YAAY,MAAM;AACvC,YAAMiB,IAAiBT,EAAQ,cAAc;AAC7C,UAAI,CAACS,EAAgB,QAAO,CAAA;AAC5B,YAAMC,IAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIL,CAAc,GAAG,CAAC;AAKtF,aAJc,MAAM,KAAKJ,EAAQ,QAAQ,QAAQ,EACtB;AAAA,QACzB,CAACW,GAAGC,MAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MAC1F;AAAA,IAEI,GAAG,CAACZ,EAAQ,eAAeA,EAAQ,OAAO,CAAC;AAAA,EAE7C;AACA,SAAO;AAAA,IACL,EAAE,UAAUb,GAAoB,MAAMW,GAAgB,UAAUQ,EAAkB;AAAA,IAClFE;AAAA,IACAzB;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index57.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","Set","FILTERED_COUNTRIES","getCountries","filter","code","has","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAIC,IAAIF,CAAkB,GAEzCG,IAAqBC,IAAeC,OAAQC,OAAS,CAACL,EAAaM,IAAID,CAAI,CAAC;AAE3E,SAASE,IAAgC;AAC9C,SAAOL;AACT;"}
|
package/dist/index58.js
CHANGED
|
@@ -1,30 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function s(...n) {
|
|
24
|
-
return f.useCallback(i(...n), n);
|
|
1
|
+
import e from "./index87.js";
|
|
2
|
+
import o from "./index88.js";
|
|
3
|
+
function t(r) {
|
|
4
|
+
return o.call(this, r, e);
|
|
25
5
|
}
|
|
6
|
+
t.prototype = Object.create(o.prototype, {});
|
|
7
|
+
t.prototype.constructor = t;
|
|
26
8
|
export {
|
|
27
|
-
|
|
28
|
-
s as useComposedRefs
|
|
9
|
+
t as AsYouType
|
|
29
10
|
};
|
|
30
11
|
//# sourceMappingURL=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index58.js","sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"names":["AsYouType","country","_AsYouType","metadata"],"mappings":";;AAMO,SAASA,EAAUC,GAAS;AAClC,SAAOC,EAAW,KAAK,MAAMD,GAASE,CAAQ;AAC/C;AAEAH,EAAU,YAAY,OAAO,OAAOE,EAAW,WAAW,CAAA,CAAE;AAC5DF,EAAU,UAAU,cAAcA;","x_google_ignoreList":[0]}
|
package/dist/index59.js
CHANGED
|
@@ -1,54 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
function m(s, t) {
|
|
6
|
-
const o = u.createContext(t), r = n.length;
|
|
7
|
-
n = [...n, t];
|
|
8
|
-
const a = (i) => {
|
|
9
|
-
const { scope: f, children: C, ...x } = i, d = f?.[e]?.[r] || o, v = u.useMemo(() => x, Object.values(x));
|
|
10
|
-
return /* @__PURE__ */ _.jsx(d.Provider, { value: v, children: C });
|
|
11
|
-
};
|
|
12
|
-
a.displayName = s + "Provider";
|
|
13
|
-
function S(i, f) {
|
|
14
|
-
const C = f?.[e]?.[r] || o, x = u.useContext(C);
|
|
15
|
-
if (x) return x;
|
|
16
|
-
if (t !== void 0) return t;
|
|
17
|
-
throw new Error(`\`${i}\` must be used within \`${s}\``);
|
|
18
|
-
}
|
|
19
|
-
return [a, S];
|
|
20
|
-
}
|
|
21
|
-
const c = () => {
|
|
22
|
-
const s = n.map((t) => u.createContext(t));
|
|
23
|
-
return function(o) {
|
|
24
|
-
const r = o?.[e] || s;
|
|
25
|
-
return u.useMemo(
|
|
26
|
-
() => ({ [`__scope${e}`]: { ...o, [e]: r } }),
|
|
27
|
-
[o, r]
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
return c.scopeName = e, [m, h(c, ...p)];
|
|
32
|
-
}
|
|
33
|
-
function h(...e) {
|
|
34
|
-
const p = e[0];
|
|
35
|
-
if (e.length === 1) return p;
|
|
36
|
-
const n = () => {
|
|
37
|
-
const m = e.map((c) => ({
|
|
38
|
-
useScope: c(),
|
|
39
|
-
scopeName: c.scopeName
|
|
40
|
-
}));
|
|
41
|
-
return function(s) {
|
|
42
|
-
const t = m.reduce((o, { useScope: r, scopeName: a }) => {
|
|
43
|
-
const i = r(s)[`__scope${a}`];
|
|
44
|
-
return { ...o, ...i };
|
|
45
|
-
}, {});
|
|
46
|
-
return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
return n.scopeName = p.scopeName, n;
|
|
1
|
+
import t from "./index85.js";
|
|
2
|
+
import e from "./index86.js";
|
|
3
|
+
function a() {
|
|
4
|
+
return t(e, arguments);
|
|
50
5
|
}
|
|
51
6
|
export {
|
|
52
|
-
|
|
7
|
+
a as validatePhoneNumberLength
|
|
53
8
|
};
|
|
54
9
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index59.js","sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"names":["validatePhoneNumberLength","withMetadataArgument","_validatePhoneNumberLength"],"mappings":";;AAGO,SAASA,IAA4B;AAC3C,SAAOC,EAAqBC,GAA4B,SAAS;AAClE;","x_google_ignoreList":[0]}
|
package/dist/index6.js
CHANGED
|
@@ -1,193 +1,221 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useState as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return
|
|
1
|
+
import { c as Pe } from "./index28.js";
|
|
2
|
+
import { useState as ne, useRef as v, useEffect as g } from "react";
|
|
3
|
+
const me = () => typeof window > "u" ? !1 : "IntersectionObserver" in window, we = (x, e, t) => {
|
|
4
|
+
const R = x.getBoundingClientRect(), p = e.getBoundingClientRect();
|
|
5
|
+
return R.bottom >= p.top - t && R.top <= p.bottom;
|
|
6
6
|
}, Re = (x, e, t) => {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const R = x.getBoundingClientRect(), p = e.getBoundingClientRect();
|
|
8
|
+
return R.top <= p.bottom + t && R.bottom >= p.top;
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
const e =
|
|
10
|
+
function Ee(x) {
|
|
11
|
+
const e = Pe.c(96), {
|
|
12
12
|
containerRef: t,
|
|
13
|
-
enabled:
|
|
13
|
+
enabled: R,
|
|
14
14
|
hasPreviousPage: p,
|
|
15
|
-
hasNextPage:
|
|
16
|
-
onStartReached:
|
|
17
|
-
onEndReached:
|
|
18
|
-
startReachedOffsetPx:
|
|
19
|
-
endReachedOffsetPx:
|
|
20
|
-
maintainScrollOnStartFetch:
|
|
21
|
-
} = x, r =
|
|
22
|
-
let
|
|
23
|
-
e[0] !== P ? (
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
let
|
|
27
|
-
e[3] !==
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
let
|
|
31
|
-
e[6] !==
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
let
|
|
35
|
-
e[9] !==
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
let
|
|
39
|
-
e[12] !==
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
let
|
|
43
|
-
e[15] !==
|
|
44
|
-
|
|
45
|
-
},
|
|
15
|
+
hasNextPage: ce,
|
|
16
|
+
onStartReached: _,
|
|
17
|
+
onEndReached: E,
|
|
18
|
+
startReachedOffsetPx: ue,
|
|
19
|
+
endReachedOffsetPx: le,
|
|
20
|
+
maintainScrollOnStartFetch: fe
|
|
21
|
+
} = x, r = R === void 0 ? !0 : R, a = p === void 0 ? !1 : p, i = ce === void 0 ? !1 : ce, h = ue === void 0 ? 160 : ue, c = le === void 0 ? 160 : le, m = fe === void 0 ? !0 : fe, [f, pe] = ne(null), [s, xe] = ne(null), [P, ae] = ne(!1), [w, de] = ne(!1), O = v(!1), H = v(!1), y = v(!0), S = v(!0), he = v(a), se = v(i), ge = v(a), ve = v(i), ie = v(_), oe = v(E);
|
|
22
|
+
let I, N;
|
|
23
|
+
e[0] !== P ? (I = () => {
|
|
24
|
+
O.current = P;
|
|
25
|
+
}, N = [P], e[0] = P, e[1] = I, e[2] = N) : (I = e[1], N = e[2]), g(I, N);
|
|
26
|
+
let M, A;
|
|
27
|
+
e[3] !== w ? (A = () => {
|
|
28
|
+
H.current = w;
|
|
29
|
+
}, M = [w], e[3] = w, e[4] = M, e[5] = A) : (M = e[4], A = e[5]), g(A, M);
|
|
30
|
+
let q, C;
|
|
31
|
+
e[6] !== a ? (q = () => {
|
|
32
|
+
he.current = a;
|
|
33
|
+
}, C = [a], e[6] = a, e[7] = q, e[8] = C) : (q = e[7], C = e[8]), g(q, C);
|
|
34
|
+
let T, B;
|
|
35
|
+
e[9] !== i ? (T = () => {
|
|
36
|
+
se.current = i;
|
|
37
|
+
}, B = [i], e[9] = i, e[10] = T, e[11] = B) : (T = e[10], B = e[11]), g(T, B);
|
|
38
|
+
let L, z;
|
|
39
|
+
e[12] !== _ ? (L = () => {
|
|
40
|
+
ie.current = _;
|
|
41
|
+
}, z = [_], e[12] = _, e[13] = L, e[14] = z) : (L = e[13], z = e[14]), g(L, z);
|
|
42
|
+
let W, $;
|
|
43
|
+
e[15] !== E ? (W = () => {
|
|
44
|
+
oe.current = E;
|
|
45
|
+
}, $ = [E], e[15] = E, e[16] = W, e[17] = $) : (W = e[16], $ = e[17]), g(W, $);
|
|
46
46
|
let G;
|
|
47
47
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = () => {
|
|
48
|
-
|
|
48
|
+
y.current = !0, S.current = !0;
|
|
49
49
|
}, e[18] = G) : G = e[18];
|
|
50
|
-
let j;
|
|
51
|
-
e[19] !== r ? (j = [r], e[19] = r, e[20] = j) : j = e[20], h(G, j);
|
|
52
50
|
let k;
|
|
53
|
-
e[
|
|
54
|
-
|
|
51
|
+
e[19] !== r ? (k = [r], e[19] = r, e[20] = k) : k = e[20], g(G, k);
|
|
52
|
+
let D;
|
|
53
|
+
e[21] !== m ? (D = (n) => {
|
|
54
|
+
if (!he.current || !ie.current || !y.current || O.current || H.current)
|
|
55
55
|
return;
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
Promise.resolve(
|
|
56
|
+
y.current = !1, O.current = !0, ae(!0);
|
|
57
|
+
const o = n.scrollTop, l = n.scrollHeight;
|
|
58
|
+
Promise.resolve(ie.current()).then(async () => {
|
|
59
59
|
if (!m || !n.isConnected)
|
|
60
60
|
return;
|
|
61
61
|
await new Promise(Se);
|
|
62
|
-
const u = n.scrollHeight -
|
|
63
|
-
u <= 0 || (n.scrollTop =
|
|
62
|
+
const u = n.scrollHeight - l;
|
|
63
|
+
u <= 0 || (n.scrollTop = o + u);
|
|
64
64
|
}).finally(() => {
|
|
65
|
-
|
|
65
|
+
O.current = !1, ae(!1);
|
|
66
66
|
});
|
|
67
|
-
}, e[21] = m, e[22] =
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
e[23] !== t || e[24] !==
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
}, e[21] = m, e[22] = D) : D = e[22];
|
|
68
|
+
const F = D;
|
|
69
|
+
let j;
|
|
70
|
+
e[23] !== t || e[24] !== c || e[25] !== s ? (j = () => {
|
|
71
|
+
const n = t.current;
|
|
72
|
+
if (!n || !s)
|
|
73
|
+
return !1;
|
|
74
|
+
const o = Math.max(0, c);
|
|
75
|
+
return Re(s, n, o);
|
|
76
|
+
}, e[23] = t, e[24] = c, e[25] = s, e[26] = j) : j = e[26];
|
|
77
|
+
const b = j;
|
|
78
|
+
let d;
|
|
79
|
+
e[27] !== t || e[28] !== b ? (d = () => {
|
|
80
|
+
if (!se.current || !oe.current || !S.current || H.current || O.current)
|
|
81
|
+
return;
|
|
82
|
+
const o = t.current?.scrollHeight;
|
|
83
|
+
S.current = !1, H.current = !0, de(!0);
|
|
84
|
+
let l;
|
|
85
|
+
Promise.resolve(oe.current()).then((u) => {
|
|
86
|
+
l = u;
|
|
78
87
|
}).finally(() => {
|
|
79
|
-
|
|
80
|
-
let de = !1, he = !1;
|
|
81
|
-
if (u && s) {
|
|
82
|
-
const pe = Math.max(0, i);
|
|
83
|
-
de = Re(s, u, pe), typeof c == "number" && (he = u.scrollHeight > c);
|
|
84
|
-
}
|
|
85
|
-
E.current = !1, ue(!1), w.current = !0, !(d === !1 || !he || !de || !ee.current) && window.requestAnimationFrame(() => {
|
|
88
|
+
H.current = !1, de(!1), S.current = !0, l !== !1 && window.requestAnimationFrame(() => {
|
|
86
89
|
window.requestAnimationFrame(() => {
|
|
87
|
-
|
|
90
|
+
const u = t.current;
|
|
91
|
+
!u || !(typeof o == "number" && u.scrollHeight > o) || !se.current || !b() || d();
|
|
88
92
|
});
|
|
89
93
|
});
|
|
90
94
|
});
|
|
91
|
-
}, e[
|
|
92
|
-
let
|
|
93
|
-
e[
|
|
94
|
-
if (!r || !
|
|
95
|
+
}, e[27] = t, e[28] = b, e[29] = d) : d = e[29];
|
|
96
|
+
let J;
|
|
97
|
+
e[30] !== t || e[31] !== r || e[32] !== F || e[33] !== h || e[34] !== f ? (J = () => {
|
|
98
|
+
if (!r || !me())
|
|
95
99
|
return;
|
|
96
100
|
const n = t.current;
|
|
97
|
-
if (!n || !
|
|
101
|
+
if (!n || !f)
|
|
98
102
|
return;
|
|
99
|
-
const
|
|
100
|
-
const u =
|
|
103
|
+
const o = new IntersectionObserver((l) => {
|
|
104
|
+
const u = l[0];
|
|
101
105
|
if (u) {
|
|
102
106
|
if (!u.isIntersecting) {
|
|
103
|
-
|
|
107
|
+
y.current = !0;
|
|
104
108
|
return;
|
|
105
109
|
}
|
|
106
|
-
|
|
110
|
+
F(n);
|
|
107
111
|
}
|
|
108
112
|
}, {
|
|
109
113
|
root: n,
|
|
110
|
-
rootMargin: `${Math.max(0,
|
|
114
|
+
rootMargin: `${Math.max(0, h)}px 0px 0px 0px`,
|
|
111
115
|
threshold: 0
|
|
112
116
|
});
|
|
113
|
-
return
|
|
114
|
-
|
|
117
|
+
return o.observe(f), () => {
|
|
118
|
+
o.disconnect();
|
|
115
119
|
};
|
|
116
|
-
}, e[
|
|
117
|
-
let J;
|
|
118
|
-
e[33] !== t || e[34] !== r || e[35] !== m || e[36] !== a || e[37] !== o ? (J = [t, r, m, a, o], e[33] = t, e[34] = r, e[35] = m, e[36] = a, e[37] = o, e[38] = J) : J = e[38], h(z, J);
|
|
120
|
+
}, e[30] = t, e[31] = r, e[32] = F, e[33] = h, e[34] = f, e[35] = J) : J = e[35];
|
|
119
121
|
let K;
|
|
120
|
-
e[
|
|
122
|
+
e[36] !== t || e[37] !== r || e[38] !== m || e[39] !== h || e[40] !== f ? (K = [t, r, m, h, f], e[36] = t, e[37] = r, e[38] = m, e[39] = h, e[40] = f, e[41] = K) : K = e[41], g(J, K);
|
|
123
|
+
let Q;
|
|
124
|
+
e[42] !== t || e[43] !== r || e[44] !== a || e[45] !== F || e[46] !== h || e[47] !== f ? (Q = () => {
|
|
121
125
|
if (!r)
|
|
122
126
|
return;
|
|
123
127
|
const n = t.current;
|
|
124
|
-
if (!n || !
|
|
128
|
+
if (!n || !f)
|
|
125
129
|
return;
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
130
|
+
const o = ge.current;
|
|
131
|
+
if (ge.current = a, !a || o)
|
|
128
132
|
return;
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
131
|
-
|
|
133
|
+
const l = Math.max(0, h);
|
|
134
|
+
if (!we(f, n, l)) {
|
|
135
|
+
y.current = !0;
|
|
132
136
|
return;
|
|
133
137
|
}
|
|
134
|
-
|
|
135
|
-
}, e[
|
|
136
|
-
let
|
|
137
|
-
e[
|
|
138
|
-
let
|
|
139
|
-
e[
|
|
140
|
-
if (!r || !
|
|
138
|
+
F(n);
|
|
139
|
+
}, e[42] = t, e[43] = r, e[44] = a, e[45] = F, e[46] = h, e[47] = f, e[48] = Q) : Q = e[48];
|
|
140
|
+
let U;
|
|
141
|
+
e[49] !== t || e[50] !== r || e[51] !== a || e[52] !== m || e[53] !== h || e[54] !== f ? (U = [t, r, a, m, h, f], e[49] = t, e[50] = r, e[51] = a, e[52] = m, e[53] = h, e[54] = f, e[55] = U) : U = e[55], g(Q, U);
|
|
142
|
+
let V;
|
|
143
|
+
e[56] !== t || e[57] !== r || e[58] !== c || e[59] !== s || e[60] !== d ? (V = () => {
|
|
144
|
+
if (!r || !me())
|
|
141
145
|
return;
|
|
142
146
|
const n = t.current;
|
|
143
147
|
if (!n || !s)
|
|
144
148
|
return;
|
|
145
|
-
const
|
|
146
|
-
const u =
|
|
149
|
+
const o = new IntersectionObserver((l) => {
|
|
150
|
+
const u = l[0];
|
|
147
151
|
if (u) {
|
|
148
152
|
if (!u.isIntersecting) {
|
|
149
|
-
|
|
153
|
+
S.current = !0;
|
|
150
154
|
return;
|
|
151
155
|
}
|
|
152
|
-
|
|
156
|
+
d();
|
|
153
157
|
}
|
|
154
158
|
}, {
|
|
155
159
|
root: n,
|
|
156
|
-
rootMargin: `0px 0px ${Math.max(0,
|
|
160
|
+
rootMargin: `0px 0px ${Math.max(0, c)}px 0px`,
|
|
157
161
|
threshold: 0
|
|
158
162
|
});
|
|
159
|
-
return
|
|
160
|
-
|
|
163
|
+
return o.observe(s), () => {
|
|
164
|
+
o.disconnect();
|
|
161
165
|
};
|
|
162
|
-
}, e[
|
|
163
|
-
let
|
|
164
|
-
e[
|
|
165
|
-
let
|
|
166
|
-
e[
|
|
166
|
+
}, e[56] = t, e[57] = r, e[58] = c, e[59] = s, e[60] = d, e[61] = V) : V = e[61];
|
|
167
|
+
let X;
|
|
168
|
+
e[62] !== t || e[63] !== r || e[64] !== c || e[65] !== s ? (X = [t, r, c, s], e[62] = t, e[63] = r, e[64] = c, e[65] = s, e[66] = X) : X = e[66], g(V, X);
|
|
169
|
+
let Y;
|
|
170
|
+
e[67] !== t || e[68] !== r || e[69] !== c || e[70] !== s || e[71] !== i || e[72] !== d ? (Y = () => {
|
|
167
171
|
if (!r)
|
|
168
172
|
return;
|
|
169
173
|
const n = t.current;
|
|
170
174
|
if (!n || !s)
|
|
171
175
|
return;
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
176
|
+
const o = ve.current;
|
|
177
|
+
if (ve.current = i, !i || o)
|
|
174
178
|
return;
|
|
175
|
-
const
|
|
176
|
-
if (!Re(s, n,
|
|
177
|
-
|
|
179
|
+
const l = Math.max(0, c);
|
|
180
|
+
if (!Re(s, n, l)) {
|
|
181
|
+
S.current = !0;
|
|
178
182
|
return;
|
|
179
183
|
}
|
|
180
|
-
|
|
181
|
-
}, e[
|
|
182
|
-
let
|
|
183
|
-
e[
|
|
184
|
-
let
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
d();
|
|
185
|
+
}, e[67] = t, e[68] = r, e[69] = c, e[70] = s, e[71] = i, e[72] = d, e[73] = Y) : Y = e[73];
|
|
186
|
+
let Z;
|
|
187
|
+
e[74] !== t || e[75] !== r || e[76] !== c || e[77] !== s || e[78] !== i ? (Z = [t, r, c, s, i], e[74] = t, e[75] = r, e[76] = c, e[77] = s, e[78] = i, e[79] = Z) : Z = e[79], g(Y, Z);
|
|
188
|
+
let ee;
|
|
189
|
+
e[80] !== t || e[81] !== r || e[82] !== s || e[83] !== i || e[84] !== b || e[85] !== d ? (ee = () => {
|
|
190
|
+
if (!r || !i)
|
|
191
|
+
return;
|
|
192
|
+
const n = t.current;
|
|
193
|
+
if (!n || !s)
|
|
194
|
+
return;
|
|
195
|
+
const o = () => {
|
|
196
|
+
b() && d();
|
|
197
|
+
}, l = () => {
|
|
198
|
+
o();
|
|
199
|
+
}, u = () => {
|
|
200
|
+
window.requestAnimationFrame(() => {
|
|
201
|
+
o();
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
return n.addEventListener("scroll", l, {
|
|
205
|
+
passive: !0
|
|
206
|
+
}), window.addEventListener("resize", u), () => {
|
|
207
|
+
n.removeEventListener("scroll", l), window.removeEventListener("resize", u);
|
|
208
|
+
};
|
|
209
|
+
}, e[80] = t, e[81] = r, e[82] = s, e[83] = i, e[84] = b, e[85] = d, e[86] = ee) : ee = e[86];
|
|
210
|
+
let te;
|
|
211
|
+
e[87] !== t || e[88] !== r || e[89] !== c || e[90] !== s || e[91] !== i ? (te = [t, r, c, s, i], e[87] = t, e[88] = r, e[89] = c, e[90] = s, e[91] = i, e[92] = te) : te = e[92], g(ee, te);
|
|
212
|
+
let re;
|
|
213
|
+
return e[93] !== w || e[94] !== P ? (re = {
|
|
214
|
+
startSentinelRef: pe,
|
|
215
|
+
endSentinelRef: xe,
|
|
188
216
|
isFetchingPrevious: P,
|
|
189
|
-
isFetchingNext:
|
|
190
|
-
}, e[
|
|
217
|
+
isFetchingNext: w
|
|
218
|
+
}, e[93] = w, e[94] = P, e[95] = re) : re = e[95], re;
|
|
191
219
|
}
|
|
192
220
|
function Se(x) {
|
|
193
221
|
window.requestAnimationFrame(() => {
|
|
@@ -195,6 +223,6 @@ function Se(x) {
|
|
|
195
223
|
});
|
|
196
224
|
}
|
|
197
225
|
export {
|
|
198
|
-
|
|
226
|
+
Ee as useScrollPagination
|
|
199
227
|
};
|
|
200
228
|
//# sourceMappingURL=index6.js.map
|